:root {
  --paper: #f4f1eb;
  --paper-deep: #ebe5dc;
  --surface: #fffdf9;
  --surface-soft: #f8f5ef;
  --ink: #292722;
  --ink-soft: #6f6b62;
  --ink-faint: #9c968b;
  --line: #ded8ce;
  --line-strong: #cfc7ba;
  --accent: #a45f46;
  --accent-deep: #7c4230;
  --accent-soft: #f0dfd7;
  --green: #5f8979;
  --green-soft: #dfeae5;
  --gold: #b28a47;
  --red: #a95d5d;
  --blue: #6978a4;
  --shadow: 0 18px 45px rgba(54, 45, 34, 0.08);
  --shadow-small: 0 8px 24px rgba(54, 45, 34, 0.07);
  --radius: 16px;
  --radius-small: 10px;
  --sidebar-width: 238px;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(164, 95, 70, 0.2);
  outline-offset: 2px;
}
::selection { background: var(--accent-soft); }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) 1fr; height: 100vh; }
.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 16px 18px;
  background: #2f302c;
  color: #f5f1e9;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  user-select: none;
}
.platform-darwin .sidebar { padding-top: 50px; }

.brand { display: flex; align-items: center; gap: 12px; padding: 2px 10px 26px; }
.brand-name { font-family: Georgia, "Songti SC", serif; font-size: 20px; font-weight: 700; letter-spacing: 0.08em; }
.brand-subtitle { margin-top: 2px; color: rgba(245, 241, 233, 0.5); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; }
.brand-mark { position: relative; width: 39px; height: 39px; flex: 0 0 auto; }
.brand-mark span {
  position: absolute;
  width: 14px;
  height: 19px;
  left: 12px;
  top: 1px;
  border-radius: 11px 11px 8px 8px;
  background: #d5ad78;
  transform-origin: 7px 18px;
  opacity: 0.95;
}
.brand-mark span:nth-child(2) { transform: rotate(72deg); }
.brand-mark span:nth-child(3) { transform: rotate(144deg); }
.brand-mark span:nth-child(4) { transform: rotate(216deg); }
.brand-mark span:nth-child(5) { transform: rotate(288deg); }
.brand-mark i { position: absolute; width: 10px; height: 10px; left: 14px; top: 14px; border-radius: 50%; background: #f4eee3; }

.nav-list { display: flex; flex-direction: column; gap: 4px; }
.nav-caption { padding: 16px 12px 5px; color: rgba(245, 241, 233, 0.32); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.nav-item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(245, 241, 233, 0.68);
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}
.nav-item:hover { color: #fffaf2; background: rgba(255, 255, 255, 0.065); }
.nav-item:active { transform: translateY(1px); }
.nav-item.active { color: #fffaf2; background: rgba(213, 173, 120, 0.17); }
.nav-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; color: #d5ad78; font-size: 17px; font-weight: 700; }
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 15px 12px 4px;
  color: rgba(245, 241, 233, 0.66);
  font-size: 11px;
}
.sidebar-foot strong, .sidebar-foot span { display: block; }
.sidebar-foot strong { margin-bottom: 2px; color: rgba(245, 241, 233, 0.88); font-size: 12px; }
.offline-dot { width: 8px; height: 8px; border-radius: 50%; background: #78ad91; box-shadow: 0 0 0 4px rgba(120, 173, 145, 0.12); }

.workspace { display: grid; grid-template-rows: auto 1fr; min-width: 0; min-height: 0; }
.workspace-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  min-height: 104px;
  padding: 24px 36px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 235, 0.93);
  backdrop-filter: blur(18px);
  -webkit-app-region: drag;
}
.platform-darwin .workspace-header { min-height: 92px; padding-top: 18px; }
.workspace-header button, .workspace-header input, .workspace-header select { -webkit-app-region: no-drag; }
.breadcrumb { margin-bottom: 6px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.workspace-header h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 30px; line-height: 1.15; letter-spacing: 0.015em; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.header-date { min-width: 96px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; text-align: right; }
.view { min-width: 0; min-height: 0; overflow: auto; padding: 32px 36px 56px; scroll-behavior: smooth; }
.view-inner { width: min(1180px, 100%); margin: 0 auto; animation: view-in 240ms ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.loading-screen { display: grid; place-items: center; align-content: center; min-height: 55vh; color: var(--ink-soft); }
.loading-mark { width: 44px; height: 44px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

h2, h3, h4, p { margin-top: 0; }
h2 { margin-bottom: 12px; font-family: Georgia, "Songti SC", serif; font-size: 27px; }
h3 { margin-bottom: 10px; font-size: 17px; }
p { color: var(--ink-soft); line-height: 1.75; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.small { font-size: 12px; }
.eyebrow { margin-bottom: 8px; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.lead { max-width: 720px; font-size: 16px; line-height: 1.8; }
.divider { height: 1px; margin: 24px 0; background: var(--line); }

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.button:hover { background: var(--accent-deep); box-shadow: var(--shadow-small); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.button-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.button-secondary:hover { background: var(--surface-soft); border-color: var(--accent); color: var(--accent-deep); }
.button-quiet { min-height: 36px; padding-inline: 13px; border-color: var(--line); background: transparent; color: var(--ink-soft); }
.button-quiet:hover { background: var(--surface); color: var(--ink); box-shadow: none; }
.button-danger { background: var(--red); }
.button-danger:hover { background: #844343; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.icon-button { width: 36px; min-width: 36px; height: 36px; padding: 0; border-radius: 50%; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}
.panel-flat { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 253, 249, 0.65); }
.panel-pad { padding: 24px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2, .section-head h3 { margin-bottom: 4px; }
.section-head p { margin-bottom: 0; }

.hero-dashboard {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  min-height: 330px;
  padding: 36px;
  overflow: hidden;
  border-radius: 22px;
  background: #30312d;
  color: #f9f5ee;
  box-shadow: var(--shadow);
}
.hero-dashboard::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -115px;
  top: -150px;
  border: 1px solid rgba(213, 173, 120, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(213, 173, 120, 0.04), 0 0 0 88px rgba(213, 173, 120, 0.025);
}
.hero-copy { position: relative; z-index: 1; align-self: center; }
.hero-copy .eyebrow { color: #d5ad78; }
.hero-copy h2 { max-width: 540px; margin-bottom: 16px; color: #fffaf2; font-size: clamp(32px, 4vw, 49px); line-height: 1.18; }
.hero-copy p { max-width: 540px; margin-bottom: 24px; color: rgba(249, 245, 238, 0.67); font-size: 15px; }
.hero-copy .button { background: #d5ad78; color: #2f302c; }
.hero-copy .button:hover { background: #e5c18e; }
.hero-visual { position: relative; z-index: 1; display: grid; place-items: center; min-height: 250px; }
.hero-chart { width: 100%; height: 270px; }
.hero-empty {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(249, 245, 238, 0.24);
  border-radius: 50%;
  color: rgba(249, 245, 238, 0.48);
  text-align: center;
  line-height: 1.7;
}

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-item { padding: 22px 18px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: 0; }
.stat-label { margin-bottom: 7px; color: var(--ink-soft); font-size: 12px; }
.stat-value { font-family: Georgia, serif; font-size: 28px; font-weight: 700; }
.stat-note { margin-top: 4px; color: var(--ink-faint); font-size: 11px; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quick-action {
  position: relative;
  min-height: 170px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}
.quick-action:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-small); }
.quick-action::after { content: "→"; position: absolute; right: 20px; bottom: 18px; color: var(--accent); font-size: 21px; }
.quick-action .symbol { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font-size: 18px; }
.quick-action:nth-child(2) .symbol { background: var(--green-soft); color: var(--green); }
.quick-action:nth-child(3) .symbol { background: #e4e4ef; color: var(--blue); }
.quick-action h3 { margin-bottom: 7px; }
.quick-action p { margin: 0; padding-right: 22px; font-size: 12px; line-height: 1.65; }

.intro-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 22px; align-items: stretch; }
.intro-main { padding: 34px; }
.intro-side { padding: 28px; background: #30312d; color: #fff; }
.intro-side h3 { color: #fffaf2; }
.intro-side p, .intro-side li { color: rgba(255,255,255,0.64); }
.meta-list { display: grid; gap: 0; margin: 22px 0 28px; border-top: 1px solid var(--line); }
.meta-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.meta-row span { color: var(--ink-soft); }
.resume-box { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--accent-soft); }
.resume-box p { margin-bottom: 10px; color: var(--accent-deep); font-size: 12px; }

.progress-shell { position: sticky; top: -32px; z-index: 5; margin: -4px 0 22px; padding: 18px 0 14px; background: linear-gradient(var(--paper) 75%, rgba(244,241,235,0)); }
.progress-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 9px; }
.progress-row strong { font-size: 13px; }
.progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: var(--line); }
.progress-bar { height: 100%; border-radius: inherit; background: var(--accent); transition: width 240ms ease; }
.question-list { display: grid; gap: 14px; }
.question-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color 150ms ease, box-shadow 150ms ease; }
.question-card.is-missing { border-color: #c9796b; box-shadow: 0 0 0 3px rgba(201,121,107,0.1); }
.question-head { display: flex; gap: 12px; align-items: flex-start; }
.question-number { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; border-radius: 50%; background: var(--surface-soft); color: var(--accent); font-family: Georgia, serif; font-weight: 700; font-size: 12px; }
.question-text { margin: 3px 0 17px; color: var(--ink); font-size: 15px; line-height: 1.65; }
.scale-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-left: 41px; }
.scale-option { position: relative; }
.scale-option input { position: absolute; opacity: 0; pointer-events: none; }
.scale-option label {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 7px;
  min-height: 43px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 11px;
  transition: border-color 130ms ease, background 130ms ease, color 130ms ease;
}
.scale-option label b { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line-strong); border-radius: 50%; font-family: Georgia, serif; font-size: 12px; }
.scale-option input:checked + label { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.scale-option input:checked + label b { border-color: var(--accent); background: var(--accent); color: #fff; }
.question-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.question-actions .button-row { justify-content: flex-end; }

.result-hero { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 22px; margin-bottom: 22px; }
.result-summary { padding: 30px; background: #30312d; color: #fff; }
.result-summary h2 { color: #fffaf2; }
.result-summary p { color: rgba(255,255,255,0.62); }
.distance-value { margin: 25px 0 5px; font-family: Georgia, serif; font-size: 54px; line-height: 1; }
.result-chart-panel { min-height: 390px; padding: 16px; }
.chart { width: 100%; height: 390px; }
.chart-small { width: 100%; height: 290px; }
.dimension-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.dimension-card { padding: 17px 15px; border-top: 3px solid var(--accent); background: var(--surface); border-radius: 0 0 11px 11px; box-shadow: var(--shadow-small); }
.dimension-card:nth-child(2) { border-color: var(--green); }
.dimension-card:nth-child(3) { border-color: var(--gold); }
.dimension-card:nth-child(4) { border-color: var(--blue); }
.dimension-card:nth-child(5) { border-color: #8a6c9c; }
.dimension-name { min-height: 34px; color: var(--ink-soft); font-size: 11px; line-height: 1.5; }
.dimension-score { margin: 6px 0 3px; font-family: Georgia, serif; font-size: 28px; font-weight: 700; }
.dimension-ref { color: var(--ink-faint); font-size: 10px; }
.interpretation-list { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.interpretation-row { display: grid; grid-template-columns: 180px 100px 1fr; gap: 18px; align-items: center; padding: 17px 20px; background: var(--surface); }
.delta-up { color: var(--red); }
.delta-down { color: var(--green); }
.delta-near { color: var(--ink-soft); }

.tabs { display: inline-flex; gap: 3px; padding: 4px; border-radius: 11px; background: var(--paper-deep); }
.tab { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 12px; font-weight: 700; }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(54,45,34,0.08); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.toolbar-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
}
.input, .select { min-height: 39px; padding: 0 11px; }
.textarea { min-height: 100px; padding: 11px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); }

.record-list { display: grid; gap: 10px; }
.record-row { display: grid; grid-template-columns: 155px 1fr auto; gap: 18px; align-items: center; padding: 17px 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.record-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-small); }
.record-date strong, .record-date span { display: block; }
.record-date strong { margin-bottom: 3px; font-family: Georgia, serif; font-size: 15px; }
.record-date span { color: var(--ink-faint); font-size: 10px; }
.record-title { margin-bottom: 6px; font-weight: 800; }
.record-scores { display: flex; flex-wrap: wrap; gap: 6px; }
.score-chip { padding: 4px 7px; border-radius: 6px; background: var(--surface-soft); color: var(--ink-soft); font-size: 10px; }
.record-actions { display: flex; gap: 6px; }
.empty-state { display: grid; place-items: center; min-height: 280px; padding: 40px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.empty-state .symbol { margin-bottom: 14px; color: var(--accent); font-size: 34px; }
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { max-width: 480px; }

.analysis-layout { display: grid; grid-template-columns: 1fr 285px; gap: 18px; }
.analysis-chart { min-height: 480px; padding: 12px; }
.analysis-side { padding: 20px; }
.analysis-side h3 { margin-bottom: 14px; }
.analysis-records { display: grid; gap: 7px; max-height: 360px; overflow: auto; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); cursor: pointer; font-size: 11px; }
.check-row input { accent-color: var(--accent); }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th, .data-table td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; }
.data-table th { color: var(--ink-soft); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.data-table tr:last-child td { border-bottom: 0; }

.garden-top { display: grid; grid-template-columns: 1fr 330px; gap: 18px; margin-bottom: 18px; }
.garden-form { padding: 24px; }
.garden-summary { padding: 24px; background: #30312d; color: #fff; }
.garden-summary h3 { color: #fffaf2; }
.garden-summary p { color: rgba(255,255,255,0.62); }
.garden-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.garden-metric { padding: 12px; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; }
.garden-metric span, .garden-metric strong { display: block; }
.garden-metric span { color: rgba(255,255,255,0.52); font-size: 10px; }
.garden-metric strong { margin-top: 5px; font-family: Georgia, serif; font-size: 22px; }
.garden-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.garden-table { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 0; }
.garden-table th { position: sticky; top: 0; z-index: 2; padding: 13px 10px; border-bottom: 1px solid var(--line-strong); background: var(--surface-soft); color: var(--ink-soft); font-size: 10px; }
.garden-table td { padding: 8px 9px; border-bottom: 1px solid var(--line); }
.garden-table tr:last-child td { border-bottom: 0; }
.garden-hour { width: 70px; color: var(--ink-soft); font-family: Georgia, serif; font-weight: 700; }
.garden-activity { width: 38%; }
.garden-activity input { width: 100%; min-height: 34px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; background: var(--surface-soft); }
.garden-activity input:focus { border-color: var(--accent); background: #fff; outline: none; }
.category-toggle { position: relative; display: block; }
.category-toggle input { position: absolute; opacity: 0; }
.category-toggle label { display: grid; place-items: center; min-width: 66px; min-height: 32px; padding: 0 7px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-faint); cursor: pointer; font-size: 10px; }
.category-toggle input:checked + label { border-color: var(--cat); background: color-mix(in srgb, var(--cat) 16%, white); color: color-mix(in srgb, var(--cat) 78%, black); font-weight: 800; }
.garden-category-bars { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; gap: 12px; height: 210px; padding: 18px 8px 0; }
.garden-bar-wrap { display: grid; grid-template-rows: 1fr auto auto; align-items: end; gap: 7px; height: 100%; text-align: center; }
.garden-bar-track { display: flex; align-items: flex-end; justify-content: center; height: 100%; border-radius: 8px 8px 2px 2px; background: var(--surface-soft); overflow: hidden; }
.garden-bar { width: 100%; min-height: 3px; border-radius: 8px 8px 2px 2px; background: var(--cat); transition: height 250ms ease; }
.garden-bar-value { font-family: Georgia, serif; font-weight: 700; }
.garden-bar-label { color: var(--ink-soft); font-size: 10px; }
.principle-list { display: grid; gap: 9px; margin: 16px 0 0; padding: 0; list-style: none; }
.principle-list li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.principle-list li::before { content: "✣"; position: absolute; left: 0; color: var(--accent); }

.data-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; }
.data-card { padding: 25px; }
.path-box { padding: 14px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--ink-soft); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.6; }
.status-list { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.status-row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.status-row span:first-child { color: var(--ink-soft); }
.backup-list { display: grid; gap: 7px; max-height: 260px; overflow: auto; }
.backup-item { display: flex; justify-content: space-between; gap: 15px; padding: 10px 11px; border-radius: 8px; background: var(--surface-soft); font-size: 10px; }

.notice { padding: 14px 16px; border-left: 3px solid var(--accent); border-radius: 0 9px 9px 0; background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; line-height: 1.65; }
.notice-neutral { border-color: var(--green); background: var(--green-soft); color: #3f6659; }
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(32,31,28,0.46); backdrop-filter: blur(6px); animation: fade-in 150ms ease; }
.modal { width: min(480px, 100%); padding: 26px; border-radius: 17px; background: var(--surface); box-shadow: 0 26px 80px rgba(25,22,18,0.25); animation: modal-in 180ms ease; }
.modal h3 { font-family: Georgia, "Songti SC", serif; font-size: 22px; }
.modal p { margin-bottom: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.toast-root { position: fixed; z-index: 200; right: 22px; bottom: 22px; display: grid; gap: 9px; width: min(360px, calc(100vw - 44px)); }
.toast { padding: 13px 15px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); font-size: 12px; animation: toast-in 200ms ease; }
.toast.error { border-left-color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

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

@media (max-width: 1180px) {
  :root { --sidebar-width: 216px; }
  .view { padding-inline: 26px; }
  .workspace-header { padding-inline: 26px; }
  .hero-dashboard { grid-template-columns: 1fr 0.8fr; }
  .dimension-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-grid { gap: 12px; }
}

@media (max-width: 980px) {
  :root { --sidebar-width: 190px; }
  .nav-item { padding-inline: 9px; font-size: 12px; }
  .hero-dashboard, .intro-layout, .result-hero, .analysis-layout, .garden-top, .data-layout, .about-columns { grid-template-columns: 1fr; }
  .hero-visual { min-height: 220px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-action { min-height: 130px; }
  .scale-options { grid-template-columns: 1fr; margin-left: 41px; }
  .scale-option label { grid-template-columns: 25px 1fr; }
  .dimension-grid { grid-template-columns: repeat(2, 1fr); }
  .interpretation-row { grid-template-columns: 1fr; gap: 7px; }
  .record-row { grid-template-columns: 130px 1fr; }
  .record-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

.account-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 210px;
  min-height: 38px;
  padding: 4px 11px 4px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.account-button > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-initial, .account-avatar-large {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-soft);
  color: #355d50;
  font-weight: 800;
}
.account-initial { width: 28px; height: 28px; }
.account-avatar-large { width: 54px; height: 54px; font-size: 21px; }
.account-modal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.account-modal-head h3, .account-modal-head p { margin: 0; }
.account-modal-head p { margin-top: 4px; font-size: 12px; }
.modal-actions-split { justify-content: space-between; }

.auth-required .app-shell { grid-template-columns: 1fr; }
.auth-required .sidebar,
.auth-required .workspace-header { display: none; }
.auth-required .workspace { grid-template-rows: 1fr; }
.auth-required .view { padding: 0; background: #2f302c; }
.auth-page {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(390px, 0.85fr);
  min-height: 100vh;
  background: var(--paper);
}
.auth-poster {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(42px, 6vw, 82px);
  overflow: hidden;
  background: #2f302c;
  color: #f8f2e8;
}
.auth-poster::before,
.auth-poster::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(213, 173, 120, 0.22);
  border-radius: 50%;
  pointer-events: none;
}
.auth-poster::before { width: 520px; height: 520px; right: -180px; top: -130px; }
.auth-poster::after { width: 360px; height: 360px; right: -80px; top: -40px; }
.auth-brand-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.auth-brand-row strong, .auth-brand-row span { display: block; }
.auth-brand-row strong { font: 700 22px Georgia, "Songti SC", serif; letter-spacing: 0.08em; }
.auth-brand-row span { margin-top: 4px; color: rgba(248, 242, 232, 0.48); font-size: 10px; letter-spacing: 0.18em; }
.auth-brand-mark { width: 42px; height: 42px; }
.auth-copy { position: relative; z-index: 1; max-width: 680px; margin: auto 0; padding: 80px 0; }
.auth-copy .eyebrow { color: #d5ad78; }
.auth-copy h2 { max-width: 640px; margin-bottom: 22px; color: #fffaf2; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.08; }
.auth-copy p { max-width: 610px; color: rgba(248, 242, 232, 0.68); font-size: 16px; }
.auth-assurance { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(248, 242, 232, 0.58); font-size: 12px; }
.auth-assurance span::before { content: '•'; margin-right: 8px; color: #78ad91; }
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(520px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px);
}
.auth-panel h1 { margin: 0 0 14px; font: 700 clamp(32px, 4vw, 46px) Georgia, "Songti SC", serif; }
.auth-lead { margin-bottom: 26px; }
.turnstile-shell { min-height: 68px; margin-bottom: 10px; }
.auth-status { min-height: 20px; margin-bottom: 12px; color: var(--ink-soft); font-size: 12px; }
.auth-provider-list { display: grid; gap: 10px; }
.auth-provider {
  appearance: none;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.auth-provider::after { content: '→'; color: var(--ink-faint); font-size: 18px; }
.auth-provider > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-soft); color: var(--accent); font-weight: 900; }
.auth-provider > strong { text-align: left; }
.auth-provider:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--accent); box-shadow: var(--shadow-small); }
.auth-provider:disabled { cursor: wait; opacity: 0.52; }
.auth-notice { margin-top: 22px; }
.auth-disclaimer { margin: 18px 0 0; color: var(--ink-faint); font-size: 11px; }

.platform-web .workspace-header { -webkit-app-region: no-drag; }
.platform-web .sidebar { padding-top: 24px; }
.platform-web .offline-dot { background: #78ad91; }

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-poster { min-height: 46vh; padding: 38px 28px; }
  .auth-copy { margin: 70px 0 50px; padding: 0; }
  .auth-copy h2 { font-size: clamp(38px, 11vw, 62px); }
  .auth-panel { min-height: auto; padding: 52px 28px 70px; }
}
