@charset "UTF-8";
:root {
  --green: #4a6860;
  --green-dark: #304e43;
  --green-light: #e6ede7;
  --green-soft: #f3f7f3;
  --brown: #8b7355;
  --brown-light: #f3eee7;
  --section-title: #80654c;
  --section-title-size: 15px;
  --section-title-weight: 600;
  --forecast-ai: #a47636;
  --forecast-enterprise: #b45e55;
  --ink: #2a332e;
  --muted: #758078;
  --border: #e3e8e2;
  --surface: #f7f9f6;
  --white: #fff;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
html { overflow-x: clip; }
body.overlay-open { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, input, select { outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--green); }
button { border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button svg, a svg, .lucide { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 1.7; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 29px; line-height: 1.25; font-weight: 650; }
h2 { font-size: 17px; font-weight: 620; line-height: 1.4; }
h3 { font-size: 16px; font-weight: 600; }
.chart-heading h2, .section-heading h2, .export-section > h2,
.export-option h3, .export-preview h3 { color: var(--section-title); font-size: var(--section-title-size); font-weight: var(--section-title-weight); }
small { font-size: 13px; }
.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; }
.skip-link { position: fixed; left: 8px; top: -60px; z-index: 100; background: var(--green-dark); color: white; padding: 12px; }
.skip-link:focus { top: 8px; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 222px; padding: 28px 14px 0; border-right: 1px solid var(--border); background: #f7f9f6; display: flex; flex-direction: column; z-index: 15; }
.brand { display: flex; align-items: center; gap: 8px; padding: 0 2px 28px; }
.brand-monogram { width: 48px; height: 36px; object-fit: contain; flex-shrink: 0; }
.brand strong { font-size: 20px; font-weight: 600; }
.brand-ia { font-weight: 400; color: var(--green); }
.brand-sub { display: block; font-size: 11px; color: #7c847e; margin-top: 2px; }
.workspace-label { margin: 0 5px 27px; display: flex; gap: 10px; align-items: center; font-size: 13px; }
.workspace-label small { color: var(--muted); display: block; font-size: 11px; margin-top: 1px; }
.workspace-label > svg { margin-left: auto; width: 13px; color: #8b948d; }
.workspace-avatar { width: 29px; height: 29px; border: 1px solid #d6dfd7; border-radius: 6px; display: grid; place-items: center; background: white; color: var(--green); font-family: Georgia, serif; }
.nav-label { font-size: 11px; text-transform: uppercase; color: #8b928a; margin: 14px 12px 10px; font-weight: 600; }
nav { display: grid; gap: 5px; }
nav button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 12px; border-radius: 6px; font-size: 14px; color: #657068; min-height: 43px; }
nav button:hover { background: #ecf0eb; color: var(--green-dark); }
nav button[aria-current] { background: #e3ebe2; color: #365448; font-weight: 600; }
nav button[aria-current] svg { stroke-width: 2; }
.nav-count { font-size: 11px; background: #d2dfd1; color: #526b56; border-radius: 4px; padding: 0 5px; margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.sidebar .brand,.sidebar>.nav-label {flex-shrink:0}
.workspace-nav {display:block;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:18px}
.nav-group+.nav-group {margin-top:19px}
.nav-group h2 {font-size:10px;font-weight:650;text-transform:uppercase;color:var(--brown);padding:0 12px;margin:0 0 6px;line-height:1.5}
.nav-group button {width:100%;min-height:37px;padding:8px 12px;gap:10px;font-size:13px;line-height:1.4;margin-top:2px}
.nav-group button span {min-width:0;overflow-wrap:anywhere}
.sidebar:has(.workspace-nav) .sidebar-bottom {padding-top:8px;flex-shrink:0}
.local-status { padding: 12px; display: flex; gap: 10px; font-size: 12px; color: var(--green); }
.local-status small { display: block; color: #828b82; font-size: 11px; margin-top: 2px; }
.local-status svg { width: 16px; height: 16px; margin-top: 1px; }
.original-link { display: flex; align-items: center; gap: 10px; margin: 4px 12px 16px; font-size: 12px; color: #758177; }
.original-link:hover { color: var(--green); }
.original-link svg { width: 15px; }
.brand-original { display: flex; align-items: center; justify-content: center; height: 50px; flex-shrink: 0; margin-bottom: 12px; }
.brand-original img { width: 180px; height: auto; object-fit: contain; }
.profile { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--border); padding: 17px 9px; }
.avatar { background: #dce6df; color: var(--green); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.profile strong { display: block; font-size: 12px; font-weight: 600; }
.profile small { display: block; font-size: 11px; color: var(--muted); }
.main-column { margin-left: 222px; min-width: 0; }
.topbar { height: 58px; padding: 0 34px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--border); }
.topbar-logo { width: 150px; height: 56px; object-fit: contain; margin-left: auto; flex-shrink: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: #7f8881; font-size: 12px; min-width: 0; }
.breadcrumbs strong { font-weight: 500; color: #47564b; }
.breadcrumbs svg { width: 12px; height: 12px; color: #adb3ad; }
.prototype-badge { background: var(--brown-light); color: var(--brown); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-left: auto; }
.demo-notice { font-size: 11px; color: #848c85; }
.topbar > button { display: none; }
main { max-width: 1680px; margin: auto; padding: 31px 34px 0; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 25px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 600; margin-bottom: 7px; text-transform: uppercase; }
.page-heading p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.page-heading p span { margin: 0 8px; color: #aab0a8; }
.page-actions { display: flex; gap: 8px; align-items: center; }
.button { padding: 9px 13px; border-radius: 6px; min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.button.primary { background: var(--green); color: #fff; border-color: var(--green); }
.button.primary:hover { background: #3b5a4e; border-color: #3b5a4e; }
.button.secondary, .save-button { background: var(--green-light); color: var(--green-dark); border-color: #d6e0d7; }
.button.secondary:hover, .save-button:hover:not(:disabled) { background: #d8e5db; }
.save-button:disabled { color: #8b968c; background: #f5f7f3; border-color: #e2e7df; }
.save-count { border-radius: 3px; background: #cadbcb; padding: 1px 5px; margin-left: 3px; }
.icon-button { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; color: #768279; position: relative; flex-shrink: 0; }
.icon-button:hover:not(:disabled) { color: var(--green-dark); background: var(--green-light); }
.icon-button:disabled { opacity: .35; }
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { content: attr(data-tooltip); position: absolute; top: calc(100% + 7px); background: #31473b; color: white; font-size: 11px; padding: 5px 9px; border-radius: 4px; z-index: 70; white-space: nowrap; pointer-events: none; box-shadow: 0 3px 12px #0001; }
.page-actions [data-tooltip]:hover::after { right: 0; }
.full-width { width: 100%; }
.filter-band { background: #f8f9f6; border: 1px solid #e9ece4; border-radius: 7px; padding: 12px 14px; }
.main-filters { display: flex; align-items: center; gap: 12px; }
.period-button { height: 39px; padding: 0 12px; display: flex; align-items: center; gap: 10px; border-radius: 5px; background: #fff; border: 1px solid #dce2d8; color: #455d4a; font-size: 13px; font-weight: 500; min-width: 205px; }
.period-button:hover { border-color: #9dab9f; }
.period-button svg { width: 16px; height: 16px; }
.period-button svg:last-child { margin-left: auto; width: 13px; }
.filter { display: flex; align-items: center; gap: 10px; min-width: 0; }
.filter > span:first-child { font-size: 12px; color: #788276; }
.select-wrap { position: relative; display: flex; align-items: center; min-width: 0; }
.select-wrap select { -webkit-appearance: none; appearance: none; background: white; border: 1px solid #dce2d8; padding: 9px 31px 9px 11px; border-radius: 5px; width: 100%; min-height: 39px; font-size: 13px; }
.select-wrap svg { width: 13px; height: 13px; position: absolute; right: 10px; pointer-events: none; color: #6f7d6e; }
.filter:nth-child(2) .select-wrap { width: 183px; }
.filter:nth-child(3) .select-wrap { width: 90px; }
.filter-toggle { margin-left: auto; color: var(--green); border-color: #dce2d8; background: white; }
.filter-toggle:hover, .filter-toggle.pressed { background: #e9efe7; }
.tiny-count { background: var(--green); color: white; border-radius: 4px; padding: 0 4px; font-size: 11px; }
.main-filters > .icon-button { color: var(--green); }
.more-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.more-filters .filter { display: grid; gap: 6px; }
.more-filters .filter .select-wrap { width: 100%; }
.metrics { display: grid; grid-template-columns: 1.18fr 1fr 1fr .88fr; margin: 25px 0 26px; }
.metric { padding: 2px 24px; border-right: 1px solid var(--border); min-width: 0; }
.metric:first-child { padding-left: 2px; }
.metric:last-child { border: 0; padding-right: 0; }
.metric-label { font-size: 12px; color: #778279; display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.metric-label svg { width: 15px; height: 15px; color: #9daa9c; }
.metric-value { font-size: 29px; line-height: 1.25; font-weight: 600; margin: 9px 0 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-value > span { font-size: 16px; font-weight: 400; color: #8a9589; }
.metric-main .metric-value { color: var(--green-dark); }
.metric-note { min-height: 19px; display: flex; gap: 6px; align-items: center; color: #8b938a; font-size: 11px; }
.metric-note .variation { font-size: 11px; padding: 1px 5px; }
.metric-change { font-size: 28px; }
.metric-denominator { font-size: 22px !important; font-weight: 400; color: #a3aca0 !important; }
.green-text { color: var(--green); }
.brown-text { color: var(--brown); }
.draft-dot { width: 6px; height: 6px; display: inline-block; background: #b98d48; border-radius: 50%; flex-shrink: 0; }
.planning-table { border: 1px solid var(--border); border-radius: 7px; background: white; overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px; }
.section-heading { display: flex; align-items: center; gap: 10px; }
.section-heading h2 { font-size: var(--section-title-size); }
.count-badge { border: 1px solid #e4e8df; border-radius: 4px; font-size: 10px; color: #818b7e; padding: 2px 6px; white-space: nowrap; }
.table-tools { display: flex; align-items: center; gap: 12px; }
.search-field { height: 33px; min-width: 170px; width: 207px; display: flex; align-items: center; gap: 8px; border: 1px solid #e0e5dc; border-radius: 5px; padding: 0 9px; background: white; }
.search-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px #4a686012; }
.search-field svg { width: 14px; height: 14px; color: #929c90; }
.search-field input { min-width: 0; width: 100%; border: none; background: none; outline: none; font-size: 12px; }
input::placeholder { color: #9aa397; }
.segmented { display: inline-flex; padding: 2px; background: #f3f5f0; border: 1px solid #e8ece4; border-radius: 5px; gap: 2px; }
.segmented button { font-size: 11px; padding: 5px 10px; border-radius: 3px; color: #91998d; min-width: 45px; }
.segmented button[aria-pressed="true"] { background: white; color: var(--green-dark); box-shadow: 0 1px 3px #334c3915; }
.selection-bar { display: flex; align-items: center; gap: 18px; background: var(--green-soft); border-top: 1px solid var(--border); padding: 8px 17px; color: var(--green); font-size: 12px; }
.selection-bar strong { font-weight: 500; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--green); padding: 5px 0; font-size: 12px; }
.text-button:hover { text-decoration: underline; }
.text-button svg { width: 14px; height: 14px; }
.table-scroll { width: 100%; overflow: auto; overscroll-behavior-x: contain; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
th { font-weight: 500; text-align: left; }
thead { background: #f8faf6; }
thead th { height: 41px; font-size: 11px; color: #7c887a; border-top: 1px solid #e8ece4; border-bottom: 1px solid #e8ece4; white-space: nowrap; }
th, td { padding: 11px 14px; white-space: nowrap; }
tbody td, tbody th { border-bottom: 1px solid #edf0e9; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f9fbf7; }
tbody tr.selected td { background: #f1f6ef; }
.numeric { text-align: right; }
.muted-cell { color: #8e968a; }
.check-col { width: 33px; padding: 0 3px 0 14px; }
input[type="checkbox"] { appearance: none; width: 13px; height: 13px; background: white; border: 1px solid #ccd5c8; border-radius: 3px; cursor: pointer; display: inline-grid; place-content: center; vertical-align: middle; }
input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
input[type="checkbox"]:checked::after { content: ''; width: 7px; height: 4px; border-bottom: 1.5px solid white; border-left: 1.5px solid white; transform: rotate(-45deg) translateY(-1px); }
.identity-col { position: sticky; left: 0; min-width: 240px; background: white; z-index: 1; padding-left: 10px; }
thead .identity-col { background: #f8faf6; }
.article-button { display: flex; align-items: center; gap: 11px; padding: 0; text-align: left; width: 100%; }
.article-button strong { font-size: 12px; font-weight: 550; color: #354439; display: block; white-space: normal; line-height: 1.35; max-width: 235px; }
.article-button:hover strong { color: var(--green); }
.article-symbol { width: 31px; height: 33px; display: grid; place-items: center; background: #f0f4eb; color: #758970; border: 1px solid #e7eddf; border-radius: 5px; flex-shrink: 0; }
.article-symbol svg { width: 17px; height: 17px; }
.ochre-symbol { background: #f7f3ec; color: #a18f70; border-color: #eee7db; }
.article-meta { font-size: 10px; color: #96a08f; display: block; margin-top: 4px; }
.article-meta > span { margin: 0 4px; }
.status { display: inline-flex; align-items: center; gap: 5px; border-radius: 4px; padding: 3px 6px; font-size: 10px; background: #f1f5ed; color: #788969; border: 1px solid #e9efe1; }
.status > span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status.ending { color: #a48d65; border-color: #ede6db; background: #f9f6ee; }
.status.outlet { color: #96918a; border-color: #e8e5de; background: #f5f3ef; }
.plan-col { background: #f5f8f1; color: var(--green-dark); }
thead .plan-col { background: #edf3e8; }
.plan-value { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.plan-value svg { width: 11px; height: 11px; color: #7e9878; }
.variation { font-size: 11px; line-height: 1.4; display: inline-block; border-radius: 4px; padding: 3px 6px; min-width: 56px; text-align: center; }
.variation.up { color: #60816a; background: #edf4e9; }
.variation.down { color: #9a815f; background: #f7f2e9; }
.open-col { width: 34px; padding-left: 3px; padding-right: 8px; }
.open-col .icon-button { width: 27px; height: 27px; color: #a8b1a2; }
.open-col svg { width: 14px; }
.sort-button { padding: 0; font-size: inherit; color: inherit; display: inline-flex; gap: 6px; align-items: center; }
.sort-button svg { width: 10px; height: 10px; opacity: .65; }
tfoot th, tfoot td { border-top: 1px solid #dce4d7; font-weight: 600; background: #f9faf7; height: 44px; font-size: 12px; }
tfoot .identity-col { background: #f9faf7; }
tfoot th span { color: #96a08f; font-size: 10px; font-weight: 400; margin-left: 6px; }
.table-footer { padding: 9px 13px 9px 17px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #9ca592; border-top: 1px solid #e8ece3; }
.table-footer > span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 5px; height: 5px; border-radius: 50%; background: #7c9270; display: inline-block; }
.pagination { display: flex; align-items: center; gap: 6px; }
.pagination > span { margin-right: 7px; }
.pagination .icon-button { width: 24px; height: 24px; }
.pagination svg { width: 13px; height: 13px; }
.draft-cell { color: #a88342; font-weight: 600; }
.chart-section { padding: 27px 0 4px; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.chart-heading h2 { font-size: var(--section-title-size); }
.chart-heading p { color: #98a08e; font-size: 11px; margin-top: 4px; }
.chart-legend { display: flex; gap: 18px; font-size: 10px; color: #8d9786; }
.chart-legend > span { display: flex; gap: 6px; align-items: center; }
.line-key { width: 17px; border-top: 2px solid #9aa9a1; display: inline-block; }
.line-key.brown { border-color: #a9957c; }
.line-key.dashed { border-top-style: dashed; border-color: var(--forecast-ai); }
.line-key.green { border-color: var(--forecast-enterprise); }
.chart-wrap { height: 215px; margin: 20px -3px 0; }
.large-chart { padding-top: 0; padding-bottom: 28px; }
.large-chart .chart-wrap { height: 280px; }
.page-footer { border-top: 1px solid #edf0e9; margin-top: 28px; padding: 16px 0; display: flex; justify-content: space-between; color: #a3ac9c; font-size: 10px; }
.page-footer span:first-child { display: flex; gap: 6px; align-items: center; }
.page-footer svg { width: 12px; height: 12px; }
.comparison-section { border-top: 1px solid var(--border); padding-top: 24px; }
.small-select { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #7c8775; }
.small-select select { min-width: 135px; font-size: 12px; }
.comparison-key { display: flex; gap: 18px; justify-content: flex-end; margin: 22px 0 4px; font-size: 12px; }
.comparison-key span { display: flex; align-items: center; gap: 4px; }
.comparison-key svg { width: 12px; height: 12px; }
.bar-chart-wrap { height: 325px; margin-bottom: 24px; }
.bar-chart-scroll { overflow-x: auto; }
#comparison-data { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
#comparison-data table th, #comparison-data table td { font-size: 12px; }
.export-section { border-top: 1px solid var(--border); padding-top: 26px; }
.export-summary { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.export-summary > span { display: flex; gap: 8px; align-items: center; }
.export-summary svg { width: 15px; height: 15px; }
.export-options { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.export-option { padding: 25px; border: 1px solid var(--border); border-radius: 7px; }
.export-option > svg { width: 27px; height: 27px; color: var(--green); margin-bottom: 13px; }
.export-option p { color: #8b9585; font-size: 14px; line-height: 1.65; margin: 10px 0 22px; max-width: 350px; }
.export-preview { margin-top: 32px; }
.export-preview h3 { margin-bottom: 14px; }
.export-preview .table-scroll { border: 1px solid var(--border); border-radius: 6px; }
.export-warning { margin-top: 18px; color: #9a7f57; font-size: 13px; }
.empty-state { padding: 64px 20px; text-align: center; border-top: 1px solid var(--border); }
.empty-state svg { color: #95a48e; width: 30px; height: 30px; margin-bottom: 13px; }
.empty-state p { color: var(--muted); font-size: 14px; margin: 10px 0 20px; }
.storage-alert { font-size: 13px; background: #fff4df; padding: 10px 14px; margin: 0 0 15px; color: #8b6743; border-radius: 5px; }
.overlay-backdrop { position: fixed; inset: 0; z-index: 40; background: #1d30282c; backdrop-filter: blur(1px); }
.detail-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: 415px; background: white; box-shadow: -10px 0 35px #243e2912; display: flex; flex-direction: column; outline: none; animation: slide-in .18s ease-out; }
@keyframes slide-in { from { transform: translateX(25px); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); color: #8f9989; font-size: 12px; }
.drawer-content { padding: 25px 25px 30px; overflow-y: auto; flex: 1; }
.detail-ref { color: var(--green); font-size: 12px; margin-bottom: 8px; font-weight: 600; }
.detail-ref span { color: #a3ac9c; font-weight: 400; }
.drawer-content h2 { font-size: 24px; line-height: 1.3; font-weight: 600; }
.detail-scent { font-size: 14px; color: #969f8e; margin-top: 6px; }
.detail-badges { display: flex; gap: 8px; margin: 15px 0 23px; }
.detail-badges .status { font-size: 11px; }
.neutral-badge { background: #f4f6f0; color: #8f9a85; font-size: 11px; padding: 3px 8px; border: 1px solid #e9ede3; border-radius: 4px; }
.detail-tabs { display: flex; border-bottom: 1px solid #e3e9dc; gap: 24px; margin-bottom: 23px; }
.detail-tabs button { font-size: 13px; color: #97a18d; padding: 9px 0; border-bottom: 2px solid transparent; }
.detail-tabs button[aria-selected="true"] { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.detail-period { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #909c85; }
.detail-period svg { width: 14px; height: 14px; }
.detail-totals { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0 10px; }
.detail-totals > div:last-child { padding-left: 22px; border-left: 1px solid var(--border); }
.detail-totals span { display: block; font-size: 11px; color: #8e9a82; }
.detail-totals strong { display: block; font-size: 25px; font-weight: 600; margin-top: 6px; }
.detail-totals small { font-size: 14px; color: #98a38d; font-weight: 400; }
.detail-chart-wrap { height: 140px; margin: 10px -10px 24px; }
.adjust-form { border-top: 1px solid var(--border); padding-top: 21px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.adjust-input-row { display: flex; gap: 12px; align-items: center; }
.amount-control { border: 1px solid #dce5d4; border-radius: 5px; display: flex; align-items: center; padding: 3px; flex: 1; min-width: 0; }
.amount-control input { width: 60px; min-width: 0; flex: 1; text-align: center; border: 0; background: none; font-size: 16px; padding: 4px 0; -moz-appearance: textfield; }
.amount-control input::-webkit-inner-spin-button { appearance: none; }
.amount-control svg { width: 15px; height: 15px; }
.field-note { font-size: 12px; line-height: 1.65; color: #95a08a; margin-top: 11px; }
.adjust-result { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 19px 0; padding: 16px 0; border-top: 1px dashed #e2e9d9; border-bottom: 1px dashed #e2e9d9; }
.adjust-result > span:first-child { color: #8c9b7f; font-size: 12px; }
.adjust-result strong { font-size: 22px; font-weight: 600; color: var(--green); }
.adjust-result small { font-size: 13px; font-weight: 400; }
.adjust-result > span:last-child { font-size: 12px; }
.reset-ia { margin: 14px auto 0; display: flex; color: #94a286; }
.drawer-footer { border-top: 1px solid var(--border); padding: 15px 22px; display: flex; gap: 9px; font-size: 11px; color: #8e9d7d; background: #fafbf8; }
.drawer-footer svg { width: 14px; height: 14px; }
.illustration-label { font-size: 11px; color: var(--brown); background: var(--brown-light); padding: 7px 10px; border-radius: 4px; margin-bottom: 23px; }
.drawer-content h3 { font-size: 13px; margin: 22px 0 13px; }
.factor { display: flex; align-items: flex-start; gap: 11px; margin: 12px 0; font-size: 12px; }
.factor > svg { width: 23px; height: 23px; padding: 4px; border-radius: 4px; margin-top: 1px; }
.factor strong { display: block; font-weight: 500; line-height: 1.5; }
.factor span { display: block; color: #98a28b; font-size: 11px; margin-top: 3px; }
.factor.positive > svg { background: #edf5e5; color: #6e8f5c; }
.factor.negative > svg { background: #f7f0e3; color: #a28b62; }
.explain-foot { font-size: 11px; color: #a3ab99; line-height: 1.7; margin-top: 25px; }
.calculation { font-size: 12px; margin: 0; }
.calculation > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #edf0e7; }
.calculation dt { color: #94a087; }
.calculation dd { margin: 0; font-weight: 500; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(500px, calc(100vw - 32px)); max-height: 88vh; overflow-y: auto; border: 1px solid #e7ecdf; border-radius: 8px; background: white; padding: 24px; z-index: 42; box-shadow: 0 20px 80px #213b2526; outline: none; }
.modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.modal-heading h2 { font-size: 20px; }
.modal > p { color: #849376; font-size: 14px; line-height: 1.7; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 26px; }
.save-summary { background: #f3f7ee; padding: 15px; border-radius: 5px; display: flex; gap: 11px; margin-top: 17px; font-size: 13px; line-height: 1.7; color: #7d906f; }
.save-summary svg { width: 18px; height: 18px; margin-top: 2px; }
.period-presets { display: flex; gap: 10px; margin-bottom: 25px; }
.range-labels { display: flex; justify-content: space-between; font-size: 14px; color: var(--green); }
.range-labels strong { font-weight: 600; }
.range-inputs { margin: 20px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.range-inputs label { font-size: 12px; color: #99a58c; }
input[type="range"] { width: 100%; accent-color: var(--green); display: block; margin: 8px 0; }
.history-empty { padding: 34px 10px; text-align: center; }
.history-empty > svg { width: 29px; height: 29px; color: #9bab8c; }
.history-empty h3 { margin-top: 13px; font-size: 14px; }
.history-empty p { margin-top: 8px; font-size: 12px; color: #9ba68d; }
.history-list { list-style: none; padding: 0; margin: 5px 0 25px; }
.history-list li { display: flex; align-items: flex-start; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf1e6; }
.history-icon { display: grid; place-items: center; width: 26px; height: 26px; background: #eef5e7; color: var(--green); border-radius: 50%; }
.history-icon svg { width: 13px; height: 13px; }
.history-list strong { display: block; font-size: 12px; font-weight: 600; }
.history-list span:not(.history-icon), .history-list time { display: block; margin-top: 4px; font-size: 11px; color: #9baa8b; }
.danger { color: #9e7562; margin-top: 10px; }
.export-modal-options { display: grid; gap: 12px; margin: 20px 0; }
.download-option { border: 1px solid #e0e7d8; border-radius: 6px; padding: 16px; display: flex; align-items: center; gap: 14px; text-align: left; }
.download-option:hover { background: #f4f8ef; border-color: #bfd0b3; }
.download-option svg { color: var(--green); }
.download-option svg:last-child { margin-left: auto; width: 15px; }
.download-option strong { display: block; font-size: 14px; font-weight: 500; }
.download-option small { display: block; font-size: 12px; color: #91a07f; margin-top: 4px; }
.validation-error { color: #a26b53; font-size: 13px; margin: 16px 0; }
#toast { display: none; position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80; padding: 13px 19px; background: #304e43; color: white; border: 1px solid #49674c; box-shadow: 0 6px 25px #324c3b26; border-radius: 6px; font-size: 13px; max-width: calc(100vw - 32px); width: max-content; }
#toast.visible { display: flex; align-items: center; gap: 10px; }
#toast.error { background: #82614c; border-color: #9c765c; }
#toast svg { width: 17px; height: 17px; }
.nav-backdrop { display: none; }

@media (min-width: 1600px) {
  main { padding: 38px 46px 0; }
  .topbar { padding: 0 46px; }
  .table-toolbar { padding: 18px 20px; }
  tbody td { padding-top: 14px; padding-bottom: 14px; }
  .identity-col { min-width: 285px; }
  .chart-wrap { height: 250px; }
}
@media (max-width: 1190px) {
  .sidebar { width: 196px; padding-left: 10px; padding-right: 10px; }
  .main-column { margin-left: 196px; }
  main { padding: 26px 24px 0; }
  .topbar { padding: 0 24px; }
  .brand strong { font-size: 19px; }
  nav button { font-size: 13px; gap: 9px; }
  .main-filters { flex-wrap: wrap; gap: 10px; }
  .filter:nth-child(2) .select-wrap { width: 170px; }
  .filter > span:first-child { display: none; }
  .more-filters .filter > span:first-child { display: block; }
  .metric { padding: 2px 17px; }
  .metric-value { font-size: 25px; }
  .metric-note { font-size: 10px; flex-wrap: wrap; gap: 2px 6px; }
  .table-toolbar { flex-wrap: wrap; }
  .page-heading { align-items: flex-start; }
  .page-actions { flex-wrap: wrap; justify-content: flex-end; }
  .page-actions > .icon-button { display: none; }
  .chart-legend { gap: 10px; }
}
@media (max-width: 950px) {
  .sidebar { width: 205px; transform: translateX(-100%); transition: transform .18s; z-index: 32; visibility: hidden; }
  .sidebar.is-open { transform: translateX(0); visibility: visible; }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: #263c2c40; z-index: 30; }
  .main-column { margin-left: 0; }
  .topbar { padding: 0 20px; height: 54px; }
  .topbar > button { display: inline-flex; }
  .demo-notice { display: none; }
  .topbar .breadcrumbs { font-size: 12px; }
  .page-heading { align-items: center; }
  .page-actions > .icon-button { display: inline-flex; }
  main { padding: 24px 23px 0; }
}
@media (max-width: 650px) {
  main { padding: 23px 16px 0; }
  .topbar { padding: 0 12px; gap: 9px; }
  .topbar-logo { width: 112px; height: 44px; }
  .topbar .breadcrumb-context, .topbar .breadcrumbs > svg { display: none; }
  .breadcrumbs { gap: 6px; }
  .breadcrumbs strong { font-size: 11px; }
  .prototype-badge { font-size: 10px; }
  .page-heading { display: block; margin-bottom: 18px; }
  h1 { font-size: 27px; }
  .page-heading p { font-size: 11px; }
  .page-actions { justify-content: flex-start; margin-top: 16px; flex-wrap: nowrap; }
  .page-actions .button { flex: 1; min-height: 38px; font-size: 12px; }
  .page-actions .icon-button { width: 30px; }
  .eyebrow { font-size: 10px; }
  .filter-band { padding: 10px; }
  .main-filters { display: grid; grid-template-columns: 1fr auto auto; gap: 9px; }
  .period-button { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .main-filters .filter:nth-child(2) { grid-column: 1 / -1; }
  .main-filters .filter:nth-child(2) .select-wrap { width: 100%; }
  .main-filters .filter:nth-child(3) { grid-column: 1; }
  .main-filters .filter:nth-child(3) .select-wrap { width: 100%; }
  .main-filters .filter:nth-child(3) > span:first-child { display: block; font-size: 12px; }
  .filter-toggle { margin-left: 0; }
  .more-filters { grid-template-columns: 1fr 1fr; gap: 12px; }
  .select-wrap select { font-size: 12px; }
  .metrics { grid-template-columns: 1fr 1fr; margin: 21px 0; gap: 18px 0; }
  .metric { padding: 0 0 0 18px; border-right: 0; }
  .metric:nth-child(odd) { padding: 0 16px 0 2px; border-right: 1px solid var(--border); }
  .metric-value { font-size: 26px; margin: 7px 0; }
  .metric-label { font-size: 11px; }
  .metric-note { font-size: 10px; min-height: 25px; line-height: 1.5; align-content: flex-start; }
  .metric-label svg { display: none; }
  .table-toolbar { padding: 14px 11px; gap: 14px; }
  .table-tools { width: 100%; gap: 8px; }
  .search-field { min-width: 120px; flex: 1; width: auto; }
  .search-field input { font-size: 11px; }
  .segmented button { padding: 5px 8px; font-size: 10px; min-width: 35px; }
  .section-heading h2 { font-size: var(--section-title-size); }
  .selection-bar { gap: 10px; flex-wrap: wrap; padding: 9px 11px; }
  .selection-bar .text-button { font-size: 11px; }
  .identity-col { min-width: 197px; max-width: 210px; padding-right: 8px; }
  .article-button { gap: 8px; }
  .article-button strong { font-size: 11px; max-width: 150px; }
  .article-meta { font-size: 9px; }
  .article-symbol { width: 24px; height: 28px; }
  .article-symbol svg { width: 14px; height: 14px; }
  .check-col { padding-left: 10px; }
  .table-footer { padding: 9px; font-size: 9px; gap: 7px; }
  .table-footer > span { max-width: 140px; flex-wrap: wrap; }
  .table-footer > span .draft-dot { display: none; }
  .pagination { gap: 3px; }
  tfoot .identity-col span { display: none; }
  .chart-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
  .chart-legend { flex-wrap: wrap; font-size: 10px; gap: 13px; }
  .chart-wrap { height: 200px; }
  .page-footer { gap: 12px; font-size: 9px; }
  .page-footer span:first-child { max-width: 250px; }
  .page-footer span:last-child { white-space: nowrap; }
  .detail-panel { width: 100%; }
  .drawer-content { padding: 20px; }
  .detail-panel h2 { font-size: 23px; }
  .drawer-footer { padding: 12px 20px; font-size: 10px; }
  .modal { padding: 20px; }
  .modal-heading h2 { font-size: 18px; }
  .period-presets { gap: 7px; }
  .period-presets .button { flex: 1; font-size: 12px; padding: 8px; }
  .export-options { grid-template-columns: 1fr; }
  .export-summary { gap: 12px; font-size: 12px; }
  .bar-chart-wrap { height: 330px; }
  .bar-chart-scroll .bar-chart-wrap { min-width: 600px; }
  [data-tooltip]:hover::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Keep the operational controls readable at normal browser zoom. */
.button, .select-wrap select, .filter > span:first-child, .form-label,
.small-select, .text-button, .article-button strong, table, .download-option strong,
.detail-tabs button, .factor strong { font-size: 14px; }
thead th, .sort-button, tfoot th, tfoot td, #comparison-data table th,
#comparison-data table td, .search-field input, .segmented button { font-size: 13px; }
.metric-label, .detail-period, .detail-totals span, .detail-ref, .calculation,
.chart-heading p, .chart-legend, .article-meta, .status, .neutral-badge,
.variation, .table-footer, .count-badge, .metric-note, .field-note,
.profile strong, .profile small, .local-status, .local-status small,
.original-link, .demo-notice, .page-footer, .drawer-footer, .factor span,
.history-list strong, .history-list time, .history-list span:not(.history-icon),
.explain-foot, .illustration-label, .brand-sub, .nav-label, .workspace-label small,
.download-option small, .history-empty p, .range-inputs label { font-size: 12px; }
.metric-note, .article-meta, .chart-heading p, .chart-legend, .table-footer,
.field-note, .factor span, .explain-foot, .page-footer, .detail-scent,
.drawer-footer, .detail-period, .detail-totals span, .calculation dt,
.history-list time, .history-list span:not(.history-icon), .history-empty p,
.export-option p, .range-inputs label, .download-option small { color: #788273; }
.status.active { color: #637955; }
.status.ending { color: #8b724d; }
.status.outlet { color: #79756f; }
.variation.up { color: #4d7356; }
.variation.down { color: #8b704e; }
.article-button strong { max-width: 240px; }
.article-meta { font-size: 11px; }
.article-symbol { width: 32px; height: 36px; }
.search-field { width: 225px; height: 36px; }
.metric-note { flex-wrap: wrap; }
.metrics { grid-template-columns: 1.18fr 1fr 1fr .88fr; }
.table-toolbar { flex-wrap: wrap; }
.selection-bar { flex-wrap: wrap; }
.select-wrap select { min-width: 0; }
.more-filters .filter:nth-child(n) .select-wrap { width: 100%; min-width: 0; }
.save-summary, .modal > p { color: #63755a; }
@media (max-width: 650px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .button, .select-wrap select { font-size: 14px; }
  .page-actions .button { font-size: 13px; padding-left: 10px; padding-right: 10px; }
  .metric-note { font-size: 11px; min-height: 32px; }
  .metric-label { font-size: 12px; }
  .search-field { min-width: 0; width: auto; }
  .search-field input { font-size: 12px; }
  .segmented button { font-size: 12px; padding: 5px 8px; }
  .article-button strong { font-size: 13px; max-width: 150px; }
  .article-meta { font-size: 10px; }
  .article-symbol { width: 24px; height: 30px; }
  .page-footer, .drawer-footer { font-size: 10px; }
  .table-footer { font-size: 11px; }
  .chart-legend { font-size: 11px; }
}
