:root {
  --ink: #17211f;
  --muted: #6f7d79;
  --soft: #96a39f;
  --line: #dde5e1;
  --line-strong: #cbd7d2;
  --paper: #ffffff;
  --canvas: #f3f6f4;
  --green-950: #0b2e29;
  --green-900: #113c35;
  --green-800: #175247;
  --green-700: #1c695a;
  --green-500: #2c9b7f;
  --green-100: #dff2eb;
  --green-50: #eef8f4;
  --amber: #c28a35;
  --amber-soft: #fff4dc;
  --rose: #c8585c;
  --rose-soft: #fff0f0;
  --blue: #4878bd;
  --blue-soft: #eef4ff;
  --shadow: 0 18px 50px rgba(25, 54, 46, 0.08);
  --shadow-soft: 0 8px 24px rgba(25, 54, 46, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(44, 155, 127, 0.25);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 1000;
  padding: 10px 16px; background: var(--paper); color: var(--green-900); border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50;
  display: none; flex-direction: column;
  width: 260px; padding: 24px 18px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 95%, rgba(60, 160, 132, 0.18), transparent 26%),
    linear-gradient(165deg, #123f37 0%, #0d322c 64%, #092a26 100%);
  color: #fff;
  box-shadow: 10px 0 30px rgba(8, 45, 38, 0.08);
  transform: translateX(-100%);
  transition: transform .24s ease;
}
.sidebar.is-open { transform: translateX(0); }
.sidebar::after {
  content: ""; position: absolute; right: -72px; bottom: 50px; width: 180px; height: 180px;
  border: 1px solid rgba(255,255,255,.05); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 58px rgba(255,255,255,.015); pointer-events: none;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; position: relative; z-index: 1; }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(222, 194, 120, .6); border-radius: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02)); color: #f5d28c; font: 700 21px/1 Georgia, serif;
  box-shadow: inset 0 0 0 3px rgba(9, 42, 37, .5);
}
.brand strong { display: block; letter-spacing: .03em; font-size: 15px; }
.brand span { display: block; margin-top: 2px; color: rgba(255,255,255,.46); font-size: 8px; letter-spacing: .15em; }
.new-report-button {
  position: relative; z-index: 1; display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 11px 14px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(255,255,255,.08); color: white; transition: .2s ease;
}
.new-report-button:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.new-report-button span { font-size: 20px; line-height: 1; color: #efd18f; }
.sidebar-nav { display: grid; gap: 6px; margin-top: 20px; position: relative; z-index: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: transparent; color: rgba(255,255,255,.62); text-align: left; transition: .2s ease;
}
.nav-item:hover, .nav-item.is-active { background: rgba(255,255,255,.09); color: white; }
.nav-item.is-active::after { content: ""; width: 4px; height: 4px; margin-left: auto; border-radius: 50%; background: #e7c373; box-shadow: 0 0 9px #e7c373; }
.nav-icon { color: #d8bd7a; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.history-heading { display: flex; align-items: center; justify-content: space-between; margin: 27px 6px 10px; position: relative; z-index: 1; }
.history-heading > div { display: flex; align-items: baseline; gap: 8px; }
.history-heading span { color: rgba(255,255,255,.48); font-size: 11px; letter-spacing: .08em; }
.history-heading small { color: rgba(255,255,255,.28); font-size: 10px; }
.icon-button { border: 0; background: transparent; color: rgba(255,255,255,.5); font-size: 16px; border-radius: 6px; }
.icon-button:hover { color: white; }
.history-list { flex: 1; min-height: 100px; overflow: auto; padding-right: 3px; position: relative; z-index: 1; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.history-empty { padding: 18px 10px; border: 1px dashed rgba(255,255,255,.12); border-radius: 10px; color: rgba(255,255,255,.34); text-align: center; font-size: 12px; }
.history-item { position: relative; margin-bottom: 7px; border-radius: 10px; overflow: hidden; }
.history-item-main { width: 100%; padding: 10px 34px 10px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: rgba(255,255,255,.72); text-align: left; transition: .18s ease; }
.history-item-main:hover, .history-item.is-active .history-item-main { background: rgba(255,255,255,.085); border-color: rgba(255,255,255,.05); color: white; }
.history-item-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 550; }
.history-item-main span { display: flex; gap: 7px; align-items: center; margin-top: 4px; color: rgba(255,255,255,.38); font-size: 10px; }
.history-risk { color: #f0c77d !important; }
.history-delete { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: transparent; }
.history-item:hover .history-delete, .history-delete:focus { color: rgba(255,255,255,.45); }
.history-delete:hover { color: #ffb4b4 !important; background: rgba(255,255,255,.06); }
.sidebar-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; padding: 14px 8px 0; margin-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #57cfaa; box-shadow: 0 0 0 4px rgba(87,207,170,.1); }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: 10px; font-weight: 500; color: rgba(255,255,255,.64); }
.sidebar-foot small { margin-top: 2px; color: rgba(255,255,255,.3); font-size: 9px; }

.main-content { min-height: 100vh; margin-left: 0; }
.topbar { position: sticky; top: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 12px 34px; background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(210,220,216,.8); backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.breadcrumb span { color: var(--muted); }
.breadcrumb b { color: var(--line-strong); font-weight: 400; }
.breadcrumb strong { font-weight: 600; }
.top-actions, .result-actions { display: flex; align-items: center; gap: 8px; }
.top-actions .top-quick-action { min-height: 34px; padding-inline: 12px; font-size: 9px; }
.mobile-menu { display: none; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: #485753; font-size: 11px; font-weight: 600; }
.mobile-menu span { color: var(--green-800); font-size: 16px; line-height: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 600; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button-primary { border-color: var(--green-800); background: var(--green-800); color: white; box-shadow: 0 7px 16px rgba(23,82,71,.15); }
.button-primary:hover { background: var(--green-700); }
.button-ghost { border-color: var(--line); background: var(--paper); color: #485753; }
.button-ghost:hover { border-color: var(--line-strong); background: #f9fbfa; }
.button-outline { border-color: var(--green-800); background: transparent; color: var(--green-800); }
.button-outline:hover { background: var(--green-50); }
.button-danger { background: var(--rose); color: white; }
.button-small { min-height: 32px; padding: 5px 10px; border-color: var(--line); background: var(--paper); color: var(--green-800); }
.button-wide { width: 100%; margin-top: 10px; }
.text-button { border: 0; background: transparent; color: var(--green-700); font-size: 11px; font-weight: 600; }
.text-button:hover { text-decoration: underline; }

.workspace { width: min(1380px, 100%); margin: 0 auto; padding: 30px 34px 70px; }
.hero-panel { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 202px; padding: 38px 44px; overflow: hidden; border-radius: var(--radius-xl); background: linear-gradient(122deg, #103d35 0%, #174f44 62%, #216557 100%); color: white; box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(30deg, transparent 49%, rgba(255,255,255,.12) 50%, transparent 51%), linear-gradient(150deg, transparent 49%, rgba(255,255,255,.07) 50%, transparent 51%); background-size: 56px 56px; mask-image: linear-gradient(to right, transparent, #000); }
.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow { color: #d9bd7a; font-size: 9px; font-weight: 700; letter-spacing: .22em; }
.hero-copy h1 { margin: 11px 0 10px; font-family: Georgia, "Songti SC", serif; font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; }
.hero-copy p { max-width: 620px; margin: 0; color: rgba(255,255,255,.66); line-height: 1.8; font-size: 13px; }
.hero-orbit { position: relative; flex: 0 0 190px; height: 150px; margin-right: 20px; }
.orbit-ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(220,195,128,.25); border-radius: 50%; transform: translate(-50%,-50%) rotate(-12deg); }
.ring-one { width: 170px; height: 88px; }
.ring-two { width: 124px; height: 124px; transform: translate(-50%,-50%) rotate(34deg); }
.hero-score { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 90px; height: 90px; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(7,42,35,.38); box-shadow: inset 0 0 25px rgba(255,255,255,.04); }
.hero-score span, .hero-score small { color: rgba(255,255,255,.48); font-size: 9px; letter-spacing: .12em; }
.hero-score strong { margin: -5px 0; color: #f0d18c; font: 500 32px/1 Georgia, serif; }
.orbit-dot { position: absolute; display: block; border-radius: 50%; background: #f1cf83; box-shadow: 0 0 12px rgba(241,207,131,.7); }
.dot-one { left: 9px; top: 63px; width: 5px; height: 5px; }
.dot-two { right: 28px; top: 23px; width: 7px; height: 7px; }
.dot-three { right: 4px; bottom: 27px; width: 4px; height: 4px; }

.editor-grid { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(0, 2fr); gap: 22px; align-items: start; margin-top: 22px; }
.editor-main { display: grid; gap: 18px; min-width: 0; }
.output-column { display: grid; gap: 18px; min-width: 0; }
.column-heading { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 4px; }
.column-heading > span { padding: 5px 7px; border-radius: 6px; background: var(--green-100); color: var(--green-700); font-size: 8px; font-weight: 750; letter-spacing: .14em; }
.column-heading h2 { margin: 0; color: var(--green-900); font-size: 15px; }
.column-heading p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.report-output-heading .report-generate-button { min-height: 36px; margin-left: auto; padding-inline: 18px; white-space: nowrap; }
.editor-main .form-card { padding: 21px 20px 23px; }
.editor-main .form-grid-3, .editor-main .form-grid-2 { grid-template-columns: 1fr; }
.editor-main .field-span-2, .editor-main .scope-note { grid-column: span 1; }
.editor-main .upload-grid, .editor-main .top-editors, .editor-main .audit-columns { grid-template-columns: 1fr; }
.editor-main .audit-columns > div + div { border-left: 0; border-top: 1px solid rgba(150,170,162,.18); }
.editor-main .metric-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor-main .section-heading { align-items: flex-start; }
.editor-main .section-heading p { line-height: 1.5; }
.editor-main .workflow-strip { justify-content: flex-start; overflow-x: auto; }
.editor-main .import-actions { align-items: stretch; flex-direction: column; }
.form-card, .insight-card, .report-result { background: var(--paper); border: 1px solid #e4eae7; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.form-card { min-width: 0; padding: 25px 28px 28px; }
.section-heading { display: flex; align-items: center; gap: 13px; min-height: 42px; padding-bottom: 19px; margin-bottom: 20px; border-bottom: 1px solid #edf1ef; }
.section-index { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid #cfe1da; border-radius: 10px; background: var(--green-50); color: var(--green-700); font-size: 10px; font-weight: 750; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 650; }
.section-heading p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.section-heading > :last-child { margin-left: auto; }
.required-note { display: flex; align-items: center; gap: 6px; color: var(--soft); font-size: 9px; }
.required-note i { width: 5px; height: 5px; border-radius: 50%; background: #d87373; }
.optional-note { padding: 4px 8px; border-radius: 6px; background: var(--green-50); color: var(--green-700); font-size: 9px; font-weight: 650; }
.form-grid { display: grid; gap: 16px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.field-span-2 { grid-column: span 2; }
.field { position: relative; display: grid; gap: 7px; min-width: 0; }
.field > span { color: #53615d; font-size: 10px; font-weight: 600; }
.field em { color: #ce6062; font-style: normal; }
.field input, .field select, .field textarea, .table-input {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfc; color: var(--ink); transition: .18s ease;
}
.field input, .field select { height: 39px; padding: 0 11px; }
.date-range-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfc; color: var(--ink); font-size: 10px; text-align: left; transition: .18s ease; }
.date-range-trigger:hover { border-color: var(--line-strong); }
.date-range-trigger:focus { border-color: var(--green-500); background: white; outline: 3px solid rgba(44,155,127,.1); }
.date-range-trigger svg { width: 15px; height: 15px; flex: 0 0 15px; fill: none; stroke: var(--green-700); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.date-range-trigger svg path + path { fill: var(--green-700); stroke: none; }
.comparison-hint { grid-column: 1 / -1; margin: -8px 0 0; color: var(--soft); font-size: 8px; }
.field textarea { min-height: 80px; padding: 10px 11px; resize: vertical; line-height: 1.65; }
.field input:hover, .field select:hover, .field textarea:hover, .table-input:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus, .table-input:focus { border-color: var(--green-500); background: white; outline: 3px solid rgba(44,155,127,.1); }
.scope-note { display: flex; align-items: flex-start; gap: 9px; grid-column: span 1; min-height: 39px; padding: 7px 9px; border-radius: 9px; background: var(--green-50); color: #58706a; }
.scope-note span { display: grid; place-items: center; flex: 0 0 17px; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; background: var(--green-700); color: white; font: 600 9px Georgia, serif; }
.scope-note p { margin: 0; font-size: 9px; line-height: 1.55; }

.metric-tabs { display: flex; gap: 5px; padding: 4px; margin-bottom: 18px; border-radius: 10px; background: #f1f4f2; }
.metric-tab { flex: 1; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; transition: .18s ease; }
.metric-tab.is-active { background: white; color: var(--green-800); font-weight: 650; box-shadow: 0 3px 9px rgba(33,64,55,.07); }
.metric-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.metric-field { position: relative; }
.metric-field[hidden] { display: none; }
.metric-field label { display: block; padding: 11px 12px 9px; border: 1px solid var(--line); border-radius: 11px; background: #fcfdfc; transition: .18s ease; }
.metric-field label:focus-within { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(44,155,127,.08); background: white; }
.metric-field-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.metric-field-top span { color: #57645f; font-size: 9px; font-weight: 600; }
.metric-field-top small { color: #a0aaa7; font-size: 8px; }
.metric-field input { width: 100%; height: 28px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 16px/1.2 Georgia, "Times New Roman", serif; }
.metric-field input::placeholder { color: #ccd4d1; font-family: inherit; font-weight: 400; }

.workflow-strip { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -2px 0 18px; padding: 9px 12px; border-radius: 10px; background: #f5f8f6; color: #6c7975; font-size: 9px; }
.workflow-strip span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.workflow-strip b { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: white; color: var(--green-700); box-shadow: 0 2px 6px rgba(25,54,46,.07); font-size: 8px; }
.workflow-strip i { color: #b4bfbb; font-style: normal; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.single-upload-field { position: relative; display: grid; place-items: center; min-height: 170px; padding: 24px; border: 1px dashed #bcd3ca; border-radius: 13px; background: #fbfdfc; cursor: pointer; text-align: center; transition: .18s ease; }
.single-upload-field:hover, .single-upload-field:focus-within { border-color: var(--green-500); background: var(--green-50); }
.single-upload-field input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.single-upload-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 12px; background: var(--green-100); color: var(--green-700); font-size: 20px; }
.single-upload-field strong { font-size: 12px; }
.single-upload-field small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.single-upload-field em { margin-top: 12px; color: var(--green-700); font-size: 9px; font-style: normal; }
.upload-field { position: relative; display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 12px; overflow: hidden; border: 1px dashed #cfdad5; border-radius: 11px; background: #fbfcfc; cursor: pointer; transition: .18s ease; }
.upload-field:hover, .upload-field:focus-within { border-color: var(--green-500); background: var(--green-50); }
.upload-field input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: var(--green-100); color: var(--green-700); font: 600 13px Georgia, serif; }
.upload-field div { min-width: 0; }
.upload-field strong, .upload-field small, .upload-field em { display: block; }
.upload-field strong { font-size: 10px; }
.upload-field small { margin-top: 2px; color: var(--soft); font-size: 8px; }
.upload-field em { max-width: 100%; margin-top: 7px; overflow: hidden; color: var(--green-700); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.xhs-table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.xhs-table { min-width: 600px; }
.xhs-table th:first-child, .xhs-table td:first-child { padding-left: 10px; }
.import-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; }
.import-actions p { display: flex; align-items: flex-start; gap: 6px; max-width: 580px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.import-actions p span { color: var(--green-700); }
.audit-panel { margin-top: 18px; overflow: hidden; border: 1px solid #cfe5dc; border-radius: 12px; background: #fbfefd; }
.audit-panel[data-status="blocked"] { border-color: #f0c6c7; background: #fffafa; }
.audit-panel[data-status="warning"] { border-color: #ebd9ae; background: #fffdf8; }
.audit-summary { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid rgba(150,170,162,.18); }
.audit-summary > span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: var(--green-100); color: var(--green-700); font-weight: 750; }
.audit-panel[data-status="blocked"] .audit-summary > span { background: var(--rose-soft); color: var(--rose); }
.audit-panel[data-status="warning"] .audit-summary > span { background: var(--amber-soft); color: var(--amber); }
.audit-summary strong, .audit-summary small { display: block; }
.audit-summary strong { font-size: 10px; }
.audit-summary small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.audit-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.audit-columns > div { padding: 13px 15px; }
.audit-columns > div + div { border-left: 1px solid rgba(150,170,162,.18); }
.audit-columns h3 { margin: 0 0 7px; color: #52625d; font-size: 9px; }
.audit-columns ul { margin: 0; padding-left: 14px; color: var(--muted); font-size: 8px; line-height: 1.6; }
.audit-columns li + li { margin-top: 4px; }
.audit-columns li.is-empty { color: #adb6b3; list-style: none; margin-left: -14px; }

.subsection-title { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.subsection-title span { color: #4e5e59; font-size: 10px; font-weight: 650; white-space: nowrap; }
.subsection-title i { width: 100%; height: 1px; background: #edf1ef; }
.subsection-spaced { margin-top: 25px; }
.compact-grid { gap: 12px; }
.top-editors { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.top-editor { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fcfdfc; }
.top-editor-title { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.top-editor-title strong { font-size: 10px; }
.top-editor-title small { margin-left: auto; color: var(--soft); font-size: 8px; }
.badge { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; font-size: 9px; font-weight: 700; }
.badge-rose { background: var(--rose-soft); color: var(--rose); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-green { background: var(--green-100); color: var(--green-700); }
.top-rows { display: grid; gap: 6px; }
.top-row { display: grid; grid-template-columns: minmax(0, 1fr) 68px 22px; gap: 5px; }
.top-row input { min-width: 0; height: 31px; padding: 0 8px; border: 1px solid #e2e8e5; border-radius: 7px; background: white; font-size: 10px; }
.row-remove { display: grid; place-items: center; width: 22px; border: 0; background: transparent; color: #acb5b2; border-radius: 6px; }
.row-remove:hover { background: var(--rose-soft); color: var(--rose); }
.add-row-button { width: 100%; margin-top: 7px; padding: 6px; border: 1px dashed #d5dfdb; border-radius: 7px; background: transparent; color: var(--green-700); font-size: 9px; }
.add-row-button:hover { background: var(--green-50); border-color: #b9d5ca; }

.table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table th { padding: 9px 7px; background: #f5f8f6; color: #71807b; font-size: 8px; font-weight: 650; text-align: left; white-space: nowrap; }
.data-table td { padding: 6px 5px; border-top: 1px solid #edf1ef; }
.table-input { min-width: 70px; height: 31px; padding: 0 7px; font-size: 9px; }
.department-name { min-width: 100px; }
.department-note { min-width: 120px; }
.table-empty { padding: 22px; color: var(--soft); font-size: 10px; text-align: center; }
.counter { position: absolute; right: 10px; bottom: 8px; color: #a7b0ad; font-size: 8px; }

.sticky-card { position: sticky; top: 89px; padding: 20px; }
.output-column .sticky-card { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.output-column .insight-card-head, .output-column .snapshot-list, .output-column .progress-preview, .output-column .rail-tip { grid-column: 1 / -1; }
.output-column .snapshot-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 0; }
.output-column .snapshot-list div { display: grid; gap: 7px; padding: 12px; border: 1px solid #e5ebe8; border-radius: 10px; background: #fbfcfc; }
.insight-card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid #edf1ef; color: #43534e; font-size: 11px; font-weight: 650; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #47b895; box-shadow: 0 0 0 4px rgba(71,184,149,.11); }
.snapshot-list { display: grid; gap: 0; padding: 9px 0; }
.snapshot-list div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed #e5ebe8; }
.snapshot-list span { color: var(--muted); font-size: 10px; }
.snapshot-list strong { font: 600 17px/1 Georgia, serif; color: var(--green-900); }
.progress-preview { margin: 11px 0 15px; }
.progress-preview > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; }
.progress-preview span { font-size: 9px; color: #4f5f5a; }
.progress-preview small { font-size: 8px; color: var(--soft); }
.progress-track { position: relative; height: 6px; border-radius: 20px; background: #edf2f0; overflow: visible; }
.progress-track i { position: absolute; left: 0; top: 0; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-500), #75c7ae); transition: width .25s ease; }
.progress-track b { position: absolute; left: 0; top: -3px; width: 2px; height: 12px; background: var(--amber); transition: left .25s ease; }
.rail-tip { display: flex; gap: 8px; margin: 18px 0 6px; padding: 10px; border-radius: 9px; background: var(--amber-soft); color: #7b6745; font-size: 9px; line-height: 1.6; }
.rail-tip span { color: var(--amber); font-size: 13px; }

.report-result { margin-top: 0; min-height: 520px; overflow: hidden; scroll-margin-top: 90px; }
.result-empty-state { display: grid; place-items: center; padding: 65px 30px; text-align: center; }
.empty-visual { position: relative; display: grid; place-items: center; width: 90px; height: 90px; margin-bottom: 20px; border: 1px solid #dfe8e4; border-radius: 26px; background: linear-gradient(145deg, #f8fbf9, #edf5f1); transform: rotate(-3deg); }
.empty-visual span { color: var(--green-700); font: 500 34px Georgia, serif; transform: rotate(3deg); }
.empty-visual i, .empty-visual b { position: absolute; display: block; border-radius: 50%; background: var(--amber); }
.empty-visual i { width: 8px; height: 8px; right: -7px; top: 18px; }
.empty-visual b { width: 4px; height: 4px; left: -12px; bottom: 24px; }
.result-empty-state h2 { margin: 0; font-size: 17px; }
.result-empty-state p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.result-content { padding: 30px; }
.result-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.result-header h2 { margin: 6px 0 3px; font: 500 24px Georgia, "Songti SC", serif; }
.result-header p { margin: 0; color: var(--muted); font-size: 10px; }
.result-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin: 20px 0; }
.operating-data-output { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fcfdfc; }
.operating-data-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #edf1ef; }
.operating-data-head > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--green-100); color: var(--green-700); font-size: 9px; font-weight: 750; }
.operating-data-head h3 { margin: 0; font-size: 14px; }
.operating-data-head p { margin: 2px 0 0; color: var(--muted); font-size: 8px; }
.operating-data-content { color: #43534e; font-size: 11px; line-height: 1.85; }
.operating-data-content p { margin: 0 0 10px; }
.operating-data-content h4 { margin: 17px 0 7px; color: var(--green-900); font-size: 12px; }
.operating-data-content blockquote { margin: 10px 0; padding: 9px 12px; border-left: 3px solid var(--green-500); background: var(--green-50); }
.operating-data-content blockquote p { margin: 2px 0; }
.operating-data-tables { display: grid; gap: 18px; margin-top: 18px; }
.copy-table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; }
.copy-table-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; background: #f3f7f5; }
.copy-table-head strong { color: var(--green-900); font-size: 10px; }
.copy-table-head button { padding: 5px 9px; border: 1px solid #cfe0da; border-radius: 7px; background: white; color: var(--green-700); font-size: 8px; }
.copy-table-scroll { overflow-x: auto; }
.copy-data-table { width: 100%; border-collapse: collapse; }
.copy-data-table th, .copy-data-table td { padding: 9px 10px; border-top: 1px solid #e7ecea; border-right: 1px solid #e7ecea; color: #4b5b56; font-size: 9px; text-align: center; white-space: nowrap; }
.copy-data-table th { background: #f8faf9; color: #586762; font-weight: 700; }
.copy-data-table th:last-child, .copy-data-table td:last-child { border-right: 0; }
.copy-data-table tr.total-row td { background: #fff7dc; font-weight: 700; }
.result-kpi { position: relative; padding: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fcfdfc; }
.result-kpi::after { content: ""; position: absolute; right: -18px; bottom: -26px; width: 65px; height: 65px; border-radius: 50%; background: var(--green-50); }
.result-kpi span, .result-kpi small { display: block; position: relative; z-index: 1; }
.result-kpi span { color: var(--muted); font-size: 9px; }
.result-kpi strong { display: block; position: relative; z-index: 1; margin: 7px 0 3px; color: var(--green-900); font: 600 23px Georgia, serif; }
.result-kpi small { color: var(--soft); font-size: 8px; }
.result-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 15px; }
.risk-panel, .action-panel, .markdown-panel { border: 1px solid var(--line); border-radius: 13px; background: #fcfdfc; overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #f8faf9; }
.panel-heading span { display: block; font-size: 11px; font-weight: 650; }
.panel-heading small { display: block; margin-top: 2px; color: var(--soft); font-size: 8px; }
.count-badge { display: grid !important; place-items: center; min-width: 23px; height: 23px; padding: 0 6px; border-radius: 7px; background: var(--rose-soft); color: var(--rose); font-size: 9px !important; }
.risk-list, .action-list { display: grid; gap: 8px; padding: 13px; }
.risk-item { display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding: 11px; border: 1px solid #e7ece9; border-radius: 9px; background: white; }
.risk-indicator { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; }
.risk-indicator.red { background: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); }
.risk-indicator.yellow { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.risk-indicator.green { background: var(--green-500); box-shadow: 0 0 0 4px var(--green-100); }
.risk-item strong { display: block; font-size: 10px; }
.risk-item p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.no-risk { padding: 24px; color: var(--muted); text-align: center; font-size: 10px; }
.action-item { padding: 11px; border: 1px solid #e7ece9; border-radius: 9px; background: white; }
.action-item-head { display: flex; align-items: center; gap: 7px; }
.action-number { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; background: var(--green-100); color: var(--green-700); font-size: 8px; font-weight: 700; }
.action-item strong { font-size: 10px; }
.action-item p { margin: 7px 0; color: #52625d; font-size: 9px; line-height: 1.6; }
.action-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.action-meta span { padding: 3px 6px; border-radius: 5px; background: #f1f5f3; color: var(--muted); font-size: 7px; }
.markdown-panel { margin-top: 15px; }
#markdownOutput { display: block; width: 100%; min-height: 520px; padding: 20px; border: 0; outline: 0; resize: vertical; background: #fff; color: #34423e; font: 11px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; width: min(340px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.96); box-shadow: 0 14px 40px rgba(25,54,46,.16); animation: toast-in .22s ease both; }
.toast::before { content: "✓"; display: grid; place-items: center; flex: 0 0 21px; height: 21px; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-size: 10px; font-weight: 700; }
.toast.error::before { content: "!"; background: var(--rose-soft); color: var(--rose); }
.toast strong { display: block; font-size: 10px; }
.toast span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
.confirm-dialog { width: min(400px, calc(100vw - 30px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 25px 80px rgba(13,50,44,.25); }
.confirm-dialog::backdrop { background: rgba(9,30,26,.48); backdrop-filter: blur(3px); }
.confirm-dialog form { padding: 25px; text-align: center; }
.dialog-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 13px; border-radius: 50%; background: var(--rose-soft); color: var(--rose); font-weight: 700; }
.confirm-dialog h2 { margin: 0; font-size: 15px; }
.confirm-dialog p { margin: 8px 0 22px; color: var(--muted); font-size: 11px; }
.dialog-actions { display: flex; justify-content: center; gap: 8px; }
.range-picker-dialog { position: fixed; z-index: 120; width: min(620px, calc(100vw - 24px)); padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 16px 45px rgba(13,50,44,.18); }
.range-picker-dialog[hidden] { display: none; }
.range-picker-head { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; margin-bottom: 12px; }
.range-picker-head strong { text-align: center; font-size: 13px; }
.range-picker-head button, .range-picker-foot button { border: 0; border-radius: 8px; background: var(--green-50); color: var(--green-800); }
.range-picker-head button { width: 34px; height: 32px; font-size: 20px; }
.range-months { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.range-month + .range-month { padding-left: 18px; border-left: 1px solid var(--line); }
.range-month-title { display: block; margin: 2px 0 8px; color: var(--ink); font-size: 11px; text-align: center; }
.range-weekdays, .range-calendar { display: grid; grid-template-columns: repeat(7, 1fr); }
.range-weekdays span { padding: 6px 0; color: var(--soft); font-size: 8px; text-align: center; }
.range-calendar button { position: relative; height: 38px; border: 0; background: transparent; color: var(--ink); font-size: 10px; }
.range-calendar button.is-outside { color: #bcc5c2; }
.range-calendar button.is-in-range { background: var(--green-50); }
.range-calendar button.is-start, .range-calendar button.is-end { border-radius: 9px; background: var(--green-700); color: white; font-weight: 700; }
.range-calendar button:hover { border-radius: 9px; background: var(--green-100); color: var(--green-900); }
.range-picker-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.range-picker-foot span { color: var(--muted); font-size: 8px; }
.range-picker-foot button { padding: 7px 12px; font-size: 9px; }
.data-backend-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: #f7faf8; box-shadow: 0 28px 90px rgba(13,50,44,.28); }
.data-backend-dialog::backdrop { background: rgba(9,30,26,.42); backdrop-filter: blur(3px); }
.backend-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 26px 20px; background: var(--green-900); color: white; }
.backend-head span { color: #d9bd7a; font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.backend-head h2 { margin: 5px 0 3px; font-size: 20px; }
.backend-head p { margin: 0; color: rgba(255,255,255,.58); font-size: 10px; }
.backend-head > button { width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: transparent; color: white; font-size: 20px; }
.backend-tabs { display: flex; gap: 5px; padding: 14px 20px 0; }
.backend-tabs button { padding: 9px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 10px; }
.backend-tabs button.is-active { background: white; color: var(--green-800); font-weight: 700; box-shadow: var(--shadow-soft); }
.data-backend-dialog section { padding: 16px 20px 22px; overflow: auto; max-height: calc(100vh - 210px); }
.backend-summary { margin-bottom: 12px; padding: 11px 13px; border: 1px solid #dce8e3; border-radius: 10px; background: var(--green-50); color: #526d65; font-size: 9px; }
.backend-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.backend-table-wrap table { width: 100%; border-collapse: collapse; }
.backend-table-wrap th, .backend-table-wrap td { padding: 11px 12px; border-bottom: 1px solid #edf1ef; color: #53615d; font-size: 9px; text-align: left; white-space: nowrap; }
.backend-table-wrap th { position: sticky; top: 0; background: #f3f7f5; color: #71807b; font-weight: 650; }
.backend-empty { padding: 30px !important; color: var(--soft) !important; text-align: center !important; }
.backend-page { min-height: 100vh; background: var(--canvas); }
.backend-topbar { justify-content: flex-start; gap: 24px; }
.backend-back-link { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--green-800); font-size: 10px; font-weight: 650; }
.backend-workspace { width: min(1280px, 100%); margin: 0 auto; padding: 30px 34px 70px; }
.backend-page-hero { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 170px; padding: 34px 40px; overflow: hidden; border-radius: 22px; background: linear-gradient(122deg, #103d35, #216557); color: white; box-shadow: var(--shadow); }
.backend-page-hero span { color: #d9bd7a; font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.backend-page-hero h1 { margin: 9px 0 5px; font: 500 34px Georgia, "Songti SC", serif; }
.backend-page-hero p { margin: 0; color: rgba(255,255,255,.64); font-size: 11px; }
.backend-page-hero i { width: 90px; height: 90px; margin-right: 40px; border: 1px solid rgba(238,210,142,.4); border-radius: 50%; box-shadow: 0 0 0 22px rgba(238,210,142,.05), 0 0 0 44px rgba(238,210,142,.03); }
.backend-page-tabs { display: flex; gap: 6px; margin: 22px 0 12px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #eef3f1; }
.backend-page-tabs button { padding: 9px 18px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 10px; }
.backend-page-tabs button.is-active { background: white; color: var(--green-800); font-weight: 700; box-shadow: var(--shadow-soft); }
.backend-page-panel { padding: 22px; border: 1px solid #e2e9e6; border-radius: 16px; background: white; box-shadow: var(--shadow-soft); }
.backend-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.backend-panel-head h2 { margin: 0; color: var(--green-900); font-size: 16px; }
.backend-panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.backend-upload-card { margin-bottom: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbfa; }
.backend-upload-card > div:first-child h2 { margin: 0; color: var(--green-900); font-size: 15px; }
.backend-upload-card > div:first-child p { margin: 5px 0 14px; color: var(--muted); font-size: 9px; }
.backend-single-upload { min-height: 150px; background: white; }
.top-video-links { display: grid; gap: 7px; margin: 10px 0 18px; }
.top-video-item { display: grid; gap: 2px; }
.top-video-summary-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-video-summary { color: var(--green-900); line-height: 1.7; }
.top-video-copy { flex: 0 0 auto; padding: 4px 11px; border: 1px solid #b9d4cc; border-radius: 7px; background: white; color: var(--green-700); font-size: 10px; cursor: pointer; }
.top-video-copy:hover { background: var(--mint-100); }
.top-video-link { display: block; width: fit-content; max-width: 100%; color: var(--green-700); text-decoration: none; line-height: 1.6; overflow-wrap: anywhere; }
.top-video-link:hover { text-decoration: underline; }
.top-video-summary strong { color: var(--green-900); }
.ranking-tables-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ranking-tables-grid .copy-table-card { min-width: 0; margin: 0; }
.backend-head-actions, .backend-row-actions { display: flex; align-items: center; gap: 8px; }
.danger-text { color: #b34e55; }
.architecture-editor-dialog form { text-align: left; display: grid; gap: 14px; }
.architecture-editor-dialog label { display: grid; gap: 6px; color: var(--green-900); font-size: 10px; font-weight: 650; }
.architecture-editor-dialog input, .architecture-editor-dialog select { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfc; color: var(--ink); }
.architecture-editor-dialog .dialog-actions { margin-top: 4px; }
.backend-upload-controls { display: flex; align-items: center; gap: 8px; }
.backend-upload-controls select { min-width: 280px; height: 36px; padding: 0 34px 0 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #4e5e59; font-size: 9px; }
@media (max-width: 700px) {
  .range-picker-dialog { width: min(360px, calc(100vw - 24px)); }
  .range-months { grid-template-columns: 1fr; }
  .range-month:nth-child(2) { display: none; }
}
.mobile-backdrop { display: none !important; position: fixed; inset: 0; z-index: 45; background: rgba(7,30,26,.48); }

@media (max-width: 1180px) {
  .editor-grid { grid-template-columns: minmax(0,1fr); }
  .insight-rail { order: -1; }
  .sticky-card { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .insight-card-head, .rail-tip { grid-column: span 2; }
  .button-wide { align-self: end; }
  .top-editors { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .breadcrumb { margin-right: auto; margin-left: 8px; }
  .workspace { padding: 24px 20px 55px; }
  .hero-orbit { display: none; }
  .hero-panel { min-height: 180px; }
  .result-layout { grid-template-columns: 1fr; }
  .ranking-tables-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; }
  .top-actions { width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .top-actions .button { flex: 0 0 auto; }
  .backend-workspace { padding: 16px 12px 45px; }
  .backend-page-hero { min-height: 140px; padding: 28px 23px; }
  .backend-page-hero i { display: none; }
  .backend-panel-head { align-items: flex-start; flex-direction: column; }
  .backend-upload-controls { align-items: stretch; flex-direction: column; width: 100%; }
  .backend-upload-controls select { width: 100%; min-width: 0; }
  .topbar { min-height: 60px; padding: 10px 14px; }
  .breadcrumb span, .breadcrumb b { display: none; }
  .top-actions .button-ghost { display: none; }
  .mobile-menu { width: 36px; padding: 6px; font-size: 0; }
  .mobile-menu span { margin: auto; }
  .workspace { padding: 16px 12px 45px; }
  .hero-panel { padding: 28px 23px; border-radius: 18px; }
  .hero-copy h1 { font-size: 27px; }
  .form-card { padding: 20px 17px; }
  .form-grid-3, .form-grid-2, .metric-field-grid { grid-template-columns: 1fr 1fr; }
  .scope-note { grid-column: span 2; }
  .result-kpis { grid-template-columns: 1fr 1fr; }
  .result-header { flex-direction: column; }
  .result-content { padding: 20px 16px; }
  .result-actions { width: 100%; flex-wrap: wrap; }
  .result-actions .button { flex: 1; }
  .upload-grid, .audit-columns { grid-template-columns: 1fr; }
  .audit-columns > div + div { border-left: 0; border-top: 1px solid rgba(150,170,162,.18); }
  .workflow-strip { justify-content: flex-start; overflow-x: auto; }
  .import-actions { align-items: stretch; flex-direction: column; }
}
@media (max-width: 480px) {
  .report-output-heading { align-items: flex-start; flex-wrap: wrap; }
  .report-output-heading .report-generate-button { width: 100%; margin: 6px 0 0; }
  .hero-copy p { font-size: 11px; }
  .form-grid-3, .form-grid-2, .metric-field-grid { grid-template-columns: 1fr; }
  .field-span-2, .scope-note { grid-column: span 1; }
  .section-heading { align-items: flex-start; }
  .section-heading > :last-child:not(.required-note) { margin-left: 0; }
  .required-note { display: none; }
  .sticky-card { display: block; }
  .insight-card-head { margin-bottom: 6px; }
  .result-kpis { grid-template-columns: 1fr; }
  .metric-tabs { overflow-x: auto; }
  .metric-tab { min-width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
