:root {
  --bg: #fbfaf7;
  --card: #fff;
  --ink: #111315;
  --muted: #8a8c90;
  --sage: #557664;
  --sage-soft: #edf1eb;
  --line: #e7e5df;
  --shadow: 0 12px 30px rgba(30, 38, 32, .08);
  --deep: 0 16px 36px rgba(36, 61, 45, .22);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  background: #ececea;
  color: var(--ink);
  overscroll-behavior-x: none;
}

button, input, textarea, select {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.phone {
  position: relative;
  width: min(100%, 430px);
  min-height: 100dvh;
  background: var(--bg);
  overflow: visible;
}

.screen {
  position: relative;
  min-height: 100dvh;
  height: 100dvh;
  padding: 0 22px calc(102px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.screen::-webkit-scrollbar {
  display: none;
}

.status {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(56px + env(safe-area-inset-top));
  margin: 0 -22px;
  padding: env(safe-area-inset-top) 22px 0;
  background: rgba(251,250,247,.92);
  border-bottom: 1px solid rgba(231,229,223,.72);
  backdrop-filter: blur(16px);
}

.mini-nav > strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: .02em;
}

.mini-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 32px;
  padding: 0;
  border: 1px solid #deddd9;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(30,38,32,.08);
}

.mini-menu span {
  margin-top: -7px;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 2px;
}

.mini-menu i {
  width: 1px;
  height: 16px;
  margin-left: 8px;
  background: #deddd9;
}

.status > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bars {
  display: inline-block;
  width: 23px;
  height: 16px;
  background: linear-gradient(to top, #000 35%, transparent 36%) 0 100%/4px 100% no-repeat,
    linear-gradient(to top, #000 55%, transparent 56%) 6px 100%/4px 100% no-repeat,
    linear-gradient(to top, #000 75%, transparent 76%) 12px 100%/4px 100% no-repeat,
    linear-gradient(to top, #000 100%, transparent 100%) 18px 100%/4px 100% no-repeat;
}

.wifi {
  width: 18px;
  height: 12px;
  border: 3px solid #000;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.battery {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 18px;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  padding-top: 18px;
  animation: enter .18s ease-out;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-page {
  min-height: calc(100vh - 120px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background: #f3f3f0;
  box-shadow: var(--shadow);
  color: var(--sage);
  font-size: 64px;
  font-weight: 900;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-page h1 {
  margin: 10px 0 0;
  font-size: 42px;
  font-weight: 950;
}

.login-page p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.more {
  position: absolute;
  top: 66px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.timer-page {
  text-align: center;
  padding-top: 56px;
}

.timer-page h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

.timer-page .sub {
  margin: 14px 0 42px;
  color: #777b7f;
  font-size: 15px;
  font-weight: 700;
}

.time-range {
  margin: 10px 0 28px;
  color: #73777c;
  font-size: 22px;
  font-weight: 650;
}

.dial {
  position: relative;
  --dial-size: min(88vw, 352px);
  width: var(--dial-size);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(85, 118, 100, .68) 0 var(--deg), rgba(231, 234, 228, .88) var(--deg) 360deg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
  touch-action: none;
}

.dial::before {
  content: "";
  position: absolute;
  inset: 34px;
  z-index: 1;
  border-radius: 50%;
  background: var(--bg);
}

.dial::after {
  content: "";
  position: absolute;
  inset: 17px;
  z-index: 2;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(55, 85, 70, .46) 0 .7deg, transparent .7deg 5deg);
  mask: radial-gradient(circle, transparent 68%, #000 69%, #000 72%, transparent 73%);
}

.pin, .knob {
  position: absolute;
  z-index: 5;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  box-shadow: 0 8px 18px rgba(36, 63, 45, .2);
}

.pin {
  top: -5px;
  left: 50%;
  width: 50px;
  height: 50px;
  transform: translateX(-50%);
  font-size: 27px;
}

.knob {
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%) rotate(var(--deg)) translateY(calc(-1 * (var(--dial-size) / 2 - 17px)));
  transform-origin: center;
}

.knob::after {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
}

.mark {
  position: absolute;
  z-index: 3;
  color: #82858a;
  font-size: 21px;
  font-weight: 800;
}

.mark.top { top: 66px; left: 50%; transform: translateX(-50%); }
.mark.right { top: 50%; right: 60px; transform: translateY(-50%); }
.mark.bottom { bottom: 66px; left: 50%; transform: translateX(-50%); }
.mark.left { top: 50%; left: 60px; transform: translateY(-50%); }

.dial-center {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 4px;
}

.dial-center strong {
  color: var(--sage);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 80px;
  line-height: .88;
  font-weight: 500;
}

.dial-center b {
  font-size: 25px;
  font-weight: 950;
}

.dial-center.countdown strong {
  color: #111;
  font-size: 66px;
}

.primary, .gray, .soft {
  border: 0;
  border-radius: 28px;
  font-weight: 900;
}

.primary {
  background: linear-gradient(180deg, #66846f, #3b5746);
  color: #fff;
  box-shadow: var(--deep);
}

.primary.big, .start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 60px;
  margin-top: 36px;
  font-size: 25px;
}

.timer-page .start {
  width: 250px;
  min-width: 250px;
}

.timer-page .primary {
  background: var(--sage);
  box-shadow: 0 16px 36px rgba(36, 61, 45, .18);
}

.play, .tri {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid currentColor;
}

.timer-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 14px;
  margin: 44px 0 0;
}

.timer-actions button {
  height: 56px;
  font-size: 19px;
}

.soft {
  background: #ebece7;
  color: #111;
}

.gray {
  background: #d7d9d5;
  color: #3e4444;
  box-shadow: none;
}

.category-row {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 12px;
  align-items: center;
  margin: 18px 0 24px;
}

.category-viewport {
  position: relative;
  min-width: 0;
}

.category-scroll {
  display: flex;
  align-items: baseline;
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  scrollbar-width: none;
}

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

.category-scroll.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.category-scroll button, .add-cat {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 22px;
  font-weight: 950;
}

.category-scroll button.active {
  color: var(--sage);
  font-size: 31px;
}

.ellipsis {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  padding: 0 0 0 12px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(251,250,247,0), var(--bg) 38%);
  color: #6c706f;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  pointer-events: none;
}

.ellipsis[hidden] {
  display: none;
}

.add-cat {
  color: var(--sage);
  font-size: 36px;
  line-height: 1;
}

.tasks {
  display: grid;
  gap: 10px;
}

.task {
  display: grid;
  grid-template-columns: 48px 1fr 44px;
  align-items: center;
  min-height: 58px;
  padding: 8px 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.task.done {
  opacity: .48;
}

.task-icon, .thumb, .pool {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eeeee9;
  color: var(--sage);
  font-weight: 950;
}

.task-icon svg { width: 23px; height: 23px; }

.task-text {
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.task-text strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  font-weight: 950;
}

.task-text span {
  display: block;
  margin-top: 2px;
  color: #777b80;
  font-size: 15px;
  font-weight: 750;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 3px solid #111;
  border-radius: 50%;
  background: transparent;
  color: #111;
}

.play-circle .pause {
  width: 16px;
  height: 18px;
  background: linear-gradient(90deg, currentColor 0 5px, transparent 5px 11px, currentColor 11px 16px);
}

.play-circle .check {
  width: 17px;
  height: 10px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
}

.small-plus {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 18px 0;
  border: 1px solid #dededb;
  border-radius: 14px;
  background: #fff;
  color: #777;
  font-size: 31px;
  line-height: 1;
}

.small-plus.inline {
  margin: 0;
  color: var(--sage);
}

.done-toggle {
  min-width: 152px;
  height: 42px;
  border: 1px solid #e0e0dc;
  border-radius: 22px;
  background: #fff;
  color: var(--sage);
  font-size: 21px;
  font-weight: 950;
}

.done-list {
  margin-top: 18px;
}

.points-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 24px;
  color: var(--sage);
}

.points-head svg {
  width: 44px;
  height: 44px;
}

.points-head strong {
  font-size: 50px;
  line-height: 1;
}

.points-head span {
  color: #111;
  font-size: 18px;
}

.seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 258px;
  height: 40px;
  margin: 0 auto 22px;
  padding: 3px;
  border-radius: 22px;
  background: #e9e9e5;
}

.seg-tabs button {
  border: 0;
  border-radius: 19px;
  background: transparent;
  font-size: 18px;
  font-weight: 900;
}

.seg-tabs button.active {
  background: #fff;
  color: var(--sage);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.prize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.prize {
  min-height: 222px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.prize-image {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.25;
  border-radius: 14px;
  background: #f3f3ef;
  color: var(--sage);
  overflow: hidden;
}

.prize-image svg {
  width: 58px;
  height: 58px;
}

.prize-image img, .thumb img, .avatar img, .upload img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prize strong {
  display: block;
  margin-top: 10px;
  font-size: 19px;
  font-weight: 950;
}

.prize span {
  display: block;
  margin: 3px 0 9px;
  color: var(--sage);
  font-size: 17px;
  font-weight: 800;
}

.prize button {
  width: 112px;
  height: 34px;
  border: 0;
  border-radius: 17px;
  background: var(--sage);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.prize button.disabled {
  background: #e1e2df;
  color: #8b8d91;
}

.profile-head {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 24px;
  margin: 70px 0 52px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #efefea;
  color: var(--sage);
  font-size: 60px;
  overflow: hidden;
}

.profile-head h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 950;
}

.profile-head p {
  margin: 0;
  color: #777b80;
  font-size: 18px;
}

.profile-list {
  display: grid;
  gap: 16px;
}

.profile-list.tight {
  margin-top: 44px;
}

.profile-row {
  display: grid;
  grid-template-columns: 56px 1fr 24px;
  align-items: center;
  min-height: 86px;
  padding: 0 24px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: left;
}

.profile-row span {
  width: 42px;
  height: 42px;
  color: var(--sage);
}

.profile-row b {
  font-size: 22px;
  font-weight: 950;
}

.profile-row i {
  color: #8d8f93;
  font-size: 38px;
  font-style: normal;
}

.page-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  margin: 18px 0 42px;
}

.page-header button {
  border: 0;
  background: transparent;
  font-size: 44px;
  line-height: 1;
}

.page-header h1 {
  margin: 0;
  text-align: center;
  font-size: 27px;
  font-weight: 950;
}

.card, .score-card {
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.score-card {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  min-height: 162px;
  padding: 24px;
  color: var(--sage);
}

.score-card svg {
  width: 66px;
  height: 66px;
}

.score-card span {
  color: #555a5d;
  font-size: 20px;
}

.score-card strong {
  display: block;
  font-size: 64px;
  line-height: .9;
}

.score-card p {
  margin: 12px 0 0;
  color: #555a5d;
  font-size: 20px;
}

.green-title {
  margin: 34px 0 14px;
  color: var(--sage);
  font-size: 22px;
  font-weight: 950;
}

.card {
  padding: 18px;
}

.card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.points-rules {
  margin-bottom: 16px;
}

.points-rules h2 {
  margin-bottom: 4px;
}

.rule-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}

.rule-row:last-of-type {
  border-bottom: 0;
}

.rule-row b {
  font-size: 17px;
  font-weight: 900;
}

.rule-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage);
  white-space: nowrap;
  font-size: 16px;
  font-weight: 850;
}

.rule-row input {
  width: 58px;
  height: 42px;
  border: 1px solid #d8d8d4;
  border-radius: 12px;
  color: var(--sage);
  background: #fff;
  text-align: center;
  outline: none;
}

.rule-row input:focus,
.point-form input:focus,
.field input:focus,
.field select:focus,
.full-input:focus,
.sheet textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(85, 118, 100, .12);
}

.points-rules p {
  margin-bottom: 0;
}

.point-form {
  display: grid;
  grid-template-columns: 1fr 76px 76px;
  gap: 12px;
}

.point-form input, .field input, .field select, .full-input {
  width: 100%;
  height: 46px;
  border: 1px solid #d8d8d4;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
  outline: none;
}

.point-form button {
  border: 1px solid var(--sage);
  border-radius: 14px;
  background: #fff;
  color: var(--sage);
  font-weight: 900;
}

.point-form button:first-of-type {
  border: 0;
  background: var(--sage);
  color: #fff;
}

.card p, .empty {
  margin: 10px 0 0;
  color: #8a8d91;
  font-size: 15px;
}

.record {
  display: grid;
  grid-template-columns: 48px 1fr 52px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.record:last-child { border-bottom: 0; }

.record span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f0ec;
  color: var(--sage);
}

.record b {
  display: block;
  font-size: 18px;
}

.record small {
  color: #8b8d90;
}

.record strong {
  color: var(--sage);
  text-align: right;
  font-size: 22px;
}

.record strong.red {
  color: #d33;
}

.manage-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 12px;
}

.manage-title h2 {
  margin: 0;
  color: var(--sage);
  font-size: 22px;
  font-weight: 950;
}

.manage-list {
  display: grid;
  gap: 0;
}

.manage-row {
  display: grid;
  grid-template-columns: 58px 1fr 48px 48px;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.manage-row:last-child { border-bottom: 0; }

.manage-row b {
  display: block;
  font-size: 20px;
  font-weight: 950;
}

.manage-row small {
  color: var(--sage);
  font-size: 16px;
}

.manage-row button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e2e2df;
  border-radius: 13px;
  background: #fff;
  color: var(--sage);
}

.manage-row button.danger {
  color: #ff3030;
}

.thumb, .pool {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
}

.pool {
  border-radius: 50%;
  font-size: 22px;
}

.rules {
  display: grid;
  gap: 0;
}

.rules div {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}

.rules div:last-child { border-bottom: 0; }

.rules b {
  font-size: 20px;
}

.rules span {
  color: var(--sage);
  text-align: right;
  font-size: 18px;
  font-weight: 900;
}

.rules input {
  width: 54px;
  height: 42px;
  margin: 0 4px;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-align: center;
  color: var(--sage);
  font-weight: 900;
}

.settings {
  display: grid;
  gap: 0;
  padding: 0 18px;
}

.settings button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 72px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.settings button:last-child {
  border-bottom: 0;
}

.settings b {
  font-size: 20px;
}

.settings span {
  color: #8a8d91;
  font-size: 18px;
  font-weight: 800;
}

.settings .logout b {
  color: #ff3b3b;
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(100%, 430px);
  height: calc(74px + env(safe-area-inset-bottom));
  padding: 9px 28px calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  border-top: 1px solid #deddd9;
  background: rgba(251,250,247,.94);
  backdrop-filter: blur(16px);
}

.tabbar button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #6d7074;
}

.tabbar button.active {
  color: var(--sage);
}

.tabbar svg {
  width: 34px;
  height: 34px;
}

/* Keep the primary timer action in the first view on compact mini-program screens. */
@media (max-height: 760px) {
  .timer-page {
    padding-top: 28px;
  }

  .timer-page .sub {
    margin-bottom: 20px;
  }

  .timer-page .dial {
    --dial-size: min(88vw, 352px);
  }

  .timer-page .start {
    margin-top: 36px;
  }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: end;
  justify-items: center;
  background: rgba(0,0,0,.48);
}

.sheet, .bottom-sheet, .complete-dialog {
  width: min(100%, 430px);
  max-height: 86vh;
  overflow-y: auto;
  padding: 18px 24px 28px;
  border-radius: 24px 24px 0 0;
  background: #fff;
}

.small-dialog, .complete-dialog {
  width: min(88%, 380px);
  align-self: center;
  border-radius: 24px;
  text-align: center;
}

.handle {
  display: block;
  width: 42px;
  height: 5px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: #d8d8d8;
}

.sheet h2, .complete-dialog h2 {
  margin: 0 0 22px;
  font-size: 26px;
  font-weight: 950;
}

.field {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid #e3e2de;
  border-radius: 15px;
}

.field label {
  font-weight: 900;
}

.password-field {
  grid-template-columns: 1fr 42px;
}

.password-field button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #777;
}

.sheet textarea {
  width: 100%;
  min-height: 110px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #e3e2de;
  border-radius: 15px;
  resize: vertical;
  outline: none;
}

.sheet input,
.sheet textarea,
.sheet select {
  font-size: 16px;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.sheet-actions button {
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: #f2f2ef;
  font-size: 18px;
  font-weight: 950;
}

.sheet-actions .primary {
  background: var(--sage);
}

.danger-btn, .danger-primary {
  background: #ff3030 !important;
  color: #fff !important;
}

.bottom-sheet {
  display: grid;
  gap: 14px;
  padding: 36px 44px 42px;
}

.bottom-sheet button {
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 24px;
  font-weight: 900;
}

.bottom-sheet button.danger {
  color: #ff3030;
}

.complete-dialog {
  padding: 34px 28px 28px;
}

.star-badge {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: -4px auto 22px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 42px;
  box-shadow: var(--deep);
}

.complete-dialog strong {
  display: block;
  color: var(--sage);
  font-size: 42px;
  font-weight: 950;
}

.complete-dialog p {
  color: #8a8d91;
  font-size: 20px;
  font-weight: 850;
}

.complete-dialog hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.complete-dialog button {
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 29px;
  font-size: 22px;
}

.upload {
  display: grid;
  grid-template-columns: 1fr 78px;
  align-items: center;
  min-height: 88px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #e3e2de;
  border-radius: 15px;
  font-weight: 900;
}

.upload input {
  display: none;
}

.upload span {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 14px;
  background: #f0f0ec;
  color: var(--sage);
  overflow: hidden;
}

.avatar-upload {
  grid-template-columns: 1fr 96px;
}

.avatar-upload span {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  font-size: 42px;
}

.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 14px 0;
  border: 1px solid #dededb;
  border-radius: 14px;
  overflow: hidden;
}

.seg button {
  height: 48px;
  border: 0;
  border-right: 1px solid #dededb;
  background: #fff;
  font-weight: 900;
}

.seg button:last-child { border-right: 0; }
.seg button.active { background: var(--sage); color: #fff; }

.toggle-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 58px;
  border: 0;
  background: transparent;
}

.toggle-line span {
  width: 58px;
  height: 34px;
  border-radius: 17px;
  background: #ddd;
  position: relative;
}

.toggle-line span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
}

.toggle-line span.on {
  background: var(--sage);
}

.toggle-line span.on::after {
  left: 27px;
}

.readonly {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f4f4f1;
  color: #666;
  font-weight: 900;
}

.error {
  min-height: 20px;
  margin: 0;
  color: #ff3030;
}

.app-menu-sheet {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.install-option {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.install-option > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sage-soft);
  color: var(--sage);
}

.install-option > span svg {
  width: 26px;
  height: 26px;
}

.install-option b {
  font-size: 18px;
}

.install-option i {
  color: var(--muted);
  font-size: 30px;
  font-style: normal;
  line-height: 1;
}

.install-note {
  padding: 8px 0 2px;
  text-align: left;
}

.install-note b {
  font-size: 18px;
}

.install-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.install-note ol {
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
}

.offline-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.offline-status > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d2a33e;
}

.offline-status > span.online {
  background: #6f947c;
}

@media (display-mode: standalone) {
  .screen {
    min-height: 100dvh;
  }
}
