:root {
  --ink: #17201d;
  --muted: #66716d;
  --line: #dce2df;
  --surface: #ffffff;
  --canvas: #f3f5f4;
  --green: #176b4f;
  --green-dark: #10533d;
  --green-soft: #e8f3ee;
  --amber: #a45a10;
  --amber-soft: #fff3df;
  --blue: #315f8c;
  --blue-soft: #eaf1f8;
  --red: #a53a35;
  --shadow: 0 12px 28px rgba(22, 34, 29, 0.08);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 18px; color: #eef5f2; background: #16231f; }
.compact-sidebar .primary-nav { margin-top: 2px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 30px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #4b6a5e; border-radius: 6px; color: #fff; background: #1c7456; font-weight: 800; }
.brand strong, .brand span { display: block; letter-spacing: 0; }
.brand strong { font-size: 15px; }
.brand span { margin-top: 2px; color: #91a49c; font-size: 11px; }
.primary-nav { display: grid; gap: 6px; }
.nav-item { min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 0; border-radius: 6px; color: #aebcb6; background: transparent; text-align: left; }
.nav-item:hover { color: #fff; background: #20322c; }
.nav-item.active { color: #fff; background: #285744; }
.nav-item > span:first-child { width: 18px; color: #c6d8d0; font-size: 18px; text-align: center; }
.nav-count { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 10px; color: #c9d5d0; background: #2b3d36; font-size: 11px; text-align: center; }
.sidebar-footer { margin-top: auto; padding: 16px 6px 0; border-top: 1px solid #2b3a35; }
.sidebar-footer .secondary-button { color: #edf4f1; border-color: #4a5b55; background: transparent; }
.sidebar-footer .text-button { display: block; width: 100%; margin-top: 8px; color: #b4c1bc; text-align: center; }
.sidebar-footer p { margin: 14px 0 0; color: #71847c; font-size: 11px; text-align: center; }

.main-content { min-width: 0; }
.topbar { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 36px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.88); }
.topbar h1 { margin: 2px 0 0; font-size: 26px; line-height: 1.25; letter-spacing: 0; }
.eyebrow, .step-label { margin: 0; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; }
.view { display: none; padding: 28px 36px 42px; }
.view.active { display: block; }

.decision-layout { display: grid; grid-template-columns: minmax(480px, 1.1fr) minmax(380px, 0.9fr); gap: 22px; align-items: start; }
.workspace-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.input-panel { padding: 28px; }
.result-panel { position: sticky; top: 28px; min-height: 610px; padding: 28px; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2, .dialog-header h2 { margin: 5px 0 0; font-size: 19px; line-height: 1.35; letter-spacing: 0; }
.model-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 30px; }
.model-option { position: relative; min-height: 112px; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: left; }
.model-option:hover { border-color: #9ab6aa; }
.model-option.selected { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #fbfefd; }
.model-option strong { display: block; margin-bottom: 7px; font-size: 14px; }
.model-option p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.model-option .check { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; display: none; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 11px; }
.model-option.selected .check { display: grid; }

.form-section { padding-top: 24px; border-top: 1px solid var(--line); }
.case-form-section { padding-bottom: 4px; }
.model-form-section { margin-top: 25px; }
.model-selection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 0 15px; }
.model-selection-heading h3 { margin: 0; font-size: 14px; }
.model-selection-heading span { color: var(--muted); font-size: 11px; }
.field-group { margin-top: 18px; }
.field-group label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: #34403b; font-size: 13px; font-weight: 700; }
.field-group label span { color: #87918d; font-size: 11px; font-weight: 500; }
.field-group small { display: block; margin-top: 6px; color: #84908b; font-size: 11px; }
input, textarea, select { width: 100%; border: 1px solid #cfd7d3; border-radius: 5px; color: var(--ink); background: #fff; outline: none; }
input, select { height: 42px; padding: 0 12px; }
textarea { min-height: 92px; padding: 11px 12px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,79,0.1); }
.scale-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.scale-option { min-height: 54px; display: grid; place-items: center; padding: 5px; border: 1px solid var(--line); border-radius: 5px; color: #55615c; background: #fff; font-size: 11px; text-align: center; }
.scale-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.scale-option:has(input:checked) { color: var(--green-dark); border-color: var(--green); background: var(--green-soft); font-weight: 700; }
.model-input-group { margin-top: 18px; padding: 14px 15px 2px; border: 1px solid #e1e7e4; border-radius: 6px; background: #f8faf9; }
.model-input-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #35413b; font-size: 12px; }
.model-input-heading span { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.compact-field { margin-top: 14px; }
.model-input-empty { margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.supplemental-cluster.named { margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }
.supplemental-cluster h4 { margin: 0 0 2px; color: var(--green); font-size: 12px; }
.supplemental-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.supplemental-fields > .field-group:not(.structured-field), .supplemental-fields > .field-group:has(.scale-options) { grid-column: 1 / -1; }
.form-actions, .result-actions, .dialog-actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; }

.primary-button, .secondary-button, .text-button, .icon-button { min-height: 40px; border-radius: 5px; font-weight: 700; }
.primary-button { padding: 0 17px; border: 1px solid var(--green); color: #fff; background: var(--green); }
.primary-button:hover { border-color: var(--green-dark); background: var(--green-dark); }
.secondary-button { padding: 0 15px; border: 1px solid #bdc8c3; color: #32403a; background: #fff; }
.secondary-button:hover { border-color: #8fa099; }
.text-button { padding: 0 10px; border: 0; color: var(--green); background: transparent; }
.text-button:hover { color: var(--green-dark); }
.icon-button { width: 40px; padding: 0; border: 0; color: #59645f; background: transparent; font-size: 25px; }
.full-width { width: 100%; }

.status-badge, .tag { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; font-size: 11px; font-weight: 700; }
.status-badge { min-height: 27px; padding: 0 9px; white-space: nowrap; }
.status-badge.neutral { color: #68736e; background: #eef1f0; }
.status-badge.one-way { color: var(--amber); background: var(--amber-soft); }
.status-badge.two-way { color: var(--green); background: var(--green-soft); }
.status-badge.principle { color: var(--blue); background: var(--blue-soft); }
.empty-state { max-width: 330px; margin: 112px auto 70px; text-align: center; }
.empty-symbol { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 16px; border: 1px solid var(--line); border-radius: 50%; color: #83908a; font-size: 26px; }
.empty-state h3 { margin: 0 0 8px; font-size: 16px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.analysis-summary { padding: 17px 18px; border-left: 3px solid var(--green); background: #f1f7f4; }
.analysis-summary h3 { margin: 0 0 7px; font-size: 18px; }
.analysis-summary p { margin: 0; color: #43504a; font-size: 13px; line-height: 1.65; }
.analysis-section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.analysis-section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.analysis-section-title span { min-width: 38px; padding: 3px 6px; border-radius: 3px; color: #5f6b66; background: #edf0ef; font-size: 10px; font-weight: 800; text-align: center; }
.analysis-section h4 { margin: 0; font-size: 13px; }
.analysis-section ol { margin: 0; padding-left: 20px; color: #47534e; font-size: 13px; line-height: 1.75; }
.analysis-section li + li { margin-top: 5px; }
.analysis-section.directions .analysis-section-title span { color: var(--blue); background: var(--blue-soft); }
.analysis-section.outcomes .analysis-section-title span { color: var(--amber); background: var(--amber-soft); }
.analysis-section.actions .analysis-section-title span { color: var(--green); background: var(--green-soft); }
.analysis-section.recommendation .analysis-section-title span { color: #fff; background: var(--green); }
.analysis-section.model .analysis-section-title span { color: #4b5969; background: #edf1f5; }
.analysis-section.valuation .analysis-section-title span { color: var(--blue); background: var(--blue-soft); }
.analysis-section.positive .analysis-section-title span { color: var(--green); background: var(--green-soft); }
.analysis-section.negative .analysis-section-title span, .analysis-section.risk .analysis-section-title span { color: var(--red); background: #f9eae8; }
.analysis-section.principle { color: var(--muted); }
.score-bar { height: 7px; margin: 11px 0 5px; border-radius: 4px; overflow: hidden; background: #e3e8e6; }
.score-bar span { display: block; height: 100%; border-radius: inherit; background: var(--amber); }
.score-caption { display: flex; justify-content: space-between; color: #7b8782; font-size: 10px; }
.hidden { display: none !important; }

.library-toolbar, .records-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.library-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.model-card { min-height: 260px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.model-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.model-index { color: #9ca6a2; font-size: 12px; font-weight: 800; }
.model-card h2 { margin: 16px 0 8px; font-size: 19px; }
.model-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.model-meta-line { margin-top: 13px; color: var(--green); font-size: 11px; font-weight: 700; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.tag { padding: 4px 8px; color: #59645f; background: #f0f2f1; }
.model-card-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; }
.danger-button { margin-left: auto; color: var(--red); }

.search-box { width: min(420px, 100%); }
.records-toolbar select { width: 180px; }
.records-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: #fff; }
.records-table th, .records-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.records-table th { color: #71807a; background: #f7f8f7; font-size: 11px; }
.records-table td { font-size: 13px; }
.record-link { padding: 0; border: 0; color: var(--ink); background: transparent; font-weight: 700; text-align: left; }
.record-link:hover { color: var(--green); }
.record-delete { border: 0; color: var(--red); background: transparent; }
.record-detail { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.record-detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 20px; }
.record-detail h2 { margin: 5px 0 0; font-size: 22px; }
.record-meta { color: var(--muted); font-size: 12px; }
.empty-list { padding: 90px 20px; border: 1px dashed #bdc8c3; border-radius: 8px; color: var(--muted); background: rgba(255,255,255,0.55); text-align: center; }

dialog { width: min(680px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 24px 70px rgba(12,24,19,0.25); }
dialog::backdrop { background: rgba(15,25,21,0.58); }
.dialog-header { display: flex; justify-content: space-between; padding: 23px 26px 18px; border-bottom: 1px solid var(--line); }
.dialog-body { padding: 4px 26px 24px; overflow: auto; }
.dialog-actions { justify-content: flex-end; margin: 0; padding: 16px 26px; border-top: 1px solid var(--line); }
.two-column-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; transform: translateY(18px); padding: 12px 16px; border-radius: 5px; color: #fff; background: #1b2b25; box-shadow: var(--shadow); font-size: 13px; opacity: 0; pointer-events: none; transition: 180ms ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.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; }

.advisor-layout { display: grid; grid-template-columns: minmax(460px, .92fr) minmax(480px, 1.08fr); gap: 22px; align-items: start; }
.advisor-input-panel { padding: 28px; }
.advisor-result-panel { position: sticky; top: 28px; min-height: 650px; padding: 28px; }
.advisor-question-field textarea { min-height: 142px; font-size: 15px; line-height: 1.7; }
.scene-selector { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid #cfd7d3; border-radius: 6px; overflow: hidden; background: #f7f9f8; }
.scene-option { min-width: 0; min-height: 40px; padding: 0 6px; border: 0; border-right: 1px solid #dce2df; color: #66716d; background: transparent; font-size: 12px; }
.scene-option:last-child { border-right: 0; }
.scene-option:hover { color: var(--ink); background: #edf3f0; }
.scene-option.active { color: #fff; background: var(--green); font-weight: 700; }
.advisor-optional-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.advisor-example-row { display: grid; gap: 7px; margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.advisor-example-row button { padding: 0; border: 0; color: #5c6963; background: transparent; font-size: 12px; line-height: 1.55; text-align: left; }
.advisor-example-row button:hover { color: var(--green); }
.advisor-submit[disabled] { cursor: wait; opacity: .65; }
.advisor-analysis { scroll-margin-top: 110px; }
.advisor-summary-block { padding: 19px 20px; border-left: 4px solid var(--green); background: #eef6f2; }
.advisor-summary-meta { margin-bottom: 7px; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.advisor-summary-block h3 { margin: 0 0 7px; font-size: 19px; }
.advisor-summary-block p { margin: 0; color: #405049; font-size: 13px; line-height: 1.7; }
.advisor-output-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.advisor-output-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.advisor-output-heading > span { width: 31px; height: 23px; display: grid; place-items: center; border-radius: 3px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 800; }
.advisor-output-heading h3 { margin: 0; font-size: 14px; }
.matched-model-list { border-top: 1px solid var(--line); }
.matched-model-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.matched-model-item:last-child { padding-bottom: 2px; border-bottom: 0; }
.matched-model-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.matched-model-head span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.matched-model-head h4 { margin: 0; font-size: 14px; }
.matched-model-head > strong { color: var(--green); font-size: 13px; }
.match-meter { height: 4px; margin: 10px 0 9px; overflow: hidden; background: #e4e9e7; }
.match-meter span { display: block; height: 100%; background: var(--green); }
.matched-model-item > p { margin: 7px 0 0; color: #4c5853; font-size: 12px; line-height: 1.65; }
.matched-model-item .match-reason { color: var(--blue); }
.matched-model-detail { display: grid; grid-template-columns: 42px 1fr; gap: 8px; margin-top: 10px; padding: 10px 12px; background: #f6f8f7; }
.matched-model-detail > span { color: var(--green); font-size: 10px; font-weight: 800; }
.matched-model-detail ul { margin: 0; padding-left: 17px; color: #52605a; font-size: 11px; line-height: 1.65; }
.matched-model-item .model-caution { color: #8a5540; }
.solution-list { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.solution-item { display: grid; grid-template-columns: 38px 1fr; gap: 13px; padding: 16px; background: #fff; }
.solution-item.recommended { background: #f2f8f5; }
.solution-label { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #bfc9c5; border-radius: 50%; color: #59655f; font-size: 11px; font-weight: 800; }
.solution-item.recommended .solution-label { border-color: var(--green); color: #fff; background: var(--green); }
.solution-title-row { display: flex; align-items: center; gap: 8px; }
.solution-title-row h4 { margin: 0; font-size: 13px; }
.solution-title-row span { padding: 2px 6px; border-radius: 3px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 800; }
.solution-item p { margin: 7px 0; color: #45524c; font-size: 12px; line-height: 1.65; }
.solution-item small { color: #79847f; font-size: 10px; line-height: 1.55; }
.quant-methods { display: grid; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.quant-methods > div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 13px; background: #fff; }
.quant-methods strong { font-size: 11px; }
.quant-methods p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.advisor-checklist { margin: 15px 0 0; padding-left: 21px; color: #4d5954; font-size: 12px; line-height: 1.7; }
.advisor-checklist li + li { margin-top: 5px; }
.exit-section { border-bottom: 0; }
.missing-evidence { margin-top: 15px; padding: 12px 13px; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.missing-evidence strong { color: var(--amber); font-size: 10px; }
.missing-evidence p { margin: 5px 0 0; color: #79502b; font-size: 11px; line-height: 1.6; }

.toolkit-summary { display: grid; grid-template-columns: 220px 1fr; min-height: 124px; margin-bottom: 24px; border: 1px solid var(--line); background: #fff; }
.toolkit-summary-main { display: grid; align-content: center; grid-template-columns: auto 1fr; padding: 21px 24px; border-right: 1px solid var(--line); }
.toolkit-summary-main .step-label { grid-column: 1 / -1; margin-bottom: 4px; }
.toolkit-summary-main strong { align-self: end; color: var(--ink); font-size: 38px; line-height: 1; }
.toolkit-summary-main p { align-self: end; margin: 0 0 2px 8px; color: var(--muted); font-size: 12px; }
.category-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-stats button { min-height: 62px; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #4b5852; background: #fff; text-align: left; }
.category-stats button:nth-child(3n) { border-right: 0; }
.category-stats button:nth-last-child(-n + 3) { border-bottom: 0; }
.category-stats button:hover { background: #f2f7f4; }
.category-stats strong { color: var(--green); font-size: 15px; }
.category-stats span { min-width: 0; font-size: 11px; line-height: 1.35; }
.toolkit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.toolkit-toolbar select { width: 230px; }
.toolkit-result-meta { margin-bottom: 13px; color: var(--muted); font-size: 11px; text-align: right; }
.economic-model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.economic-model-card { min-height: 275px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.economic-model-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.economic-model-top span { color: var(--green); font-size: 10px; font-weight: 800; }
.economic-model-top strong { color: #a1aaa6; font-size: 11px; }
.economic-model-card h2 { margin: 22px 0 8px; font-size: 18px; line-height: 1.35; }
.economic-model-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.model-use-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.model-use-list span { padding: 4px 7px; border-radius: 3px; color: #59655f; background: #f0f2f1; font-size: 10px; }
.economic-model-actions { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px; }
.economic-model-dialog { width: min(720px, calc(100% - 32px)); }
.economic-model-dialog .dialog-body { padding-top: 20px; }
.economic-dialog-summary { margin: 0; padding: 15px 16px; border-left: 3px solid var(--green); color: #405049; background: #eef6f2; font-size: 13px; line-height: 1.65; }
.economic-model-dialog section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.economic-model-dialog section h3 { margin: 0 0 9px; font-size: 12px; }
.economic-model-dialog section p, .economic-model-dialog section ol { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.economic-model-dialog section ol { padding-left: 20px; }
.economic-model-dialog .dialog-caution { padding: 14px 15px; border-top: 0; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.economic-model-dialog .dialog-caution h3 { color: var(--amber); }
.economic-empty { grid-column: 1 / -1; }

@media (max-width: 1050px) {
  .decision-layout, .advisor-layout { grid-template-columns: 1fr; }
  .result-panel, .advisor-result-panel { position: static; min-height: 480px; }
  .empty-state { margin-top: 70px; }
  .economic-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: sticky; top: 0; z-index: 20; width: 100%; height: auto; padding: max(10px, env(safe-area-inset-top)) 14px 9px; box-shadow: 0 5px 18px rgba(9, 20, 15, .18); }
  .brand { padding: 0 2px 10px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand strong { font-size: 13px; }
  .brand span { font-size: 9px; }
  .primary-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .nav-item { justify-content: center; min-width: 0; min-height: 40px; padding: 0 8px; font-size: 12px; white-space: nowrap; }
  .nav-count { display: none; }
  .sidebar-footer { display: none; }
  .topbar { min-height: 86px; padding: 18px 18px; }
  .topbar h1 { font-size: 22px; }
  .topbar .primary-button { display: none; }
  .view { padding: 18px 14px 30px; }
  .input-panel, .result-panel, .advisor-input-panel, .advisor-result-panel { padding: 20px 17px; }
  .model-switcher, .library-grid { grid-template-columns: 1fr; }
  .model-option { min-height: 92px; }
  .scale-options { grid-template-columns: repeat(5, 1fr); }
  .scale-option { min-width: 0; font-size: 10px; }
  .library-toolbar, .records-toolbar { align-items: stretch; flex-direction: column; }
  .records-toolbar select { width: 100%; }
  .records-table thead { display: none; }
  .records-table, .records-table tbody, .records-table tr, .records-table td { display: block; width: 100%; }
  .records-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .records-table td { padding: 4px 0; border: 0; }
  .records-table td:last-child { margin-top: 4px; }
  .two-column-fields { grid-template-columns: 1fr; gap: 0; }
  .supplemental-fields { grid-template-columns: 1fr; }
  .supplemental-fields > .field-group { grid-column: 1 !important; }
  .result-actions { flex-wrap: wrap; }
  .advisor-submit { flex: 1; }
  .scene-selector { grid-template-columns: repeat(4, minmax(0, 1fr)); border: 0; gap: 5px; background: transparent; }
  .scene-option { border: 1px solid var(--line) !important; border-radius: 5px; }
  .advisor-optional-grid { grid-template-columns: 1fr; gap: 0; }
  .advisor-summary-block { padding: 16px; }
  .quant-methods > div { grid-template-columns: 1fr; gap: 5px; }
  .toolkit-summary { grid-template-columns: 1fr; }
  .toolkit-summary-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .category-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-stats button, .category-stats button:nth-child(3n), .category-stats button:nth-last-child(-n + 3) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .category-stats button:nth-child(2n) { border-right: 0; }
  .category-stats button:nth-last-child(-n + 2) { border-bottom: 0; }
  .toolkit-toolbar { align-items: stretch; flex-direction: column; }
  .toolkit-toolbar select { width: 100%; }
  .economic-model-grid { grid-template-columns: 1fr; }
  .economic-model-card { min-height: 245px; }
}
