:root {
  --paper: #f5f2ea;
  --paper-deep: #ece8dd;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --ink: #1d2927;
  --ink-soft: #48534f;
  --muted: #7a817b;
  --line: #deddd4;
  --line-soft: #ebe9e1;
  --teal: #17685f;
  --teal-deep: #105048;
  --teal-soft: #dcece6;
  --teal-pale: #edf5f1;
  --amber: #b96d2b;
  --amber-deep: #7f461d;
  --amber-soft: #fbe9cf;
  --blue: #426b8e;
  --blue-soft: #e7eff5;
  --rose: #a35c54;
  --rose-soft: #f5e4df;
  --shadow: 0 18px 50px rgba(40, 53, 47, 0.07);
  --shadow-soft: 0 8px 24px rgba(40, 53, 47, 0.05);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ambient-a: rgba(82, 177, 164, 0.16);
  --ambient-b: rgba(255, 156, 113, 0.13);
  color-scheme: light;
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont,
    sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="breeze"] {
  --paper: #edf8f6;
  --paper-deep: #dceeea;
  --surface: #fffdfa;
  --surface-strong: #ffffff;
  --ink: #18343a;
  --ink-soft: #425b60;
  --muted: #708287;
  --line: #cfe4df;
  --line-soft: #e0efec;
  --teal: #087f77;
  --teal-deep: #075f59;
  --teal-soft: #d6f2ec;
  --teal-pale: #edfaf7;
  --amber: #f08456;
  --amber-deep: #a34b2e;
  --amber-soft: #ffe4d6;
  --blue: #347dc5;
  --blue-soft: #dfecfa;
  --rose: #b55c68;
  --rose-soft: #f9e2e7;
  --shadow: 0 18px 50px rgba(22, 82, 88, 0.09);
  --shadow-soft: 0 8px 24px rgba(22, 82, 88, 0.07);
  --ambient-a: rgba(64, 184, 174, 0.2);
  --ambient-b: rgba(255, 139, 99, 0.17);
}

html[data-theme="sunny"] {
  --paper: #fff8df;
  --paper-deep: #ffefbf;
  --surface: #fffefa;
  --ink: #342f22;
  --ink-soft: #5f5947;
  --muted: #857b62;
  --line: #ecddb4;
  --line-soft: #f3e8ca;
  --teal: #2b73c7;
  --teal-deep: #1e579c;
  --teal-soft: #dcecff;
  --teal-pale: #eef7ff;
  --amber: #ee832f;
  --amber-deep: #a7551d;
  --amber-soft: #ffe4c8;
  --blue: #2b73c7;
  --blue-soft: #dcecff;
  --rose: #b85d67;
  --rose-soft: #f8e1e5;
  --shadow: 0 18px 50px rgba(117, 91, 34, 0.09);
  --shadow-soft: 0 8px 24px rgba(117, 91, 34, 0.07);
  --ambient-a: rgba(255, 203, 67, 0.25);
  --ambient-b: rgba(90, 168, 239, 0.16);
}

html[data-theme="berry"] {
  --paper: #fbf2fc;
  --paper-deep: #f0def5;
  --surface: #fffbfe;
  --ink: #372d3f;
  --ink-soft: #5c4d66;
  --muted: #84748c;
  --line: #e7d5eb;
  --line-soft: #f0e3f2;
  --teal: #7351a3;
  --teal-deep: #54357f;
  --teal-soft: #eadcf7;
  --teal-pale: #f6effb;
  --amber: #ed7c89;
  --amber-deep: #a94d5a;
  --amber-soft: #fae1e5;
  --blue: #607bd0;
  --blue-soft: #e5eaff;
  --rose: #c26078;
  --rose-soft: #f8e1e8;
  --shadow: 0 18px 50px rgba(90, 58, 112, 0.09);
  --shadow-soft: 0 8px 24px rgba(90, 58, 112, 0.07);
  --ambient-a: rgba(180, 120, 205, 0.2);
  --ambient-b: rgba(244, 133, 154, 0.16);
}

html[data-theme="forest"] {
  --paper: #f0f8ec;
  --paper-deep: #deeed8;
  --surface: #fffefa;
  --ink: #26372b;
  --ink-soft: #45594a;
  --muted: #718176;
  --line: #d4e6cf;
  --line-soft: #e3efdf;
  --teal: #347851;
  --teal-deep: #235b3b;
  --teal-soft: #dcefdc;
  --teal-pale: #edf8eb;
  --amber: #db8533;
  --amber-deep: #94551f;
  --amber-soft: #f9e3ca;
  --blue: #4d7996;
  --blue-soft: #e1edf4;
  --rose: #a55e50;
  --rose-soft: #f5e3dd;
  --shadow: 0 18px 50px rgba(53, 84, 60, 0.09);
  --shadow-soft: 0 8px 24px rgba(53, 84, 60, 0.07);
  --ambient-a: rgba(99, 170, 95, 0.2);
  --ambient-b: rgba(230, 151, 62, 0.14);
}

html[data-theme="starlight"] {
  --paper: #eef5ff;
  --paper-deep: #dce9fa;
  --surface: #fffefe;
  --surface-strong: #ffffff;
  --ink: #17263e;
  --ink-soft: #43546f;
  --muted: #748198;
  --line: #ccdaec;
  --line-soft: #e2ebf7;
  --teal: #185fa8;
  --teal-deep: #10467f;
  --teal-soft: #d9e9fc;
  --teal-pale: #edf5ff;
  --amber: #f27649;
  --amber-deep: #a54324;
  --amber-soft: #ffe2d7;
  --blue: #078ba8;
  --blue-soft: #d8f3f8;
  --rose: #c55e79;
  --rose-soft: #fae2e9;
  --shadow: 0 18px 50px rgba(29, 68, 116, 0.1);
  --shadow-soft: 0 8px 24px rgba(29, 68, 116, 0.07);
  --ambient-a: rgba(43, 154, 211, 0.2);
  --ambient-b: rgba(114, 116, 225, 0.15);
}

html[data-theme="pixel"] {
  --paper: #f7f1ff;
  --paper-deep: #ece1ff;
  --surface: #fffaff;
  --surface-strong: #ffffff;
  --ink: #2c2540;
  --ink-soft: #584d70;
  --muted: #837792;
  --line: #dfd2ed;
  --line-soft: #eee4f5;
  --teal: #6148c7;
  --teal-deep: #453095;
  --teal-soft: #e3d9ff;
  --teal-pale: #f4edff;
  --amber: #f06391;
  --amber-deep: #ac315b;
  --amber-soft: #ffe0ec;
  --blue: #078da2;
  --blue-soft: #d7f2f4;
  --rose: #db527f;
  --rose-soft: #fbe0e9;
  --shadow: 0 18px 50px rgba(79, 48, 131, 0.1);
  --shadow-soft: 0 8px 24px rgba(79, 48, 131, 0.07);
  --ambient-a: rgba(95, 71, 199, 0.2);
  --ambient-b: rgba(0, 179, 199, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, var(--ambient-b), transparent 27rem),
    radial-gradient(circle at 92% 4%, var(--ambient-a), transparent 25rem),
    var(--paper);
}

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

button {
  color: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(23, 104, 95, 0.27);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  font-weight: 650;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 6px;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.28;
  letter-spacing: -0.025em;
}

h3 {
  letter-spacing: -0.012em;
}

p {
  color: var(--ink-soft);
  line-height: 1.68;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.app-frame {
  width: min(1400px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(118px + var(--safe-bottom));
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 104px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--teal);
  color: #f9efdc;
  box-shadow: 0 8px 20px rgba(23, 104, 95, 0.18);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

.brand-mark .icon {
  width: 23px;
  height: 23px;
}

.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.15em;
}

.topbar-center {
  color: var(--muted);
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.layout-mode-toggle,
.guide-entry,
.parent-entry,
.star-balance {
  min-height: 42px;
}

.layout-mode-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, var(--teal-pale));
  color: var(--teal-deep);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.layout-mode-toggle .icon {
  width: 17px;
  height: 17px;
}

.layout-mode-toggle[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
  background: var(--teal-soft);
}

.star-balance {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 5px;
  width: max-content;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid rgba(185, 109, 43, 0.22);
  border-radius: 999px;
  background: rgba(251, 233, 207, 0.62);
  cursor: pointer;
}

.star-balance .icon {
  align-self: center;
  width: 17px;
  height: 17px;
  color: var(--amber);
}

.star-balance strong {
  min-width: 1ch;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.star-balance span {
  color: var(--amber-deep);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.offline-pill {
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  box-shadow: var(--shadow-soft);
}

#app-main {
  animation: page-in 420ms cubic-bezier(0.2, 0.7, 0.25, 1);
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 24px 0 36px;
}

.page-heading > div:first-child {
  max-width: 760px;
}

.page-heading > p,
.page-heading > div:first-child > p {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 253, 247, 0.68);
}

.label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.today-heading {
  align-items: center;
}

.add-round {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  box-shadow: 0 12px 28px rgba(23, 104, 95, 0.22);
  cursor: pointer;
}

.add-round .icon {
  width: 25px;
  height: 25px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:not(:disabled):active {
  transform: scale(0.975);
}

.button .icon {
  width: 18px;
  height: 18px;
}

.button.primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 9px 22px rgba(23, 104, 95, 0.15);
}

.button.primary:hover {
  background: var(--teal-deep);
}

.button.secondary {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.button.subtle {
  background: var(--paper-deep);
  color: var(--ink);
}

.button.outline {
  border-color: var(--line);
  background: transparent;
}

.button.wide {
  width: 100%;
}

.button.small {
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 11px;
  font-size: 12px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.text-button .icon {
  width: 15px;
  height: 15px;
}

.today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.today-main {
  min-width: 0;
}

.progress-card {
  padding: 24px 26px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.76);
  box-shadow: var(--shadow-soft);
}

.progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-top strong {
  display: block;
  margin-top: 4px;
  font-size: 29px;
}

.progress-top strong span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.progress-ring {
  --progress: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--progress) * 1%), var(--line-soft) 0);
  font-size: 11px;
  font-weight: 700;
}

.progress-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
}

.progress-ring span {
  z-index: 1;
  grid-area: 1 / 1;
}

.progress-track {
  overflow: hidden;
  height: 6px;
  margin-top: 20px;
  border-radius: 99px;
  background: var(--line-soft);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 450ms ease;
}

.progress-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.section-block {
  margin-top: 34px;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin-bottom: 0;
}

.task-list {
  display: grid;
  gap: 12px;
}

.task-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.72);
}

.task-filter-label {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
}

.task-filter-label > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.task-filter-label .icon {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.task-filter-label small {
  color: var(--muted);
  font-size: 8px;
}

.task-filter-options {
  display: flex;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.task-filter-options::-webkit-scrollbar {
  display: none;
}

.task-filter-options button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 10px;
}

.task-filter-options button b {
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 8px;
}

.task-filter-options button.active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.task-filter-options button.active b {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.task-card {
  position: relative;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(44, 55, 50, 0.035);
  animation: card-in 420ms both;
  animation-delay: calc(var(--task-index) * 45ms);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.task-card.completed {
  background: rgba(237, 245, 241, 0.72);
}

.task-card.skipped {
  opacity: 0.62;
}

.task-accent {
  flex: 0 0 5px;
  background: var(--teal);
}

.task-card.flex .task-accent {
  background: var(--amber);
}

.task-card.choice .task-accent {
  background: var(--blue);
}

.task-main {
  flex: 1;
  min-width: 0;
  padding: 20px 22px;
}

.task-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.task-label-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.subject-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--teal) 18%, transparent);
  border-radius: 8px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.task-kind {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
}

.kind-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.flex .kind-dot {
  background: var(--amber);
}

.choice .kind-dot {
  background: var(--blue);
}

.status-pill,
.type-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.status-pill.inProgress {
  background: var(--teal);
  color: white;
}

.status-pill.completed {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.status-pill.paused {
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.task-card h3 {
  margin: 13px 0 8px;
  font-size: 19px;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  color: var(--muted);
  font-size: 11px;
}

.task-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.task-meta .icon {
  width: 14px;
  height: 14px;
}

.task-meta .reward-hint {
  color: var(--amber-deep);
}

.task-meta .break-hint {
  color: #66716b;
}

.task-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.task-actions .button {
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 11px;
  font-size: 12px;
}

.task-feedback {
  display: block;
  margin-top: 12px;
  color: var(--teal-deep);
  font-size: 12px;
}

.task-feedback.muted {
  color: var(--muted);
}

.timer-live {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--teal-pale);
  color: var(--teal-deep);
}

.timer-live .icon {
  width: 15px;
  height: 15px;
}

.live-timer {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.today-rail {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 16px;
}

.next-card {
  position: relative;
  overflow: hidden;
  min-height: 322px;
  padding: 27px;
  border-radius: var(--radius-xl);
  background: var(--teal);
  color: #fffdf7;
  box-shadow: 0 24px 54px rgba(23, 104, 95, 0.18);
}

.next-card::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -92px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.035),
    0 0 0 64px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.next-card.active {
  background: var(--teal-deep);
}

.next-card.empty {
  min-height: 280px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.next-card .eyebrow {
  color: #b7dbd4;
}

.next-card.empty .eyebrow {
  color: var(--teal);
}

.next-card h2 {
  margin: 10px 0 12px;
  color: #fffdf7;
  font-size: 30px;
}

.next-card.empty h2 {
  color: var(--ink);
}

.next-card p {
  position: relative;
  z-index: 1;
  color: rgba(255, 253, 247, 0.72);
  font-size: 13px;
}

.next-card.empty p {
  color: var(--ink-soft);
}

.next-type {
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 10px;
}

.next-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}

.next-facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.next-facts .icon {
  width: 14px;
  height: 14px;
}

.next-card > .live-timer {
  margin-bottom: 18px;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}

.next-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.next-card .button.primary {
  background: #fffdf7;
  color: var(--teal-deep);
}

.next-card .button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.next-card.empty .button.primary {
  background: var(--teal);
  color: white;
}

.bank-card,
.quiet-card {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.72);
}

.bank-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.bank-title strong {
  display: block;
  font-size: 27px;
}

.star-orb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber);
}

.bank-card p,
.quiet-card p {
  margin: 14px 0;
  font-size: 12px;
  line-height: 1.65;
}

.quiet-card {
  background: transparent;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 54px 30px;
  border: 1px dashed #d4d5ce;
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-state.compact {
  padding: 42px 30px;
}

.empty-state h3 {
  margin: 16px 0 8px;
  font-size: 19px;
}

.empty-state p {
  max-width: 420px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.empty-orbit {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
}

.plan-task {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 21px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: var(--surface);
}

.plan-task.completed {
  background: var(--teal-pale);
}

.reorder-buttons {
  display: grid;
  gap: 5px;
}

.reorder-buttons button,
.icon-button,
.date-arrow,
.dialog-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}

.reorder-buttons button {
  width: 34px;
  height: 28px;
  font-size: 12px;
}

.plan-task-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-badge.must {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.type-badge.flex {
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.type-badge.choice {
  background: var(--blue-soft);
  color: var(--blue);
}

.plan-task h3 {
  margin: 9px 0 6px;
  font-size: 17px;
}

.task-note {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.plan-task-tools {
  display: flex;
  gap: 7px;
}

.icon-button .icon,
.date-arrow .icon,
.dialog-close .icon {
  width: 18px;
  height: 18px;
}

.date-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.date-display {
  min-width: 190px;
  text-align: center;
}

.date-display span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.date-display strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.date-picker-label {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}

.date-picker-label input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.plan-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.68);
}

.plan-summary > div {
  padding: 17px 20px;
  border-right: 1px solid var(--line-soft);
}

.plan-summary > div:last-child {
  border-right: 0;
}

.plan-summary span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.plan-summary strong {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}

.plan-panel {
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 249, 0.56);
}

.timeline-card {
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.timeline-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 27px 16px;
}

.timeline-toolbar h2 {
  margin: 0;
}

.view-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--paper-deep);
}

.view-toggle button {
  min-height: 36px;
  padding: 7px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.view-toggle button.active {
  background: var(--surface);
  color: var(--teal-deep);
  box-shadow: 0 4px 12px rgba(38, 50, 45, 0.08);
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 15px;
  padding: 0 27px 17px;
  color: var(--muted);
  font-size: 9px;
}

.timeline-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-color {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--task-edge);
}

.legend-dashed {
  width: 12px;
  height: 9px;
  border: 1px dashed #9a9a91;
  border-radius: 3px;
}

.legend-lock {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: var(--paper-deep);
  color: var(--muted);
}

.legend-lock .icon {
  width: 9px;
  height: 9px;
}

.legend-break {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(
      -45deg,
      #dfe3dc 0,
      #dfe3dc 2px,
      #f4f5f0 2px,
      #f4f5f0 4px
    );
}

.legend-tip {
  margin-left: auto;
}

.legend-tip .icon {
  width: 12px;
  height: 12px;
}

.day-period-view {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px 23px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.day-period-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #fcfbf7;
}

.day-period-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 45px;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.day-period-heading strong {
  font-size: 14px;
}

.day-period-heading span {
  color: var(--muted);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.day-period-calendar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  height: 360px;
}

.day-period-axis,
.day-period-track {
  position: relative;
  height: 360px;
}

.day-period-axis {
  border-right: 1px solid var(--line-soft);
  background: #faf8f3;
}

.day-period-axis .hour-label {
  right: 5px;
  font-size: 7px;
}

.day-period-track {
  overflow: hidden;
}

.period-hour-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.period-hour-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(220, 221, 214, 0.78);
}

.day-period-view .timeline-block {
  left: 5px;
  right: 5px;
  min-height: 19px;
  padding: 3px 6px 3px 8px;
  border-left-width: 3px;
  font-size: 9px;
}

.day-period-view .timeline-block.lane-left {
  right: calc(50% + 3px);
}

.day-period-view .timeline-block.lane-right {
  left: calc(50% + 3px);
}

.day-period-view .timeline-block-time {
  font-size: 7px;
}

.day-period-view .on-time-badge {
  top: 2px;
  right: 2px;
  padding: 1px 3px;
}

.day-period-view .timeline-block.compact .on-time-badge {
  font-size: 0;
}

.day-period-view .on-time-badge .icon {
  width: 8px;
  height: 8px;
}

.timeline-scroll {
  overflow: auto;
  max-height: 720px;
  border-top: 1px solid var(--line-soft);
  overscroll-behavior: contain;
  scrollbar-color: #c7c9c2 transparent;
  scrollbar-width: thin;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 58px repeat(var(--timeline-days), minmax(86px, 1fr));
  grid-template-rows: 48px var(--timeline-height);
  min-width: 100%;
  user-select: none;
}

.timeline-grid.day {
  grid-template-columns: 58px minmax(0, 1fr);
}

.timeline-corner,
.timeline-day-head {
  position: sticky;
  top: 0;
  z-index: 8;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.timeline-corner {
  left: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.timeline-day-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-left: 1px solid var(--line-soft);
}

.timeline-day-head span {
  color: var(--muted);
  font-size: 9px;
}

.timeline-day-head strong {
  font-size: 12px;
}

.timeline-day-head.is-today {
  color: var(--teal-deep);
  background: var(--teal-pale);
}

.timeline-day-head.is-today span {
  color: var(--teal);
}

.timeline-axis {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  border-right: 1px solid var(--line);
  background: #fbfaf6;
}

.hour-label {
  position: absolute;
  right: 8px;
  color: #8a918c;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  transform: translateY(-50%);
}

.timeline-day-column {
  position: relative;
  min-width: 0;
  border-left: 1px solid var(--line-soft);
  transition: background 160ms ease;
}

.timeline-day-column:first-of-type {
  border-left: 0;
}

.timeline-hour-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 29px,
    rgba(220, 221, 214, 0.75) 29px,
    rgba(220, 221, 214, 0.75) 30px,
    transparent 30px,
    transparent 60px
  );
}

.timeline-day-column.timeline-drop-active {
  background: rgba(23, 104, 95, 0.06);
  box-shadow: inset 0 0 0 2px rgba(23, 104, 95, 0.25);
}

.timeline-block {
  --task-bg: #e4efec;
  --task-ink: #174e48;
  --task-edge: #247c70;
  position: absolute;
  z-index: 2;
  left: 6px;
  right: 6px;
  display: flex;
  flex-direction: column;
  min-height: 22px;
  overflow: hidden;
  padding: 5px 7px 5px 9px;
  border: 0;
  border-left: 4px solid var(--task-edge);
  border-radius: 8px;
  background: var(--task-bg);
  color: var(--task-ink);
  cursor: grab;
  font-size: 10px;
  line-height: 1.2;
  text-align: left;
  touch-action: none;
  box-shadow: 0 3px 9px rgba(42, 55, 49, 0.05);
}

.timeline-block:hover {
  z-index: 4;
  filter: saturate(1.06);
}

.timeline-block:active {
  cursor: grabbing;
}

.timeline-block.is-dragging,
.unscheduled-block.is-dragging {
  opacity: 0.32;
}

.timeline-block.status-completed {
  opacity: 0.78;
}

.timeline-block.course-block {
  z-index: 1;
  border-left-style: double;
  border-left-width: 5px;
  cursor: default;
}

.course-block .timeline-block-title {
  display: flex;
  align-items: center;
  gap: 3px;
}

.course-block .timeline-block-title .icon {
  width: 9px;
  height: 9px;
  opacity: 0.65;
}

.timeline-block.break-block {
  z-index: 1;
  border-left-color: #9ba39d;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(236, 238, 232, 0.92) 0,
      rgba(236, 238, 232, 0.92) 5px,
      rgba(248, 248, 243, 0.94) 5px,
      rgba(248, 248, 243, 0.94) 10px
    );
  color: #5f6862;
  cursor: default;
  opacity: 0.9;
}

.break-block .timeline-block-title {
  display: flex;
  align-items: center;
  gap: 3px;
}

.break-block .timeline-block-title .icon {
  width: 9px;
  height: 9px;
}

.timeline-block-title {
  overflow: hidden;
  padding-right: 3px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-block-subject {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 2px;
  overflow: hidden;
  font-size: 8px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0.76;
}

.timeline-block-time {
  margin-top: 2px;
  color: color-mix(in srgb, var(--task-ink) 60%, transparent);
  font-size: 8px;
  white-space: nowrap;
}

.timeline-block.compact {
  justify-content: center;
  padding-top: 2px;
  padding-bottom: 2px;
}

.timeline-block.compact .timeline-block-time {
  display: none;
}

.timeline-block.compact .timeline-block-subject {
  display: none;
}

.on-time-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-deep);
  font-size: 7px;
  font-weight: 750;
}

.on-time-badge .icon,
.finished-badge .icon {
  width: 9px;
  height: 9px;
}

.finished-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
}

.timeline-grid.week .timeline-block {
  left: 3px;
  right: 3px;
  padding: 4px 5px;
  border-left-width: 3px;
  border-radius: 6px;
  font-size: 8px;
}

.timeline-grid.week .timeline-block-time {
  display: none;
}

.timeline-grid.week .on-time-badge {
  top: 2px;
  right: 2px;
  padding: 1px 3px;
  font-size: 0;
}

.timeline-grid.week .on-time-badge .icon {
  width: 8px;
  height: 8px;
}

.color-1 {
  --task-bg: #dcefeb;
  --task-ink: #155b52;
  --task-edge: #278477;
}

.color-2 {
  --task-bg: #e3edf8;
  --task-ink: #315c80;
  --task-edge: #4d7ca5;
}

.color-3 {
  --task-bg: #faead2;
  --task-ink: #7d4e1c;
  --task-edge: #bf7b2e;
}

.color-4 {
  --task-bg: #eae6f3;
  --task-ink: #55467c;
  --task-edge: #7966a2;
}

.color-5 {
  --task-bg: #f6e3de;
  --task-ink: #814a42;
  --task-edge: #ac665b;
}

.color-6 {
  --task-bg: #e9eee0;
  --task-ink: #56663a;
  --task-edge: #778d50;
}

.current-time-line {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  height: 1px;
  background: #c15f50;
  pointer-events: none;
}

.current-time-line::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c15f50;
}

.current-time-line span {
  position: absolute;
  top: -11px;
  right: 4px;
  padding: 2px 4px;
  border-radius: 4px;
  background: #c15f50;
  color: white;
  font-size: 7px;
}

.unscheduled-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  gap: 16px 24px;
  align-items: start;
  margin-bottom: 25px;
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 19px;
  background: rgba(255, 253, 249, 0.72);
}

.unscheduled-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.unscheduled-heading h3 {
  margin: 0;
  font-size: 16px;
}

.unscheduled-count {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 10px;
}

.unscheduled-help {
  grid-column: 1;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.unscheduled-list {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  gap: 8px;
  min-width: 0;
}

.unscheduled-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  width: 100%;
  min-height: 48px;
  padding: 9px 38px 9px 12px;
  border: 1.5px dashed #a8a9a0;
  border-radius: 11px;
  background: rgba(245, 245, 240, 0.55);
  color: var(--ink-soft);
  cursor: grab;
  text-align: left;
  touch-action: none;
}

.unscheduled-block.from-import {
  border-color: #8f928b;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(223, 224, 218, 0.36) 0,
      rgba(223, 224, 218, 0.36) 5px,
      rgba(250, 249, 245, 0.46) 5px,
      rgba(250, 249, 245, 0.46) 10px
    );
}

.unscheduled-subject {
  flex: 0 0 auto;
  width: fit-content;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(23, 104, 95, 0.09);
  color: var(--teal-deep);
  font-size: 8px;
  font-weight: 750;
}

.unscheduled-heading-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.unscheduled-title {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unscheduled-meta {
  grid-column: 1;
  color: var(--muted);
  font-size: 8px;
}

.unscheduled-grip {
  position: absolute;
  top: 50%;
  right: 11px;
  color: #777a74;
  transform: translateY(-50%);
}

.unscheduled-grip .icon {
  width: 17px;
  height: 17px;
}

.unscheduled-empty {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 9px;
}

.unscheduled-empty .icon {
  width: 14px;
  height: 14px;
}

.timeline-drag-ghost {
  --task-bg: var(--teal-soft);
  --task-ink: var(--teal-deep);
  position: fixed;
  z-index: 100;
  overflow: hidden;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-left: 4px solid var(--task-edge, var(--teal));
  border-radius: 9px;
  background: var(--task-bg);
  color: var(--task-ink);
  box-shadow: 0 14px 34px rgba(27, 41, 35, 0.2);
  font-size: 11px;
  font-weight: 650;
  pointer-events: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-dragging-timeline {
  cursor: grabbing;
  user-select: none;
}

.dialog-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plan-task-list {
  display: grid;
  gap: 10px;
}

.muted-caption {
  color: var(--muted);
  font-size: 11px;
}

.balance-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  min-height: 190px;
  margin-bottom: 30px;
  padding: 31px 34px;
  border-radius: var(--radius-xl);
  background: var(--teal);
  color: white;
  box-shadow: 0 24px 54px rgba(23, 104, 95, 0.16);
}

.balance-hero > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.balance-hero .eyebrow {
  align-self: flex-start;
  margin-top: 10px;
}

.balance-hero strong {
  font-size: 74px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.balance-unit {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.balance-context {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.balance-context span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.balance-context .icon {
  width: 16px;
  height: 16px;
}

.parent-entry,
.guide-entry {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.parent-entry .icon,
.guide-entry .icon {
  width: 15px;
  height: 15px;
}

.guide-entry {
  color: var(--teal-deep);
}

.reward-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 28px;
  align-items: start;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reward-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface);
}

.reward-card > .button {
  grid-column: 1 / -1;
  width: 100%;
}

.reward-card.privilege {
  background: #fbf7ef;
}

.reward-symbol {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: var(--amber-soft);
  color: var(--amber);
}

.reward-card.game .reward-symbol {
  background: var(--teal-soft);
  color: var(--teal);
}

.reward-copy {
  min-width: 0;
}

.reward-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.reward-header h3 {
  margin: 0;
  font-size: 16px;
}

.cost {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--amber-deep);
  font-size: 13px;
  font-weight: 700;
}

.cost .icon {
  width: 13px;
  height: 13px;
}

.reward-copy p {
  margin: 7px 0 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.reward-limit {
  color: var(--muted);
  font-size: 10px;
}

.ledger-panel {
  padding: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 249, 0.75);
}

.ledger-list {
  display: grid;
  margin-top: 14px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.ledger-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.ledger-dot.out {
  background: var(--amber);
}

.ledger-row strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.ledger-row b {
  font-size: 13px;
}

.positive {
  color: var(--teal);
}

.negative {
  color: var(--amber-deep);
}

.fine-print {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.redemption-list {
  display: grid;
  gap: 8px;
}

.redemption-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: var(--surface);
}

.redeem-date {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.redeem-info h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.redeem-info p,
.redeem-info small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.redeem-info small {
  margin-top: 3px;
}

.awaiting {
  max-width: 110px;
  color: var(--muted);
  font-size: 10px;
  text-align: right;
}

.empty-inline {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(var(--insight-count, 4), 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.insight-card {
  padding: 21px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.72);
}

.insight-card.highlight {
  background: var(--teal);
  color: white;
}

.insight-icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin-bottom: 22px;
  border-radius: 11px;
  background: var(--teal-pale);
  color: var(--teal);
}

.highlight .insight-icon {
  background: rgba(255, 255, 255, 0.11);
  color: white;
}

.insight-icon .icon {
  width: 18px;
  height: 18px;
}

.insight-card > strong {
  display: block;
  font-size: 35px;
  line-height: 1;
}

.insight-card h3 {
  margin: 9px 0 6px;
  font-size: 13px;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.insight-card.highlight p {
  color: rgba(255, 255, 255, 0.65);
}

.growth-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 22px;
  align-items: stretch;
}

.week-chart-card,
.reflection-card {
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.week-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 9px;
  height: 230px;
  margin-top: 22px;
  padding: 20px 10px 0;
  border-bottom: 1px solid var(--line);
}

.chart-day {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 8px;
  height: 100%;
  min-width: 0;
}

.chart-columns {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 100%;
}

.chart-plan,
.chart-done {
  display: block;
  width: 38%;
  max-width: 20px;
  min-height: 4px;
  border-radius: 6px 6px 1px 1px;
}

.chart-plan {
  background: var(--paper-deep);
}

.chart-done {
  background: var(--teal);
}

.chart-day small {
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.chart-legend span {
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-radius: 2px;
}

.chart-legend .done {
  background: var(--teal);
}

.chart-legend .planned {
  background: var(--paper-deep);
}

.chart-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.reflection-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 9px;
}

.privacy-chip .icon {
  width: 12px;
  height: 12px;
}

#reflection-form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

#reflection-form label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

textarea {
  resize: vertical;
}

#reflection-form textarea {
  width: 100%;
  min-height: 58px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fcfbf7;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

.reflection-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.visibility-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.visibility-choice input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}

.evidence-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr;
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  padding: 22px 26px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.52);
}

.evidence-strip > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.evidence-number {
  font-size: 25px;
  font-weight: 650;
}

.evidence-strip > div span:last-child {
  color: var(--muted);
  font-size: 10px;
}

.evidence-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.pet-heading {
  align-items: flex-start;
}

.pet-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 10px;
  font-weight: 800;
}

.pet-status.low {
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.pet-status.thirsty {
  background: #dff2fb;
  color: #247d9d;
}

.pet-status.hungry {
  background: #fff1c9;
  color: #95601b;
}

.pet-status.dirty {
  background: #efe5d8;
  color: #755b3d;
}

.pet-status.sick,
.pet-status.critical {
  background: var(--rose-soft);
  color: var(--rose);
}

.pet-status.recovering {
  background: #ece4fa;
  color: #6d559f;
}

.pet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
}

.pet-main-column,
.pet-side-column {
  display: grid;
  gap: 13px;
}

.pet-habitat-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.pet-scene {
  position: relative;
  height: 475px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(36, 122, 112, 0.06) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(36, 122, 112, 0.06) 38px 39px),
    linear-gradient(#daf5f2 0 72%, #b9dca2 72%);
}

.pet-scene::after {
  content: "";
  position: absolute;
  inset: 72% 0 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 64px, rgba(71, 137, 79, 0.08) 64px 65px),
    #b9dca2;
}

.pet-window-glow {
  position: absolute;
  top: 28px;
  right: 30px;
  width: 52px;
  height: 52px;
  background: #ffe27d;
  box-shadow:
    -8px 0 #ffe27d,
    8px 0 #ffe27d,
    0 -8px #ffe27d,
    0 8px #ffe27d;
}

.pet-cloud {
  position: absolute;
  width: 66px;
  height: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 17px -10px rgba(255, 255, 255, 0.78), 36px 0 rgba(255, 255, 255, 0.78);
}

.pet-cloud.one {
  top: 62px;
  left: 70px;
}

.pet-cloud.two {
  top: 126px;
  right: 126px;
  transform: scale(.72);
  opacity: .7;
}

.pet-speech {
  position: absolute;
  z-index: 5;
  bottom: var(--speech-bottom, 160px);
  left: 50%;
  width: 225px;
  padding: 13px 15px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: white;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
  box-shadow: 4px 4px 0 rgba(24, 58, 59, 0.1);
  transform: translateX(-94%);
}

.pet-speech::after {
  content: "";
  position: absolute;
  right: 38px;
  bottom: -13px;
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: white;
  transform: rotate(45deg);
}

.pet-sprite-wrap {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16px;
  width: min(390px, 64%);
  transform: translateX(-43%) scale(var(--pet-scale, .64));
  transform-origin: 50% 100%;
  filter: drop-shadow(0 15px 7px rgba(25, 82, 63, 0.18));
}

.pet-sprite {
  display: block;
  width: 100%;
  image-rendering: pixelated;
  animation: pet-idle 2.8s steps(2, end) infinite;
}

.pet-scene.idle-walk .pet-sprite {
  animation: pet-idle-walk 3.6s steps(8, end) both;
}

.pet-scene.idle-scratch .pet-sprite {
  animation: pet-idle-scratch 2.8s steps(6, end) both;
}

.pet-scene.idle-sleep .pet-sprite {
  animation: pet-idle-sleep 5.2s ease-in-out both;
}

.pet-scene.idle-stretch .pet-sprite {
  animation: pet-idle-stretch 2.6s steps(5, end) both;
}

.pet-state-sprite {
  width: 364px;
  height: 455px;
  margin: 0 auto;
  background-image: var(--state-sprite);
  background-repeat: no-repeat;
  background-size: 2184px 455px;
  image-rendering: pixelated;
  animation: pet-state-frames 2.4s steps(6, end) infinite;
}

.pet-state-sprite.state-hungry,
.pet-state-sprite.state-thirsty,
.pet-state-sprite.state-dirty {
  animation-duration: 3.6s;
}

.pet-state-sprite.state-sick {
  animation-duration: 4.2s;
}

.pet-state-sprite.state-sleep {
  animation-duration: 4.8s;
}

.pet-state-sprite.state-idle {
  animation-duration: 4.2s;
}

.pet-scene.action-feed .pet-state-sprite.state-hungry,
.pet-scene.action-water .pet-state-sprite.state-thirsty {
  animation-duration: 1.5s;
}

.pet-state-sprite.state-walk {
  animation:
    pet-state-frames .9s steps(6, end) infinite,
    pet-walk-roam 3.6s linear infinite;
  transform-origin: 50% 100%;
}

.hatch-in-progress {
  position: relative;
  width: 100%;
}

.hatch-baby {
  animation: hatch-baby-in 1.2s steps(4, end) both;
}

.pet-scene.action-hatch .hatch-baby {
  animation: hatch-baby-in 1.2s steps(4, end) both;
}

.hatch-shell {
  position: absolute;
  z-index: 4;
  bottom: -12px;
  width: 90px;
  height: 74px;
  border: 6px solid #355e49;
  background: #f5e8b9;
}

.hatch-shell.shell-left {
  left: 23%;
  border-radius: 48% 10% 55% 38%;
  animation: shell-left-out 1.1s ease both;
}

.hatch-shell.shell-right {
  right: 23%;
  border-radius: 10% 48% 38% 55%;
  animation: shell-right-out 1.1s ease both;
}

.hatch-spark {
  position: absolute;
  color: #f0c541;
  font-size: 28px;
  animation: reminder-pulse .8s ease-in-out infinite;
}

.hatch-spark.spark-one { top: 24%; left: 13%; }
.hatch-spark.spark-two { top: 40%; right: 11%; animation-delay: .2s; }

.pet-scene.status-low .pet-sprite {
  filter: saturate(.72) brightness(.96);
  animation-duration: 3.4s;
}

.pet-scene.status-sick .pet-sprite,
.pet-scene.status-critical .pet-sprite {
  filter: saturate(.58) brightness(.9);
  animation: pet-sick-shiver 1.4s steps(2, end) infinite;
}

.pet-scene.action-feed .pet-sprite,
.pet-scene.action-water .pet-sprite {
  animation: pet-nom .9s steps(3, end) 2;
}

.pet-scene.action-clean .pet-sprite {
  animation: pet-clean-sweep 1s steps(4, end) 2;
}

.pet-scene.action-pet .pet-sprite {
  animation: pet-happy .75s steps(3, end) 2;
}

.pet-scene.action-treat .pet-sprite,
.pet-scene.action-hatch .pet-sprite {
  animation: pet-heal 1.2s steps(3, end) 2;
}

.pet-prop {
  position: absolute;
  z-index: 6;
  bottom: 3%;
  left: 67%;
  font-size: 36px;
  animation: prop-rise .8s ease both;
}

.pet-prop.water-prop {
  left: 18%;
  color: #38a8cf;
}

.pet-prop.broom-prop {
  left: 66%;
  bottom: 10%;
  transform: rotate(-25deg);
}

.pet-hand {
  position: absolute;
  z-index: 5;
  top: 9%;
  left: 58%;
  font-size: 54px;
  transform: rotate(-22deg);
  animation: hand-pat .7s ease 2;
}

.pet-floating-heart {
  position: absolute;
  z-index: 5;
  top: 8%;
  left: 73%;
  color: #f06f8d;
  font-size: 25px;
  animation: heart-rise 1.1s ease both;
}

.pet-idle-hand {
  position: absolute;
  z-index: 5;
  top: 8%;
  left: 58%;
  font-size: 42px;
  transform: rotate(-18deg);
  animation: idle-hand-scratch .48s steps(2, end) 4;
}

.pet-idle-question {
  position: absolute;
  z-index: 5;
  top: 3%;
  left: 78%;
  color: #dc9d2e;
  font-size: 30px;
  font-weight: 900;
  animation: idle-question .7s ease-in-out 3;
}

.pet-sleep-z {
  position: absolute;
  z-index: 5;
  color: #507b8c;
  font-family: monospace;
  font-weight: 900;
  animation: sleep-z 2.2s ease-in-out infinite;
}

.pet-sleep-z.z-one { top: 15%; left: 66%; font-size: 24px; }
.pet-sleep-z.z-two { top: 8%; left: 72%; font-size: 31px; animation-delay: .35s; }
.pet-sleep-z.z-three { top: 0; left: 79%; font-size: 39px; animation-delay: .7s; }

.pet-footprint {
  position: absolute;
  z-index: 2;
  bottom: 3%;
  color: rgba(65, 112, 77, 0.35);
  font-size: 18px;
  animation: footprint-fade 1.2s ease-in-out infinite;
}

.pet-footprint.print-one { left: 23%; }
.pet-footprint.print-two { right: 17%; animation-delay: .45s; }

.pet-poop-area {
  position: absolute;
  z-index: 2;
  right: 22%;
  bottom: 28px;
  display: flex;
  gap: 9px;
  color: #79563a;
  font-size: 22px;
  filter: drop-shadow(0 3px 0 rgba(58, 40, 25, 0.12));
}

.pet-sick-bubble {
  position: absolute;
  z-index: 5;
  top: 11%;
  right: 10%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #d65b63;
  font-size: 29px;
  font-weight: 900;
  box-shadow: 0 5px 15px rgba(85, 48, 54, 0.12);
}

.pet-needs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 19px;
  padding: 17px 0;
}

.pet-need > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
}

.pet-need strong {
  color: var(--muted);
  font-size: 9px;
}

.pet-need-track {
  height: 8px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-soft);
}

.pet-need-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #63b960;
  transition: width 350ms ease;
}

.pet-need.hydration i { background: #43a9d4; }
.pet-need.cleanliness i { background: #f1bd39; }
.pet-need.mood i { background: #ef7d98; }

.pet-health-warning {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 19px 13px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff0d9;
  color: #95591e;
  font-size: 9px;
  line-height: 1.45;
}

.pet-health-warning .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.pet-care-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  padding: 0 19px 19px;
}

.pet-care-button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 91px;
  padding: 11px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 0 #e1eee8;
}

.pet-care-button > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mint-soft);
  color: var(--mint-dark);
  font-size: 20px;
  font-weight: 900;
}

.pet-care-button > span .icon {
  width: 19px;
  height: 19px;
}

.pet-care-button.clean > span { background: #eee4fa; color: #6f53a0; }
.pet-care-button.pet > span { background: #ffe4ea; color: #b94463; }
.pet-care-button.water > span { background: #dcf2fa; color: #287d9d; }
.pet-care-button.treat > span { background: #ffe1dd; color: #b34740; }
.pet-care-button strong { font-size: 11px; }
.pet-care-button small { color: var(--muted); font-size: 8px; }
.pet-care-button em {
  color: var(--teal-deep);
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
}

.pet-care-button:disabled {
  filter: grayscale(.3);
  box-shadow: none;
}

.pet-action-message {
  margin: 0 19px 18px;
  padding: 10px 12px;
  border-radius: 11px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 10px;
  font-weight: 650;
}

.pet-streak-card,
.pet-countdown-card,
.pet-points-card,
.pet-weight-card,
.pet-journey-card,
.pet-log-card {
  padding: 21px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--surface);
}

.pet-streak-card {
  color: white;
  border-color: transparent;
  background: var(--teal);
  box-shadow: 0 16px 30px rgba(16, 94, 91, 0.16);
}

.pet-points-card {
  border-color: color-mix(in srgb, var(--amber) 24%, var(--line-soft));
  background:
    linear-gradient(120deg, var(--amber-soft), var(--surface) 76%);
}

.pet-points-card > div {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.pet-points-card strong {
  color: var(--amber-deep);
  font-size: 38px;
  line-height: 1;
}

.pet-points-card > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.pet-streak-card .eyebrow { color: rgba(255, 255, 255, 0.66); }
.pet-streak-card > strong { display: block; margin-top: 4px; font-size: 52px; letter-spacing: -.05em; line-height: 1; }
.pet-streak-card > strong small { margin-left: 4px; font-size: 13px; letter-spacing: 0; }
.pet-streak-card > p { color: rgba(255, 255, 255, 0.72); font-size: 9px; }
.pet-streak-dots { display: flex; gap: 5px; margin-top: 14px; }
.pet-streak-dots i { flex: 1; height: 7px; border-radius: 99px; background: rgba(255,255,255,.22); }
.pet-streak-dots i.done { background: #ffe078; }

.pet-countdown-card h2,
.pet-weight-card h2,
.pet-journey-card h2 {
  margin: 6px 0 5px;
  font-size: 18px;
}

.pet-countdown-card > p,
.pet-log-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.pet-countdown-card > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 11px;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.pet-countdown-card > div strong { font-size: 24px; }
.pet-countdown-card > div span { font-size: 8px; line-height: 1.5; }

.pet-weight-card > div:first-child {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.pet-weight-card > div:first-child strong {
  font-size: 28px;
  letter-spacing: -.04em;
}

.pet-weight-card > div:first-child small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 10px;
}

.pet-weight-card > span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.weight-track {
  height: 8px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-soft);
}

.weight-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #79c85d, #f1b438);
}

.pet-weight-card > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
}

.pet-journey-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: center;
  margin-top: 12px;
}

.pet-journey-row > b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 11px;
}

.pet-journey-row.done > b { background: var(--teal); color: white; }
.pet-journey-row strong,
.pet-journey-row small { display: block; }
.pet-journey-row strong { font-size: 10px; }
.pet-journey-row small { margin-top: 2px; color: var(--muted); font-size: 8px; }

.pet-log-list { display: grid; gap: 9px; margin-top: 13px; }
.pet-log-list > div { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; gap: 7px; align-items: center; }
.pet-log-list i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.pet-log-list span { font-size: 9px; }
.pet-log-list small { color: var(--muted); font-size: 8px; }

.pet-egg-card,
.pet-ended-card {
  width: min(760px, 100%);
  margin: 5vh auto;
  padding: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 30px;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow);
}

.egg-sky {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 370px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 73% 20%, rgba(255, 225, 119, .55), transparent 8rem),
    repeating-linear-gradient(0deg, transparent 0 37px, rgba(36, 122, 112, .06) 37px 38px),
    repeating-linear-gradient(90deg, transparent 0 37px, rgba(36, 122, 112, .06) 37px 38px),
    linear-gradient(#dcf7f3 0 75%, #bfe0a5 75%);
}

.pixel-egg {
  position: relative;
  z-index: 2;
  width: 174px;
  height: 218px;
  border: 10px solid #416f3d;
  border-radius: 47% 47% 48% 48% / 57% 57% 43% 43%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.6) 0 22%, transparent 22%),
    #f5f1c9;
  box-shadow: inset -20px -25px #dfd79a, 0 17px 0 rgba(39, 81, 59, .1);
}

.egg-spot {
  position: absolute;
  width: 35px;
  height: 29px;
  background: #cbd982;
  box-shadow: 20px 15px #cbd982;
}

.egg-spot.a { top: 36px; left: 33px; }
.egg-spot.b { top: 105px; right: 26px; transform: scale(.72); }
.egg-spot.c { bottom: 24px; left: 55px; transform: scale(.55); }

.egg-crack {
  position: absolute;
  top: 26px;
  left: 74px;
  width: 9px;
  height: 75px;
  background: #416f3d;
  opacity: 0;
  transform: skew(-18deg);
  box-shadow: 19px 33px #416f3d, -14px 52px #416f3d;
}

.egg-cracks-1 .egg-crack { opacity: 1; height: 42px; }
.egg-cracks-2 .egg-crack { opacity: 1; height: 70px; }
.egg-cracks-3 .egg-crack { opacity: 1; height: 95px; }
.egg-cracks-3 .pixel-egg { animation: egg-shake .35s steps(2, end) 4; }
.pixel-star { position: absolute; width: 10px; height: 10px; background: #f1c746; box-shadow: 8px 0 #f1c746, 0 8px #f1c746; }
.star-one { top: 80px; left: 26%; }
.star-two { top: 135px; right: 23%; transform: scale(.7); }
.star-three { bottom: 92px; right: 31%; transform: scale(.45); }
.egg-shadow { position: absolute; bottom: 40px; width: 180px; height: 20px; border-radius: 50%; background: rgba(48, 96, 60, .15); }

.egg-progress { max-width: 430px; margin: 24px auto 14px; }
.egg-progress > span { color: var(--muted); font-size: 11px; }
.egg-progress > span strong { color: var(--teal-deep); }
.egg-progress > div { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: var(--line-soft); }
.egg-progress i { display: block; height: 100%; background: var(--teal); transition: width 220ms ease; }
.pet-egg-button { min-width: 190px; }
.pet-egg-card > p { margin: 12px 0 0; color: var(--muted); font-size: 9px; }

.hatching-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  place-items: center;
  min-height: 130px;
  margin: 8px 0 19px;
  border-radius: 18px;
  background: var(--teal-pale);
}

.hatching-shell {
  width: 70px;
  height: 65px;
  border: 6px solid #416f3d;
  background: #f5f1c9;
}

.hatching-shell.left { border-radius: 45% 20% 60% 35%; transform: rotate(-15deg); }
.hatching-shell.right { border-radius: 20% 45% 35% 60%; transform: rotate(15deg); }
.hatching-star { color: #e6b82f; font-size: 38px; animation: reminder-pulse 1.2s ease-in-out infinite; }
.readopt-egg { display: grid; place-items: center; width: 120px; height: 145px; margin: 20px auto; border: 8px solid #587167; border-radius: 48%; background: #d9dfd4; color: #7f978b; font-size: 30px; }
.pet-ended-card h2 { margin: 8px 0; }
.pet-ended-card > p { max-width: 500px; margin: 0 auto 20px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.fossil-egg { margin-bottom: 16px; color: #788d84; font-size: 76px; animation: pet-idle 2.6s steps(2, end) infinite; }

@keyframes pet-idle {
  50% { transform: translateY(-5px); }
}

@keyframes pet-idle-walk {
  0%, 100% { transform: translateX(-26px) rotate(-2deg); }
  25% { transform: translateX(-9px) translateY(-7px) rotate(2deg); }
  50% { transform: translateX(18px) rotate(-2deg); }
  75% { transform: translateX(5px) translateY(-7px) rotate(2deg); }
}

@keyframes pet-idle-scratch {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-4deg) translateY(-3px); }
  55% { transform: rotate(4deg); }
  75% { transform: rotate(-2deg); }
}

@keyframes pet-idle-sleep {
  0%, 100% { transform: translateY(14px) scaleY(.93); filter: brightness(.86) saturate(.78); }
  50% { transform: translateY(18px) scaleY(.9); filter: brightness(.82) saturate(.72); }
}

@keyframes pet-idle-stretch {
  0%, 100% { transform: translateY(0) scaleY(1); }
  45% { transform: translateY(-6px) scaleY(1.07); }
  70% { transform: translateY(2px) scaleY(.97); }
}

@keyframes idle-hand-scratch {
  50% { transform: translateY(-8px) rotate(8deg); }
}

@keyframes idle-question {
  50% { transform: translateY(-9px) scale(1.15); opacity: .5; }
}

@keyframes sleep-z {
  0% { opacity: 0; transform: translateY(8px) scale(.8); }
  45% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-20px) scale(1.1); }
}

@keyframes footprint-fade {
  50% { opacity: .2; }
}

@keyframes pet-state-frames {
  to { background-position-x: -2184px; }
}

@keyframes pet-walk-roam {
  0% { transform: translateX(0) scaleX(1); }
  45% { transform: translateX(260px) scaleX(1); }
  50% { transform: translateX(260px) scaleX(-1); }
  95% { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}

@keyframes hatch-baby-in {
  from { opacity: 0; transform: translateY(38px) scale(.55); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shell-left-out {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  to { transform: translate(-48px, 18px) rotate(-24deg); opacity: .25; }
}

@keyframes shell-right-out {
  from { transform: translate(0, 0) rotate(0); opacity: 1; }
  to { transform: translate(48px, 18px) rotate(24deg); opacity: .25; }
}

@keyframes pet-nom {
  25% { transform: translate(-5px, 5px) scaleY(.97); }
  50% { transform: translateY(-7px); }
}

@keyframes pet-clean-sweep {
  25% { transform: translateX(-10px); }
  75% { transform: translateX(8px); }
}

@keyframes pet-happy {
  50% { transform: translateY(-14px) rotate(-2deg); }
}

@keyframes pet-heal {
  50% { filter: saturate(.75) brightness(1.1); transform: translateY(-8px); }
}

@keyframes pet-sick-shiver {
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@keyframes prop-rise {
  from { opacity: 0; transform: translateY(16px) scale(.6); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes hand-pat {
  50% { transform: translateY(-9px) rotate(-22deg); }
}

@keyframes heart-rise {
  from { opacity: 0; transform: translateY(15px) scale(.6); }
  to { opacity: 1; transform: translateY(-25px) scale(1.1); }
}

@keyframes egg-shake {
  25% { transform: translateX(-6px) rotate(-2deg); }
  75% { transform: translateX(6px) rotate(2deg); }
}

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(18px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(var(--nav-count, 4), minmax(74px, 1fr));
  width: min(calc(var(--nav-count, 4) * 140px), calc(100% - 32px));
  padding: 8px;
  border: 1px solid rgba(210, 210, 201, 0.75);
  border-radius: 25px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 16px 46px rgba(37, 48, 43, 0.16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.nav-item {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 55px;
  padding: 7px 10px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.nav-item.active {
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.nav-icon .icon {
  width: 21px;
  height: 21px;
}

.parent-heading {
  align-items: flex-start;
}

.back-button {
  margin-bottom: 19px;
}

.parent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: start;
}

.reward-control-panel {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 25px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(115deg, var(--surface), var(--paper) 72%),
    var(--surface);
}

.reward-control-panel.enabled {
  border-color: color-mix(in srgb, var(--teal) 26%, var(--line-soft));
  background:
    linear-gradient(115deg, var(--teal-pale), var(--surface) 72%),
    var(--surface);
}

.reward-control-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--amber-soft);
  color: var(--amber-deep);
}

.reward-control-icon .icon {
  width: 24px;
  height: 24px;
}

.reward-control-copy h2 {
  margin: 3px 0 5px;
  font-size: 19px;
}

.reward-control-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.feature-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.feature-switch strong {
  min-width: 42px;
  color: var(--muted);
  font-size: 11px;
}

.switch-track {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #c8cbc7;
  box-shadow: inset 0 0 0 1px rgba(29, 41, 39, 0.08);
  transition: background 180ms ease;
}

.switch-track i {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px rgba(30, 38, 35, 0.2);
  transition: transform 180ms ease;
}

.feature-switch[aria-checked="true"] .switch-track {
  background: var(--teal);
}

.feature-switch[aria-checked="true"] .switch-track i {
  transform: translateX(24px);
}

.feature-switch[aria-checked="true"] strong {
  color: var(--teal-deep);
}

.theme-panel {
  grid-column: 1 / -1;
  padding: 27px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.theme-choice {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 2px solid transparent;
  border-radius: 17px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.theme-choice:hover {
  transform: translateY(-2px);
}

.theme-choice.selected {
  border-color: var(--teal);
  box-shadow: 0 8px 22px rgba(30, 88, 80, 0.1);
}

.theme-preview {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  padding: 10px;
  border-radius: 12px;
  background: var(--preview-paper);
}

.theme-preview i {
  display: block;
  flex: 1;
  height: 68%;
  border-radius: 7px;
  background: var(--swatch);
}

.theme-preview i:nth-child(2) {
  height: 92%;
}

.theme-preview i:nth-child(3) {
  height: 48%;
}

.theme-breeze {
  --preview-paper: #edf8f6;
}

.theme-sunny {
  --preview-paper: #fff8df;
}

.theme-berry {
  --preview-paper: #fbf2fc;
}

.theme-forest {
  --preview-paper: #f0f8ec;
}

.theme-starlight {
  --preview-paper: #eef5ff;
}

.theme-pixel {
  --preview-paper: #f7f1ff;
}

.theme-choice-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.theme-choice-copy strong,
.theme-choice-copy small {
  display: block;
}

.theme-choice-copy strong {
  font-size: 13px;
}

.theme-choice-copy small {
  min-height: 28px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.theme-selected {
  position: absolute;
  top: 19px;
  right: 19px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--teal-deep);
  font-size: 8px;
  font-weight: 700;
}

.theme-selected .icon {
  width: 10px;
  height: 10px;
}

.approval-panel,
.rules-panel,
.shared-panel,
.data-panel,
.reminder-panel {
  padding: 27px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.reminder-panel {
  grid-column: 1 / -1;
}

.reminder-settings-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px auto;
  gap: 14px;
  align-items: end;
  margin-top: 17px;
}

.reminder-check {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.reminder-check input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--teal);
}

.reminder-check strong,
.reminder-check small,
.reminder-lead > span {
  display: block;
}

.reminder-check strong {
  font-size: 11px;
}

.reminder-check small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.reminder-lead > span {
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.reminder-lead select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfbf7;
}

.reminder-boundary {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.reminder-boundary .icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--teal);
}

.approval-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.approval-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
}

.approval-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--amber-soft);
  color: var(--amber);
}

.approval-row h3 {
  margin: 0 0 4px;
  font-size: 13px;
}

.approval-row p,
.approval-row small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.approval-row small {
  margin-top: 4px;
}

.approval-actions {
  display: flex;
  gap: 5px;
}

.request-state {
  color: var(--muted);
  font-size: 9px;
}

.count-badge,
.rule-version {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-size: 9px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.settings-grid > label > span,
.product-settings label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.settings-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.input-with-unit {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfbf7;
}

.input-with-unit input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.input-with-unit b {
  padding-right: 10px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}

.product-settings {
  margin-top: 22px;
  padding-top: 19px;
  border-top: 1px solid var(--line-soft);
}

.product-settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 11px;
}

.product-settings-heading .subsection-label {
  margin-bottom: 0;
}

.product-settings-list {
  display: grid;
  gap: 11px;
}

.reward-template-bar {
  display: grid;
  gap: 10px;
  margin-bottom: 13px;
  padding: 13px;
  border: 1px dashed color-mix(in srgb, var(--teal) 28%, var(--line-soft));
  border-radius: 14px;
  background: color-mix(in srgb, var(--teal-pale) 56%, var(--surface));
}

.reward-template-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.reward-template-copy strong {
  font-size: 11px;
}

.reward-template-copy span {
  color: var(--muted);
  font-size: 9px;
}

.reward-template-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.reward-template-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--teal) 20%, var(--line-soft));
  border-radius: 10px;
  background: var(--surface);
  color: var(--teal-deep);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.reward-template-button:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.reward-template-button .icon {
  width: 15px;
  height: 15px;
}

.subsection-label {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 650;
}

.product-setting {
  display: grid;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: color-mix(in srgb, var(--paper) 55%, var(--surface));
}

.product-setting-head {
  display: flex;
  align-items: end;
  gap: 10px;
}

.product-title-field {
  flex: 1;
}

.product-description-field {
  display: block;
}

.product-setting-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 10px;
}

.product-setting input,
.product-setting select {
  width: 100%;
  min-height: 39px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfbf7;
  color: var(--ink);
}

.product-setting .input-with-unit {
  min-height: 39px;
}

.product-setting.is-privilege [data-game-minutes-field] {
  display: none;
}

.product-setting .danger-quiet {
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  padding: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.shared-panel {
  grid-column: 1;
}

.data-panel {
  grid-column: 2;
}

.shared-reflection {
  margin-top: 12px;
  padding: 15px;
  border-radius: 14px;
  background: var(--paper);
}

.shared-reflection > span {
  color: var(--muted);
  font-size: 9px;
}

.shared-reflection p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.shared-reflection b {
  color: var(--ink);
}

.data-panel > p {
  font-size: 11px;
}

.data-actions {
  display: flex;
  gap: 8px;
  margin-top: 17px;
}

.loading-screen {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100vh;
  padding: 30px;
  text-align: center;
}

.loading-screen .brand-mark {
  width: 68px;
  height: 68px;
  border-radius: 22px;
}

.loading-screen .brand-mark .icon {
  width: 38px;
  height: 38px;
}

.loading-screen h1 {
  margin-top: 22px;
  font-size: 30px;
}

.loading-screen p {
  color: var(--muted);
  font-size: 13px;
}

.app-dialog {
  width: min(610px, calc(100% - 30px));
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(26, 38, 33, 0.27);
}

.app-dialog::backdrop {
  background: rgba(22, 33, 29, 0.42);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.dialog-form,
.task-menu-dialog {
  padding: 28px;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.dialog-heading h2 {
  margin-bottom: 7px;
  font-size: 26px;
}

.dialog-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.dialog-close {
  flex: 0 0 auto;
  border-color: var(--line-soft);
  border-radius: 50%;
}

.field {
  display: block;
  margin: 0 0 18px;
  border: 0;
  padding: 0;
}

.field > span,
.field > legend {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.field-label-row > span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.clear-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
}

.clear-button .icon {
  width: 11px;
  height: 11px;
}

.form-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 18px;
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--paper);
}

.form-utility-row > span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.field > span small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfbf7;
  color: var(--ink);
  font-size: 14px;
}

.field textarea {
  min-height: 76px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.segment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segment-option span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.segment-option input:checked + span {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-weight: 650;
}

.estimate-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfbf7;
}

.estimate-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
}

.estimate-input b {
  padding-right: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.quick-estimates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.quick-estimates button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}

.quick-estimates button.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 26px;
}

.complete-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: end;
  padding: 20px;
  border-radius: 16px;
  background: var(--paper);
}

.complete-comparison > div > span,
.complete-comparison label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
}

.complete-comparison strong {
  display: block;
  font-size: 18px;
}

.comparison-arrow {
  padding-bottom: 10px;
  color: var(--muted);
}

.actual-quick-times {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.actual-quick-times > span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 9px;
}

.actual-quick-times button {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 9px;
}

.actual-quick-times button.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-deep);
}

.reminder-dialog {
  max-width: 510px;
  text-align: center;
}

.reminder-dialog-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 22px auto 0;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber-deep);
  animation: reminder-pulse 1.8s ease-in-out infinite;
}

.reminder-dialog-mark .icon {
  width: 32px;
  height: 32px;
}

.reminder-dialog .dialog-note {
  justify-content: center;
  text-align: left;
}

@keyframes reminder-pulse {
  50% {
    box-shadow: 0 0 0 12px color-mix(in srgb, var(--amber-soft) 45%, transparent);
  }
}

.dialog-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.dialog-note .icon {
  width: 15px;
  height: 15px;
  color: var(--amber);
}

.menu-list {
  display: grid;
  gap: 8px;
}

.menu-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  background: #fcfbf7;
  cursor: pointer;
  text-align: left;
}

.menu-list button span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.menu-list button small {
  color: var(--muted);
  font-size: 9px;
}

.menu-list .danger-quiet span {
  color: var(--rose);
}

.dialog-bottom-button {
  margin-top: 18px;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}

.teacher-feedback-card {
  margin-top: 26px;
  padding: 24px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.teacher-feedback-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.teacher-feedback-heading .eyebrow {
  margin-bottom: 3px;
}

.teacher-feedback-heading h2 {
  margin: 0;
  font-size: 20px;
}

.teacher-feedback-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--amber-soft);
  color: var(--amber);
}

.teacher-feedback-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.teacher-note {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--teal-pale);
}

.teacher-note-labels {
  display: grid;
  justify-items: start;
  gap: 5px;
}

.teacher-note-labels b {
  padding: 3px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
  font-size: 8px;
}

.teacher-note.improvement,
.teacher-note.criticism {
  background: #fcf3e7;
}

.teacher-note span {
  color: var(--teal-deep);
  font-size: 10px;
  font-weight: 700;
}

.teacher-note.improvement span,
.teacher-note.criticism span {
  color: var(--amber-deep);
}

.teacher-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.app-dialog.teacher-import-modal {
  width: min(760px, calc(100% - 30px));
}

.app-dialog.import-settings-modal {
  width: min(780px, calc(100% - 30px));
}

.app-dialog.import-preview-modal {
  width: min(980px, calc(100% - 30px));
}

.app-dialog.course-import-modal,
.app-dialog.course-manager-modal {
  width: min(760px, calc(100% - 30px));
}

.app-dialog.course-import-preview-modal {
  width: min(960px, calc(100% - 30px));
}

.app-dialog.guide-modal {
  width: min(860px, calc(100% - 30px));
}

.guide-heading {
  margin-bottom: 20px;
}

.guide-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line-soft));
  border-radius: 17px;
  background: var(--teal-pale);
}

.guide-highlight > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--teal);
  color: white;
}

.guide-highlight strong {
  display: block;
  color: var(--teal-deep);
  font-size: 13px;
}

.guide-highlight p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.guide-disclaimer + .guide-highlight {
  margin-top: 16px;
}

.guide-project-note {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  margin-top: 16px;
  padding: 17px 18px;
  border: 1px solid color-mix(in srgb, var(--amber) 22%, var(--line-soft));
  border-radius: 17px;
  background: color-mix(in srgb, var(--amber-soft) 64%, var(--surface));
}

.guide-project-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--amber);
  color: white;
}

.guide-project-icon .icon {
  width: 19px;
  height: 19px;
}

.guide-project-note .eyebrow {
  margin-bottom: 3px;
  color: var(--amber-deep);
}

.guide-project-note strong {
  display: block;
  font-size: 13px;
}

.guide-project-note p {
  margin: 4px 0 9px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.guide-source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal-deep);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.guide-source-link:hover {
  text-decoration: underline;
}

.guide-source-link .icon {
  width: 13px;
  height: 13px;
}

.guide-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid color-mix(in srgb, var(--amber) 18%, var(--line-soft));
  border-radius: 15px;
  background: color-mix(in srgb, var(--amber-soft) 42%, var(--surface));
}

.guide-disclaimer > .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--amber-deep);
}

.guide-disclaimer p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.guide-disclaimer strong {
  font-size: 10px;
}

.guide-disclaimer span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 16px;
}

.guide-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--surface);
}

.guide-step-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--paper-deep);
  color: var(--teal);
}

.guide-step small {
  color: var(--amber);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.guide-step h3 {
  margin: 3px 0 5px;
  font-size: 14px;
}

.guide-step p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.guide-data-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 15px;
  background: var(--paper-deep);
}

.guide-data-note > .icon {
  width: 18px;
  height: 18px;
  color: var(--teal);
}

.guide-data-note p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.guide-data-note strong {
  font-size: 11px;
}

.guide-data-note span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.guide-actions {
  margin-top: 18px;
}

.course-import-local {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--teal-pale);
  color: var(--teal-deep);
  font-size: 10px;
  line-height: 1.55;
}

.course-import-local .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.course-file-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.course-table-field textarea {
  min-height: 190px;
  font-family: "SFMono-Regular", "PingFang SC", monospace;
  font-size: 11px;
  line-height: 1.65;
  white-space: pre;
}

.course-format-help {
  display: grid;
  gap: 5px;
  margin-top: -5px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--paper);
}

.course-format-help p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.course-format-help b {
  color: var(--ink-soft);
}

.saved-course-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.saved-course-summary span,
.saved-course-summary small {
  display: block;
}

.saved-course-summary span {
  font-size: 11px;
  font-weight: 650;
}

.saved-course-summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.course-effective-range {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 13px;
  background: var(--paper);
}

.course-effective-range h3 {
  margin: 0 0 3px;
  font-size: 13px;
}

.course-effective-range p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.course-effective-fields {
  display: flex;
  gap: 8px;
}

.course-effective-fields label > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
}

.course-effective-fields input {
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 10px;
}

.course-draft-list {
  display: grid;
  gap: 8px;
}

.course-draft-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fcfbf7;
}

.course-draft-row.duplicate,
.course-draft-row.conflict {
  border-color: #dfc598;
  background: #fdf7ee;
}

.course-draft-fields {
  min-width: 0;
}

.course-draft-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.course-draft-title > input {
  min-width: 120px;
  flex: 1;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.course-draft-title > input:focus {
  border-color: var(--line);
  background: white;
}

.duplicate-badge.conflict {
  background: #f2d5c8;
  color: #82483c;
}

.course-draft-grid {
  display: grid;
  grid-template-columns: 72px 96px 96px minmax(92px, 0.8fr) minmax(110px, 1fr);
  gap: 8px;
  margin-top: 7px;
}

.course-draft-grid label > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
}

.course-draft-grid input,
.course-draft-grid select {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 9px;
}

.course-draft-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.course-manager-groups {
  display: grid;
  gap: 18px;
}

.course-manager-groups section > h3 {
  margin: 0 0 7px;
  color: var(--teal-deep);
  font-size: 12px;
}

.course-manager-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.course-manager-row strong,
.course-manager-row span {
  display: block;
}

.course-manager-row strong {
  font-size: 11px;
}

.course-manager-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.import-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -5px 0 14px;
}

.import-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.import-status .icon {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.message-field textarea {
  min-height: 220px;
  line-height: 1.65;
}

.identifier-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: -4px 0 16px;
  padding: 11px 13px;
  border-radius: 11px;
  background: var(--paper);
}

.identifier-summary span {
  margin-right: 3px;
  color: var(--muted);
  font-size: 10px;
}

.identifier-summary b {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 10px;
}

.identifier-summary em {
  color: var(--amber-deep);
  font-size: 10px;
  font-style: normal;
}

.import-tips {
  display: grid;
  gap: 6px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--teal-pale);
}

.import-tips p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.import-tips b {
  color: var(--teal-deep);
}

.dialog-actions.spread {
  justify-content: space-between;
}

.token-section {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.token-heading h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.token-heading p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.token-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 30px;
}

.token-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 8px 5px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 600;
}

.token-chip button {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 80, 72, 0.08);
  color: inherit;
  cursor: pointer;
}

.token-chip button .icon {
  width: 11px;
  height: 11px;
}

.token-add-row {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}

.token-add-row input {
  min-width: 0;
  flex: 1;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfbf7;
  font-size: 12px;
}

.schedule-settings {
  margin-top: 2px;
}

.schedule-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.schedule-settings-grid label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 600;
}

.schedule-settings-grid input {
  width: 100%;
  min-height: 40px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fcfbf7;
  font-size: 11px;
}

.parse-warnings {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fcf3e7;
}

.dialog-error {
  margin: 18px 0 4px;
  padding: 12px 14px;
  border: 1px solid #dcb8aa;
  border-radius: 11px;
  background: #fbebe6;
  color: #7e4036;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.dialog-form[aria-busy="true"] button[type="submit"] {
  opacity: 0.72;
  cursor: progress;
}

.parse-warnings p {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  color: var(--amber-deep);
  font-size: 10px;
  line-height: 1.55;
}

.parse-warnings .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.import-preview-section {
  margin-bottom: 22px;
}

.preview-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.preview-section-heading h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.preview-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.import-draft-list,
.feedback-draft-list {
  display: grid;
  gap: 8px;
}

.import-draft-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: #fcfbf7;
}

.import-draft-row.duplicate {
  border-color: #e4c99f;
}

.draft-select {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  cursor: pointer;
}

.draft-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.draft-select span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 9px;
}

.draft-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.draft-title-row > input {
  min-width: 0;
  flex: 1;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.draft-title-row > input:focus {
  border-color: var(--line);
  background: white;
}

.duplicate-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-size: 8px;
}

.draft-meta {
  display: grid;
  grid-template-columns: .8fr 1.15fr 1.15fr .9fr;
  gap: 9px;
  margin-top: 7px;
}

.draft-meta label > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
}

.draft-meta input,
.draft-meta select {
  width: 100%;
  min-height: 35px;
  padding: 6px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 10px;
}

.draft-meta .input-with-unit input {
  min-height: 0;
  border: 0;
}

.draft-schedule-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

.draft-schedule-note .icon {
  width: 12px;
  height: 12px;
  color: var(--teal);
}

.draft-schedule-note small {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--paper-deep);
  font-size: 8px;
}

.feedback-draft {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 11px;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--teal-pale);
}

.feedback-draft.improvement,
.feedback-draft.criticism {
  background: #fcf3e7;
}

.feedback-select {
  display: flex;
  align-items: center;
  align-self: start;
  gap: 6px;
  cursor: pointer;
}

.feedback-select input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.feedback-type {
  color: var(--teal-deep);
  font-size: 9px;
  font-weight: 700;
}

.improvement .feedback-type,
.criticism .feedback-type {
  color: var(--amber-deep);
}

.feedback-draft-body textarea {
  width: 100%;
  min-height: 52px;
  padding: 7px 9px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.feedback-subject-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 7px;
}

.feedback-subject-row > span {
  color: var(--muted);
  font-size: 8px;
}

.feedback-subject-row select {
  min-height: 29px;
  padding: 4px 7px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 9px;
}

.feedback-draft-body p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.dialog-actions.sticky-actions {
  position: sticky;
  bottom: -28px;
  z-index: 2;
  margin: 20px -28px -28px;
  padding: 15px 28px 20px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 253, 249, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.confirm-reward {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 15px;
  background: var(--paper);
}

.confirm-reward h3 {
  margin: 1px 0 5px;
}

.confirm-reward p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.pin-dialog {
  max-width: 460px;
}

.pin-field input {
  font-size: 24px;
  letter-spacing: 0.4em;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: calc(98px + var(--safe-bottom));
  max-width: min(520px, calc(100% - 32px));
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  box-shadow: 0 16px 42px rgba(25, 38, 32, 0.22);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  background: #733f3a;
}

.is-busy {
  cursor: progress;
}

@media (max-width: 1100px) {
  .today-grid,
  .reward-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .growth-layout {
    grid-template-columns: 1fr;
  }

  .parent-grid {
    grid-template-columns: 1fr;
  }

  .shared-panel,
  .data-panel {
    grid-column: 1;
  }
}

@media (max-width: 820px) {
  .app-frame {
    width: min(100% - 30px, 720px);
    padding-bottom: calc(104px + var(--safe-bottom));
  }

  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 82px;
  }

  .topbar-center {
    display: none;
  }

  .theme-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draft-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reminder-settings-form {
    grid-template-columns: minmax(0, 1fr) 160px;
  }

  .reminder-settings-form > .button {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .page-heading {
    align-items: flex-start;
    margin: 18px 0 28px;
  }

  .page-heading > div:first-child > p {
    font-size: 15px;
  }

  .today-grid,
  .reward-layout {
    grid-template-columns: 1fr;
  }

  .pet-layout {
    grid-template-columns: 1fr;
  }

  .pet-side-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pet-log-card {
    grid-column: 1 / -1;
  }

  .today-rail {
    position: static;
    grid-row: 1;
    grid-template-columns: 1fr 1fr;
  }

  .next-card {
    grid-column: 1 / -1;
  }

  .reward-grid {
    grid-template-columns: 1fr;
  }

  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .schedule-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .balance-hero {
    min-height: 160px;
    padding: 24px;
  }

  .balance-hero strong {
    font-size: 58px;
  }

  .plan-panel,
  .week-chart-card,
  .reflection-card,
  .approval-panel,
  .rules-panel,
  .shared-panel,
  .data-panel,
  .reminder-panel {
    padding: 21px;
  }

  .evidence-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .evidence-strip p {
    grid-column: 1 / -1;
  }

  .timeline-scroll {
    max-height: 65vh;
  }

  .unscheduled-panel {
    grid-template-columns: 1fr;
  }

  .unscheduled-help {
    grid-column: 1;
  }

  .unscheduled-list {
    grid-column: 1;
    grid-row: 3;
  }
}

@media (max-width: 590px) {
  .app-frame {
    width: calc(100% - 22px);
  }

  h1 {
    font-size: 31px;
  }

  .brand small,
  .offline-pill {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 15px;
  }

  .star-balance {
    min-height: 40px;
    padding: 0 11px;
  }

  .star-balance strong {
    font-size: 16px;
  }

  .page-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .heading-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
    margin-top: 12px;
  }

  .heading-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    gap: 5px;
    border-radius: 12px;
    font-size: 11px;
    white-space: nowrap;
  }

  .heading-actions .button .icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
  }

  .topbar-actions {
    gap: 6px;
  }

  .layout-mode-toggle {
    min-width: 42px;
    min-height: 40px;
    padding: 7px 10px;
  }

  .progress-foot {
    flex-direction: column;
    gap: 4px;
  }

  .today-rail {
    grid-template-columns: 1fr;
  }

  .pet-scene {
    height: 400px;
  }

  .pet-speech {
    top: 36px;
    left: 24px;
    width: 190px;
    font-size: 9px;
  }

  .pet-sprite-wrap {
    bottom: 8px;
    width: 330px;
    max-width: 88%;
  }

  .pet-needs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pet-care-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pet-side-column {
    grid-template-columns: 1fr;
  }

  .pet-log-card {
    grid-column: 1;
  }

  .pet-egg-card,
  .pet-ended-card {
    padding: 22px;
  }

  .egg-sky {
    min-height: 310px;
  }

  .next-card {
    min-height: 270px;
    padding: 23px;
  }

  .task-main {
    padding: 17px;
  }

  .task-filter-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }

  .task-filter-options {
    width: 100%;
  }

  .task-actions {
    flex-wrap: wrap;
  }

  .plan-task {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 17px;
  }

  .plan-task-tools {
    grid-column: 2;
  }

  .date-strip {
    gap: 9px;
  }

  .date-display {
    min-width: 130px;
  }

  .plan-summary {
    grid-template-columns: 1fr;
  }

  .plan-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .plan-summary > div:last-child {
    border-bottom: 0;
  }

  .balance-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .balance-context {
    justify-items: start;
  }

  .redemption-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .redeem-date {
    display: none;
  }

  .insight-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .insight-card {
    padding: 17px;
  }

  .insight-card > strong {
    font-size: 29px;
  }

  .reflection-heading,
  .reflection-footer,
  .form-actions,
  .data-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .reflection-footer .button,
  .form-actions .button,
  .data-actions .button {
    width: 100%;
  }

  .evidence-strip {
    grid-template-columns: 1fr 1fr;
  }

  .evidence-strip > div:nth-child(3) {
    grid-column: 1 / -1;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .theme-panel {
    padding: 20px;
  }

  .reminder-panel {
    padding: 20px;
  }

  .reminder-settings-form {
    grid-template-columns: 1fr;
  }

  .reminder-settings-form > .button {
    width: 100%;
  }

  .reward-control-panel {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .feature-switch {
    grid-column: 1;
    justify-content: space-between;
    width: 100%;
    padding: 8px 4px 0;
    border-top: 1px solid var(--line-soft);
  }

  .theme-choice-grid {
    grid-template-columns: 1fr;
  }

  .product-settings-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .product-settings-heading .button {
    width: 100%;
  }

  .product-setting-grid {
    grid-template-columns: 1fr;
  }

  .reward-template-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .reward-template-options {
    grid-template-columns: 1fr;
  }

  .reward-template-button {
    justify-content: flex-start;
  }

  .approval-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .approval-actions,
  .approval-row .button,
  .request-state {
    grid-column: 2;
  }

  .bottom-nav {
    bottom: calc(8px + var(--safe-bottom));
    width: calc(100% - 16px);
    grid-template-columns: repeat(var(--nav-count, 4), 1fr);
    border-radius: 22px;
  }

  .nav-item {
    min-height: 52px;
    padding: 6px;
  }

  .app-dialog {
    width: calc(100% - 16px);
    max-height: 92vh;
    border-radius: 22px;
  }

  .dialog-form,
  .task-menu-dialog {
    padding: 21px;
  }

  .segmented {
    grid-template-columns: 1fr;
  }

  .complete-comparison {
    grid-template-columns: 1fr;
  }

  .comparison-arrow {
    display: none;
  }

  .dialog-actions .button {
    flex: 1;
  }

  .dialog-actions.spread {
    align-items: stretch;
    flex-direction: row;
  }

  .message-field textarea {
    min-height: 180px;
  }

  .schedule-settings-grid,
  .draft-meta {
    grid-template-columns: 1fr;
  }

  .course-file-actions,
  .saved-course-summary,
  .course-effective-range {
    align-items: stretch;
    flex-direction: column;
  }

  .course-file-actions .button,
  .saved-course-summary .text-button {
    width: 100%;
  }

  .course-effective-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .course-effective-fields input {
    width: 100%;
  }

  .course-draft-row {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 11px;
  }

  .course-draft-grid {
    grid-template-columns: 1fr 1fr;
  }

  .timeline-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 19px 14px;
  }

  .day-period-view {
    grid-template-columns: 1fr;
    overflow: visible;
    padding-right: 15px;
    padding-left: 15px;
  }

  .timeline-legend {
    padding: 0 19px 14px;
  }

  .legend-tip {
    width: 100%;
    margin-left: 0;
  }

  .dialog-fields-grid {
    grid-template-columns: 1fr;
  }

  .import-draft-row {
    grid-template-columns: 30px minmax(0, 1fr);
    padding: 11px;
  }

  .feedback-draft {
    grid-template-columns: 1fr;
  }

  .dialog-actions.sticky-actions {
    bottom: -21px;
    margin: 18px -21px -21px;
    padding: 13px 21px calc(16px + var(--safe-bottom));
  }

  .teacher-note {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

html[data-mobile-layout="true"] body {
  overflow-x: hidden;
}

html[data-mobile-layout="true"] .app-frame {
  width: min(calc(100% - 22px), 430px);
  padding-bottom: calc(108px + var(--safe-bottom));
}

html[data-mobile-layout="true"] .topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 78px;
  gap: 8px;
}

html[data-mobile-layout="true"] .topbar-center,
html[data-mobile-layout="true"] .brand small,
html[data-mobile-layout="true"] .offline-pill {
  display: none;
}

html[data-mobile-layout="true"] .brand {
  min-width: 0;
  gap: 8px;
}

html[data-mobile-layout="true"] .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

html[data-mobile-layout="true"] .brand strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-mobile-layout="true"] .topbar-actions {
  gap: 6px;
}

html[data-mobile-layout="true"] .layout-mode-toggle,
html[data-mobile-layout="true"] .guide-entry,
html[data-mobile-layout="true"] .parent-entry,
html[data-mobile-layout="true"] .star-balance {
  height: 40px;
  min-height: 40px;
  padding: 0 9px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

html[data-mobile-layout="true"] .star-balance {
  gap: 5px;
}

html[data-mobile-layout="true"] .star-balance .icon {
  width: 15px;
  height: 15px;
}

html[data-mobile-layout="true"] .star-balance strong {
  font-size: 16px;
}

html[data-mobile-layout="true"] .star-balance span {
  font-size: 10px;
}

html[data-mobile-layout="true"] .guide-steps {
  grid-template-columns: 1fr;
}

html[data-mobile-layout="true"] .guide-dialog {
  padding: 20px;
}

html[data-mobile-layout="true"] .page-heading {
  flex-direction: column;
  align-items: stretch;
  gap: 15px;
  margin: 16px 0 25px;
}

html[data-mobile-layout="true"] .page-heading > div:first-child {
  max-width: none;
}

html[data-mobile-layout="true"] .page-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 9vw, 35px);
  letter-spacing: -0.045em;
}

html[data-mobile-layout="true"] .page-heading > div:first-child > p {
  font-size: 14px;
  line-height: 1.6;
}

html[data-mobile-layout="true"] .heading-actions,
html[data-mobile-layout="true"] .today-heading-actions {
  width: 100%;
  margin-top: 0;
}

html[data-mobile-layout="true"] .heading-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

html[data-mobile-layout="true"] .today-heading-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
}

html[data-mobile-layout="true"] .today-heading-actions .add-round {
  width: 44px;
  height: 44px;
  min-height: 44px;
}

html[data-mobile-layout="true"] .heading-actions .button,
html[data-mobile-layout="true"] .heading-actions .parent-entry {
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  padding: 0 8px;
  gap: 5px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

html[data-mobile-layout="true"] .heading-actions .button .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

html[data-mobile-layout="true"] .import-entry-button {
  width: 100%;
}

html[data-mobile-layout="true"] .today-grid,
html[data-mobile-layout="true"] .reward-layout,
html[data-mobile-layout="true"] .pet-layout,
html[data-mobile-layout="true"] .growth-layout,
html[data-mobile-layout="true"] .parent-grid {
  grid-template-columns: 1fr;
  gap: 15px;
}

html[data-mobile-layout="true"] .parent-grid > * {
  min-width: 0;
  grid-column: 1;
}

html[data-mobile-layout="true"] .today-rail {
  position: static;
  grid-template-columns: 1fr;
  grid-row: 1;
  gap: 12px;
}

html[data-mobile-layout="true"] .today-rail > :not(.next-card) {
  display: none;
}

html[data-mobile-layout="true"] .next-card {
  grid-column: 1 / -1;
  min-height: 245px;
  padding: 23px;
}

html[data-mobile-layout="true"] .next-card h2 {
  font-size: 26px;
}

html[data-mobile-layout="true"] .progress-card {
  padding: 20px;
}

html[data-mobile-layout="true"] .progress-top strong {
  font-size: 26px;
}

html[data-mobile-layout="true"] .progress-foot {
  flex-direction: column;
  gap: 4px;
}

html[data-mobile-layout="true"] .section-block {
  margin-top: 27px;
}

html[data-mobile-layout="true"] .section-title {
  align-items: flex-start;
  gap: 12px;
}

html[data-mobile-layout="true"] .task-filter-bar {
  align-items: stretch;
  flex-direction: column;
  gap: 9px;
}

html[data-mobile-layout="true"] .task-filter-options {
  width: 100%;
}

html[data-mobile-layout="true"] .task-main {
  padding: 17px;
}

html[data-mobile-layout="true"] .task-card h3 {
  font-size: 18px;
}

html[data-mobile-layout="true"] .task-actions {
  flex-wrap: wrap;
}

html[data-mobile-layout="true"] .task-actions .button {
  flex: 1;
  min-height: 44px;
}

html[data-mobile-layout="true"] .date-strip {
  gap: 8px;
}

html[data-mobile-layout="true"] .date-display {
  min-width: 0;
  flex: 1;
}

html[data-mobile-layout="true"] .plan-summary {
  grid-template-columns: 1fr;
}

html[data-mobile-layout="true"] .plan-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-right: 0;
  border-bottom: 1px solid var(--line-soft);
}

html[data-mobile-layout="true"] .plan-summary > div:last-child {
  border-bottom: 0;
}

html[data-mobile-layout="true"] .plan-panel,
html[data-mobile-layout="true"] .week-chart-card,
html[data-mobile-layout="true"] .reflection-card,
html[data-mobile-layout="true"] .reminder-panel,
html[data-mobile-layout="true"] .theme-panel {
  padding: 20px;
  border-radius: 22px;
}

html[data-mobile-layout="true"] .plan-task {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  padding: 16px;
}

html[data-mobile-layout="true"] .plan-task-tools {
  grid-column: 2;
}

html[data-mobile-layout="true"] .timeline-card {
  border-radius: 22px;
}

html[data-mobile-layout="true"] .timeline-toolbar {
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  padding: 20px 18px 12px;
}

html[data-mobile-layout="true"] .timeline-legend {
  gap: 7px 12px;
  padding: 0 18px 14px;
}

html[data-mobile-layout="true"] .legend-tip {
  width: 100%;
  margin-left: 0;
}

html[data-mobile-layout="true"] .day-period-view {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  overflow: visible;
  padding: 0 13px 18px;
}

html[data-mobile-layout="true"] .day-period-section {
  min-width: 0;
}

html[data-mobile-layout="true"] .day-period-calendar,
html[data-mobile-layout="true"] .day-period-axis,
html[data-mobile-layout="true"] .day-period-track {
  height: 330px;
}

html[data-mobile-layout="true"] .timeline-scroll {
  max-height: 62dvh;
}

html[data-mobile-layout="true"] .unscheduled-panel {
  grid-template-columns: 1fr;
  padding: 18px;
}

html[data-mobile-layout="true"] .unscheduled-help,
html[data-mobile-layout="true"] .unscheduled-list {
  grid-column: 1;
}

html[data-mobile-layout="true"] .pet-scene {
  height: clamp(330px, 88vw, 400px);
}

html[data-mobile-layout="true"] .pet-speech {
  top: 25px;
  left: 14px;
  width: min(215px, 63vw);
  font-size: 9px;
}

html[data-mobile-layout="true"] .pet-sprite-wrap {
  width: min(330px, 88%);
  bottom: 8px;
}

html[data-mobile-layout="true"] .pet-needs-grid,
html[data-mobile-layout="true"] .pet-care-grid,
html[data-mobile-layout="true"] .pet-side-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-mobile-layout="true"] .pet-log-card {
  grid-column: 1 / -1;
}

html[data-mobile-layout="true"] .insight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

html[data-mobile-layout="true"] .insight-card {
  padding: 17px;
}

html[data-mobile-layout="true"] .insight-icon {
  margin-bottom: 14px;
}

html[data-mobile-layout="true"] .insight-card > strong {
  font-size: 28px;
}

html[data-mobile-layout="true"] .reflection-heading,
html[data-mobile-layout="true"] .reflection-footer,
html[data-mobile-layout="true"] .form-actions,
html[data-mobile-layout="true"] .data-actions {
  align-items: flex-start;
  flex-direction: column;
}

html[data-mobile-layout="true"] .reflection-footer .button,
html[data-mobile-layout="true"] .form-actions .button,
html[data-mobile-layout="true"] .data-actions .button {
  width: 100%;
}

html[data-mobile-layout="true"] .evidence-strip {
  grid-template-columns: 1fr 1fr;
  padding: 19px;
}

html[data-mobile-layout="true"] .evidence-strip > div:nth-child(3),
html[data-mobile-layout="true"] .evidence-strip p {
  grid-column: 1 / -1;
}

html[data-mobile-layout="true"] .settings-grid,
html[data-mobile-layout="true"] .theme-choice-grid,
html[data-mobile-layout="true"] .schedule-settings-grid,
html[data-mobile-layout="true"] .dialog-fields-grid {
  grid-template-columns: 1fr;
}

html[data-mobile-layout="true"] .product-settings-heading {
  align-items: stretch;
  flex-direction: column;
}

html[data-mobile-layout="true"] .product-settings-heading .button {
  width: 100%;
}

html[data-mobile-layout="true"] .product-setting-grid {
  grid-template-columns: 1fr;
}

html[data-mobile-layout="true"] .reward-control-panel {
  grid-template-columns: 1fr;
  padding: 19px;
}

html[data-mobile-layout="true"] .reward-control-icon {
  width: 42px;
  height: 42px;
}

html[data-mobile-layout="true"] .feature-switch {
  grid-column: 1;
  width: 100%;
  justify-content: space-between;
  padding: 9px 4px 0;
  border-top: 1px solid var(--line-soft);
}

html[data-mobile-layout="true"] .reward-template-copy {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

html[data-mobile-layout="true"] .reward-template-options {
  grid-template-columns: 1fr;
}

html[data-mobile-layout="true"] .reward-template-button {
  justify-content: flex-start;
}

html[data-mobile-layout="true"] .bottom-nav {
  bottom: calc(8px + var(--safe-bottom));
  width: min(430px, calc(100% - 16px));
  grid-template-columns: repeat(var(--nav-count, 4), 1fr);
  border-radius: 22px;
}

html[data-mobile-layout="true"] .nav-item {
  min-height: 52px;
  padding: 6px;
}

html[data-mobile-layout="true"] .app-dialog {
  width: min(440px, calc(100% - 16px));
  max-height: calc(100dvh - 24px);
  border-radius: 22px;
}

html[data-mobile-layout="true"] .dialog-form,
html[data-mobile-layout="true"] .task-menu-dialog {
  padding: 20px;
}

html[data-mobile-layout="true"] .dialog-actions {
  flex-wrap: wrap;
}

html[data-mobile-layout="true"] .dialog-actions .button {
  flex: 1;
  min-width: 130px;
}

html[data-mobile-layout="true"] .segmented,
html[data-mobile-layout="true"] .complete-comparison {
  grid-template-columns: 1fr;
}

html[data-mobile-layout="true"] .comparison-arrow {
  display: none;
}

html[data-mobile-layout="true"] .message-field textarea {
  min-height: 180px;
}

html[data-mobile-layout="true"] .import-draft-row,
html[data-mobile-layout="true"] .course-draft-row {
  grid-template-columns: 28px minmax(0, 1fr);
  padding: 11px;
}

html[data-mobile-layout="true"] .feedback-draft {
  grid-template-columns: 1fr;
}

html[data-mobile-layout="true"] .course-draft-grid {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 380px) {
  html[data-mobile-layout="true"] .layout-mode-toggle span,
  html[data-mobile-layout="true"] .guide-entry span {
    display: none;
  }

  html[data-mobile-layout="true"] .layout-mode-toggle,
  html[data-mobile-layout="true"] .guide-entry {
    width: 40px;
    padding: 0;
  }

  html[data-mobile-layout="true"] .heading-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-mobile-layout="true"] .today-heading-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
    gap: 6px;
  }

  html[data-mobile-layout="true"] .heading-actions .add-plan {
    grid-column: 1 / -1;
  }

  html[data-mobile-layout="true"] .product-setting-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
