/* ==========================================================================
   refood.com — Part 2: the application shell (auth + dashboard)
   ========================================================================== */

[hidden] { display: none !important; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.auth-side {
  position: relative; overflow: hidden;
  background: var(--forest-ink); color: #fff;
  padding: 36px 44px 40px; display: flex; flex-direction: column;
}
.auth-side::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 90% 4%, rgba(217,233,168,.14), transparent 62%),
    radial-gradient(520px 380px at -10% 96%, rgba(135,168,135,.18), transparent 60%);
  pointer-events: none;
}
.auth-side > * { position: relative; }
.auth-side .brand, .auth-side .brand:hover { color: #fff; }
.auth-side .brand-mark { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.auth-side .brand-word span { color: rgba(255,255,255,.48); }
.auth-copy { margin-top: auto; padding-bottom: 8px; }
.auth-copy h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); letter-spacing: -.03em; color: #fff; max-width: 20ch; line-height: 1.14; }
.auth-copy p { margin-top: 14px; color: rgba(255,255,255,.66); font-size: .93rem; max-width: 40ch; }
.auth-list { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.auth-list li { display: grid; grid-template-columns: 17px 1fr; gap: 11px; font-size: .885rem; color: rgba(255,255,255,.82); line-height: 1.5; }
.auth-list svg { color: var(--lime); margin-top: 2px; }
.auth-quote {
  margin-top: 32px; padding: 16px 18px; border-radius: var(--r-m);
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  font-size: .855rem; color: rgba(255,255,255,.74); line-height: 1.6;
}
.auth-quote b { color: #fff; display: block; margin-top: 8px; font-weight: 560; font-size: .82rem; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--paper); }
.auth-card { width: 100%; max-width: 392px; }
.auth-card h1 { font-size: 1.62rem; letter-spacing: -.028em; }
.auth-card .lede { margin-top: 8px; font-size: .92rem; color: var(--ink-3); }
.auth-tabs { display: flex; gap: 3px; margin: 24px 0 22px; padding: 3px; background: var(--paper-3); border-radius: var(--r-s); }
.auth-tab {
  flex: 1; height: 34px; border: 0; background: transparent; border-radius: 4px;
  font-size: .875rem; font-weight: 550; color: var(--ink-3); cursor: pointer; transition: all .15s;
}
.auth-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-s); }
.auth-form { display: none; }
.auth-form.is-active { display: block; animation: fadein .22s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.auth-switch { margin-top: 18px; font-size: .86rem; color: var(--ink-3); text-align: center; }
.auth-switch button { border: 0; background: none; color: var(--forest); font-weight: 550; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.auth-hint { margin-top: 20px; padding: 12px 14px; border-radius: var(--r-s); background: var(--lime-soft); border: 1px solid #dbe9bb; font-size: .795rem; color: #435c19; line-height: 1.5; }
.auth-hint b { font-weight: 620; }
.auth-foot { margin-top: 22px; font-size: .745rem; color: var(--ink-4); line-height: 1.55; }

/* ---------- form primitives ---------- */
.field { display: block; margin-bottom: 13px; }
.field > span { display: block; font-size: .775rem; font-weight: 570; color: var(--ink-2); margin-bottom: 5px; }
.field .hint { font-weight: 400; color: var(--ink-4); }
.inp, .field input, .field select, .field textarea {
  width: 100%; height: 42px; padding: 0 11px;
  border: 1px solid var(--line-2); border-radius: var(--r-s);
  background: var(--paper); color: var(--ink); font-size: .91rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { height: auto; min-height: 68px; padding: 9px 11px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(27,94,70,.11); background: #fff;
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(180,89,60,.1); }
select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d7a80' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
.err-text { font-size: .78rem; color: var(--clay); margin-top: 5px; }
.form-msg { font-size: .8rem; margin-top: 9px; min-height: 1.15em; }
.form-msg.err { color: var(--clay); }
.form-msg.ok { color: var(--forest); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.row-3 { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 11px; }

/* ---------- app shell ---------- */
.app { min-height: 100vh; background: var(--paper-2); }
.app-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253,253,251,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.app-head .wrap { display: flex; align-items: center; gap: 18px; height: 60px; max-width: 1320px; }
.app-nav { display: flex; align-items: center; gap: 2px; margin-left: 18px; }
.app-nav button {
  border: 0; background: none; padding: 7px 12px; border-radius: var(--r-s);
  font-size: .885rem; font-weight: 540; color: var(--ink-3); cursor: pointer; transition: all .15s;
}
.app-nav button:hover { background: var(--paper-3); color: var(--ink); }
.app-nav button[aria-current="page"] { background: var(--forest-ink); color: #fff; }
.app-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-switch { display: flex; align-items: center; gap: 7px; font-size: .815rem; color: var(--ink-3); }
.site-switch select { height: 32px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--paper); padding: 0 6px; font-size: .82rem; max-width: 190px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--forest); color: #fff; display: grid; place-items: center;
  font-size: .78rem; font-weight: 620; letter-spacing: .02em; cursor: pointer; border: 0;
  transition: box-shadow .15s;
}
.avatar:hover { box-shadow: 0 0 0 3px rgba(27,94,70,.14); }
.user-menu { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-m); padding: 6px; min-width: 216px;
}
.dropdown .dd-head { padding: 9px 11px 10px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.dropdown .dd-head .nm { font-size: .87rem; font-weight: 580; }
.dropdown .dd-head .em { font-size: .77rem; color: var(--ink-3); word-break: break-all; }
.dropdown button {
  width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 8px 11px; border-radius: 5px; font-size: .865rem; color: var(--ink-2);
  display: flex; align-items: center; gap: 9px;
}
.dropdown button:hover { background: var(--paper-2); color: var(--ink); }
.dropdown button svg { color: var(--ink-3); flex: none; }

.app-main { max-width: 1320px; margin-inline: auto; padding: 26px 24px 80px; }
.view { display: none; }
.view.is-active { display: block; animation: fadein .24s ease; }

.view-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.view-top h1 { font-size: 1.5rem; letter-spacing: -.028em; }
.view-top .sub { font-size: .875rem; color: var(--ink-3); margin-top: 4px; }
.view-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- period filter ---------- */
.period { display: flex; align-items: center; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-s); }
.period button {
  border: 0; background: none; padding: 5px 11px; border-radius: 4px;
  font-size: .82rem; font-weight: 540; color: var(--ink-3); cursor: pointer;
}
.period button[aria-pressed="true"] { background: var(--paper-3); color: var(--ink); }

/* ---------- KPI cards ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 17px 15px; box-shadow: var(--shadow-s); }
.kpi-k { font-size: .775rem; color: var(--ink-3); font-weight: 520; display: flex; align-items: center; gap: 6px; }
.kpi-v { font-size: 1.72rem; font-weight: 640; letter-spacing: -.035em; margin-top: 5px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi-v.loss { color: var(--clay); }
.kpi-foot { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: .77rem; color: var(--ink-3); }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 580; }
.trend.down { color: var(--forest); }
.trend.up { color: var(--clay); }
.trend.flat { color: var(--ink-3); }

/* ---------- panels ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-s); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: .965rem; letter-spacing: -.015em; }
.panel-head .meta { font-size: .775rem; color: var(--ink-4); }
.panel-body { padding: 16px 18px 18px; }
.grid-2 { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(0,1fr); gap: 14px; align-items: start; }

/* ---------- chart ---------- */
.chart-box { position: relative; width: 100%; }
.chart-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: .775rem; color: var(--ink-3); }
.chart-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-right: 5px; vertical-align: 0; }
.chart-empty { padding: 44px 12px; text-align: center; color: var(--ink-4); font-size: .875rem; }

/* ---------- reason breakdown ---------- */
.reasons { list-style: none; display: grid; gap: 13px; }
.reasons li .r-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: .855rem; margin-bottom: 5px; }
.reasons .r-l { color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.reasons .r-v { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 540; font-size: .82rem; }
.reasons .r-bar { height: 6px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.reasons .r-fill { height: 100%; border-radius: 3px; transition: width .5s cubic-bezier(.22,.61,.36,1); }
.reasons .r-share { font-variant-numeric: tabular-nums; color: var(--ink-4); font-size: .77rem; }

/* ---------- table ---------- */
.table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; border-radius: var(--r-m) var(--r-m) 0 0; }
.search-wrap { position: relative; flex: 1 1 200px; min-width: 160px; }
.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.search-wrap input { width: 100%; height: 34px; padding: 0 10px 0 31px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--paper); font-size: .865rem; }
.search-wrap input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(27,94,70,.1); background: #fff; }
.tools-select { height: 34px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--paper); padding: 0 26px 0 9px; font-size: .845rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236d7a80' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.tools-select:focus { outline: none; border-color: var(--forest); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-m) var(--r-m); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.data th {
  text-align: left; font-size: .735rem; font-weight: 600; letter-spacing: .045em; text-transform: uppercase;
  color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: var(--paper-2); white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
table.data th.num, table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fcfcf9; }
.t-name { font-weight: 530; color: var(--ink); }
.t-cat { font-size: .755rem; color: var(--ink-4); margin-top: 1px; }
.t-cost { color: var(--clay); font-weight: 560; }
.t-acts { display: flex; gap: 3px; justify-content: flex-end; }
.icon-btn {
  width: 28px; height: 28px; border: 1px solid transparent; background: none; border-radius: 5px;
  display: grid; place-items: center; cursor: pointer; color: var(--ink-4); transition: all .14s;
}
.icon-btn:hover { background: var(--paper-3); color: var(--ink); border-color: var(--line); }
.icon-btn.del:hover { background: var(--clay-soft); color: var(--clay); border-color: #f0d3c9; }
.empty-row { padding: 44px 20px; text-align: center; color: var(--ink-4); font-size: .88rem; line-height: 1.6; }
.empty-row b { color: var(--ink-2); display: block; margin-bottom: 4px; font-size: .93rem; }

.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px;
  font-size: .735rem; font-weight: 550; white-space: nowrap;
  background: var(--paper-3); color: var(--ink-2);
}
.pill.spoil { background: var(--clay-soft); color: #98442b; }
.pill.prep { background: var(--lime-soft); color: #4d6b1f; }
.pill.return { background: #e8f0f6; color: #2f5b78; }
.pill.over { background: #fbf1da; color: #8a6100; }
.pill.trimm { background: #f2edf7; color: #5c3f78; }

/* ---------- insights ---------- */
.insights { display: grid; gap: 11px; }
.insight { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 14px 15px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.insight-i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--lime-soft); color: #4d6b1f; flex: none; }
.insight-i.warn { background: #fbf1da; color: #8a6100; }
.insight-i.alert { background: var(--clay-soft); color: var(--clay); }
.insight-t { font-size: .875rem; font-weight: 570; letter-spacing: -.01em; }
.insight-d { font-size: .845rem; color: var(--ink-3); margin-top: 3px; line-height: 1.55; }
.insight-d b { color: var(--ink-2); font-weight: 580; }

/* ---------- report ---------- */
.report-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.report-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 34px 38px 38px; box-shadow: var(--shadow-s); max-width: 900px; }
.report-doc .r-brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid var(--forest-ink); }
.report-doc .r-brand .t { font-weight: 660; letter-spacing: -.02em; font-size: 1.02rem; }
.report-doc .r-brand .s { font-size: .77rem; color: var(--ink-3); margin-top: 2px; }
.report-doc h3 { font-size: 1.12rem; margin-top: 22px; }
.report-doc p.body { font-size: .89rem; color: var(--ink-2); margin-top: 8px; line-height: 1.62; }
.r-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.r-facts div { padding: 13px 14px 13px 0; }
.r-facts div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.r-facts dt { font-size: .71rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 600; }
.r-facts dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.report-doc table.data { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; font-size: .84rem; }
.report-doc table.data th { background: var(--paper-2); }
.r-sign { margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--line-2); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.r-sign div span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 600; margin-bottom: 24px; }
.r-sign div i { display: block; height: 1px; background: var(--line-2); margin-bottom: 6px; }
.r-sign div b { font-size: .79rem; color: var(--ink-3); font-weight: 500; }

/* ---------- settings ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; align-items: start; }
.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px 20px 22px; box-shadow: var(--shadow-s); }
.card-form h2 { font-size: .99rem; letter-spacing: -.018em; }
.card-form .desc { font-size: .85rem; color: var(--ink-3); margin-top: 5px; margin-bottom: 16px; line-height: 1.5; }
.cat-list { list-style: none; display: grid; gap: 1px; margin-bottom: 14px; }
.cat-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.cat-list li:last-child { border-bottom: 0; }
.danger-zone { border-color: #f0d3c9; }
.danger-zone h2 { color: var(--clay); }

/* ---------- modal ---------- */
.modal-back {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(15,26,22,.44); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fadein .16s ease;
}
.modal {
  width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: var(--r-m); box-shadow: 0 40px 80px -30px rgba(0,0,0,.4);
  animation: pop .2s cubic-bezier(.22,.61,.36,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px 0; }
.modal-head h2 { font-size: 1.08rem; letter-spacing: -.02em; }
.modal-head .sub { font-size: .82rem; color: var(--ink-3); margin-top: 3px; }
.modal-body { padding: 18px 22px 4px; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 22px 20px; border-top: 1px solid var(--line); margin-top: 8px; background: var(--paper-2); border-radius: 0 0 var(--r-m) var(--r-m); }
.modal-foot .left { margin-right: auto; font-size: .78rem; color: var(--ink-4); }
.cost-preview { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 12px; margin-top: 4px; border-radius: var(--r-s); background: var(--paper-2); border: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); }
.cost-preview b { font-size: 1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.chk { display: flex; align-items: flex-start; gap: 9px; font-size: .82rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.chk input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--forest); flex: none; }

/* ---------- toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: grid; gap: 8px; justify-items: end; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 11px 15px;
  background: var(--forest-ink); color: #fff; border-radius: var(--r-s);
  font-size: .865rem; box-shadow: var(--shadow-m); max-width: 360px;
  animation: slidein .22s cubic-bezier(.22,.61,.36,1);
}
.toast svg { flex: none; color: var(--lime); }
.toast.err svg { color: #f0a48b; }
@keyframes slidein { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-2 { grid-template-columns: minmax(0,1fr); }
  .auth { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .auth-side { padding: 30px 30px 34px; }
}
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .cards, .steps, .price-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .step { padding: 0; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
  .band-split { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .doc-card { margin-left: 0; transform: none; max-width: 420px; }
  .band-copy .band-rows { gap: 16px 22px; }
  .band-rows { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .auth { grid-template-columns: minmax(0,1fr); }
  .auth-side { display: none; }
  .app-head .wrap { height: auto; padding-block: 9px; flex-wrap: wrap; gap: 10px; }
  .app-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .app-nav::-webkit-scrollbar { display: none; }
  .app-nav button { white-space: nowrap; }
  .settings-grid { grid-template-columns: minmax(0,1fr); }
  .r-facts { grid-template-columns: minmax(0,1fr); }
  .r-facts div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .report-doc { padding: 24px 20px 26px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .sec { padding: 64px 0; }
  .sec-tight { padding: 50px 0; }
  .hero { padding-top: 40px; }
  .cards, .price-grid { grid-template-columns: minmax(0,1fr); }
  .band { padding: 28px 22px; border-radius: var(--r-m); }
  .band-rows, .band-copy .band-rows { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .doc-grid i { font-size: .6rem; }
  .doc-card { padding: 18px 16px 13px; }
  .stat { padding-right: 10px; }
  .stat + .stat { padding-left: 12px; }
  .stat-k { font-size: 1.24rem; }
  .stat-v { font-size: .735rem; }
  .head-cta .btn-ghost { display: none; }
  .wrap, .app-main { padding-inline: 16px; }
  .kpis { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 9px; }
  .kpi { padding: 13px 14px; }
  .kpi-v { font-size: 1.42rem; }
  .view-top h1 { font-size: 1.3rem; }
  .site-switch { display: none; }
  .row-2, .row-3 { grid-template-columns: minmax(0,1fr); }
  .modal { max-height: 94vh; }
  .toasts { left: 16px; right: 16px; justify-items: stretch; }
  .toast { max-width: none; }
}
@media (max-width: 460px) {
  .hero h1 { font-size: 2rem; }
  .hero-actions .btn { width: 100%; }
  .foot-top { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .l-w { display: none; }
  .kpis { grid-template-columns: minmax(0,1fr); }
  .period { width: 100%; }
  .period button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media print {
  .app-head, .no-print, .toasts, .view-top .view-actions { display: none !important; }
  body, .app { background: #fff; }
  .app-main { padding: 0; max-width: none; }
  .report-doc { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .view:not(#view-report) { display: none !important; }
  #view-report { display: block !important; }
}
