.jiri-open {
  background: #fff;
}

.home-screen.jiri-open > .home-scroll,
.home-screen.jiri-open > .tab-panel,
.home-screen.jiri-open > .tabbar {
  display: none;
}

.jiri-page {
  position: absolute;
  inset: 0;
  z-index: 21;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #151716;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.jiri-page[hidden] {
  display: none;
}

.jiri-page svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jiri-header {
  display: grid;
  grid-template-columns: 78px 1fr 116px;
  align-items: center;
  min-height: 49px;
  padding: 2px 20px 0;
  background: #fff;
}

.jiri-header h1 {
  margin: 0;
  color: #080908;
  text-align: center;
  font-family: inherit;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.jiri-back {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  color: #090a09;
}

.jiri-back svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.4;
}

.jiri-record {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
  color: #202322;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.jiri-record svg {
  width: 18px;
  height: 18px;
}

.jiri-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 43px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(20, 20, 20, 0.09);
  background: #fff;
}

.jiri-tabs button {
  position: relative;
  color: #545756;
  font-size: 17px;
  font-weight: 500;
}

.jiri-tabs button:hover {
  color: #0f8d4d;
}

.jiri-tabs button.is-active {
  color: #078846;
  font-weight: 800;
}

.jiri-tabs button.is-active::after {
  position: absolute;
  right: 20px;
  bottom: 0;
  left: 20px;
  height: 3px;
  border-radius: 999px;
  background: #078846;
  content: "";
}

.jiri-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 19px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #fff 0%, #fdfcf9 100%);
  scrollbar-width: none;
}

.jiri-scroll::-webkit-scrollbar {
  display: none;
}

.jiri-scroll > * {
  flex: 0 0 auto;
}

.jiri-card {
  border: 1px solid rgba(33, 34, 31, 0.06);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 25px rgba(40, 38, 33, 0.07);
}

.jiri-record-panel {
  position: absolute;
  top: 58px;
  right: 16px;
  z-index: 4;
  width: min(250px, calc(100% - 32px));
  padding: 12px;
  border: 1px solid rgba(10, 132, 69, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(23, 30, 25, 0.14);
}

.jiri-record-panel[hidden] {
  display: none;
}

.jiri-record-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15px;
}

.jiri-record-panel button {
  color: #0b8847;
  font-size: 14px;
  font-weight: 700;
}

.jiri-record-panel p {
  display: grid;
  gap: 2px;
  padding: 7px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.06);
}

.jiri-record-panel b,
.jiri-record-panel span {
  font-size: 13px;
}

.jiri-record-panel span {
  color: #6a6e6c;
}

.jiri-notice {
  position: sticky;
  bottom: 7px;
  align-self: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 139, 83, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(10, 128, 65, 0.2);
}

@media (max-width: 390px) {
  .jiri-header {
    grid-template-columns: 58px 1fr 100px;
    padding-inline: 14px;
  }

  .jiri-tabs {
    padding-inline: 10px;
  }

  .jiri-scroll {
    padding-inline: 10px;
  }
}

@media (max-height: 720px) {
  .jiri-header {
    min-height: 46px;
  }

  .jiri-tabs {
    height: 38px;
  }

  .jiri-scroll {
    gap: 6px;
    padding-top: 7px;
  }
}
