/* Demand Forecaster 2.0: design system.
   Brand from ForecasterDoNewslettera (navy + orange), calmer and more spacious for daily work. */
:root {
  --navy: #12255A; --navy-2: #1B2A4A; --navy-3: #0E1C45; --navy-soft: #E8ECF6;
  --orange: #F36C1A; --orange-d: #D65B0F; --orange-soft: #FFF3EA;
  --ink: #1F2430; --ink-2: #545E6E; --ink-3: #8A94A3;
  --bg: #F4F6FA; --card: #FFFFFF; --line: #E3E8F0; --line-2: #EFF2F7;
  --ok: #1F8A4C; --ok-soft: #E8F5EE; --bad: #C8341F; --bad-soft: #FCEDEA; --warn: #A87508; --warn-soft: #FDF5E3;
  --blue: #3D6CB9; --blue-soft: rgba(61,108,185,.14);
  --radius: 12px; --radius-s: 8px;
  --shadow: 0 1px 2px rgba(18,37,90,.05), 0 6px 22px rgba(18,37,90,.06);
  --shadow-l: 0 12px 48px rgba(14,28,69,.18);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --side: 248px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; color: var(--navy-3); letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
a { color: var(--blue); }
.num, td.n, th.n { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange-d); }
.hidden { display: none !important; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.stack-l > * + * { margin-top: 22px; }
.grow { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .g2, .g4 { grid-template-columns: 1fr; } }

/* boot */
.boot { height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.86); opacity: .6; } }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: #fff; color: var(--navy-3); font: 600 14px var(--font); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; text-decoration: none; }
.btn:hover { border-color: #C9D2E3; background: #FAFBFD; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(243,108,26,.35); outline-offset: 1px; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 2px 8px rgba(243,108,26,.25); }
.btn.primary:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-3); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--navy-soft); }
.btn.danger { color: var(--bad); }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.big { height: 46px; padding: 0 22px; font-size: 15px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
label.field { display: block; }
label.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff;
  font: 14px var(--font); color: var(--ink); transition: border-color .15s; }
textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #C9D2E3; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--orange); flex: none; }
.seg { display: inline-flex; background: var(--line-2); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; height: 30px; padding: 0 12px; border-radius: 7px; font: 600 13px var(--font); color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--navy-3); box-shadow: 0 1px 3px rgba(18,37,90,.12); }

/* auth screens */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-hero { background: radial-gradient(1200px 600px at -10% -20%, #24408a 0%, var(--navy) 45%, var(--navy-3) 100%); color: #DCE3F3; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-hero h1 { color: #fff; font-size: 34px; line-height: 1.15; max-width: 460px; }
.auth-hero .lead { font-size: 16px; max-width: 440px; margin-top: 16px; color: #C3CDE6; }
.auth-hero ul { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; max-width: 440px; }
.auth-hero li { display: flex; gap: 12px; align-items: flex-start; }
.auth-hero li b { color: #fff; }
.auth-hero .dot { flex: none; width: 22px; height: 22px; border-radius: 6px; background: rgba(243,108,26,.18); color: var(--orange); display: grid; place-items: center; font-weight: 800; font-size: 12px; margin-top: 1px; }
.auth-hero svg.deco { position: absolute; right: -40px; bottom: 60px; width: 520px; opacity: .55; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; color: #fff; font-size: 15px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.brand small { display: block; font-weight: 500; color: #9FB0D6; font-size: 11.5px; letter-spacing: 0; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-hero { padding: 32px 24px; } .auth-hero svg.deco, .auth-hero ul { display: none; } }

/* shell */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--navy-3); color: #C6D0E8; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 4px 8px 20px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: #C6D0E8; text-decoration: none; font-weight: 550; cursor: pointer; border: 0; background: none; font-size: 14px; width: 100%; text-align: left; }
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.on { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.nav-item .step { margin-left: auto; font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #9FB0D6; }
.nav-item .step.done { background: rgba(31,138,76,.25); color: #8EE0B0; }
.nav-sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 6px; }
.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6F80A8; padding: 6px 10px 4px; }
.side-foot { margin-top: auto; display: grid; gap: 6px; }
.keybadge { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 12.5px; cursor: pointer; border: 0; color: inherit; text-align: left; width: 100%; }
.keybadge .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(31,138,76,.22); color: #8EE0B0; flex: none; }
.keybadge.warn .ico { background: rgba(243,108,26,.2); color: #FFB27F; }
.keybadge b { color: #fff; display: block; font-size: 13px; }
.main { min-width: 0; }
.topbar { height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.topbar .crumbs { font-weight: 650; color: var(--navy-3); font-size: 15px; }
.topbar .crumbs span { color: var(--ink-3); font-weight: 500; }
.content { padding: 28px 32px 110px; max-width: 1440px; }
.user-chip { display: flex; align-items: center; gap: 10px; cursor: pointer; border: 0; background: none; font: inherit; color: var(--ink-2); padding: 6px 8px; border-radius: 9px; }
.user-chip:hover { background: var(--line-2); }
.avatar { width: 30px; height: 30px; border-radius: 15px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; }
.menu { position: absolute; right: 24px; top: 58px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-l); padding: 6px; min-width: 220px; z-index: 50; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 7px; font: 14px var(--font); color: var(--ink); cursor: pointer; }
.menu button:hover { background: var(--line-2); }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; }
  .side .brand, .nav-label, .nav-sep, .side-foot { display: none; }
  .nav-item { width: auto; white-space: nowrap; }
  .content, .topbar { padding-left: 16px; padding-right: 16px; }
}

/* cards & tiles */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card.flat { box-shadow: none; }
.card.tight { padding: 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--navy); }
.tile.orange::before { background: var(--orange); } .tile.ok::before { background: var(--ok); } .tile.blue::before { background: var(--blue); } .tile.warn::before { background: var(--warn); }
.tile .k { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.tile .v { font-size: 26px; font-weight: 750; color: var(--navy-3); margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tile .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.hero-card { background: linear-gradient(135deg, #fff 0%, #fff 55%, var(--orange-soft) 100%); }
.callout { border-radius: 10px; padding: 14px 16px; background: var(--navy-soft); color: var(--navy-2); font-size: 13.5px; display: flex; gap: 12px; align-items: flex-start; }
.callout.ok { background: var(--ok-soft); color: #145C33; }
.callout.warn { background: var(--warn-soft); color: #6E4D05; }
.callout.bad { background: var(--bad-soft); color: #8A2414; }
.callout svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.A, .pill.X, .pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.B, .pill.Y, .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.C, .pill.Z, .pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.navy { background: var(--navy-soft); color: var(--navy); }
.pill.orange { background: var(--orange-soft); color: var(--orange-d); }

/* steps */
.steps { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.steps .st { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.steps .st i { width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 12px; background: var(--line-2); color: var(--ink-3); }
.steps .st.on { color: var(--navy-3); } .steps .st.on i { background: var(--orange); color: #fff; }
.steps .st.done i { background: var(--ok-soft); color: var(--ok); }
.steps .bar { width: 28px; height: 2px; background: var(--line); }

/* dropzone */
.drop { border: 2px dashed #CBD4E4; border-radius: 14px; padding: 42px 24px; text-align: center; background: #FBFCFE; transition: all .15s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--orange); background: var(--orange-soft); }
.drop .big-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; margin: 0 auto 14px; }
.drop.over .big-ico { background: #fff; color: var(--orange); }

/* tables */
.tbl-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { position: sticky; top: 0; background: #F8FAFD; text-align: left; font-weight: 650; color: var(--ink-2); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--navy); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: #F7F9FD; }
.tbl tr.sel td { background: var(--orange-soft) !important; }
.tbl tr.best td { background: #FFF6EE; }
.tbl td.n, .tbl th.n { text-align: right; }
.tbl .sku { font-weight: 600; color: var(--navy-3); }
.tbl .code { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* charts */
.chart { width: 100%; display: block; }
.chart text { font: 11px var(--font); fill: var(--ink-3); }
.chart .grid line { stroke: var(--line-2); }
.chart .axis line { stroke: var(--line); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.legend i.dash { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; }
.chart-tip { position: fixed; pointer-events: none; background: var(--navy-3); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12px; box-shadow: var(--shadow-l); z-index: 100; white-space: nowrap; }
.chart-tip b { color: #FFB27F; }
.spark { width: 84px; height: 26px; display: block; }

/* results layout */
.split { display: grid; grid-template-columns: minmax(440px, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.split > .sticky { position: sticky; top: 84px; }
@media (max-width: 1200px) { .split { grid-template-columns: 1fr; } .split > .sticky { position: static; } }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input[type=text] { max-width: 260px; height: 36px; }
.toolbar select { width: auto; height: 36px; }
.bar-mini { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; width: 70px; display: inline-block; vertical-align: middle; }
.bar-mini i { display: block; height: 100%; background: var(--ok); }
.bar-mini.warn i { background: var(--warn); } .bar-mini.bad i { background: var(--bad); }
.acc { font-weight: 700; font-variant-numeric: tabular-nums; }
.acc.ok { color: var(--ok); } .acc.warn { color: var(--warn); } .acc.bad { color: var(--bad); }

/* modal */
.modal-back { position: fixed; inset: 0; background: rgba(14,28,69,.45); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 80; padding: 20px; animation: fade .15s; }
.modal { background: #fff; border-radius: 16px; box-shadow: var(--shadow-l); width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow: auto; padding: 26px; animation: rise .18s; }
.modal.wide { max-width: 820px; }
.modal h2 { margin-bottom: 6px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* toasts */
#toasts { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 120; }
.toast { background: var(--navy-3); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-l); font-size: 13.5px; max-width: 380px; animation: rise .2s; }
.toast.ok { background: #145C33; } .toast.bad { background: #8A2414; }

/* progress */
.progress { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), #FF9A57); width: 0; transition: width .2s; }

/* feedback button */
.fb-btn { position: fixed; right: 22px; bottom: 22px; z-index: 60; height: 42px; border-radius: 21px; padding: 0 16px 0 12px; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-l); color: var(--navy-3); font: 600 13.5px var(--font); cursor: pointer; }
.fb-btn:hover { border-color: var(--orange); color: var(--orange-d); }
.fb-shot { border: 1px solid var(--line); border-radius: 8px; max-height: 220px; width: 100%; object-fit: contain; background: var(--bg); }

/* misc */
.kbd { font-family: var(--mono); font-size: 12px; background: var(--line-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.codebox { font-family: var(--mono); font-size: 12px; background: #0E1C45; color: #CFE0FF; border-radius: 10px; padding: 14px 16px; overflow: auto; white-space: pre; line-height: 1.55; }
.codebox .c { color: #FFB27F; }
.empty { text-align: center; padding: 56px 20px; color: var(--ink-2); }
.empty .big-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; margin: 0 auto 16px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; font-weight: 600; }
.method-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line-2); cursor: pointer; }
.method-row:hover { border-color: #C9D2E3; }
.method-row.on { border-color: var(--orange); background: var(--orange-soft); }
.method-row.rec { position: relative; }
.badge-rec { font-size: 10.5px; font-weight: 700; color: var(--ok); background: var(--ok-soft); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.helpbox h3 { margin-top: 18px; margin-bottom: 6px; }
.helpbox p, .helpbox li { color: var(--ink-2); }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner.dark { border-color: var(--line); border-top-color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: rise .25s ease-out; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 6px; top: 6px; height: 28px; border: 0; background: none; color: var(--ink-3); cursor: pointer; font: 600 12px var(--font); padding: 0 8px; border-radius: 6px; }
.pw-wrap button:hover { background: var(--line-2); }
.strength { height: 4px; border-radius: 2px; background: var(--line-2); margin-top: 8px; overflow: hidden; }
.strength i { display: block; height: 100%; transition: width .2s, background .2s; }

/* admin */
.adm-tabs { flex-wrap: wrap; }
.adm-tabs button { display: inline-flex; align-items: center; gap: 7px; }
.adm-badge { min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 750; display: inline-grid; place-items: center; }
.adm-spin { margin: 0 auto 12px; }
.adm-mt { margin-top: 14px; }
.adm-mb { margin-bottom: 14px; }
.adm-ml { margin-left: 8px; }
.adm-center { text-align: center; padding: 28px 12px !important; }
.adm-nowrap { white-space: nowrap; }
.adm-hint { margin-top: 5px; }
.adm-key { font-size: 14px; }
.adm-key b { display: block; margin-bottom: 2px; }
.adm-linkbtn { border: 0; background: none; padding: 0; color: var(--orange-d); font: 600 12.5px var(--font); cursor: pointer; text-decoration: underline; }
.adm-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .adm-two { grid-template-columns: 1fr; } }
.adm-chart { height: auto; margin-top: 4px; }
.adm-chart .adm-bar { fill: var(--navy); opacity: .82; }
.adm-chart .adm-bar.today { fill: var(--orange); opacity: 1; }
.adm-chart .adm-line { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linejoin: round; }
.adm-chart .adm-dot { fill: #fff; stroke: var(--orange); stroke-width: 1.4; }
.adm-chart .adm-axis { stroke: var(--line); }
.adm-chart .adm-hit { fill: transparent; cursor: default; }
.adm-chart .adm-hit:hover { fill: rgba(18,37,90,.05); }
.legend i.adm-lg-bar { height: 10px; width: 10px; border-radius: 2px; background: var(--navy); }
.legend i.adm-lg-line { background: var(--orange); }
.adm-feat { font-weight: 600; color: var(--navy-3); }
.adm-barcell { width: 32%; min-width: 90px; }
.adm-hbar { display: block; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.adm-hbar i { display: block; height: 100%; border-radius: 4px; background: var(--orange); }
.adm-hbar.navy i { background: var(--blue); }
.adm-hbar.bad i { background: var(--bad); }
.tbl tr.adm-unused td { background: var(--warn-soft); }
.tbl tr.adm-unused .adm-feat { color: var(--ink-2); }
.tbl tr.adm-off td { color: var(--ink-3); }
.tbl tr.adm-dim td { color: var(--ink-2); }
.adm-users { max-height: 70vh; }
.adm-email { font-weight: 600; color: var(--navy-3); word-break: break-all; }
.adm-pills { gap: 4px; margin-top: 3px; }
.adm-pills:empty { display: none; }
.adm-sort { color: var(--orange-d); }
.adm-actions { white-space: nowrap; text-align: right; }
.adm-actions .btn { margin-left: 2px; }
.adm-link { display: flex; gap: 8px; }
.adm-link .adm-link-inp { flex: 1; min-width: 0; background: var(--bg); }
@media (max-width: 600px) { .adm-link { flex-direction: column; } }
.adm-msg { font: 13.5px/1.55 var(--font); background: var(--bg); }
.adm-new { border-color: #F6C8A6; background: linear-gradient(135deg, #fff 0%, #fff 60%, var(--orange-soft) 100%); }
.adm-timeline { margin-top: 14px; }
.adm-tl-day + .adm-tl-day { margin-top: 18px; }
.adm-tl-head { font-size: 12px; font-weight: 700; color: var(--navy-3); text-transform: capitalize; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.adm-tl-row { display: grid; grid-template-columns: 46px 14px minmax(0, auto) minmax(0, 1fr); gap: 8px; align-items: center; padding: 5px 0; font-size: 13.5px; }
.adm-tl-time { color: var(--ink-3); }
.adm-tl-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--line); justify-self: center; }
.adm-tl-row.navy .adm-tl-dot { background: var(--blue); }
.adm-tl-row.ok .adm-tl-dot { background: var(--ok); }
.adm-tl-row.bad .adm-tl-dot { background: var(--bad); }
.adm-tl-row.bad .adm-tl-label { color: var(--bad); }
.adm-tl-label { font-weight: 600; color: var(--ink); }
.adm-tl-meta { color: var(--ink-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-chips button { display: inline-flex; align-items: center; gap: 6px; }
.adm-count { font-size: 11px; font-weight: 700; color: var(--ink-3); background: rgba(18,37,90,.06); border-radius: 8px; padding: 0 6px; }
.adm-chips button.on .adm-count { color: var(--orange-d); background: var(--orange-soft); }
.adm-fb.is-new { border-left: 3px solid var(--orange); }
.adm-fb-head { margin-bottom: 12px; }
.adm-fb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .adm-fb-grid { grid-template-columns: 1fr; } }
.adm-msgtext { white-space: pre-wrap; word-break: break-word; font-size: 14px; color: var(--ink); }
.adm-ctx { font-size: 12.5px; background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.adm-ctx dd { font-weight: 500; }
.adm-fb-edit { display: flex; gap: 12px; align-items: flex-start; }
.adm-fb-edit .adm-status { width: 160px; flex: none; }
@media (max-width: 600px) { .adm-fb-edit { flex-direction: column; } .adm-fb-edit .adm-status { width: 100%; } }
.adm-shot { position: relative; border: 0; padding: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.adm-shot-hint { position: absolute; right: 8px; bottom: 8px; display: inline-flex; gap: 5px; align-items: center; background: rgba(14,28,69,.78); color: #fff; font: 600 11.5px var(--font); padding: 4px 8px; border-radius: 6px; opacity: 0; transition: opacity .15s; }
.adm-shot:hover .adm-shot-hint, .adm-shot:focus-visible .adm-shot-hint { opacity: 1; }
.adm-noshot { border: 1px dashed var(--line); border-radius: 8px; padding: 28px 12px; text-align: center; }
.adm-shot-full { display: block; width: 100%; height: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
/* /admin */

/* results table density */
.tbl td .sku { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl td .sku + .small { white-space: nowrap; }
.methods-more { border: 0; background: none; color: var(--blue); font: 600 13px var(--font); cursor: pointer; padding: 6px 0; }

/* security explainer */
.sec-hero h1 { font-size: 32px; margin-top: 4px; }
.sec-hero .lead { font-size: 16.5px; color: var(--ink-2); max-width: 760px; margin-top: 10px; line-height: 1.55; }
.sec-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; }
.sec-arrow { display: grid; place-items: center; color: var(--ink-3); }
.sec-step { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #FBFCFE; display: flex; flex-direction: column; gap: 10px; }
.sec-step h3 { font-size: 15px; }
.sec-step-h { display: flex; align-items: center; justify-content: space-between; }
.sec-num { width: 24px; height: 24px; border-radius: 12px; background: var(--line-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.sec-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); flex: none; }
.sec-ico.big { width: 48px; height: 48px; border-radius: 13px; }
.sec-step.orange { background: var(--orange-soft); border-color: #F7D3BC; } .sec-step.orange .sec-ico { background: #fff; color: var(--orange-d); }
.sec-step.navy { background: var(--navy-3); border-color: var(--navy-3); color: #DCE3F3; } .sec-step.navy h3 { color: #fff; } .sec-step.navy .muted { color: #A9B6D6; } .sec-step.navy .sec-ico { background: rgba(255,255,255,.1); color: #fff; } .sec-step.navy .sec-num { background: rgba(255,255,255,.1); color: #fff; } .sec-step.navy .sec-sample { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.sec-step.ok { background: var(--ok-soft); border-color: #CBE9D7; } .sec-step.ok .sec-ico { background: #fff; color: var(--ok); }
.sec-sample { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 13px; line-height: 1.6; }
.sec-sample code { font-family: var(--mono); font-size: 12px; background: var(--navy-soft); color: var(--navy); padding: 1px 5px; border-radius: 4px; }
.sec-step.navy .sec-sample code { background: rgba(243,108,26,.2); color: #FFC49E; }
.sec-to { color: var(--orange-d); font-weight: 700; }
.sec-see { display: grid; gap: 6px; }
.sec-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; }
.sec-row.no { background: var(--ok-soft); } .sec-row.yes { background: var(--line-2); }
.sec-mark { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: #fff; }
.sec-row.no .sec-mark { color: var(--ok); } .sec-row.yes .sec-mark { color: var(--ink-2); }
.sec-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.sec-row.no .sec-tag { color: var(--ok); } .sec-row.yes .sec-tag { color: var(--ink-3); }
.sec-key { display: grid; gap: 10px; }
.sec-key-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.sec-key-item svg { color: var(--navy); flex: none; margin-top: 2px; }
.sec-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.sec-card h3 { margin-bottom: 4px; }
.sec-card p { font-size: 13.5px; }
@media (max-width: 1100px) { .sec-flow { grid-template-columns: 1fr; } .sec-arrow { transform: rotate(90deg); height: 24px; } }
.pub { min-height: 100vh; background: var(--bg); }
.pub-top { height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.pub-main { max-width: 1180px; margin: 0 auto; padding: 36px 24px 80px; }
.brand.dark { color: var(--navy-3); text-decoration: none; }
.brand.dark small { color: var(--ink-3); }
.auth-sec-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; text-decoration: none; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.08); margin-top: 26px; }
.auth-sec-link:hover { background: rgba(255,255,255,.14); }

/* collapsible sidebar */
.shell { transition: grid-template-columns .18s ease; }
.shell.collapsed { grid-template-columns: 56px 1fr; }
.shell.collapsed .side { padding: 14px 6px; }
.shell.collapsed .side .brand > div, .shell.collapsed .nav-item span, .shell.collapsed .nav-label, .shell.collapsed .keybadge > span:last-child { display: none; }
.shell.collapsed .nav-item { justify-content: center; padding: 10px 0; }
.shell.collapsed .nav-item .step { display: none; }
.shell.collapsed .keybadge { justify-content: center; padding: 8px 0; }
.shell.collapsed .side .brand { justify-content: center; padding: 4px 0 20px; }
.side-toggle { border: 0; background: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; margin-left: -8px; }
.side-toggle:hover { background: var(--line-2); color: var(--navy); }

/* cycle workspace: one screen per step, panes scroll inside */
.content.full { padding: 0; max-width: none; }
.cyc { display: flex; flex-direction: column; height: calc(100vh - 48px); }
.cyc-steps { display: flex; white-space: nowrap; align-items: center; gap: 2px; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; }
.cyc-step { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px; font: 600 13px var(--font); color: var(--ink-3); text-decoration: none; white-space: nowrap; border: 0; background: none; cursor: pointer; }
.cyc-step i { width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-style: normal; font-size: 11.5px; background: var(--line-2); color: var(--ink-3); flex: none; }
.cyc-step:hover { background: var(--line-2); color: var(--navy); }
.cyc-step.on { background: var(--orange-soft); color: var(--navy-3); } .cyc-step.on i { background: var(--orange); color: #fff; }
.cyc-step.done i { background: var(--ok-soft); color: var(--ok); }
.cyc-step.skip { opacity: .55; }
.cyc-sep { width: 14px; height: 1px; background: var(--line); flex: none; }
.cyc-head { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: #FBFCFE; flex: none; flex-wrap: wrap; }
.cyc-head h1 { font-size: 19px; }
.cyc-head .sub { color: var(--ink-2); font-size: 13px; }
.cyc-body { flex: 1; min-height: 0; display: grid; }
.cyc-body.two { grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); }
.cyc-body.three { grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) minmax(300px, 360px); }
.cyc-body.one { grid-template-columns: minmax(0, 1fr); }
.pane { min-height: 0; overflow: auto; padding: 16px 18px; }
.pane + .pane { border-left: 1px solid var(--line); }
.pane.list { padding: 0; background: #fff; }
.pane.side-panel { background: #FBFCFE; }

@media (max-width: 900px) { .cyc-body.two, .cyc-body.three { grid-template-columns: 1fr; } }
.kpis { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; min-width: 120px; }
.kpi .k { font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.kpi .v { font-size: 19px; font-weight: 750; color: var(--navy-3); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kpi .s { font-size: 11.5px; color: var(--ink-3); }
.kpi.ok .v { color: var(--ok); } .kpi.bad .v { color: var(--bad); } .kpi.warn .v { color: var(--warn); }
.qlist { list-style: none; margin: 0; padding: 0; }
.qitem { padding: 10px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; display: grid; gap: 3px; }
.qitem:hover { background: #F7F9FD; }
.qitem.on { background: var(--orange-soft); box-shadow: inset 3px 0 0 var(--orange); }
.qitem.done { opacity: .6; }
.qitem .t { font-weight: 650; color: var(--navy-3); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qitem .m { font-size: 12px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.qitem .r { font-size: 12px; color: var(--ink-2); }
.qitem .r b { color: var(--bad); font-weight: 650; } .qitem .r b.medium { color: var(--warn); } .qitem .r b.low { color: var(--ink-2); }
.list-head { position: sticky; top: 0; background: #fff; z-index: 2; padding: 10px 14px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.list-head input[type=text] { height: 34px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ptable th, .ptable td { padding: 5px 6px; text-align: right; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.ptable th:first-child, .ptable td:first-child { text-align: left; position: sticky; left: 0; background: #fff; font-weight: 600; color: var(--ink-2); }
.ptable th { color: var(--ink-3); font-weight: 600; font-size: 11.5px; }
.ptable tr.final td { font-weight: 700; color: var(--navy-3); }
.ptable td.edit { padding: 2px; }
.ptable td.edit input { width: 64px; height: 26px; padding: 0 6px; text-align: right; font: 700 12.5px var(--font); border-color: transparent; background: var(--orange-soft); }
.ptable td.edit input:focus { border-color: var(--orange); background: #fff; }
.ptable td.changed { background: #FFF2E6; }
.ptable td.anom { background: #FFF6DB; }
.ptable td.adj { background: var(--ok-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 4px 10px; font: 600 12px var(--font); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: #C9D2E3; } .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.mini-form { display: grid; gap: 8px; }
.mini-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-form select, .mini-form input[type=text], .mini-form input[type=number] { height: 34px; font-size: 13px; }
.corr { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 12.5px; display: grid; gap: 2px; background: #fff; }
.corr .row { gap: 6px; }
.empty-pane { display: grid; place-items: center; height: 100%; color: var(--ink-3); text-align: center; padding: 30px; }
.pareto-row { display: grid; grid-template-columns: minmax(140px, 1.2fr) 2fr auto; gap: 10px; align-items: center; font-size: 12.5px; padding: 4px 0; }
.pareto-bar { height: 10px; border-radius: 5px; background: var(--line-2); position: relative; overflow: hidden; }
.pareto-bar i { position: absolute; inset: 0 auto 0 0; background: var(--orange); border-radius: 5px; }
.section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 4px 0 8px; }

/* tables whose first column holds product names: let names wrap instead of pushing numbers out of the card */
.ptable.wrap-first td:first-child, .ptable.wrap-first th:first-child { white-space: normal; position: static; min-width: 160px; }
.ptable.wrap-first td:first-child { line-height: 1.35; padding-top: 7px; padding-bottom: 7px; }

.sec-split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.sec-split-mid { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--ink-3); }
.sec-split-mid span { font-size: 26px; font-weight: 300; }
.sec-split-mid small { font-size: 11px; writing-mode: horizontal-tb; max-width: 70px; text-align: center; }
.sec-side { border-radius: 12px; padding: 14px; border: 1px solid var(--line); }
.sec-side.ok { background: var(--ok-soft); border-color: #CBE9D7; }
.sec-side.navy { background: var(--navy-3); border-color: var(--navy-3); color: #DCE3F3; }
.sec-side-h { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.sec-side.ok .sec-ico { background: #fff; color: var(--ok); }
.sec-side.navy .sec-ico { background: rgba(255,255,255,.1); color: #fff; }
.sec-side.navy .small { color: #A9B6D6; } .sec-side.navy b { color: #fff; }
.sec-mini { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 8px; overflow: hidden; }
.sec-side.navy .sec-mini { background: rgba(255,255,255,.05); }
.sec-mini th, .sec-mini td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line-2); }
.sec-side.navy .sec-mini th, .sec-side.navy .sec-mini td { border-color: rgba(255,255,255,.08); }
.sec-mini th { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.sec-side.navy .sec-mini th { color: #8FA0C8; }
.sec-mini td:last-child, .sec-mini th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.sec-mini code { font-family: var(--mono); font-size: 12px; color: #FFC49E; }
@media (max-width: 900px) { .sec-split { grid-template-columns: 1fr; } .sec-split-mid { transform: rotate(90deg); } }

/* ===== 0.30 frame: compact top bar with stepper, one step bar, drawer, no floating ===== */
.split-menu { position: relative; }
.top-center { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.top-center::-webkit-scrollbar { display: none; }
.cyc-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--navy-soft); color: var(--navy); font: 650 12.5px var(--font); white-space: nowrap; margin-right: 8px; }
.cyc-chip.ok { background: var(--ok-soft); color: var(--ok); }
.tstep { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 9px; border-radius: 8px; font: 600 12.5px var(--font); color: var(--ink-3); text-decoration: none; white-space: nowrap; }
.tstep i { width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 11px; background: var(--line-2); color: var(--ink-3); flex: none; }
.tstep:hover { background: var(--line-2); color: var(--navy); }
.tstep.on { background: var(--orange-soft); color: var(--navy-3); } .tstep.on i { background: var(--orange); color: #fff; }
.tstep.done i { background: var(--ok-soft); color: var(--ok); }
.tstep.prog i { background: var(--warn-soft); color: var(--warn); }
.tstep.skip { opacity: .6; } .tstep.skip i { background: var(--line-2); color: var(--ink-3); }
.tstep .cnt { font-size: 11px; font-weight: 700; color: var(--warn); }
.tsep { width: 10px; height: 1px; background: var(--line); flex: none; }
.icon-btn { border: 0; background: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--line-2); color: var(--navy); }
.seg.compact button { height: 26px; padding: 0 9px; font-size: 12px; }
.stepbar { height: 48px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #FBFCFE; white-space: nowrap; }
.stepbar h1 { font-size: 16.5px; }
.stepbar .counters { color: var(--ink-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.stepbar .counters b { color: var(--navy-3); font-weight: 700; }
.stepbar .counters .sep { color: var(--line); margin: 0 6px; }
.stepbar .btn { height: 34px; }
.stepbar .help { color: var(--ink-3); cursor: help; display: inline-grid; place-items: center; }
.step-hint { flex: none; padding: 6px 16px; font-size: 12.5px; color: var(--ink-2); background: var(--navy-soft); border-bottom: 1px solid var(--line); }
.strip { flex: none; display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 40px; border-bottom: 1px solid var(--line); background: #fff; font-size: 13px; white-space: nowrap; overflow-x: auto; }
.strip .stairs { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.strip .stairs b { font-size: 14px; color: var(--navy-3); }
.strip .arr { color: var(--ink-3); }
.strip .delta.ok { color: var(--ok); font-weight: 700; } .strip .delta.bad { color: var(--bad); font-weight: 700; }
.strip .faint-num b { color: var(--ink-3) !important; }
.cyc-body.two { grid-template-columns: 300px minmax(0, 1fr); }
@media (min-width: 1420px) { .cyc-body.two { grid-template-columns: 320px minmax(0, 1fr); } }
.lowres { display: none; }
@media (max-width: 1023px) { .cyc .cyc-body, .cyc .stepbar, .cyc .strip { display: none !important; } .lowres { display: grid; place-items: center; padding: 40px; text-align: center; color: var(--ink-2); } }
.pane.work { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
/* list rows: 48px, two lines */
.qitem { padding: 6px 12px; min-height: 48px; gap: 2px; }
.qitem .l1 { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.qitem .l1 .t { flex: 1; min-width: 0; }
.qitem .l1 .n { font-weight: 700; font-size: 12.5px; color: var(--navy-3); font-variant-numeric: tabular-nums; }
.qitem .l2 { display: flex; gap: 5px; align-items: center; font-size: 11.5px; color: var(--ink-2); min-width: 0; overflow: hidden; white-space: nowrap; }
.qitem .l2 .tag { overflow: hidden; text-overflow: ellipsis; }
.qitem .pill { height: 18px; font-size: 10.5px; padding: 0 6px; }
.cutline { padding: 4px 12px; font-size: 11px; font-weight: 700; color: var(--orange-d); background: var(--orange-soft); border-bottom: 1px solid #F7D3BC; position: sticky; top: 0; }
.list-head { padding: 8px 12px; gap: 6px; }
/* drawer */
.drawer-back { position: fixed; inset: 48px 0 0 0; background: rgba(14,28,69,.18); z-index: 70; animation: fade .12s; }
.drawer { position: fixed; top: 48px; right: 0; bottom: 0; width: 380px; max-width: 92vw; background: #fff; border-left: 1px solid var(--line); box-shadow: var(--shadow-l); z-index: 71; display: flex; flex-direction: column; animation: slidein .16s ease-out; }
.drawer.wide { width: 560px; }
.drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-b { flex: 1; overflow: auto; padding: 14px 16px; }
@keyframes slidein { from { transform: translateX(24px); opacity: 0; } }
/* chips with digit hints */
.chips .chip kbd { font: 700 10px var(--mono); color: var(--ink-3); margin-right: 4px; }
.chip.hint { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-d); }
.chip.on kbd { color: #fff; }
.decide { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; display: grid; gap: 8px; }
.decide .row { gap: 8px; }
.because { font-size: 12.5px; color: var(--ink-2); }
.because b { color: var(--orange-d); }
.nums4 { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.nums4 b { display: block; font-size: 17px; color: var(--navy-3); font-variant-numeric: tabular-nums; }
.nums4 .bad b { color: var(--bad); } .nums4 .warn b { color: var(--warn); }
.what-failed { font-size: 13px; padding: 7px 10px; border-radius: 8px; background: var(--warn-soft); color: #6E4D05; }
.what-failed.ok { background: var(--line-2); color: var(--ink-2); }
.lbl-conf { font-size: 11px; color: var(--ink-3); }
/* forecast grid (12 months, no horizontal scroll) */
.fgrid { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; table-layout: fixed; }
.fgrid col.lab { width: 112px; } .fgrid col.sum { width: 78px; }
.fgrid th, .fgrid td { padding: 4px 4px; text-align: right; border-bottom: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; }
.fgrid th { color: var(--ink-3); font-weight: 600; font-size: 11px; }
.fgrid th:first-child, .fgrid td:first-child { text-align: left; font-weight: 600; color: var(--ink-2); }
.fgrid tr.final td { font-weight: 750; color: var(--navy-3); }
.fgrid td.edit { padding: 1px 2px; }
.fgrid td.edit input { width: 100%; height: 26px; padding: 0 5px; text-align: right; font: 750 12.5px var(--font); border: 1px solid transparent; border-radius: 5px; background: var(--orange-soft); color: var(--navy-3); }
.fgrid td.edit input:focus { border-color: var(--orange); background: #fff; outline: none; }
.fgrid td.changed input { background: #FFE2CC; }
.fgrid td.frozen { color: var(--ink-3); }
.fgrid tr.delta td { font-size: 11.5px; color: var(--ink-3); }
.fgrid tr.delta td.up { color: var(--warn); } .fgrid tr.delta td.down { color: var(--blue); }
.corrbar { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.corrbar select, .corrbar input { height: 32px; font-size: 12.5px; width: auto; padding: 0 8px; }
.corrbar input[type=number] { width: 80px; }
.suggest { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; background: var(--ok-soft); color: #145C33; font-size: 13px; }
.suggest .grow { min-width: 0; }
.reason-pop { position: absolute; z-index: 90; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-l); padding: 10px; width: 330px; display: grid; gap: 8px; }
.reason-pop .chips { gap: 5px; }
.reason-pop .chip { font-size: 11.5px; padding: 3px 8px; }
.chart-wrap .chart { height: var(--ch, 190px) !important; }

.pane.list { overflow-x: hidden; }
.nums4 { gap: 22px; }
.nums4 > div { line-height: 1.25; }
.qitem .l1 .n { flex: none; }
.qitem .l1 .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
