:root {
  --paper: #f3efe5;
  --paper-deep: #ebe4d7;
  --surface: #fffdf8;
  --surface-warm: #f8f4eb;
  --ink: #18211c;
  --ink-soft: #405148;
  --muted: #6d776f;
  --line: #d8d0c1;
  --line-dark: #bcb2a2;
  --forest: #142b22;
  --forest-2: #1e3b2f;
  --green: #25684d;
  --mint: #cce1d6;
  --mint-pale: #e6f0e9;
  --orange: #e7653d;
  --orange-dark: #b94525;
  --orange-pale: #f9ded3;
  --yellow: #e8bd55;
  --yellow-pale: #f9edc9;
  --blue: #45738c;
  --blue-pale: #dce9ef;
  --red: #a84038;
  --red-pale: #f3d9d5;
  --shadow: 0 16px 40px rgba(30, 41, 34, 0.08);
  --shadow-small: 0 6px 20px rgba(30, 41, 34, 0.06);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --sidebar-width: 246px;
  --font-sans: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif;
  --font-serif: "Georgia", "STSong", "Songti SC", serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 90% 8%, rgba(232, 189, 85, 0.12), transparent 28%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(231, 101, 61, 0.38);
  outline-offset: 3px;
}

::selection {
  background: var(--orange-pale);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

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

.boot-screen {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 42%, rgba(204, 225, 214, 0.48), transparent 30%),
    var(--paper);
  text-align: center;
}

.boot-brand {
  position: relative;
  width: 92px;
  height: 84px;
  margin-bottom: 24px;
}

.boot-brand span {
  position: absolute;
  left: 7px;
  width: 70px;
  height: 13px;
  border-radius: 2px;
  background: var(--orange);
  transform: rotate(-7deg);
}

.boot-brand span:nth-child(1) {
  top: 8px;
}

.boot-brand span:nth-child(2) {
  top: 33px;
  width: 56px;
  background: var(--yellow);
}

.boot-brand span:nth-child(3) {
  top: 58px;
  width: 42px;
  background: var(--green);
}

.boot-kicker {
  margin: 0 0 9px;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.boot-screen h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.boot-progress {
  width: 130px;
  height: 3px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--paper-deep);
}

.boot-progress span {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  animation: boot-slide 1.15s ease-in-out infinite alternate;
}

@keyframes boot-slide {
  from {
    transform: translateX(-20%);
  }
  to {
    transform: translateX(140%);
  }
}

.auth-root {
  min-height: 100vh;
}

.auth-screen {
  display: grid;
  grid-template-columns: minmax(330px, 0.92fr) minmax(420px, 1.08fr);
  min-height: 100vh;
}

.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(30px, 5vw, 66px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--forest);
  background-size: 30px 30px;
  color: #fff;
}

.auth-story::after {
  position: absolute;
  right: -150px;
  bottom: -120px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(255, 255, 255, 0.025),
    0 0 0 100px rgba(255, 255, 255, 0.015);
  content: "";
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
}

.auth-brand .brand-mark {
  flex: 0 0 auto;
}

.auth-brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.auth-brand-name span {
  color: var(--orange);
}

.auth-brand-sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.auth-story-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: auto 0;
  padding: 50px 0;
}

.auth-story-copy .eyebrow {
  color: var(--yellow);
}

.auth-story-copy h1 {
  margin: 17px 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.2vw, 72px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.auth-story-copy h1 em {
  color: var(--orange);
  font-style: italic;
}

.auth-story-copy > p:last-of-type {
  max-width: 510px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  line-height: 1.8;
}

.auth-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-benefit {
  padding: 14px;
  background: rgba(20, 43, 34, 0.86);
}

.auth-benefit span {
  display: block;
  color: var(--orange);
  font-family: var(--font-serif);
  font-size: 11px;
  font-style: italic;
}

.auth-benefit strong {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
}

.auth-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100vh;
  padding: clamp(28px, 6vw, 72px);
  background:
    radial-gradient(circle at 82% 14%, rgba(232, 189, 85, 0.14), transparent 28%),
    var(--paper);
}

.auth-card {
  width: min(100%, 470px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.auth-card-kicker {
  margin: 0 0 7px;
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.auth-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(31px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.auth-card-intro {
  margin: 9px 0 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 21px;
  padding: 4px;
  border-radius: 10px;
  background: var(--paper-deep);
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(30, 41, 34, 0.08);
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-warm);
  color: var(--ink);
  font-size: 13px;
}

.auth-field input:hover {
  border-color: var(--line-dark);
}

.auth-field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.auth-error {
  min-height: 17px;
  margin: 0;
  color: var(--red);
  font-size: 10px;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
}

.auth-privacy {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.auth-server-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 9px;
}

.auth-server-note span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.auth-retry {
  margin-top: 16px;
}

.no-script {
  position: fixed;
  z-index: 300;
  inset: 20px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--red-pale);
  color: var(--red);
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  height: 100vh;
  padding: 28px 20px 22px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--forest);
  background-size: 28px 28px;
  color: #f4f0e7;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 8px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  transform: rotate(-8deg);
}

.brand-mark span {
  position: absolute;
  left: 4px;
  width: 30px;
  height: 7px;
  border-radius: 1px;
  background: var(--orange);
}

.brand-mark span:nth-child(1) {
  top: 4px;
}

.brand-mark span:nth-child(2) {
  top: 15px;
  width: 24px;
  background: var(--yellow);
}

.brand-mark span:nth-child(3) {
  top: 26px;
  width: 18px;
  background: var(--mint);
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-name span {
  color: var(--orange);
}

.brand-sub {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.side-nav {
  display: grid;
  gap: 7px;
  margin-top: 30px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  text-align: left;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.nav-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.nav-item.is-active {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.nav-index {
  color: var(--orange);
  font-family: var(--font-serif);
  font-size: 11px;
  font-style: italic;
}

.nav-item.is-active .nav-index {
  color: var(--yellow);
}

.sidebar-progress {
  margin-top: auto;
  padding: 26px 8px 18px;
}

.side-progress-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.side-progress-label strong {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
}

.side-progress-track {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.side-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  transition: width 350ms ease;
}

.side-progress-name {
  margin-top: 11px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-note {
  display: flex;
  gap: 9px;
  padding: 14px 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  line-height: 1.7;
}

.sidebar-note p {
  margin: 0;
}

.pulse-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(204, 225, 214, 0.09);
}

.workspace {
  position: relative;
  min-width: 0;
}

.workspace::before {
  position: fixed;
  z-index: -1;
  top: 18%;
  right: -12%;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(20, 43, 34, 0.06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid rgba(188, 178, 162, 0.55);
  background: rgba(243, 239, 229, 0.9);
  backdrop-filter: blur(14px);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-title strong {
  font-size: 15px;
  font-weight: 700;
}

.breadcrumb-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 7px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 253, 248, 0.76);
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(37, 104, 77, 0.1);
}

.sync-dot[data-state="saving"] {
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(232, 189, 85, 0.16);
  animation: sync-pulse 1s ease-in-out infinite alternate;
}

.sync-dot[data-state="error"] {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(168, 64, 56, 0.12);
}

@keyframes sync-pulse {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

.sync-label {
  color: var(--ink-soft);
}

.account-email {
  max-width: 150px;
  overflow: hidden;
  color: var(--ink);
  font-weight: 700;
  text-overflow: ellipsis;
}

.account-logout {
  min-height: 24px;
  padding: 3px 7px;
  border: 0;
  border-radius: 99px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}

.account-logout:hover {
  background: var(--orange-pale);
  color: var(--orange-dark);
}

.mission-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.mission-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-dark);
}

.mission-chip.is-live .mission-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(37, 104, 77, 0.12);
}

.mission-chip.is-done .mission-dot {
  background: var(--yellow);
}

.icon-button {
  position: relative;
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.icon-button:hover {
  transform: rotate(-20deg);
  border-color: var(--ink-soft);
  color: var(--ink);
}

.button-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.icon-button:hover .button-tooltip,
.icon-button:focus-visible .button-tooltip {
  opacity: 1;
  transform: translateY(0);
}

main {
  width: 100%;
  max-width: 1440px;
  min-height: calc(100vh - 136px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 54px) clamp(24px, 4vw, 56px) 60px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: view-in 300ms ease both;
}

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

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 56px) 28px;
  color: var(--muted);
  font-size: 10px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
  min-height: 390px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.home-hero::after {
  position: absolute;
  z-index: -1;
  right: 2%;
  bottom: 40px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(20, 43, 34, 0.08);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  max-width: 800px;
}

.hero-title {
  max-width: 820px;
  margin: 16px 0 18px;
  font-family: var(--font-serif);
  font-size: clamp(46px, 5.4vw, 74px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-title em {
  position: relative;
  color: var(--orange);
  font-style: italic;
}

.hero-title em::after {
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 8px;
  height: 7px;
  border-top: 2px solid var(--yellow);
  border-radius: 50%;
  content: "";
  transform: rotate(-2deg);
}

.hero-intro {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(185, 69, 37, 0.2);
}

.btn-primary:hover {
  background: var(--orange-dark);
  box-shadow: 0 10px 24px rgba(185, 69, 37, 0.24);
}

.btn-dark {
  background: var(--forest);
  color: #fff;
}

.btn-dark:hover {
  background: var(--forest-2);
}

.btn-secondary {
  border-color: var(--line-dark);
  background: rgba(255, 253, 248, 0.55);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
  background: var(--surface);
}

.btn-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--ink-soft);
}

.btn-quiet:hover {
  background: rgba(20, 43, 34, 0.06);
  color: var(--ink);
}

.btn-small {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 12px;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.hero-manifest {
  position: relative;
  min-height: 280px;
  padding: 24px;
  overflow: hidden;
  border-radius: 4px 36px 4px 36px;
  background: var(--forest);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero-manifest::before {
  position: absolute;
  top: -55px;
  right: -45px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, 0.025),
    0 0 0 56px rgba(255, 255, 255, 0.018);
  content: "";
}

.manifest-label {
  margin: 0 0 30px;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.manifest-title {
  max-width: 230px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.22;
}

.manifest-list {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.manifest-list li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.manifest-list span:first-child {
  color: var(--orange);
  font-family: var(--font-serif);
  font-style: italic;
}

.manifest-list span:last-child {
  color: var(--mint);
  font-size: 10px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 44px 0 20px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-heading p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.scenario-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 375px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.74);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.scenario-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-dark);
  box-shadow: var(--shadow-small);
}

.scenario-card.is-current {
  border-color: var(--forest);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.scenario-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 99px;
  background: var(--mint-pale);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.difficulty-badge.medium {
  background: var(--yellow-pale);
  color: #765411;
}

.difficulty-badge.hard {
  background: var(--orange-pale);
  color: var(--orange-dark);
}

.scenario-index {
  color: var(--line-dark);
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
}

.product-sketch {
  display: grid;
  width: 100%;
  height: 112px;
  margin: 16px 0 14px;
  place-items: center;
  border-radius: 3px 24px 3px 24px;
  background: var(--surface-warm);
}

.product-sketch svg {
  width: 92px;
  height: 84px;
  overflow: visible;
}

.scenario-card:nth-child(2) .product-sketch {
  background: var(--yellow-pale);
}

.scenario-card:nth-child(3) .product-sketch {
  background: var(--blue-pale);
}

.scenario-market {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.scenario-card h3 {
  margin: 4px 0 7px;
  font-size: 21px;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.scenario-desc {
  min-height: 64px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.scenario-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 18px;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 10px;
}

.scenario-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.order-value {
  color: var(--muted);
  font-size: 10px;
}

.order-value strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
}

.home-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 18px;
  margin-top: 34px;
}

.learning-map,
.coach-note {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.62);
}

.learning-map {
  padding: 24px;
  border-radius: var(--radius-md);
}

.panel-kicker {
  margin: 0 0 5px;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.panel-title {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.map-steps {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  margin-top: 26px;
}

.map-step {
  position: relative;
  padding-top: 23px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.map-step::before {
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line-dark);
  content: "";
}

.map-step::after {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--line-dark);
  content: "";
  transform: translateX(-50%);
}

.map-step.is-complete::before,
.map-step.is-complete::after {
  background: var(--green);
}

.map-step.is-current {
  color: var(--ink);
  font-weight: 700;
}

.map-step.is-current::after {
  width: 11px;
  height: 11px;
  top: 2px;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-pale);
}

.coach-note {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border-radius: 3px 24px 3px 24px;
  background: var(--yellow-pale);
}

.coach-note::after {
  position: absolute;
  top: -22px;
  right: -10px;
  color: rgba(118, 84, 17, 0.11);
  font-family: var(--font-serif);
  font-size: 110px;
  content: "“";
  pointer-events: none;
}

.coach-note blockquote {
  position: relative;
  z-index: 1;
  margin: 18px 0;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.45;
}

.coach-note p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #6d531e;
  font-size: 11px;
}

.empty-state {
  display: grid;
  min-height: 420px;
  padding: 36px;
  place-items: center;
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.45);
  text-align: center;
}

.empty-state-inner {
  max-width: 480px;
}

.empty-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint-pale);
  color: var(--green);
  font-family: var(--font-serif);
  font-size: 25px;
  font-style: italic;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

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

.simulation-header {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 25px;
}

.simulation-header h1 {
  margin: 8px 0 7px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 51px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.simulation-header p {
  max-width: 750px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.deal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
}

.deal-summary div {
  min-width: 0;
  padding: 12px 11px;
  background: rgba(255, 253, 248, 0.9);
}

.deal-summary span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.deal-summary strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-rail {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.stage-rail-item {
  position: relative;
  min-width: 0;
}

.stage-rail-item::before {
  position: absolute;
  top: 13px;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--line-dark);
  content: "";
}

.stage-rail-item:first-child::before {
  left: 13px;
}

.stage-rail-item:last-child::before {
  right: calc(100% - 13px);
}

.stage-rail-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  cursor: default;
}

.stage-rail-button:not(:disabled) {
  cursor: pointer;
}

.stage-rail-button:not(:disabled):hover .stage-dot {
  border-color: var(--ink);
  transform: scale(1.08);
}

.stage-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 27px;
  height: 27px;
  margin-bottom: 7px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 10px;
  font-style: italic;
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.stage-rail-item.is-complete .stage-rail-button::after {
  background: var(--green);
}

.stage-rail-item.is-complete .stage-dot {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.stage-rail-item.is-current .stage-dot {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 0 4px var(--orange-pale);
}

.stage-rail-item.is-current .stage-rail-button {
  color: var(--ink);
  font-weight: 700;
}

.stage-rail-item.is-locked {
  opacity: 0.48;
}

.stage-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simulation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 20px;
  align-items: start;
}

.stage-main {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.stage-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: clamp(23px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}

.stage-kicker {
  margin: 0 0 6px;
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.stage-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.stage-heading p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.stage-number {
  color: var(--line-dark);
  font-family: var(--font-serif);
  font-size: 57px;
  font-style: italic;
  line-height: 0.82;
}

.stage-body {
  padding: clamp(22px, 3vw, 34px);
}

.message-card {
  position: relative;
  padding: 21px 23px 21px 25px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background:
    linear-gradient(135deg, rgba(204, 225, 214, 0.25), transparent 65%),
    var(--surface-warm);
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 10px;
}

.message-from {
  color: var(--ink);
  font-weight: 700;
}

.message-subject {
  font-size: 15px;
  font-weight: 700;
}

.message-text {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.fact-item {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(188, 178, 162, 0.65);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.64);
}

.fact-item span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.fact-item strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 25px 0 12px;
}

.decision-head h3 {
  margin: 0;
  font-size: 14px;
}

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

.option-list {
  display: grid;
  gap: 9px;
}

.option-card {
  position: relative;
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr);
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.option-card:hover {
  border-color: var(--line-dark);
  background: #fff;
  transform: translateX(2px);
}

.option-card:has(input:checked) {
  border-color: var(--forest);
  background: var(--mint-pale);
}

.option-card:has(input:focus-visible) {
  outline: 3px solid rgba(231, 101, 61, 0.38);
  outline-offset: 2px;
}

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

.option-letter {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 12px;
  font-style: italic;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.option-card:has(input:checked) .option-letter {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.option-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.option-detail {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

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

.form-error {
  margin: 10px 0 0;
  color: var(--red);
  font-size: 11px;
}

.quote-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.65fr);
  gap: 14px;
  margin-top: 16px;
}

.input-panel,
.cost-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.input-panel label,
.field-label {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.currency-input {
  display: flex;
  align-items: center;
  margin-top: 8px;
  border-bottom: 2px solid var(--ink);
}

.currency-input span {
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 22px;
}

.currency-input input {
  width: 100%;
  min-width: 0;
  padding: 8px 5px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(31px, 5vw, 46px);
  line-height: 1;
  outline: 0;
}

.currency-input input::-webkit-outer-spin-button,
.currency-input input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.currency-input input[type="number"] {
  appearance: textfield;
}

.currency-input input::placeholder {
  color: #b6aea1;
}

.input-unit {
  color: var(--muted);
  font-size: 10px;
}

.live-margin {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
}

.live-margin strong {
  color: var(--green);
}

.cost-panel {
  background: var(--surface-warm);
}

.cost-panel h4 {
  margin: 0 0 9px;
  font-size: 11px;
}

.cost-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(188, 178, 162, 0.45);
  color: var(--muted);
  font-size: 10px;
}

.cost-line strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.cost-line.total {
  margin-top: 5px;
  border-bottom: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.cost-line.total strong {
  color: var(--orange-dark);
  font-family: var(--font-serif);
  font-size: 16px;
}

.stage-sidebar {
  display: grid;
  gap: 13px;
}

.side-panel {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.75);
}

.side-panel.dark {
  background: var(--forest);
  color: #fff;
}

.side-panel.dark .panel-title {
  color: #fff;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-topline .panel-title {
  font-size: 15px;
}

.stage-chip {
  padding: 3px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--mint);
  font-size: 9px;
}

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

.kpi-item {
  display: grid;
  gap: 5px;
}

.kpi-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
}

.kpi-label strong {
  color: #fff;
  font-weight: 600;
}

.kpi-track {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.kpi-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
  transition: width 350ms ease;
}

.kpi-item:nth-child(2) .kpi-fill {
  background: var(--yellow);
}

.kpi-item:nth-child(3) .kpi-fill {
  background: #9fc1d2;
}

.kpi-item:nth-child(4) .kpi-fill {
  background: var(--orange);
}

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

.tool-note strong {
  color: var(--ink);
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.keyword {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 9px;
}

.result-panel {
  position: relative;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(204, 225, 214, 0.45), transparent 55%),
    var(--surface);
}

.result-panel.is-warning {
  background:
    linear-gradient(135deg, rgba(249, 222, 211, 0.65), transparent 55%),
    var(--surface);
}

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

.result-badge {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 99px;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.result-panel.is-warning .result-badge {
  background: var(--orange-dark);
}

.result-score {
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
}

.result-title {
  margin: 16px 0 7px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.result-copy {
  max-width: 800px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.85;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.lesson-box {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.66);
}

.lesson-box span {
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.lesson-box p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

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

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

.quote-page-header,
.knowledge-header,
.review-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.quote-page-header > div:first-child,
.knowledge-header > div:first-child,
.review-header > div:first-child {
  max-width: 760px;
}

.page-title {
  margin: 9px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.page-intro {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

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

.quote-form,
.quote-output {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.quote-form h2,
.quote-output h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.form-intro {
  margin: 7px 0 22px;
  color: var(--muted);
  font-size: 11px;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-warm);
  color: var(--ink);
  font-size: 12px;
}

.field input:hover,
.field select:hover {
  border-color: var(--line-dark);
}

.input-suffix {
  position: relative;
}

.input-suffix input {
  padding-right: 43px;
}

.input-suffix span {
  position: absolute;
  top: 50%;
  right: 10px;
  color: var(--muted);
  font-size: 9px;
  transform: translateY(-50%);
  pointer-events: none;
}

.quote-method {
  display: flex;
  gap: 6px;
  margin-top: 17px;
}

.method-option {
  position: relative;
  flex: 1;
}

.method-option input {
  position: absolute;
  opacity: 0;
}

.method-option span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-warm);
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.method-option input:checked + span {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

.method-option input:focus-visible + span {
  outline: 3px solid rgba(231, 101, 61, 0.38);
  outline-offset: 2px;
}

.calculator-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.quote-hero-result {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border-radius: 3px 24px 3px 24px;
  background: var(--forest);
  color: #fff;
}

.quote-hero-result::after {
  position: absolute;
  top: -70px;
  right: -40px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.025);
  content: "";
}

.quote-hero-result span {
  color: var(--mint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.quote-hero-result strong {
  display: block;
  margin: 4px 0 2px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 62px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.quote-hero-result p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

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

.quote-metric {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-warm);
}

.quote-metric span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.quote-metric strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
}

.cost-stack {
  display: flex;
  height: 15px;
  margin: 24px 0 9px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--paper-deep);
}

.cost-stack span {
  display: block;
  height: 100%;
}

.cost-stack .stack-product {
  background: var(--green);
}

.cost-stack .stack-pack {
  background: #6e947e;
}

.cost-stack .stack-domestic {
  background: var(--yellow);
}

.cost-stack .stack-freight {
  background: var(--blue);
}

.cost-stack .stack-insurance {
  background: #90adbd;
}

.cost-stack .stack-margin {
  background: var(--orange);
}

.stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 13px;
  margin-bottom: 21px;
}

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

.stack-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-dark);
}

.stack-legend span:nth-child(1) i {
  background: var(--green);
}

.stack-legend span:nth-child(2) i {
  background: #6e947e;
}

.stack-legend span:nth-child(3) i {
  background: var(--yellow);
}

.stack-legend span:nth-child(4) i {
  background: var(--blue);
}

.stack-legend span:nth-child(5) i {
  background: #90adbd;
}

.stack-legend span:nth-child(6) i {
  background: var(--orange);
}

.quote-breakdown {
  border-top: 1px solid var(--line);
}

.breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
}

.breakdown-row span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.breakdown-row.is-total {
  color: var(--ink);
  font-weight: 700;
}

.quote-coach {
  margin-top: 18px;
  padding: 14px;
  border-left: 2px solid var(--orange);
  background: var(--orange-pale);
}

.quote-coach strong {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
}

.quote-coach p {
  margin: 0;
  color: #7a4636;
  font-size: 10px;
  line-height: 1.7;
}

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

.glossary-mini {
  padding: 14px;
  border-top: 2px solid var(--forest);
  background: rgba(255, 253, 248, 0.55);
}

.glossary-mini strong {
  font-size: 11px;
}

.glossary-mini p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

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

.workflow-page-header > div:first-child {
  max-width: 820px;
}

.workflow-progress-card {
  flex: 0 0 250px;
  padding: 20px;
  border-radius: 3px 24px 3px 24px;
  background: var(--forest);
  color: #fff;
}

.workflow-progress-card > span {
  color: var(--mint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.workflow-progress-card > strong {
  display: block;
  margin: 5px 0 9px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.workflow-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}

.workflow-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  transition: width 250ms ease;
}

.workflow-progress-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  line-height: 1.65;
}

.workflow-role-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.workflow-role-lane {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  background: rgba(255, 253, 248, 0.76);
}

.role-lane-label {
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.role-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.role-chain b {
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--mint-pale);
  color: var(--green);
  font-weight: 600;
}

.role-chain i {
  color: var(--line-dark);
  font-style: normal;
}

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

.workflow-phase-nav {
  position: sticky;
  top: 92px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.78);
}

.workflow-phase-nav-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.workflow-phase-nav-head span {
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.workflow-phase-nav-head strong {
  font-size: 11px;
}

.workflow-phase-buttons {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 6px;
}

.workflow-phase-button {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 7px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.workflow-phase-button:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.workflow-phase-button.is-active {
  background: var(--forest);
  color: #fff;
}

.workflow-phase-number {
  color: var(--orange);
  font-family: var(--font-serif);
  font-size: 10px;
  font-style: italic;
}

.workflow-phase-button.is-active .workflow-phase-number {
  color: var(--yellow);
}

.workflow-phase-name {
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-phase-status {
  color: var(--line-dark);
  font-size: 8px;
}

.workflow-phase-button.is-active .workflow-phase-status {
  color: rgba(255, 255, 255, 0.55);
}

.workflow-phase-button.is-partial .workflow-phase-status {
  color: var(--yellow);
}

.workflow-phase-button.is-complete .workflow-phase-status {
  color: var(--mint);
}

.workflow-detail {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.workflow-detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 20%, rgba(204, 225, 214, 0.36), transparent 28%),
    var(--surface);
}

.workflow-kicker {
  margin: 0 0 7px;
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.workflow-detail-header h2 {
  max-width: 850px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(29px, 3.8vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.13;
}

.workflow-detail-header p:last-child {
  max-width: 850px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.workflow-detail-number {
  color: var(--line-dark);
  font-family: var(--font-serif);
  font-size: 60px;
  font-style: italic;
  line-height: 0.85;
}

.workflow-context-grid {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.4fr;
  gap: 1px;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.workflow-context-block {
  min-width: 0;
  padding: 15px 18px;
  background: var(--surface-warm);
}

.workflow-context-block > span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.workflow-context-block > strong {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.5;
}

.workflow-actor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.workflow-actor-pills b {
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(37, 104, 77, 0.08);
  color: var(--green);
  font-size: 8px;
  font-weight: 600;
}

.workflow-split-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 20px clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}

.workflow-split-context h3,
.workflow-section-heading h3,
.workflow-reference-card h3 {
  margin: 0;
  font-size: 12px;
}

.workflow-bullet-list {
  display: grid;
  gap: 5px;
  margin: 9px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  list-style: none;
}

.workflow-bullet-list li {
  position: relative;
  padding-left: 13px;
}

.workflow-bullet-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-dark);
  content: "";
}

.workflow-output-list li::before {
  background: var(--green);
}

.workflow-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 3vw, 32px) 12px;
}

.workflow-section-heading > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.workflow-task-list {
  display: grid;
  gap: 8px;
  padding: 0 clamp(20px, 3vw, 32px);
}

.workflow-task {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.workflow-task:hover {
  border-color: var(--line-dark);
}

.workflow-task.is-checked {
  border-color: rgba(37, 104, 77, 0.28);
  background: var(--mint-pale);
}

.workflow-task input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.workflow-task-check {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: transparent;
  font-size: 11px;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.workflow-task.is-checked .workflow-task-check {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.workflow-task-content strong {
  display: block;
  font-size: 11px;
}

.workflow-task-content > span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.75;
}

.workflow-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 22px clamp(20px, 3vw, 32px) 0;
}

.workflow-reference-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
}

.workflow-warning-card {
  background: var(--orange-pale);
}

.workflow-reference-card .panel-kicker {
  margin-bottom: 4px;
}

.workflow-doc-list {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.workflow-doc-list > div {
  padding: 8px 0;
  border-top: 1px solid rgba(188, 178, 162, 0.48);
}

.workflow-doc-list strong {
  display: block;
  font-size: 10px;
}

.workflow-doc-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.workflow-warning-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  color: #713e30;
  font-size: 9px;
  line-height: 1.65;
  list-style: none;
}

.workflow-warning-list li {
  position: relative;
  padding-left: 13px;
}

.workflow-warning-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--orange-dark);
  font-weight: 800;
  content: "!";
}

.workflow-cost-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 22px clamp(20px, 3vw, 32px) 0;
  padding: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-cost-row > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.workflow-cost-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.workflow-cost-row b {
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--yellow-pale);
  color: #6e541e;
  font-size: 8px;
  font-weight: 600;
}

.workflow-example {
  margin: 18px clamp(20px, 3vw, 32px) 0;
  padding: 16px;
  border-left: 3px solid var(--forest);
  border-radius: 0 9px 9px 0;
  background: var(--mint-pale);
}

.workflow-example span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.workflow-example p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.75;
}

.workflow-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  padding: 18px clamp(20px, 3vw, 32px) 24px;
  border-top: 1px solid var(--line);
}

.workflow-detail-actions .btn:last-child {
  margin-left: auto;
}

.map-sop-link {
  margin-top: 20px;
  padding-left: 0;
}

.knowledge-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 300px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: var(--surface);
}

.knowledge-search span {
  color: var(--muted);
}

.knowledge-search input {
  width: 100%;
  min-height: 43px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  outline: 0;
}

.knowledge-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.filter-button:hover {
  border-color: var(--line-dark);
  color: var(--ink);
}

.filter-button.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

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

.knowledge-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.72);
}

.knowledge-item[open] {
  border-color: var(--line-dark);
  background: var(--surface);
}

.knowledge-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 17px 18px;
  cursor: pointer;
  list-style: none;
}

.knowledge-item summary::-webkit-details-marker {
  display: none;
}

.term-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.term-en {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: 10px;
  font-style: italic;
}

.summary-icon {
  color: var(--orange);
  font-family: var(--font-serif);
  font-size: 18px;
  transition: transform 180ms ease;
}

.knowledge-item[open] .summary-icon {
  transform: rotate(45deg);
}

.knowledge-content {
  padding: 0 18px 18px;
}

.knowledge-content p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.8;
}

.knowledge-tip {
  margin-top: 11px;
  padding: 10px 11px;
  border-radius: 6px;
  background: var(--mint-pale);
  color: var(--green);
  font-size: 10px;
  line-height: 1.7;
}

.knowledge-empty {
  grid-column: 1 / -1;
  padding: 50px 20px;
  border: 1px dashed var(--line-dark);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.review-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-score-card {
  display: grid;
  grid-template-columns: 215px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.score-hero {
  display: grid;
  min-height: 250px;
  padding: 24px;
  place-items: center;
  background: var(--forest);
  color: #fff;
  text-align: center;
}

.score-ring {
  display: grid;
  width: 145px;
  height: 145px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--orange) calc(var(--score) * 1%), rgba(255, 255, 255, 0.12) 0);
}

.score-ring-inner {
  display: grid;
  width: 119px;
  height: 119px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
}

.score-ring strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 45px;
  font-weight: 400;
  line-height: 1;
}

.score-ring span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.review-main {
  padding: clamp(24px, 4vw, 38px);
}

.review-main h2 {
  margin: 5px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.review-main > p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.score-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 25px;
}

.score-metric {
  min-width: 0;
}

.score-metric-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.score-metric-label strong {
  color: var(--ink);
}

.score-track {
  height: 5px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--paper-deep);
}

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

.score-metric:nth-child(2) .score-track span {
  background: var(--orange);
}

.score-metric:nth-child(3) .score-track span {
  background: var(--blue);
}

.score-metric:nth-child(4) .score-track span {
  background: var(--yellow);
}

.review-section {
  margin-top: 32px;
}

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

.review-section-head h3 {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.review-section-head p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.decision-timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 38px minmax(150px, 0.6fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-number {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint-pale);
  color: var(--green);
  font-family: var(--font-serif);
  font-size: 10px;
  font-style: italic;
}

.timeline-stage span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.timeline-stage strong {
  display: block;
  margin-top: 1px;
  font-size: 11px;
}

.timeline-choice {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.timeline-score {
  min-width: 55px;
  color: var(--green);
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  text-align: right;
}

.timeline-score.is-low {
  color: var(--orange-dark);
}

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

.insight-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.insight-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

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

.review-incomplete {
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--yellow-pale);
}

.review-incomplete strong {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}

.review-incomplete p {
  margin: 6px 0 15px;
  color: #6d531e;
  font-size: 11px;
}

.toast {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 11px 15px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

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

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

@media (max-width: 1160px) {
  :root {
    --sidebar-width: 220px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  }

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

  .scenario-card:last-child {
    grid-column: 1 / -1;
    min-height: 300px;
  }

  .scenario-card:last-child .product-sketch {
    width: 130px;
    float: right;
  }

  .simulation-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .quote-layout {
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  }

  .workflow-layout {
    grid-template-columns: 205px minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  :root {
    --sidebar-width: 100%;
  }

  .auth-screen {
    grid-template-columns: 1fr;
  }

  .auth-story {
    min-height: auto;
    padding: 28px 24px;
  }

  .auth-story-copy {
    margin: 44px 0;
    padding: 0;
  }

  .auth-panel {
    min-height: auto;
    padding: 36px 24px 50px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    z-index: 30;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    height: auto;
    padding: 14px 20px 12px;
    overflow: visible;
    background: var(--forest);
  }

  .brand {
    gap: 9px;
    padding: 0 18px 0 0;
    border: 0;
  }

  .brand-mark {
    width: 27px;
    height: 31px;
  }

  .brand-mark span {
    left: 2px;
    width: 23px;
    height: 5px;
  }

  .brand-mark span:nth-child(1) {
    top: 5px;
  }

  .brand-mark span:nth-child(2) {
    top: 14px;
    width: 18px;
  }

  .brand-mark span:nth-child(3) {
    top: 23px;
    width: 13px;
  }

  .brand-sub {
    display: none;
  }

  .side-nav {
    display: flex;
    gap: 3px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .side-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    padding: 8px 11px;
    white-space: nowrap;
  }

  .nav-index {
    display: none;
  }

  .sidebar-progress,
  .sidebar-note {
    display: none;
  }

  .topbar {
    top: 0;
    min-height: 60px;
    padding: 10px 22px;
  }

  main {
    min-height: auto;
    padding: 28px 22px 50px;
  }

  .app-footer {
    padding: 0 22px 22px;
  }

  .home-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding-bottom: 28px;
  }

  .hero-manifest {
    min-height: 240px;
  }

  .home-lower-grid {
    grid-template-columns: 1fr;
  }

  .quote-layout {
    grid-template-columns: 1fr;
  }

  .workflow-page-header {
    display: block;
  }

  .workflow-progress-card {
    width: 100%;
    margin-top: 18px;
  }

  .workflow-role-lanes {
    grid-template-columns: 1fr;
  }

  .workflow-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-phase-nav {
    position: relative;
    top: auto;
    overflow: visible;
  }

  .workflow-phase-nav-head {
    display: none;
  }

  .workflow-phase-buttons {
    display: flex;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    padding: 7px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .workflow-phase-button {
    flex: 0 0 118px;
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 42px;
  }

  .workflow-phase-status {
    display: none;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .auth-story {
    padding: 22px 18px;
  }

  .auth-story-copy h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  .auth-benefits {
    grid-template-columns: 1fr;
  }

  .auth-benefit {
    padding: 11px 13px;
  }

  .auth-benefit strong {
    margin-top: 2px;
  }

  .auth-panel {
    padding: 28px 15px 42px;
  }

  .auth-card {
    padding: 22px 18px;
  }

  .account-email,
  .sync-label {
    display: none;
  }

  .account-chip {
    gap: 6px;
    padding: 5px 6px 5px 8px;
  }

  .sidebar {
    display: block;
    padding: 12px 14px 10px;
  }

  .brand {
    padding-bottom: 9px;
  }

  .side-nav {
    padding-top: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-item {
    padding: 7px 10px;
    font-size: 12px;
  }

  .topbar {
    padding: 9px 15px;
  }

  .breadcrumb-label {
    display: none;
  }

  .mission-chip {
    max-width: 190px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  main {
    padding: 24px 15px 42px;
  }

  .app-footer {
    display: block;
    padding: 0 15px 18px;
    line-height: 1.8;
  }

  .app-footer span:last-child {
    display: block;
    margin-top: 3px;
  }

  .hero-title {
    margin-top: 13px;
    font-size: clamp(43px, 14vw, 66px);
  }

  .hero-intro {
    font-size: 14px;
  }

  .hero-actions .btn {
    flex: 1 1 150px;
  }

  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .scenario-card,
  .scenario-card:last-child {
    grid-column: auto;
    min-height: 340px;
  }

  .scenario-card:last-child .product-sketch {
    width: 100%;
    float: none;
  }

  .section-heading,
  .quote-page-header,
  .knowledge-header,
  .review-header {
    display: block;
  }

  .section-heading p,
  .knowledge-header .knowledge-search {
    margin-top: 10px;
  }

  .learning-map {
    padding: 18px 14px;
  }

  .map-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 17px;
  }

  .map-step:nth-child(4)::before {
    right: 0;
  }

  .simulation-header {
    grid-template-columns: 1fr;
  }

  .stage-rail {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }

  .stage-rail-item {
    flex: 0 0 72px;
  }

  .stage-rail-item::before {
    right: 0;
    left: 0;
  }

  .stage-rail-item:first-child::before {
    left: 50%;
  }

  .stage-rail-item:last-child::before {
    right: 50%;
  }

  .stage-heading {
    grid-template-columns: 1fr;
  }

  .stage-number {
    display: none;
  }

  .stage-body {
    padding: 18px;
  }

  .fact-strip,
  .quote-decision,
  .stage-sidebar,
  .result-grid,
  .review-insight {
    grid-template-columns: 1fr;
  }

  .stage-actions,
  .result-actions,
  .review-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .stage-actions .btn,
  .result-actions .btn {
    width: 100%;
  }

  .stage-sidebar {
    display: grid;
  }

  .form-grid,
  .quote-metrics,
  .score-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-glossary {
    grid-template-columns: 1fr;
  }

  .workflow-detail-number {
    display: none;
  }

  .workflow-detail-header {
    grid-template-columns: 1fr;
  }

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

  .workflow-actor-block {
    grid-column: 1 / -1;
  }

  .workflow-split-context,
  .workflow-reference-grid {
    grid-template-columns: 1fr;
  }

  .workflow-section-heading,
  .workflow-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .workflow-detail-actions .btn {
    width: 100%;
  }

  .workflow-detail-actions .btn:last-child {
    margin-left: 0;
  }

  .knowledge-search {
    min-width: 0;
    width: 100%;
    margin-top: 14px;
  }

  .review-score-card {
    grid-template-columns: 1fr;
  }

  .score-hero {
    min-height: 210px;
  }

  .timeline-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .timeline-choice {
    grid-column: 2 / -1;
    margin-top: -5px;
  }

  .review-toolbar {
    margin-top: 16px;
  }
}

@media (max-width: 430px) {
  .mission-chip {
    max-width: 112px;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-manifest {
    padding: 20px;
  }

  .scenario-card {
    padding: 18px;
  }

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

  .deal-summary div:last-child {
    grid-column: 1 / -1;
  }

  .form-grid,
  .quote-metrics,
  .score-metrics {
    grid-template-columns: 1fr;
  }

  .workflow-context-grid {
    grid-template-columns: 1fr;
  }

  .workflow-actor-block {
    grid-column: auto;
  }

  .workflow-cost-row {
    grid-template-columns: 1fr;
  }

  .result-title {
    font-size: 24px;
  }

  .timeline-item {
    grid-template-columns: 29px minmax(0, 1fr) auto;
  }
}

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

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .sidebar,
  .topbar,
  .app-footer,
  .review-toolbar,
  .toast {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  main {
    max-width: none;
    padding: 0;
  }

  .view {
    display: none !important;
  }

  #view-review {
    display: block !important;
  }

  .review-score-card,
  .insight-card,
  .review-incomplete {
    box-shadow: none;
  }

  .score-hero {
    background: #18211c;
    print-color-adjust: exact;
  }
}
