:root {
  --ink: #173a30;
  --ink-deep: #102c24;
  --pine: #294f43;
  --pine-soft: #3d6b53;
  --moss: #74806a;
  --rice: #f3efe5;
  --paper: #fffdf8;
  --cinnabar: #c65d47;
  --cinnabar-dark: #a84f3e;
  --amber: #b99a58;
  --amber-soft: #e8ca87;
  --mist: #e6e9e0;
  --line: #dcd8cc;
  --muted: #636b63;
  --muted-light: #666e66;
  --serif: "STSong", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-soft: 0 16px 38px rgba(32, 54, 44, 0.1);
  --sidebar-width: 264px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--rice);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 92% 2%, rgba(198, 93, 71, 0.07), transparent 20rem),
    var(--rice);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

button,
[role="button"] {
  touch-action: manipulation;
}

::selection {
  background: rgba(198, 93, 71, 0.2);
  color: var(--ink-deep);
}

:focus-visible {
  outline: 3px solid rgba(198, 93, 71, 0.55);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 10px;
  background: rgba(41, 79, 67, 0.28);
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 30px 22px 24px;
  border-right: 1px solid rgba(41, 79, 67, 0.09);
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__seal {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border-radius: 13px 13px 13px 4px;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(135, 61, 46, 0.17);
}

.brand__copy {
  display: flex;
  flex-direction: column;
}

.brand__name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.brand__note {
  margin-top: 3px;
  color: var(--moss);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.sidebar__season {
  position: relative;
  display: flex;
  min-height: 150px;
  margin: 33px 0 21px;
  overflow: hidden;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--paper);
}

.sidebar__season::before,
.sidebar__season::after {
  position: absolute;
  border: 1px solid rgba(255, 253, 248, 0.11);
  border-radius: 50%;
  content: "";
}

.sidebar__season::before {
  top: -58px;
  right: -38px;
  width: 145px;
  height: 145px;
}

.sidebar__season::after {
  top: -22px;
  right: -4px;
  width: 76px;
  height: 76px;
}

.sidebar__season-word {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 63px;
  font-weight: 700;
  line-height: 0.95;
}

.sidebar__season-copy {
  position: relative;
  z-index: 1;
  color: rgba(255, 253, 248, 0.62);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.desktop-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border-radius: 13px;
  color: #6e766d;
  font-size: 14px;
  font-weight: 550;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-link:hover {
  background: rgba(41, 79, 67, 0.06);
  color: var(--ink);
}

.nav-link:active {
  transform: scale(0.985);
}

.nav-link[aria-current="page"] {
  background: var(--mist);
  color: var(--ink);
  font-weight: 700;
}

.nav-link__icon,
.header-cart svg,
.mobile-nav__icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-link__badge,
.cart-badge {
  display: grid;
  min-width: 19px;
  height: 19px;
  margin-left: auto;
  padding: 0 5px;
  place-items: center;
  border-radius: 10px;
  background: var(--cinnabar);
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.sidebar__foot {
  margin-top: auto;
  padding: 19px 5px 0;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.65;
}

.sidebar__foot a {
  display: inline-block;
  margin-top: 8px;
  color: var(--pine);
  text-decoration: underline;
  text-decoration-color: rgba(41, 79, 67, 0.28);
  text-underline-offset: 4px;
}

.mobile-header,
.mobile-nav {
  display: none;
}

.app-main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  outline: none;
}

.page {
  width: min(1220px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 72px;
  animation: page-in 220ms ease-out both;
}

.page--reading {
  width: min(880px, calc(100% - 64px));
}

.page-head {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.page-head__copy {
  min-width: 0;
}

.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.18;
}

.page-head__meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.page-head__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.back-link {
  display: inline-flex;
  min-height: 40px;
  margin-bottom: 14px;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

.back-link:hover {
  color: var(--ink);
}

.back-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 0.8fr);
  align-items: start;
  gap: 24px;
}

.home-main,
.home-rail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 22px;
}

.season-hero {
  position: relative;
  min-height: 382px;
  overflow: hidden;
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  background: var(--pine);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}

.season-hero::before,
.season-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 50%;
  content: "";
}

.season-hero::before {
  top: -180px;
  right: -100px;
  width: 430px;
  height: 430px;
}

.season-hero::after {
  right: 46px;
  bottom: -220px;
  width: 360px;
  height: 360px;
}

.season-hero__title-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.season-hero__title {
  font-family: var(--serif);
  font-size: clamp(64px, 7vw, 94px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 0.95;
}

.season-hero__sub {
  margin-top: 14px;
  color: rgba(255, 253, 248, 0.72);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.13em;
}

.season-seal {
  display: grid;
  width: 54px;
  height: 66px;
  flex: 0 0 54px;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.42);
  border-radius: 5px;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 29px;
  box-shadow: 8px 9px 0 rgba(17, 41, 34, 0.2);
  transform: rotate(3deg);
}

.hero-focus {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 74px;
  margin-top: 28px;
  padding: 13px 14px;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(255, 253, 248, 0.15);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.07);
}

.hero-focus__symbol {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(232, 202, 135, 0.62);
  border-radius: 50%;
}

.hero-focus__symbol::after {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: var(--amber-soft);
  content: "";
}

.hero-focus__label {
  color: rgba(255, 253, 248, 0.53);
  font-size: 11px;
}

.hero-focus__value {
  margin-top: 2px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 650;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 22px;
  align-items: center;
  gap: 10px;
}

.hero-date {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  color: rgba(255, 253, 248, 0.68);
  font-size: 12px;
}

.term-progress {
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

.term-progress__track {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.14);
}

.term-progress__fill {
  height: 100%;
  background: var(--amber-soft);
  transition: width 220ms ease-out;
}

.term-progress__meta {
  display: flex;
  margin-top: 9px;
  justify-content: space-between;
  color: rgba(255, 253, 248, 0.54);
  font-size: 11px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--pine);
  color: var(--paper);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition:
    transform 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.button:hover {
  background: var(--ink);
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

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

.button--light:hover {
  background: #f1ece1;
}

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

.button--outline:hover {
  border-color: var(--pine);
  background: rgba(41, 79, 67, 0.04);
}

.button--ghost-light {
  border-color: rgba(255, 253, 248, 0.24);
  background: transparent;
  color: var(--paper);
}

.button--ghost-light:hover {
  background: rgba(255, 253, 248, 0.08);
}

.button--danger {
  background: var(--cinnabar-dark);
}

.button--small {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 12px;
}

.button--wide {
  width: 100%;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 24px;
}

.icon-button:hover {
  background: var(--mist);
  color: var(--ink);
}

.surface {
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.surface--pad {
  padding: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.section-head__meta {
  color: var(--muted);
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  min-height: 36px;
  padding: 4px 0;
  align-items: center;
  border: 0;
  background: none;
  color: var(--pine-soft);
  cursor: pointer;
  font-size: 12px;
}

.text-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.profile-summary-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  padding: 18px;
  align-items: center;
  gap: 15px;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.profile-summary-card__seal {
  display: grid;
  width: 64px;
  height: 74px;
  place-items: center;
  border-radius: 14px 14px 14px 5px;
  background: #e8eadf;
  color: var(--pine);
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 700;
}

.profile-summary-card__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-summary-card__title {
  font-size: 18px;
  font-weight: 700;
}

.demo-label {
  padding: 2px 6px;
  border: 1px solid #d1b68a;
  border-radius: 4px;
  color: #886d3f;
  font-size: 9px;
  font-weight: 600;
}

.profile-summary-card__copy {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.mini-bar {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 3px;
  background: #ece9df;
}

.mini-bar__fill {
  height: 100%;
  border-radius: 3px;
  background: var(--cinnabar);
}

.profile-summary-card__score {
  color: var(--cinnabar-dark);
  font-size: 12px;
  font-weight: 700;
}

.arrow-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.arrow-button:hover {
  border-color: var(--pine);
  color: var(--pine);
}

.arrow-button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.risk-feature {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--mist);
}

.risk-feature::after {
  position: absolute;
  right: -55px;
  bottom: -70px;
  width: 165px;
  height: 165px;
  border: 1px solid rgba(41, 79, 67, 0.13);
  border-radius: 50%;
  content: "";
}

.risk-feature__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.risk-feature__mark {
  display: grid;
  width: 38px;
  height: 45px;
  place-items: center;
  border: 1px solid var(--cinnabar-dark);
  border-radius: 4px;
  color: var(--cinnabar-dark);
  font-family: var(--serif);
  font-size: 19px;
  transform: rotate(2deg);
}

.risk-feature h3 {
  margin-top: 11px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
}

.risk-feature p {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.risk-feature__tags {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 14px;
  gap: 6px;
}

.risk-feature__tags span {
  flex: 1;
  padding: 7px 5px;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.6);
  color: #5b6c62;
  font-size: 10px;
  text-align: center;
}

.risk-feature__status {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 14px;
  padding-top: 12px;
  justify-content: space-between;
  border-top: 1px solid rgba(41, 79, 67, 0.12);
  color: var(--muted);
  font-size: 10px;
}

.checklist {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.check-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 64px;
  padding: 12px 18px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #eeeae0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

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

.check-row:hover {
  background: #fbf8f1;
}

.check-row__box {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1.5px solid #bcc2b8;
  border-radius: 50%;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.check-row__box svg {
  width: 14px;
  height: 14px;
  stroke: var(--paper);
  stroke-width: 2.2;
  fill: none;
  opacity: 0;
}

.check-row.is-done .check-row__box {
  border-color: var(--pine);
  background: var(--pine);
}

.check-row.is-done .check-row__box svg {
  opacity: 1;
}

.check-row.is-done .check-row__title {
  color: var(--muted);
  text-decoration: line-through;
}

.check-row__time {
  display: block;
  color: var(--muted-light);
  font-size: 9px;
}

.check-row__title {
  display: block;
  margin-top: 1px;
  color: #2e463b;
  font-size: 13px;
  font-weight: 600;
}

.check-row__state {
  color: var(--muted-light);
  font-size: 10px;
}

.check-row.is-done .check-row__state {
  color: var(--pine-soft);
}

.symptom-panel {
  padding: 19px;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.symptom-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.choice-chip {
  display: inline-flex;
  min-height: 36px;
  padding: 0 14px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbf9f3;
  color: #5f6b62;
  cursor: pointer;
  font-size: 12px;
}

.choice-chip::before {
  width: 6px;
  height: 6px;
  border: 1px solid #a9afa4;
  border-radius: 50%;
  content: "";
}

.choice-chip:hover {
  border-color: var(--pine);
}

.choice-chip[aria-pressed="true"] {
  border-color: var(--pine);
  background: var(--pine);
  color: var(--paper);
}

.choice-chip[aria-pressed="true"]::before {
  border-color: var(--amber-soft);
  background: var(--amber-soft);
}

.inline-note {
  display: flex;
  margin-top: 13px;
  padding: 10px 12px;
  align-items: flex-start;
  gap: 8px;
  border-radius: 10px;
  background: #f0f1e9;
  color: #737a71;
  font-size: 10px;
  line-height: 1.6;
}

.inline-note__mark {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border: 1px solid #86938a;
  border-radius: 50%;
  font-family: serif;
  font-size: 10px;
}

.article-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.article-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  padding: 17px 18px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #eeeae0;
}

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

.article-row:hover {
  background: #fbf8f1;
}

.article-row__index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #d7c9b7;
  border-radius: 50%;
  color: #a46852;
  font-family: var(--serif);
  font-size: 15px;
}

.article-row__meta {
  color: var(--muted-light);
  font-size: 9px;
}

.article-row__title {
  margin-top: 3px;
  color: #29463a;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.article-row__summary {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.shop-teaser {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  min-height: 188px;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: #d9dfd2;
}

.shop-teaser::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(41, 79, 67, 0.14);
  border-radius: 50%;
  content: "";
}

.shop-teaser__copy {
  position: relative;
  z-index: 1;
}

.shop-teaser h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.45;
}

.shop-teaser p {
  margin-top: 10px;
  color: #617065;
  font-size: 11px;
  line-height: 1.65;
}

.shop-teaser img {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 0;
  width: 145px;
  height: 145px;
  border-radius: 18px;
  object-fit: cover;
  transform: rotate(3deg);
  box-shadow: 0 14px 28px rgba(41, 79, 67, 0.16);
}

.calendar-season-tabs {
  display: flex;
  padding: 5px;
  gap: 5px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.7);
}

.season-tab {
  min-height: 45px;
  flex: 1;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.season-tab:hover {
  background: rgba(41, 79, 67, 0.05);
}

.season-tab.is-active {
  background: var(--pine);
  color: var(--paper);
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.term-cell {
  position: relative;
  min-height: 84px;
  padding: 13px;
  border: 1px solid #e7e2d6;
  border-radius: 14px;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
}

.term-cell:hover {
  border-color: #aeb9ad;
}

.term-cell.is-selected {
  border-color: var(--pine);
  background: #f0f3eb;
}

.term-cell__current {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cinnabar);
}

.term-cell__name {
  display: block;
  color: #2d463b;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.term-cell__date {
  display: block;
  margin-top: 5px;
  color: var(--muted-light);
  font-size: 9px;
}

.term-detail {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: var(--pine);
  color: var(--paper);
}

.term-detail::after {
  position: absolute;
  right: -105px;
  bottom: -150px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 50%;
  content: "";
}

.term-detail__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.term-detail h2 {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.1;
}

.term-detail__date {
  color: rgba(255, 253, 248, 0.55);
  font-size: 11px;
}

.term-detail__season-mark {
  display: grid;
  width: 52px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 253, 248, 0.38);
  border-radius: 4px;
  color: var(--amber-soft);
  font-family: var(--serif);
  font-size: 27px;
  transform: rotate(3deg);
}

.term-detail__phrase {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  color: #f0e3ca;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.08em;
}

.term-detail__care {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-top: 9px;
  color: rgba(255, 253, 248, 0.7);
  font-size: 12px;
  line-height: 1.75;
}

.term-detail__footer {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 20px;
  padding-top: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 253, 248, 0.14);
}

.term-risk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.term-risk-tags span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 5px;
  color: rgba(255, 253, 248, 0.65);
  font-size: 9px;
}

.progress-strip {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #ddd9cf;
}

.progress-strip__fill {
  height: 100%;
  border-radius: 3px;
  background: var(--cinnabar);
  transition: width 220ms ease-out;
}

.assessment-hero,
.risk-hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-xl);
}

.assessment-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 300px;
  align-items: center;
  background: #dde3d8;
}

.assessment-hero::after {
  position: absolute;
  top: -130px;
  right: -80px;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(41, 79, 67, 0.14);
  border-radius: 50%;
  content: "";
}

.assessment-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 620px;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.25;
}

.assessment-hero p {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin-top: 15px;
  color: #66736a;
  font-size: 13px;
  line-height: 1.8;
}

.assessment-hero__seal {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100px;
  height: 122px;
  place-items: center;
  border: 2px solid rgba(168, 79, 62, 0.68);
  border-radius: 6px;
  color: var(--cinnabar-dark);
  font-family: var(--serif);
  font-size: 52px;
  transform: rotate(4deg);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  padding: 15px 0;
  border-top: 1px solid rgba(41, 79, 67, 0.14);
}

.metric-strip__item {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid rgba(41, 79, 67, 0.14);
}

.metric-strip__item:last-child {
  border-right: 0;
}

.metric-strip strong {
  font-family: var(--serif);
  font-size: 26px;
}

.metric-strip span {
  color: var(--muted);
  font-size: 10px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
  gap: 20px;
}

.profile-portrait {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.profile-portrait__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.profile-portrait h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
}

.profile-portrait__meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.bar-list {
  display: flex;
  margin-top: 20px;
  flex-direction: column;
  gap: 13px;
}

.bar-row__head {
  display: flex;
  margin-bottom: 5px;
  justify-content: space-between;
  color: #5e6a62;
  font-size: 11px;
}

.bar-row__track {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #eae8df;
}

.bar-row__fill {
  height: 100%;
  border-radius: 3px;
  background: #809485;
}

.bar-row:first-child .bar-row__fill {
  background: var(--cinnabar);
}

.test-shell {
  max-width: 760px;
  margin: 0 auto;
}

.test-progress-row {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  gap: 14px;
}

.test-progress-row strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
}

.test-progress-row span {
  color: var(--muted-light);
  font-size: 10px;
}

.test-progress-row .progress-strip {
  flex: 1;
}

.question-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.question-card::after {
  position: absolute;
  top: 6px;
  right: 20px;
  color: #f0e7d6;
  font-family: var(--serif);
  font-size: 88px;
  font-weight: 700;
  line-height: 1;
  content: attr(data-number);
}

.question-card h2 {
  position: relative;
  z-index: 1;
  max-width: 620px;
  font-family: var(--serif);
  font-size: clamp(25px, 3.5vw, 35px);
  font-weight: 700;
  line-height: 1.55;
}

.question-card__hint {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.answer-list {
  display: flex;
  margin-top: 22px;
  flex-direction: column;
  gap: 9px;
}

.answer-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  min-height: 66px;
  padding: 12px 15px;
  align-items: center;
  gap: 12px;
  border: 1px solid #e3dfd4;
  border-radius: 13px;
  background: #faf8f2;
  text-align: left;
  cursor: pointer;
}

.answer-option:hover {
  border-color: #9daa9f;
}

.answer-option.is-selected {
  border-color: var(--pine);
  background: #eef2ea;
}

.answer-option__radio {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1.5px solid #aeb4aa;
  border-radius: 50%;
}

.answer-option__radio::after {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pine);
  content: "";
  opacity: 0;
}

.answer-option.is-selected .answer-option__radio {
  border-color: var(--pine);
}

.answer-option.is-selected .answer-option__radio::after {
  opacity: 1;
}

.answer-option strong {
  display: block;
  color: #30483e;
  font-size: 13px;
}

.answer-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 9px;
}

.answer-option__mark {
  color: #b8ad99;
  font-family: var(--serif);
  font-size: 18px;
}

.answer-option.is-selected .answer-option__mark {
  color: var(--cinnabar-dark);
}

.test-actions {
  display: flex;
  margin-top: 18px;
  gap: 10px;
}

.test-actions .button:first-child {
  min-width: 120px;
}

.test-actions .button:last-child {
  flex: 1;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.result-hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: var(--pine);
  color: var(--paper);
  text-align: center;
}

.result-hero::before,
.result-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 253, 248, 0.12);
  border-radius: 50%;
  content: "";
}

.result-hero::before {
  top: -140px;
  left: -80px;
  width: 310px;
  height: 310px;
}

.result-hero::after {
  right: -110px;
  bottom: -160px;
  width: 360px;
  height: 360px;
}

.result-hero__seal {
  position: relative;
  z-index: 1;
  display: grid;
  width: 45px;
  height: 52px;
  margin: 0 auto 13px;
  place-items: center;
  border-radius: 4px;
  background: var(--cinnabar);
  font-family: var(--serif);
  font-size: 22px;
}

.result-hero h1 {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 700;
}

.result-hero__score {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  color: var(--amber-soft);
  font-size: 13px;
}

.result-hero p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 14px auto 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 12px;
  line-height: 1.8;
}

.risk-hero {
  background: var(--ink);
  color: var(--paper);
}

.risk-hero::before {
  position: absolute;
  top: -150px;
  right: -110px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(232, 202, 135, 0.14);
  border-radius: 50%;
  content: "";
}

.risk-hero h2 {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.35;
}

.risk-hero p {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin-top: 12px;
  color: rgba(255, 253, 248, 0.65);
  font-size: 12px;
  line-height: 1.75;
}

.risk-hero__directions {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 19px;
  gap: 8px;
}

.risk-hero__directions span {
  flex: 1;
  padding: 9px 8px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 9px;
  color: rgba(255, 253, 248, 0.7);
  font-size: 10px;
  text-align: center;
}

.risk-hero__directions span:first-child {
  border-color: rgba(232, 202, 135, 0.48);
  background: rgba(232, 202, 135, 0.08);
  color: var(--amber-soft);
}

.question-group {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.question-group__head {
  display: flex;
  padding-bottom: 11px;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #eeeae0;
}

.question-group__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--cinnabar);
}

.question-group:nth-child(2) .question-group__dot {
  background: #567269;
}

.question-group:nth-child(3) .question-group__dot {
  background: var(--amber);
}

.question-group h2 {
  font-size: 14px;
  font-weight: 700;
}

.question-group__note {
  margin-top: 1px;
  color: var(--muted-light);
  font-size: 9px;
}

.signal-option {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr) auto;
  width: 100%;
  min-height: 52px;
  padding: 11px 1px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #f0ece3;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.signal-option:last-child {
  border-bottom: 0;
}

.signal-option:hover {
  color: var(--pine);
}

.signal-option__check {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1.5px solid #bfc4bb;
  border-radius: 6px;
}

.signal-option__check svg {
  width: 13px;
  height: 13px;
  stroke: var(--paper);
  stroke-width: 2.2;
  fill: none;
  opacity: 0;
}

.signal-option.is-selected .signal-option__check {
  border-color: var(--pine);
  background: var(--pine);
}

.signal-option.is-selected .signal-option__check svg {
  opacity: 1;
}

.signal-option.is-urgent.is-selected .signal-option__check {
  border-color: var(--cinnabar-dark);
  background: var(--cinnabar-dark);
}

.signal-option__text {
  color: #58665e;
  font-size: 12px;
  line-height: 1.55;
}

.signal-option.is-selected .signal-option__text {
  color: var(--pine);
  font-weight: 600;
}

.urgent-label {
  padding: 2px 5px;
  border: 1px solid #d8a79c;
  border-radius: 3px;
  color: var(--cinnabar-dark);
  font-size: 8px;
}

.urgent-note,
.emergency-panel {
  margin-top: 13px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f0e3dc;
  color: #745b52;
}

.emergency-panel {
  position: relative;
  z-index: 1;
  margin-bottom: 15px;
  background: #8d4739;
  color: var(--paper);
}

.urgent-note strong,
.emergency-panel strong {
  display: block;
  font-size: 13px;
}

.urgent-note p,
.emergency-panel p {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.65;
}

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

.risk-result-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.risk-result-card--urgent {
  background: #f3e6df;
}

.risk-result-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.risk-result-card h2 {
  color: var(--pine);
  font-size: 17px;
  font-weight: 700;
}

.risk-result-card__desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.level-dots {
  display: flex;
  flex: 0 0 auto;
  gap: 3px;
  margin-top: 6px;
}

.level-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dcd9cf;
}

.level-dots i.is-on {
  background: var(--cinnabar);
}

.level-label {
  display: inline-block;
  margin-top: 11px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #e8ece4;
  color: #4f6758;
  font-size: 9px;
  font-weight: 650;
}

.risk-result-card--watch .level-label {
  background: #efe6d8;
  color: #806938;
}

.risk-result-card--consult .level-label,
.risk-result-card--urgent .level-label {
  background: #eadbd4;
  color: #944b3c;
}

.reason-list {
  display: flex;
  margin-top: 13px;
  padding-top: 11px;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid #ece8dd;
}

.reason-list span {
  position: relative;
  padding-left: 11px;
  color: #626f67;
  font-size: 9px;
  line-height: 1.55;
}

.reason-list span::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9ca99e;
  content: "";
}

.risk-advice {
  margin-top: 12px;
  padding: 11px;
  border-radius: 10px;
  background: #f1f2eb;
  color: #59675f;
  font-size: 9px;
  line-height: 1.65;
}

.risk-urgent {
  margin-top: 8px;
  color: var(--cinnabar-dark);
  font-size: 9px;
  line-height: 1.6;
}

.shop-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  min-height: 320px;
  overflow: hidden;
  padding: 28px;
  align-items: center;
  border-radius: var(--radius-xl);
  background: #e9ded0;
}

.shop-hero::before {
  position: absolute;
  top: -130px;
  right: -80px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(41, 79, 67, 0.14);
  border-radius: 50%;
  content: "";
}

.shop-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 520px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.35;
}

.shop-hero p {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin-top: 12px;
  color: #6e7068;
  font-size: 12px;
  line-height: 1.75;
}

.shop-hero__visual {
  position: relative;
  min-height: 255px;
}

.shop-hero__visual img {
  position: absolute;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 18px 34px rgba(55, 55, 43, 0.16);
}

.shop-hero__visual img:first-child {
  top: 28px;
  left: 28px;
  width: 230px;
  height: 230px;
  transform: rotate(-5deg);
}

.shop-hero__visual img:last-child {
  right: 5px;
  bottom: 10px;
  width: 150px;
  height: 150px;
  transform: rotate(7deg);
}

.filter-row {
  display: flex;
  overflow-x: auto;
  padding: 18px 0 4px;
  gap: 8px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.filter-chip:hover {
  border-color: #aeb9ad;
}

.filter-chip.is-active {
  border-color: var(--pine);
  background: var(--pine);
  color: var(--paper);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
  gap: 16px;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-card:hover {
  border-color: #ddd5c8;
  box-shadow: 0 14px 28px rgba(38, 58, 49, 0.09);
  transform: translateY(-3px);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #ece2d5;
}

.product-card__body {
  display: flex;
  min-height: 165px;
  padding: 15px;
  flex: 1;
  flex-direction: column;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-light);
  font-size: 9px;
}

.product-card__tag {
  padding: 2px 6px;
  border: 1px solid #d2b98d;
  border-radius: 3px;
  color: #8b7044;
}

.product-card h2 {
  margin-top: 8px;
  color: #253f35;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

.product-card__subtitle {
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 10px;
}

.product-card__foot {
  display: flex;
  margin-top: auto;
  padding-top: 14px;
  align-items: center;
  justify-content: space-between;
}

.price {
  color: var(--cinnabar-dark);
  font-size: 11px;
}

.price strong {
  margin-left: 2px;
  font-size: 20px;
}

.round-add {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--pine);
  color: var(--paper);
  cursor: pointer;
}

.round-add:hover {
  background: var(--ink);
}

.round-add svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.shop-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #e9e8df;
  color: #777c73;
  font-size: 10px;
  line-height: 1.65;
}

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

.product-detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  object-fit: cover;
  background: #ece2d5;
}

.product-detail-copy {
  padding-top: 12px;
}

.product-detail-copy__meta {
  color: #896f52;
  font-size: 11px;
}

.product-detail-copy h1 {
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.3;
}

.product-detail-copy__price {
  margin-top: 9px;
  color: var(--cinnabar-dark);
  font-size: 13px;
}

.product-detail-copy__price strong {
  font-size: 30px;
}

.product-detail-copy__intro {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.fact-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 16px;
  gap: 7px;
}

.fact-list span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 9px;
}

.detail-tabs {
  display: flex;
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-tab {
  position: relative;
  min-height: 43px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.detail-tab.is-active {
  color: var(--ink);
  font-weight: 700;
}

.detail-tab.is-active::after {
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  background: var(--cinnabar);
  content: "";
}

.detail-panel {
  min-height: 165px;
  padding: 20px 1px;
  color: #5e6b63;
  font-size: 12px;
  line-height: 1.8;
}

.detail-panel__note {
  margin-top: 13px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eceee6;
  color: #6c776f;
  font-size: 10px;
}

.purchase-row {
  display: flex;
  margin-top: 18px;
  gap: 10px;
}

.quantity {
  display: flex;
  min-height: 45px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.quantity button {
  width: 37px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--pine);
  cursor: pointer;
  font-size: 18px;
}

.quantity span {
  min-width: 24px;
  color: var(--ink);
  font-size: 12px;
  text-align: center;
}

.purchase-row .button {
  flex: 1;
}

.caution-block {
  margin-top: 17px;
  padding: 15px 16px;
  border-radius: 13px;
  background: #eee6df;
  color: #795f56;
  font-size: 10px;
  line-height: 1.7;
}

.caution-block strong {
  display: block;
  margin-bottom: 3px;
  color: #974f40;
  font-size: 12px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  align-items: start;
  gap: 20px;
}

.cart-list {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  padding: 15px;
  gap: 15px;
  border-bottom: 1px solid #eeeae0;
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item img {
  width: 110px;
  height: 110px;
  border-radius: 14px;
  object-fit: cover;
}

.cart-item__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

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

.cart-item h2 {
  color: #2c463b;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.cart-item__meta {
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 9px;
}

.remove-button {
  padding: 4px;
  border: 0;
  background: none;
  color: #9b8277;
  cursor: pointer;
  font-size: 10px;
}

.cart-item__foot {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-summary {
  position: sticky;
  top: 24px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.summary-row {
  display: flex;
  min-height: 30px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.summary-total {
  display: flex;
  margin-top: 10px;
  padding-top: 14px;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.summary-total strong {
  color: var(--cinnabar-dark);
  font-family: var(--serif);
  font-size: 28px;
}

.summary-actions {
  display: flex;
  margin-top: 17px;
  flex-direction: column;
  gap: 8px;
}

.empty-state {
  display: grid;
  min-height: 330px;
  padding: 40px;
  place-items: center;
  border-radius: var(--radius-xl);
  background: var(--paper);
  text-align: center;
}

.empty-state__seal {
  display: grid;
  width: 82px;
  height: 96px;
  margin: 0 auto;
  place-items: center;
  border: 1px solid #b7b1a3;
  border-radius: 6px;
  color: #8d8a7f;
  font-family: var(--serif);
  font-size: 39px;
  transform: rotate(2deg);
}

.empty-state h2 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: 28px;
}

.empty-state p {
  max-width: 420px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 12px;
}

.empty-state .button {
  margin-top: 20px;
}

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

.library-list {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.library-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 21px;
  align-items: start;
  gap: 16px;
  border-bottom: 1px solid #eeeae0;
}

.library-card:last-child {
  border-bottom: 0;
}

.library-card:hover {
  background: #fbf8f1;
}

.library-card__index {
  color: var(--cinnabar-dark);
  font-family: var(--serif);
  font-size: 14px;
}

.library-card__meta {
  color: var(--muted-light);
  font-size: 9px;
}

.library-card h2 {
  margin-top: 5px;
  color: #29463a;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
}

.library-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.reading-prose {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.reading-prose h1 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.42;
}

.reading-prose__category {
  color: var(--cinnabar-dark);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.reading-prose__summary {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.reading-prose__byline {
  display: flex;
  margin-top: 20px;
  align-items: center;
  gap: 10px;
}

.reading-prose__byline b {
  display: grid;
  width: 33px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--cinnabar-dark);
  border-radius: 3px;
  color: var(--cinnabar-dark);
  font-family: var(--serif);
  font-size: 16px;
}

.reading-prose__byline span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.prose-divider {
  height: 1px;
  margin: 28px 0;
  background: var(--line);
}

.reading-prose__body {
  color: #3e5047;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 2;
}

.reading-prose__body p + p {
  margin-top: 22px;
}

.reading-prose__body p:first-child::first-letter {
  float: left;
  margin: 7px 7px 0 0;
  color: var(--ink);
  font-size: 45px;
  font-weight: 700;
  line-height: 0.9;
}

.reading-quote {
  margin: 28px 0;
  padding: 20px;
  border-top: 1px solid #d6c9b8;
  border-bottom: 1px solid #d6c9b8;
  color: #6f5a49;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.related-product {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  margin-top: 22px;
  padding: 11px;
  align-items: center;
  gap: 13px;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.related-product img {
  width: 90px;
  height: 90px;
  border-radius: 13px;
  object-fit: cover;
}

.related-product__label {
  color: #8b7044;
  font-size: 9px;
}

.related-product h3 {
  margin-top: 3px;
  color: #2c463b;
  font-family: var(--serif);
  font-size: 18px;
}

.related-product p {
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 9px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: start;
  gap: 20px;
}

.identity-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.identity-panel::after {
  position: absolute;
  top: -110px;
  right: -80px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(41, 79, 67, 0.12);
  border-radius: 50%;
  content: "";
}

.identity-panel__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.identity-panel__seal {
  display: grid;
  width: 62px;
  height: 72px;
  place-items: center;
  border-radius: 5px;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 29px;
  transform: rotate(2deg);
}

.identity-panel h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
}

.identity-panel p {
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 10px;
}

.identity-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.identity-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--line);
}

.identity-stat:last-child {
  border-right: 0;
}

.identity-stat strong {
  color: var(--pine);
  font-family: var(--serif);
  font-size: 19px;
}

.identity-stat span {
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 9px;
}

.member-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--ink);
  color: var(--paper);
}

.member-card::after {
  position: absolute;
  right: -100px;
  bottom: -140px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(232, 202, 135, 0.18);
  border-radius: 50%;
  content: "";
}

.member-card__badge {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--amber-soft);
  border-radius: 4px;
  color: var(--amber-soft);
  font-family: var(--serif);
  font-size: 13px;
}

.member-card h2 {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin-top: 17px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
}

.member-card p {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: rgba(255, 253, 248, 0.58);
  font-size: 10px;
}

.settings-list {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.setting-row {
  display: flex;
  width: 100%;
  min-height: 60px;
  padding: 12px 18px;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: 1px solid #eeeae0;
  background: transparent;
  text-align: left;
}

button.setting-row {
  cursor: pointer;
}

button.setting-row:hover {
  background: #fbf8f1;
}

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

.setting-row__icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--mist);
  color: var(--pine);
}

.setting-row__icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.setting-row__copy {
  min-width: 0;
  flex: 1;
}

.setting-row__title {
  display: block;
  color: #30483e;
  font-size: 12px;
  font-weight: 600;
}

.setting-row__note {
  display: block;
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 9px;
}

.switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
}

.switch input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #cfd3ca;
  pointer-events: none;
  transition: background-color 160ms ease;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(35, 52, 43, 0.18);
  content: "";
  transition: transform 160ms ease;
}

.switch input:checked + span {
  background: var(--pine);
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

.legal-copy {
  max-width: 760px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: var(--paper);
}

.legal-copy h1 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 700;
}

.legal-copy h2 {
  margin-top: 26px;
  font-size: 17px;
}

.legal-copy p {
  margin-top: 8px;
  color: #5e6961;
  font-size: 13px;
  line-height: 1.85;
}

.app-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(21, 45, 36, 0.3);
}

.app-dialog::backdrop {
  background: rgba(18, 39, 32, 0.45);
  backdrop-filter: blur(5px);
}

.app-dialog form {
  padding: 20px;
}

.app-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-dialog__head h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
}

.app-dialog__copy {
  margin-top: 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.app-dialog__actions {
  display: flex;
  margin-top: 18px;
  justify-content: flex-end;
  gap: 8px;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: min(340px, calc(100% - 32px));
  padding: 11px 16px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 28px rgba(20, 44, 35, 0.24);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript {
  position: fixed;
  z-index: 300;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px;
  border-radius: 10px;
  background: #984b3b;
  color: #fff;
  text-align: center;
}

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

@keyframes check-pop {
  0% {
    transform: scale(0.82);
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

.is-done .check-row__box {
  animation: check-pop 180ms ease-out;
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 228px;
  }

  .sidebar {
    padding-right: 17px;
    padding-left: 17px;
  }

  .page {
    width: calc(100% - 44px);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .term-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .sidebar {
    display: none;
  }

  .mobile-header {
    position: sticky;
    z-index: 50;
    top: 0;
    display: flex;
    height: calc(64px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 18px 0;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(41, 79, 67, 0.08);
    background: rgba(243, 239, 229, 0.94);
    backdrop-filter: blur(16px);
  }

  .brand--mobile .brand__seal {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border-radius: 10px 10px 10px 4px;
    font-size: 23px;
  }

  .brand--mobile .brand__name {
    font-size: 21px;
  }

  .brand--mobile .brand__note {
    font-size: 8px;
  }

  .header-cart {
    position: relative;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--paper);
    color: var(--pine);
  }

  .header-cart .cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    margin: 0;
  }

  .app-main {
    margin-left: 0;
  }

  .page {
    width: min(100% - 32px, 720px);
    padding: 22px 0 40px;
  }

  .page-head {
    align-items: flex-start;
  }

  .page-head h1 {
    font-size: 35px;
  }

  .home-layout,
  .two-column,
  .product-detail-layout,
  .cart-layout,
  .library-layout,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .home-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .home-rail .section-head {
    grid-column: 1 / -1;
  }

  .cart-summary {
    position: static;
  }

  .mobile-nav {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: calc(70px + env(safe-area-inset-bottom));
    padding: 6px 8px env(safe-area-inset-bottom);
    align-items: flex-end;
    border-top: 1px solid rgba(41, 79, 67, 0.08);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 -8px 26px rgba(35, 52, 43, 0.08);
    backdrop-filter: blur(18px);
  }

  .mobile-nav__link {
    display: flex;
    min-width: 0;
    height: 58px;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 12px;
    color: #85897f;
    font-size: 9px;
  }

  .mobile-nav__link[aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
  }

  .mobile-nav__link--center {
    transform: translateY(-15px);
  }

  .mobile-nav__center-mark {
    display: grid;
    width: 49px;
    height: 49px;
    margin-bottom: 1px;
    place-items: center;
    border: 5px solid var(--paper);
    border-radius: 50%;
    background: var(--pine);
    color: var(--paper);
    box-shadow: 0 8px 20px rgba(23, 58, 48, 0.19);
    font-family: var(--serif);
    font-size: 20px;
  }

  .mobile-nav__link--center[aria-current="page"] .mobile-nav__center-mark {
    background: var(--cinnabar);
  }

  .toast {
    right: 16px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    left: 16px;
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .page {
    width: calc(100% - 28px);
  }

  .page-head {
    margin-bottom: 17px;
  }

  .page-head h1 {
    font-size: 30px;
  }

  .page-head__meta {
    font-size: 11px;
  }

  .home-layout {
    gap: 18px;
  }

  .home-main,
  .home-rail {
    gap: 18px;
  }

  .home-rail {
    display: flex;
  }

  .season-hero {
    min-height: 350px;
    padding: 23px 21px;
  }

  .season-hero__title {
    font-size: 69px;
  }

  .season-hero__sub {
    font-size: 13px;
  }

  .season-seal {
    width: 45px;
    height: 55px;
    flex-basis: 45px;
    font-size: 24px;
  }

  .hero-focus {
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: 23px;
  }

  .hero-focus .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-actions .button {
    flex: 1;
  }

  .section-head h2 {
    font-size: 18px;
  }

  .article-row {
    grid-template-columns: 33px minmax(0, 1fr);
    gap: 11px;
  }

  .article-row .arrow-button {
    display: none;
  }

  .article-row__title {
    font-size: 15px;
  }

  .shop-teaser {
    grid-template-columns: minmax(0, 1fr) 100px;
    padding: 18px;
  }

  .shop-teaser h2 {
    font-size: 21px;
  }

  .shop-teaser img {
    right: 8px;
    width: 118px;
    height: 118px;
  }

  .term-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .term-cell {
    min-height: 76px;
    padding: 11px;
  }

  .term-cell__name {
    font-size: 15px;
  }

  .term-detail {
    padding: 21px;
  }

  .term-detail h2 {
    font-size: 38px;
  }

  .term-detail__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .assessment-hero {
    grid-template-columns: 1fr;
    min-height: 330px;
    padding: 23px;
  }

  .assessment-hero h2 {
    font-size: 37px;
  }

  .assessment-hero__seal {
    position: absolute;
    top: 25px;
    right: 23px;
    width: 60px;
    height: 74px;
    font-size: 33px;
  }

  .metric-strip strong {
    font-size: 21px;
  }

  .metric-strip span {
    font-size: 8px;
  }

  .question-card {
    padding: 23px 19px;
  }

  .question-card h2 {
    font-size: 25px;
  }

  .question-card::after {
    font-size: 64px;
  }

  .risk-result-grid {
    grid-template-columns: 1fr;
  }

  .risk-hero__directions {
    flex-direction: column;
  }

  .shop-hero {
    grid-template-columns: 1fr;
    min-height: 430px;
    padding: 23px;
  }

  .shop-hero h2 {
    font-size: 37px;
  }

  .shop-hero__visual {
    min-height: 210px;
  }

  .shop-hero__visual img:first-child {
    top: 14px;
    left: 12px;
    width: 180px;
    height: 180px;
  }

  .shop-hero__visual img:last-child {
    right: 8px;
    bottom: 0;
    width: 116px;
    height: 116px;
  }

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

  .product-card__body {
    min-height: 155px;
    padding: 11px;
  }

  .product-card h2 {
    font-size: 16px;
  }

  .product-card__subtitle {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-card__meta {
    font-size: 8px;
  }

  .price strong {
    font-size: 18px;
  }

  .round-add {
    width: 38px;
    height: 38px;
  }

  .product-detail-layout {
    gap: 18px;
  }

  .product-detail-copy {
    padding-top: 0;
  }

  .purchase-row {
    flex-wrap: wrap;
  }

  .purchase-row .quantity {
    width: 100%;
    justify-content: space-between;
  }

  .cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 11px;
  }

  .cart-item img {
    width: 88px;
    height: 88px;
  }

  .reading-prose {
    padding: 23px 19px;
  }

  .reading-prose h1 {
    font-size: 32px;
  }

  .reading-prose__body {
    font-size: 16px;
  }

  .related-product {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .related-product img {
    width: 76px;
    height: 76px;
  }

  .related-product .arrow-button {
    display: none;
  }

  .identity-panel {
    padding: 20px;
  }

  .identity-panel h2 {
    font-size: 24px;
  }

  .legal-copy {
    padding: 23px 19px;
  }

  .legal-copy h1 {
    font-size: 32px;
  }
}

@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;
  }
}
