:root {
  --paper: #f8f5ed;
  --ink: #232b38;
  --muted: #72766f;
  --blue: #3459d6;
  --line: #deddd5;
  --soft: #e9edf8;
  --clay: #b65c43;
  --serif: Georgia, "Songti SC", serif;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: var(--blue);
  text-underline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #d19c5b;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button svg,
a svg {
  pointer-events: none;
  flex-shrink: 0;
}
svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.7;
}
.shell {
  max-width: 1600px;
  margin: auto;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  border-right: 1px solid var(--line);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  gap: 42px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 45px;
  height: 45px;
  border-radius: 13px;
}
.brand b {
  font-size: 23px;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 4px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 15px 18px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}
.nav a.active {
  background: var(--blue);
  color: white;
}
.sidebar-bottom {
  margin-top: auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.sidebar-bottom svg {
  display: block;
  color: var(--blue);
  margin-bottom: 10px;
}
.main {
  min-width: 0;
  padding: 32px 48px 30px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.topbar span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.topbar svg {
  width: 15px;
  height: 15px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 32px 0 25px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}
h1 {
  font-size: 30px;
  font-weight: 550;
  letter-spacing: 1px;
  line-height: 1.45;
  margin: 0;
}
h2 {
  font-size: 19px;
  font-weight: 550;
  line-height: 1.5;
  margin: 0;
}
h3 {
  font-size: 16px;
  font-weight: 550;
  margin: 0;
}
p {
  line-height: 1.8;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.subtext {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}
.link {
  border: 0;
  background: none;
  color: var(--blue);
  padding: 10px 0;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.link svg {
  width: 16px;
  height: 16px;
}
.primary,
.secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--blue);
  border-radius: 11px;
  padding: 12px 20px;
  background: var(--blue);
  color: white;
  font-size: 15px;
  text-decoration: none;
}
.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #cfd1c9;
}
.primary:hover {
  background: #2848b8;
}
.secondary:hover {
  background: #ffffff80;
}
.wide {
  width: 100%;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.stack {
  display: grid;
  gap: 14px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fbf9f2;
  min-height: 282px;
}
.hero-copy {
  padding: 30px 32px;
  position: relative;
  z-index: 1;
}
.hero-art {
  position: relative;
  min-height: 240px;
}
.hero-art img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
}
.hero-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fbf9f2, transparent 28%);
}
.hero .eyebrow {
  color: var(--blue);
}
.hero h2 {
  font-size: 25px;
  line-height: 1.65;
}
.counter {
  font-family: var(--serif);
  font-size: 65px;
  line-height: 1.2;
  margin: 12px 0;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.counter small {
  font:
    14px Inter,
    "Microsoft YaHei",
    sans-serif;
  letter-spacing: 0;
  margin: 0 9px;
}
.counter .minor {
  font-size: 36px;
}
.hero .subtext {
  max-width: 320px;
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 30px;
  margin-top: 25px;
}
.help-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  background: var(--blue);
  border: 0;
  color: white;
  border-radius: 14px;
  padding: 22px 24px;
  text-align: left;
}
.help-button b {
  display: block;
  font-size: 21px;
  font-weight: 550;
}
.help-button small {
  display: block;
  opacity: 0.75;
  font-size: 12px;
  margin-top: 6px;
}
.help-button svg {
  width: 30px;
  height: 30px;
}
.quick-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.quick-buttons button {
  gap: 8px;
}
.section {
  border-top: 1px solid var(--line);
  padding: 25px 0;
}
.section:first-child {
  border-top: 0;
  padding-top: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.small-task {
  padding: 21px 23px;
  background: #eeeee3;
  border-radius: 13px;
}
.small-task .eyebrow {
  font-size: 10px;
  margin-bottom: 9px;
}
.small-task h3 {
  font-size: 19px;
}
.small-task p {
  margin: 8px 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 0;
}
.metric b {
  display: block;
  font: 31px var(--serif);
  margin-bottom: 7px;
  font-variant-numeric: tabular-nums;
}
.metric span {
  font-size: 12px;
  color: var(--muted);
}
.metric small {
  font-size: 12px;
  margin-left: 4px;
}
.list-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
}
.list-button > span {
  flex: 1;
  min-width: 0;
}
.list-button b {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.list-button small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.7;
}
.list-button > svg:first-child {
  color: var(--blue);
}
.list-button > svg:last-child {
  width: 17px;
  color: var(--muted);
}
.progress-track {
  width: 100%;
  height: 5px;
  border-radius: 8px;
  background: #e4e4da;
  overflow: hidden;
  margin: 15px 0;
}
.progress-track span {
  display: block;
  background: var(--blue);
  height: 100%;
  border-radius: 8px;
}
.notice {
  background: var(--soft);
  padding: 14px 17px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.8;
  margin: 16px 0;
  color: #465269;
}
.notice.clay {
  background: #f0e7dd;
  color: #86533e;
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 25px;
  background: #fffdf740;
}
.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 21px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 9px;
  width: 38px;
  height: 38px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.calendar > span {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 7px 0;
}
.calendar button {
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  position: relative;
  font-size: 13px;
}
.calendar button.is-reviewed {
  background: #e7eadf;
}
.calendar button.is-free {
  background: #e2e8fa;
  color: #2948ac;
}
.calendar button.is-today {
  border-color: var(--blue);
}
.calendar button:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
  bottom: 5px;
  left: calc(50% - 2px);
}
.calendar button.is-free:after {
  background: var(--blue);
}
.calendar button:disabled:after {
  display: none;
}
.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #e2e8fa;
  border-radius: 2px;
  margin-right: 5px;
}
.legend .record {
  background: #e7eadf;
}
.calendar-copy {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin: 14px 0 0;
}
.big-number {
  font: 52px var(--serif);
  color: var(--blue);
  margin: 16px 0 3px;
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.badge {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 24px 14px;
  text-align: center;
  background: none;
}
.badge-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 64px;
  margin: 0 auto 17px;
  background: #eceadf;
  color: #94958a;
  clip-path: polygon(50% 0, 94% 22%, 94% 73%, 50% 100%, 6% 73%, 6% 22%);
}
.badge-mark svg {
  width: 28px;
  height: 28px;
}
.badge.earned .badge-mark {
  background: #e3e8fa;
  color: var(--blue);
}
.badge b {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.badge small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.badge .pill {
  margin-top: 10px;
}
.pill {
  display: inline-block;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e8ecfa;
  color: var(--blue);
}
.challenge-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 24px;
  margin-bottom: 16px;
}
.challenge-card p {
  font-size: 13px;
  color: var(--muted);
}
.tabs {
  display: flex;
  gap: 10px;
  margin: 22px 0;
  flex-wrap: wrap;
}
.tabs button,
.chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: none;
  padding: 10px 15px;
  font-size: 13px;
}
.tabs button.selected,
.chip.selected {
  background: var(--soft);
  border-color: var(--blue);
  color: var(--blue);
}
.record-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.record-row b {
  font-size: 15px;
  font-weight: 500;
}
.record-row small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.record-row .link {
  padding: 10px;
}
.empty {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed #cacdc4;
  border-radius: 13px;
  margin: 20px 0;
}
.empty svg {
  width: 32px;
  height: 32px;
  color: var(--blue);
  margin-bottom: 13px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
}
.page-narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.settings-title {
  font-size: 12px;
  color: var(--muted);
  margin: 26px 0 5px;
}
.preference {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.preference small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.8;
}
.preference input {
  width: 21px;
  height: 21px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.danger {
  color: #a65340;
}
.article {
  max-width: 620px;
  margin: auto;
}
.article p {
  font-size: 16px;
  line-height: 2;
}
.article blockquote {
  border-left: 3px solid var(--blue);
  background: var(--soft);
  margin: 28px 0;
  padding: 22px;
  font-size: 20px;
  line-height: 1.8;
}
.article img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 12px;
}
.tool-feature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--soft);
  padding: 28px;
  border-radius: 15px;
  text-align: left;
  width: 100%;
  border: 0;
  margin-bottom: 14px;
}
.tool-feature b {
  font-size: 22px;
  font-weight: 500;
}
.tool-feature small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 9px;
}
.mini-orbit {
  width: 77px;
  height: 77px;
  border: 1px solid #8095dd;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-left: 12px;
}
.mini-orbit:after {
  content: "";
  width: 52px;
  height: 52px;
  border: 1px solid #8095dd;
  border-radius: 50%;
}
.help-page {
  max-width: 650px;
  margin: auto;
  text-align: center;
  padding: 10px 0;
}
.help-page h1 {
  font-size: 32px;
}
.help-page .subtext {
  line-height: 1.9;
}
.orbit {
  display: grid;
  place-items: center;
  width: 250px;
  height: 250px;
  margin: 36px auto;
  border: 1px solid #bac5e7;
  border-radius: 50%;
  position: relative;
  background: #e9edf855;
}
.orbit:before,
.orbit:after {
  content: "";
  position: absolute;
  border: 1px solid #a7b8ea;
  border-radius: 50%;
  inset: 22px;
}
.orbit:after {
  inset: 45px;
  background: #e2e8fa66;
}
.orbit .orbit-text {
  z-index: 1;
}
.orbit .orbit-text b {
  display: block;
  font-size: 23px;
  font-weight: 400;
  letter-spacing: 3px;
}
.orbit .orbit-text small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font: 20px var(--serif);
}
.orbit.running:after {
  animation: breathe 8s ease-in-out infinite;
}
.feedback {
  display: flex;
  gap: 12px;
  margin: 30px 0;
}
.feedback button {
  flex: 1;
  min-height: 76px;
}
.editorial-banner {
  margin: 28px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #eee8d9;
}
.editorial-banner img {
  display: block;
  width: 100%;
  height: clamp(130px, 20vw, 240px);
  object-fit: cover;
  object-position: center;
}
footer {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
}
footer a {
  color: inherit;
}
footer .disclaimer {
  font-family: inherit;
  font-weight: 400;
  color: inherit;
  flex-basis: 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
}
.welcome {
  max-width: 980px;
  margin: 32px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.welcome-art {
  background: url("/assets/morning-window.png") center/cover;
  min-height: 520px;
}
.welcome-copy {
  padding: 45px 35px;
}
.welcome-copy h1 {
  font-size: 34px;
  margin: 15px 0 24px;
}
.welcome-copy p {
  font-size: 14px;
  color: var(--muted);
}
.welcome-copy .brand img {
  width: 36px;
  height: 36px;
}
.welcome-copy .brand b {
  font-size: 19px;
}
.welcome-steps {
  display: grid;
  gap: 17px;
  padding: 0;
  margin: 26px 0;
  list-style: none;
}
.welcome-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.welcome-steps svg {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.welcome-steps b,
.welcome-steps small {
  display: block;
  line-height: 1.7;
}
.welcome-steps b {
  font-size: 15px;
  font-weight: 550;
}
.welcome-steps small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}
.welcome-copy .welcome-storage {
  font-size: 12px;
  line-height: 1.8;
}
.usage-help {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  min-height: 44px;
}
.usage-guide {
  margin-bottom: 24px;
  border-inline-start: 4px solid var(--blue);
}
.usage-guide-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.usage-guide-heading > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 12px;
}
.usage-guide-heading .link {
  padding: 7px 0;
  min-height: 36px;
  flex-shrink: 0;
}
.usage-guide-heading svg {
  width: 17px;
  height: 17px;
}
.usage-guide > p {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
}
.usage-guide .actions {
  margin-top: 15px;
  gap: 18px;
}
.usage-context {
  padding: 12px 14px;
  margin: 0 0 20px;
  background: var(--soft);
  color: var(--ink);
  border-radius: 8px;
  font-size: 13px;
}
.is-welcome .nav,
.is-welcome .sidebar-bottom {
  display: none;
}
.global-player-host {
  position: sticky;
  top: 0;
  z-index: 25;
}
.global-player-host:empty {
  display: none;
}
.global-player {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 5px 18px #18243d0d;
}
.player-track {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 100px;
}
.player-track > svg {
  color: var(--blue);
  flex-shrink: 0;
}
.player-track b,
.player-track small {
  display: block;
}
.player-track b {
  font-size: 14px;
  font-weight: 550;
}
.player-track small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.player-buttons {
  display: flex;
  align-items: center;
  gap: 5px;
}
.player-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  flex-shrink: 0;
}
.player-main {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.player-control svg {
  width: 18px;
  height: 18px;
}
.player-open {
  background: transparent;
  border: 0;
  color: var(--blue);
  font-size: 12px;
  min-height: 44px;
  padding: 0 8px;
}
.music-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--blue);
  padding: 16px 0;
  font-size: 13px;
  text-align: left;
}
.music-entry > span {
  flex: 1;
}
.music-entry > svg {
  width: 18px;
  height: 18px;
}
.music-now {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 12px;
  margin: 18px 0 24px;
}
.music-now p {
  margin: 6px 0;
  font-size: 12px;
  color: var(--muted);
}
.music-now .actions {
  margin-top: 12px;
}
.sound-tracks {
  border: 0;
  margin: 24px 0;
  padding: 0;
  min-width: 0;
}
.sound-tracks legend {
  font-size: 16px;
  font-weight: 550;
  margin-bottom: 12px;
}
.track-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 9px;
  cursor: pointer;
}
.track-choice:has(input:checked) {
  background: var(--soft);
  border-color: var(--blue);
}
.track-choice > span {
  flex: 1;
  min-width: 0;
}
.track-choice b,
.track-choice small {
  display: block;
  line-height: 1.8;
}
.track-choice b {
  font-size: 14px;
  font-weight: 550;
}
.track-choice small {
  font-size: 11px;
  color: var(--muted);
}
.track-choice > input,
.music-panel input {
  accent-color: var(--blue);
}
.track-choice > svg {
  color: var(--blue);
  width: 18px;
}
.sound-volume > span {
  display: flex;
  justify-content: space-between;
}
.field input[data-sound-volume] {
  padding: 0;
  min-height: 44px;
}
.sound-effect-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 20px 0;
}
.sound-effect-row .field {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.sound-effect-row button {
  flex-shrink: 0;
}
.audio-credits {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  line-height: 1.9;
}
.audio-credits summary {
  cursor: pointer;
}
.sound-error:empty {
  display: none;
}
.global-player .sound-error,
.music-now .sound-error {
  color: var(--clay);
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
  flex-basis: 100%;
}
@media (max-width: 760px) {
  .global-player {
    padding: 10px;
    gap: 10px;
  }
  .player-track {
    flex-basis: 100%;
  }
  .player-buttons {
    width: 100%;
    gap: 4px;
  }
  .player-open {
    margin-left: auto;
    padding: 0 4px;
  }
  .is-welcome .sidebar {
    display: none;
  }
  .is-welcome .main {
    padding-bottom: 35px;
  }
  .is-welcome .welcome-art {
    min-height: 140px;
  }
  .usage-guide {
    padding: 17px;
  }
  .usage-guide h2 {
    font-size: 18px;
  }
  .usage-guide .actions {
    align-items: center;
    gap: 10px 18px;
  }
  .usage-guide .primary {
    flex: 1 1 auto;
  }
  .welcome-steps {
    margin: 22px 0;
  }
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  max-width: 550px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  box-shadow: 0 20px 100px #18243d22;
}
dialog::backdrop {
  background: #202c475c;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 20px;
}
.modal-body {
  padding: 23px 26px;
  overflow-y: auto;
}
.field {
  display: block;
  margin-bottom: 18px;
  font-size: 13px;
}
.field > span {
  display: block;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea,
.date-picker {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cacdc4;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 11px 12px;
  min-width: 0;
}
.field textarea {
  min-height: 80px;
  resize: vertical;
}
.field small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 6px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-error {
  color: #a65340;
  font-size: 13px;
  line-height: 1.8;
}
.form-error:empty {
  display: none;
}
.radio-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.8;
}
.radio-option input {
  margin-top: 5px;
  accent-color: var(--blue);
}
.radio-option small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.modal-body .actions > * {
  flex: 1;
}
.plan-option {
  display: flex;
  width: 100%;
  gap: 16px;
  text-align: left;
  border: 1px solid var(--line);
  background: none;
  border-radius: 12px;
  padding: 21px 18px;
  margin-bottom: 12px;
  align-items: center;
}
.plan-option > svg {
  color: var(--blue);
}
.plan-option b {
  display: block;
  font-size: 16px;
  font-weight: 500;
}
.plan-option small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 6px;
}
.postcard {
  max-width: 420px;
  margin: 20px auto;
  background: #f8f5ed;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
}
.postcard img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.postcard .badge-mark {
  margin-top: 24px;
}
.postcard h2 {
  font-size: 25px;
  margin: 18px;
}
.postcard p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 30px;
}
.postcard .card-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
#toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  z-index: 100;
  background: var(--ink);
  color: white;
  max-width: calc(100% - 32px);
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  display: none;
  box-shadow: 0 8px 25px #202c4722;
}
#toast.show {
  display: flex;
  align-items: center;
  gap: 20px;
}
#toast button {
  color: #bfcfff;
  background: none;
  border: 0;
  white-space: nowrap;
}
.loading {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}
.bars {
  height: 160px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding-top: 20px;
}
.bar {
  flex: 1;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.bar i {
  display: block;
  border-radius: 5px 5px 0 0;
  background: #8a9ede;
  min-height: 2px;
  align-self: center;
  width: min(100%, 35px);
}
.bar small {
  font-size: 11px;
}
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  margin: 20px 0;
}
.timeline p {
  font-size: 13px;
  color: var(--muted);
}
.large-text {
  font-size: 18px;
}
.large-text .muted,
.large-text .subtext,
.large-text .list-button small,
.large-text .field,
.large-text p,
.large-text .calendar-copy {
  font-size: 16px;
}
.large-text .list-button b,
.large-text .secondary,
.large-text .primary,
.large-text .nav a {
  font-size: 18px;
}
.reduced-motion * {
  animation: none !important;
  scroll-behavior: auto !important;
}
@keyframes breathe {
  50% {
    transform: scale(1.22);
  }
}
@media (min-width: 1500px) {
  .main {
    padding-left: 65px;
    padding-right: 65px;
  }
  .hero {
    min-height: 320px;
  }
  .hero-copy {
    padding: 39px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    padding: 30px 18px;
  }
  .brand b {
    font-size: 20px;
  }
  .brand small {
    font-size: 8px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .main {
    padding: 28px;
  }
  .home-grid {
    gap: 24px;
  }
  .hero-copy {
    padding: 26px;
  }
  .counter {
    font-size: 54px;
  }
  .hero h2 {
    font-size: 22px;
  }
  .badge-grid {
    gap: 10px;
  }
  .columns {
    gap: 24px;
  }
  .welcome {
    grid-template-columns: 1fr;
  }
  .welcome-art {
    min-height: 200px;
  }
  .welcome-copy {
    padding: 30px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    height: auto;
    width: 100%;
    z-index: 20;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--line);
    background: #f8f5edf5;
    backdrop-filter: blur(12px);
    display: block;
  }
  .sidebar > .brand,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
  }
  .nav a {
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 8px 2px;
    font-size: 10px;
    border-radius: 8px;
  }
  .nav a.active {
    background: transparent;
    color: var(--blue);
  }
  .nav a svg {
    width: 22px;
    height: 22px;
  }
  .main {
    padding: 20px 22px calc(115px + env(safe-area-inset-bottom));
  }
  .topbar {
    padding-bottom: 16px;
    font-size: 11px;
  }
  .topbar .local-copy {
    font-size: 10px;
  }
  .page-head {
    margin: 24px 0 21px;
    flex-wrap: wrap;
    align-items: center;
  }
  .page-head > div {
    width: 100%;
  }
  .page-head > .pill {
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  h1 {
    font-size: 26px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .hero {
    min-height: 230px;
    grid-template-columns: 1.2fr 0.8fr;
  }
  .hero-copy {
    padding: 23px 0 23px 23px;
  }
  .hero-art {
    min-height: 230px;
  }
  .hero-art:after {
    background: linear-gradient(90deg, #fbf9f2, transparent 60%);
  }
  .hero h2 {
    font-size: 20px;
  }
  .hero .subtext {
    font-size: 11px;
  }
  .counter {
    font-size: 48px;
    margin: 15px 0;
  }
  .counter small {
    font-size: 12px;
    margin: 0 5px;
  }
  .counter .minor {
    font-size: 27px;
  }
  .hero .link {
    font-size: 11px;
  }
  .home-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .help-button {
    padding: 22px;
  }
  .help-button b {
    font-size: 20px;
  }
  .home-grid .section {
    padding: 22px 0;
  }
  .home-grid aside .section:first-child {
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }
  .metrics {
    padding: 21px 0;
  }
  .metric b {
    font-size: clamp(21px, 6.6vw, 27px);
    white-space: nowrap;
  }
  .metric small {
    font-size: 10px;
    margin-left: 2px;
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .panel {
    padding: 21px;
  }
  .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .welcome {
    margin: 10px 0;
    border: 0;
    display: block;
  }
  .welcome-art {
    min-height: 200px;
    border-radius: 13px;
  }
  .welcome-copy {
    padding: 28px 0;
  }
  .welcome-copy h1 {
    font-size: 32px;
  }
  .welcome-copy p {
    font-size: 14px;
  }
  .welcome-copy > .brand {
    display: none;
  }
  .help-page h1 {
    font-size: 27px;
  }
  .orbit {
    width: 225px;
    height: 225px;
  }
  .feedback {
    gap: 7px;
  }
  .feedback button {
    padding: 10px 7px;
    font-size: 13px;
  }
  footer {
    margin-top: 30px;
    font-size: 9px;
  }
  #toast {
    bottom: 100px;
    width: max-content;
    max-width: calc(100% - 30px);
  }
  dialog {
    max-height: 88dvh;
  }
  .modal-body {
    padding: 21px;
  }
  .modal-head {
    padding: 18px 21px;
  }
  .field-row {
    gap: 10px;
  }
  .postcard img {
    height: 185px;
  }
  .challenge-card {
    padding: 21px;
  }
  .topbar span {
    gap: 5px;
  }
  .quick-buttons button {
    padding: 12px 8px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 359px) {
  .main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .counter {
    font-size: 41px;
  }
  .hero-copy {
    padding-left: 17px;
  }
  .hero h2 {
    font-size: 18px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
}

.return-guide {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  margin: 24px 0;
  background: #e9edf8;
  border: 1px solid #d5def8;
  border-radius: 14px;
}
.return-guide-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #f8f9ff;
  border-radius: 10px;
  color: var(--blue);
}
.return-guide h2 {
  font-size: 18px;
}
.return-guide p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.return-guide .actions {
  margin-top: 12px;
}
.return-guide .primary {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
}
.plan-reminder {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 9px;
}
.plan-reminder .radio-option {
  border: 0;
  padding: 0;
  margin: 10px 0 16px;
}
.plan-reminder input[type="checkbox"] {
  accent-color: var(--blue);
}
@media (max-width: 760px) {
  .return-guide {
    padding: 18px;
    gap: 12px;
  }
  .return-guide h2 {
    font-size: 16px;
  }
  .return-guide .actions {
    gap: 12px;
  }
  .return-guide .primary {
    font-size: 12px;
  }
}
