/* =====================================================================
   Redington SSG – Supplier Invoice Portal
   ===================================================================== */
:root {
  /* Redington brand greens (from the official logo): #016938 · #019047 · #59b557 */
  --navy: #0f3d2a;        /* deep green used for dark surfaces and strong buttons */
  --navy-2: #17573c;
  --red: #01803f;         /* primary action / accent (brand green, AA contrast with white text) */
  --red-dark: #016938;
  --brand: #019047;
  --brand-light: #59b557;
  --brand-tint: #eaf6ee;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --border: #e3e6ea;
  --border-strong: #cfd4da;
  --text: #1f2937;
  --muted: #6b7280;
  --muted-2: #9aa1ab;

  --info: #1d4f91;      --info-bg: #e8f0fb;
  --warning: #9a5800;   --warning-bg: #fff4e0;
  --success: #0f7b4a;   --success-bg: #e6f5ee;
  --danger: #b42318;    --danger-bg: #fdecea;
  --revised: #6b3fa0;   --revised-bg: #f2ebfb;
  --done: #334155;      --done-bg: #e8ecf1;

  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.45; }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; color: #111827; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #fff; border-bottom: 3px solid var(--red); }
.topbar-inner { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 18px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; letter-spacing: .2px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 6px; background: var(--red); display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.brand small { display: block; font-weight: 400; color: #b9c3d3; font-size: .75rem; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { color: #d6deea; padding: 7px 9px; border-radius: 6px; font-size: .9rem; white-space: nowrap; }
.nav a:hover { background: var(--navy-2); color: #fff; text-decoration: none; }
.nav a.active { background: var(--navy-2); color: #fff; box-shadow: inset 0 -2px 0 var(--red); }
.usermenu { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: #d6deea; }
.usermenu .who { text-align: right; line-height: 1.2; }
.usermenu .who small { display: block; color: #9fb0c8; }
.usermenu form { margin: 0; }
.linkbtn { background: none; border: 1px solid #4a5f80; color: #d6deea; padding: 6px 10px; border-radius: 6px; cursor: pointer; font: inherit; font-size: .85rem; }
.linkbtn:hover { background: var(--navy-2); color: #fff; }

/* ---------- Layout ---------- */
.container { max-width: 1320px; margin: 0 auto; padding: 22px 20px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { margin: 0; color: var(--muted); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.layout-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 1050px) { .layout-main, .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 16px; }
.card > h2:first-child, .card > h3:first-child { margin-bottom: 12px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush { padding: 0; }
.card.flush .card-head { padding: 14px 18px 0; }
.sticky { position: sticky; top: 14px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .92rem; padding: 9px 16px; border-radius: 6px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2; }
.btn:hover { text-decoration: none; filter: brightness(.96); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--border-strong); }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: #c47400; color: #fff; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0b8b2; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-revised { background: var(--revised); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: .82rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Badges, chips, age ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge.lg { font-size: .9rem; padding: 6px 14px; }
.tone-info { background: var(--info-bg); color: var(--info); border-color: #c9dbf5; }
.tone-warning { background: var(--warning-bg); color: var(--warning); border-color: #f5d7a3; }
.tone-success { background: var(--success-bg); color: var(--success); border-color: #b8e2cc; }
.tone-danger { background: var(--danger-bg); color: var(--danger); border-color: #f3c3be; }
.tone-revised { background: var(--revised-bg); color: var(--revised); border-color: #dac9f1; }
.tone-done { background: var(--done-bg); color: var(--done); border-color: #cdd5df; }

.chip { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; margin: 1px 2px 1px 0; background: #fff4e0; color: #8a4f00; border: 1px solid #f1d29b; white-space: nowrap; }
.chip-date_change { background: #e9f1ff; color: #1d4f91; border-color: #c4d7f3; }
.chip-correction { background: #fdecea; color: #a5281d; border-color: #f2c2bd; }
.chip-pop_poe { background: #fff4e0; color: #8a4f00; border-color: #f1d29b; }
.chip-documents, .chip-other { background: #eef1f5; color: #3b4656; border-color: #d5dbe3; }
.rev-flag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .4px; padding: 2px 6px; border-radius: 4px; background: var(--revised); color: #fff; vertical-align: middle; }
.new-flag { display: inline-block; font-size: .68rem; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--revised); color: #fff; margin-left: 6px; }

.age { display: inline-block; min-width: 38px; text-align: center; font-size: .78rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.age-ok { background: #eef1f5; color: #475467; }
.age-warn { background: #fff1d6; color: #9a5800; }
.age-crit { background: #fde2df; color: #b42318; }

/* ---------- Alerts / callouts ---------- */
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 14px; border: 1px solid; }
.flash-success { background: var(--success-bg); border-color: #b8e2cc; color: #0b5c37; }
.flash-error { background: var(--danger-bg); border-color: #f3c3be; color: #8f1c13; }
.flash-info { background: var(--info-bg); border-color: #c9dbf5; color: #163e72; }
.callout { border-left: 4px solid; border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; }
.callout h3 { margin-bottom: 6px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-info { background: var(--info-bg); border-color: var(--info); }
.callout-warning { background: var(--warning-bg); border-color: #d98a00; }
.callout-danger { background: var(--danger-bg); border-color: var(--danger); }
.callout-success { background: var(--success-bg); border-color: var(--success); }
.callout-revised { background: var(--revised-bg); border-color: var(--revised); }
.callout-done { background: var(--done-bg); border-color: var(--done); }
.callout ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px 12px; color: var(--text); box-shadow: var(--shadow); border-top: 4px solid var(--border-strong); position: relative; }
.kpi:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: 0 3px 10px rgba(16, 24, 40, .08); }
.kpi .n { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.kpi .l { font-size: .85rem; font-weight: 600; margin-top: 2px; }
.kpi .s { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.kpi .s.alert { color: var(--danger); font-weight: 600; }
.kpi.t-revised { border-top-color: var(--revised); } .kpi.t-revised .n { color: var(--revised); }
.kpi.t-info { border-top-color: var(--info); }
.kpi.t-warning { border-top-color: #d98a00; }
.kpi.t-success { border-top-color: var(--success); }
.kpi.t-done { border-top-color: var(--done); }
.kpi.t-danger { border-top-color: var(--danger); }
.kpi.highlight { background: var(--revised-bg); border-color: #dac9f1; }

/* ---------- Lifecycle pipeline (dashboard) ---------- */
.pipeline { display: flex; align-items: stretch; gap: 0; margin-bottom: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pipe { flex: 1; padding: 12px 16px 12px 26px; position: relative; color: var(--text); background: #fff; min-width: 0; }
.pipe:first-child { padding-left: 16px; }
.pipe:hover { background: #fafbfc; text-decoration: none; }
.pipe:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 22px; height: 22px; background: inherit; border-top: 1px solid var(--border); border-right: 1px solid var(--border); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.pipe .step { font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 600; }
.pipe .n { font-size: 1.5rem; font-weight: 700; }
.pipe .l { font-size: .85rem; }
.pipe.side { flex: 0 0 170px; border-left: 1px dashed var(--border-strong); }
@media (max-width: 900px) { .pipeline { flex-direction: column; } .pipe::after { display: none; } .pipe.side { flex-basis: auto; border-left: 0; border-top: 1px dashed var(--border-strong); } }

/* ---------- Milestone tracker (invoice page) ---------- */
.tracker { display: flex; gap: 0; margin: 6px 0 4px; }
.ms { flex: 1; position: relative; text-align: center; padding-top: 34px; font-size: .85rem; }
.ms::before { content: ""; position: absolute; top: 13px; left: 0; right: 0; height: 4px; background: #e3e6ea; }
.ms:first-child::before { left: 50%; }
.ms:last-child::before { right: 50%; }
.ms .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid #cfd4da; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: var(--muted); z-index: 1; }
.ms .t { font-weight: 600; }
.ms .d { color: var(--muted); font-size: .8rem; }
.ms.done::before { background: var(--success); }
.ms.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.ms.current .dot { border-color: var(--info); color: var(--info); box-shadow: 0 0 0 4px var(--info-bg); }
.ms.stopped .dot { border-color: var(--danger); background: var(--danger); color: #fff; }
.ms.done + .ms::before { background: linear-gradient(90deg, var(--success) 50%, #e3e6ea 50%); }
.ms.done + .ms.done::before { background: var(--success); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--border); background: #fafbfc; white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfd; }
.table tr.row-revised td { background: #faf6ff; }
.table tr.row-revised td:first-child { box-shadow: inset 4px 0 0 var(--revised); }
.table tr.row-followup td:first-child { box-shadow: inset 4px 0 0 #d98a00; }
.table .ref { font-weight: 600; white-space: nowrap; }
.table .sub { display: block; color: var(--muted); font-size: .8rem; }
.table.compact td, .table.compact th { padding: 8px 10px; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }

/* ---------- Tabs & filters ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 9px 13px; color: var(--muted); font-weight: 600; font-size: .88rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--text); border-bottom-color: var(--red); }
.tabs .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: #eef1f5; font-size: .75rem; text-align: center; }
.tabs a.active .count { background: var(--navy); color: #fff; }
.viewnav { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .viewnav { grid-template-columns: 1fr; } }
.sidelist { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; position: sticky; top: 14px; }
.sidelist .grp { font-size: .7rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted-2); font-weight: 700; padding: 10px 10px 4px; }
.sidelist a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 6px; color: var(--text); font-size: .88rem; }
.sidelist a:hover { background: #f4f6f9; text-decoration: none; }
.sidelist a.active { background: var(--navy); color: #fff; }
.sidelist a .count { font-weight: 700; color: var(--muted); }
.sidelist a.active .count { color: #fff; }
.sidelist a.indent { padding-left: 22px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.filters .field { margin: 0; }
.filters input, .filters select { min-width: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field > label, .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.req { color: #c8102e; }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: .92rem; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; color: var(--text);
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid #b7cdf0; outline-offset: 1px; border-color: var(--info); }
input[type=file] { font: inherit; font-size: .88rem; width: 100%; padding: 8px; border: 1px dashed var(--border-strong); border-radius: 6px; background: #fafbfc; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; font-size: .92rem; }
.check input { margin-top: 3px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px 4px; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; }
.upload-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; background: #fcfcfd; }
.upload-box.required-box { border-color: #f1d29b; background: #fffaf0; }
.upload-box h4 { margin: 0 0 4px; font-size: .95rem; }
.upload-box p { font-size: .83rem; color: var(--muted); margin-bottom: 8px; }
.file-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: .82rem; color: var(--muted); }
.file-list li::before { content: "📄 "; }

/* ---------- Action panel (coordinator) ---------- */
.actions details { border: 1px solid var(--border); border-radius: 6px; margin-bottom: 8px; background: #fff; }
.actions summary { cursor: pointer; padding: 10px 12px; font-weight: 600; font-size: .92rem; list-style: none; display: flex; align-items: center; gap: 8px; }
.actions summary::-webkit-details-marker { display: none; }
.actions summary::after { content: "▸"; margin-left: auto; color: var(--muted); }
.actions details[open] summary::after { content: "▾"; }
.actions details[open] summary { border-bottom: 1px solid var(--border); }
.actions .body { padding: 12px; }
.actions .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.dot-success { background: var(--success); } .dot-warning { background: #d98a00; } .dot-danger { background: var(--danger); }
.dot-info { background: var(--info); } .dot-done { background: var(--done); } .dot-revised { background: var(--revised); }
.actions .primary-action { margin-bottom: 10px; }
.actions .group-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin: 14px 0 6px; }
.quickpicks { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.quickpicks button { font: inherit; font-size: .75rem; padding: 3px 8px; border: 1px solid var(--border-strong); background: #fff; border-radius: 12px; cursor: pointer; color: var(--text); }
.quickpicks button:hover { background: #f0f3f7; }
.reqtype { border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; }
.reqtype .check { margin-bottom: 0; font-weight: 600; }
.reqtype textarea { margin-top: 8px; min-height: 60px; display: none; }
.reqtype.on { border-color: #d98a00; background: #fffaf0; }
.reqtype.on textarea { display: block; }
.no-js .reqtype textarea { display: block; }

/* ---------- Key/value ---------- */
dl.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: .92rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; word-break: break-word; }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { margin-bottom: 6px; } }
.inv-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.inv-head .amount { font-size: 1.5rem; font-weight: 700; }
.inv-head .meta { color: var(--muted); font-size: .9rem; }
.statusline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; font-size: .88rem; color: var(--muted); }

/* ---------- Documents ---------- */
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef0f3; }
.docs li:last-child { border-bottom: 0; }
.docs li.is-new { background: #faf6ff; margin: 0 -18px; padding: 10px 18px; box-shadow: inset 4px 0 0 var(--revised); }
.docs li.superseded { opacity: .65; }
.docs li.superseded .name { text-decoration: line-through; }
.docs .ico { width: 36px; height: 40px; border-radius: 4px; background: #eef1f5; display: grid; place-items: center; font-size: .65rem; font-weight: 700; color: #475467; flex: 0 0 36px; text-transform: uppercase; }
.docs .ico.pdf { background: #fde2df; color: #b42318; }
.docs .ico.img { background: #e6f5ee; color: #0f7b4a; }
.docs .ico.xls { background: #e3f4e8; color: #17663a; }
.docs .ico.doc { background: #e8f0fb; color: #1d4f91; }
.docs .info { flex: 1; min-width: 0; }
.docs .name { font-weight: 600; word-break: break-all; }
.docs .sub { font-size: .8rem; color: var(--muted); }
.doc-type-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; margin: 14px 0 2px; }
.doc-type-head:first-child { margin-top: 0; }

/* ---------- Requests ---------- */
.reqs { list-style: none; margin: 0; padding: 0; }
.reqs li { border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.reqs li.open { border-color: #f1d29b; background: #fffaf0; }
.reqs li.responded { border-color: #dac9f1; background: #faf6ff; }
.reqs li.closed { opacity: .75; }
.reqs .top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.reqs .ttl { font-weight: 600; }
.reqs .det { margin-top: 4px; font-size: .9rem; white-space: pre-wrap; }
.reqs .when { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.reqs form { margin: 0; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: #e3e6ea; }
.timeline > li { position: relative; padding: 0 0 16px 40px; }
.timeline .changes li { padding: 0; margin: 2px 0; }
.timeline .ic { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid #cfd4da; display: grid; place-items: center; font-size: .8rem; }
.timeline .ic.t-ACCEPTED, .timeline .ic.t-ENTERED { border-color: var(--success); color: var(--success); }
.timeline .ic.t-NOT_ACCEPTED { border-color: var(--danger); color: var(--danger); }
.timeline .ic.t-ACTION_REQUESTED, .timeline .ic.t-DATE_CHANGE_REQUESTED, .timeline .ic.t-REMINDER_SENT { border-color: #d98a00; color: #9a5800; }
.timeline .ic.t-SUPPLIER_RESPONDED { border-color: var(--revised); color: var(--revised); }
.timeline .ic.t-NOTE { border-style: dashed; }
.timeline .head { font-size: .9rem; }
.timeline .head strong { font-weight: 600; }
.timeline .when { font-size: .78rem; color: var(--muted); }
.timeline .msg { margin-top: 4px; font-size: .9rem; white-space: pre-wrap; background: #f8f9fb; border-radius: 6px; padding: 8px 10px; }
.timeline li.internal .msg { background: #fffbea; border: 1px dashed #ecd88f; }
.timeline .changes { margin: 6px 0 0; padding-left: 18px; font-size: .88rem; }
.internal-tag { font-size: .68rem; font-weight: 700; background: #fff3c4; color: #7a5b00; padding: 1px 6px; border-radius: 4px; margin-left: 6px; }

/* ---------- Ageing bar ---------- */
.agebar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #eef1f5; margin: 8px 0 6px; }
.agebar span { display: block; height: 100%; }
.agebar .ok { background: #9fb3c8; } .agebar .warn { background: #e8a33d; } .agebar .crit { background: var(--danger); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.pending-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .pending-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pending-item { display: block; border: 1px solid var(--border); border-radius: 6px; padding: 10px 12px; color: var(--text); }
.pending-item:hover { background: #fafbfc; text-decoration: none; }
.pending-item .n { font-size: 1.4rem; font-weight: 700; }
.pending-item .l { font-size: .82rem; color: var(--muted); }

/* ---------- Activity feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; font-size: .87rem; }
.feed li { padding: 8px 0; border-bottom: 1px solid #eef0f3; }
.feed li:last-child { border-bottom: 0; }
.feed .when { color: var(--muted); font-size: .78rem; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-side { background: linear-gradient(160deg, var(--navy) 0%, #2b4166 100%); color: #e6ecf5; padding: 56px; display: flex; flex-direction: column; justify-content: center; border-right: 4px solid var(--red); }
.login-side h1 { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.login-side ol { padding-left: 20px; line-height: 1.8; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-card { width: 100%; max-width: 380px; }
@media (max-width: 860px) { .login-wrap { grid-template-columns: 1fr; } .login-side { padding: 32px 24px; border-right: 0; border-bottom: 4px solid var(--red); } }

/* ---------- Help page ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 6px; }
.flow .box { padding: 10px 14px; border-radius: 6px; font-weight: 600; font-size: .88rem; border: 1px solid; }
.flow .arrow { color: var(--muted); font-size: 1.2rem; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 42px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }

.email-frame { width: 100%; height: 720px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.footer { text-align: center; color: var(--muted-2); font-size: .8rem; padding: 20px; }

/* =====================================================================
   v2: POE line items, PO / exception, activities & quotes, alarms, audit
   ===================================================================== */
.linkish { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .8rem; padding: 2px 4px; }
.linkish:hover { color: var(--danger); }
.poe-line { border: 1px solid var(--border); border-left: 4px solid #d98a00; border-radius: 6px; padding: 10px 12px 2px; margin-bottom: 10px; background: #fff; }
.poe-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.poe-num { font-size: .75rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--muted); }
.poe-grid { display: grid; grid-template-columns: 1.1fr 1.4fr 1.2fr; gap: 0 12px; }
@media (max-width: 800px) { .poe-grid { grid-template-columns: 1fr; } }
.poe-grid .field { margin-bottom: 10px; }
html:not(.no-js) .poe-line[data-mode=""] .poe-file,
html:not(.no-js) .poe-line[data-mode=""] .poe-url,
html:not(.no-js) .poe-line[data-mode="file"] .poe-url,
html:not(.no-js) .poe-line[data-mode="link"] .poe-file { display: none; }
html:not(.no-js) .poe-line[data-mode=""] .poe-desc { grid-column: span 2; opacity: .6; }
.poe-line[data-mode="link"] { border-left-color: var(--info); }

.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
@media (max-width: 700px) { .radio-cards { grid-template-columns: 1fr; } }
.radio-card { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--border); border-radius: 8px; padding: 12px; cursor: pointer; background: #fff; }
.radio-card input { margin-top: 3px; }
.radio-card strong { display: block; }
.radio-card small { color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--navy); background: #f6f8fb; }
.radio-card.exc:has(input:checked) { border-color: var(--danger); background: #fff6f5; }

/* Glaring alarm: active activity / invoice without PO */
@keyframes pulse-alarm { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 35, 24, .45); } 50% { box-shadow: 0 0 0 6px rgba(180, 35, 24, 0); } }
.alarm-banner { display: flex; gap: 14px; align-items: center; background: #b42318; color: #fff; border-radius: 8px; padding: 14px 18px; margin-bottom: 16px; animation: pulse-alarm 1.8s ease-in-out infinite; }
.alarm-banner .big { font-size: 1.8rem; line-height: 1; }
.alarm-banner h3 { color: #fff; margin: 0 0 2px; font-size: 1.05rem; }
.alarm-banner p { margin: 0; color: #fde2df; }
.alarm-banner a { color: #fff; text-decoration: underline; font-weight: 600; }
.alarm-banner .btn { margin-left: auto; background: #fff; color: #b42318; }
@media (prefers-reduced-motion: reduce) { .alarm-banner, .nopo-flag { animation: none; } }
.nopo-flag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .5px; padding: 2px 7px; border-radius: 4px; background: #b42318; color: #fff; vertical-align: middle; white-space: nowrap; animation: pulse-alarm 1.8s ease-in-out infinite; }
.exc-flag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: #fdecea; color: #b42318; border: 1px solid #f3c3be; white-space: nowrap; }
.po-flag { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; background: #e6f5ee; color: #0f7b4a; border: 1px solid #b8e2cc; white-space: nowrap; }
.table tr.row-alarm td { background: #fff6f5; }
.table tr.row-alarm td:first-child { box-shadow: inset 4px 0 0 #b42318; }
.kpi.t-alarm { border-top-color: #b42318; background: #fff6f5; border-color: #f3c3be; }
.kpi.t-alarm .n { color: #b42318; }
.kpi.t-alarm.on { animation: pulse-alarm 1.8s ease-in-out infinite; }

/* Quotes */
.quote-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.quote-card.q-SUBMITTED { border-color: #c9dbf5; background: #f7faff; }
.quote-card.q-APPROVED { border-color: #b8e2cc; background: #f3fbf7; border-width: 2px; }
.quote-card.q-REVISION_REQUESTED { border-color: #f1d29b; background: #fffaf0; }
.quote-card.q-SUPERSEDED, .quote-card.q-REJECTED { opacity: .72; }
.quote-card .top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.quote-card .amt { font-size: 1.2rem; font-weight: 700; }
.delta-down { color: var(--success); font-weight: 600; font-size: .85rem; }
.delta-up { color: var(--danger); font-weight: 600; font-size: .85rem; }
.progress { height: 10px; background: #eef1f5; border-radius: 5px; overflow: hidden; margin: 6px 0; }
.progress span { display: block; height: 100%; background: var(--success); }
.progress.over span { background: var(--danger); }
.files-list { margin: 6px 0 0; padding-left: 18px; font-size: .82rem; color: var(--muted); }
.audit-table td { font-size: .85rem; }
.audit-table .ip { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; color: var(--muted); }
.no-js [data-po-section][hidden], .no-js [data-po-manual][hidden] { display: block; }

.alarm-banner a.btn { text-decoration: none; color: #b42318; }
.alarm-banner a.btn:hover { background: #fff1ef; }

/* Demo environment ribbon */
.demo-ribbon { background: #fff4e0; color: #7a4500; border-bottom: 1px solid #f1d29b; text-align: center; font-size: .85rem; padding: 7px 16px; }
.demo-ribbon strong { background: #c47400; color: #fff; padding: 1px 8px; border-radius: 4px; margin-right: 4px; letter-spacing: .5px; }

/* Direct upload progress */
.upload-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, .55); display: grid; place-items: center; z-index: 50; }
.upload-box-modal { background: #fff; border-radius: 10px; padding: 22px 24px; width: min(440px, 90vw); box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.upload-box-modal .progress { margin: 12px 0 8px; height: 12px; }
.upload-box-modal .progress span { background: var(--red); transition: width .15s linear; }
.status-ok { color: var(--success); font-weight: 700; } .status-bad { color: var(--danger); font-weight: 700; }


/* =====================================================================
   v3: Redington theme, simpler navigation, charts, onboarding
   ===================================================================== */
.topbar { background: #fff; color: var(--text); border-bottom: 3px solid var(--brand); box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.topbar-inner { min-height: 62px; }
.brand { color: var(--text); gap: 12px; }
.brand img { height: 34px; width: auto; display: block; }
.brand .product { border-left: 1px solid var(--border-strong); padding-left: 12px; font-size: .95rem; line-height: 1.15; }
.brand small { color: var(--muted); }
.nav a, .nav summary { color: #374151; }
.nav a:hover, .nav summary:hover { background: var(--brand-tint); color: var(--red-dark); }
.nav a.active { background: var(--brand-tint); color: var(--red-dark); box-shadow: inset 0 -2px 0 var(--brand); font-weight: 600; }
.nav .count-pill { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #b42318; color: #fff; font-size: .7rem; font-weight: 700; text-align: center; line-height: 18px; }
.usermenu { color: var(--muted); }
.usermenu .who { color: var(--text); }
.usermenu .who small { color: var(--muted); }
.linkbtn { border-color: var(--border-strong); color: #374151; }
.linkbtn:hover { background: var(--brand-tint); color: var(--red-dark); }

/* Admin dropdown (no JavaScript needed) */
.nav details { position: relative; }
.nav summary { list-style: none; cursor: pointer; padding: 7px 9px; border-radius: 6px; font-size: .9rem; white-space: nowrap; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: " ▾"; color: var(--muted); }
.nav details.active > summary { background: var(--brand-tint); color: var(--red-dark); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); }
.nav .menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(16, 24, 40, .12); padding: 6px; min-width: 210px; display: grid; }
.nav .menu a { padding: 8px 10px; }
.nav .menu small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }

.readonly-note { background: #eef1f5; border-bottom: 1px solid var(--border); text-align: center; font-size: .85rem; padding: 6px 16px; color: #3b4656; }
body.read-only .actions, body.read-only [data-edit] { display: none !important; }

/* "Needs you today" tiles */
.todo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 1150px) { .todo { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .todo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.todo a { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; color: var(--text); box-shadow: var(--shadow); position: relative; min-height: 118px; }
.todo a:hover { text-decoration: none; border-color: var(--brand); box-shadow: 0 4px 14px rgba(1, 144, 71, .12); }
.todo .ico { font-size: 1.1rem; }
.todo .n { font-size: 2rem; font-weight: 700; line-height: 1.05; }
.todo .l { font-weight: 600; font-size: .92rem; }
.todo .s { font-size: .8rem; color: var(--muted); margin-top: auto; }
.todo .s.alert { color: var(--danger); font-weight: 600; }
.todo a.zero .n { color: var(--muted-2); }
.todo a.hot { border-color: #f3c3be; background: #fff8f7; }
.todo a.hot .n { color: #b42318; }
.todo a.rev { border-color: #dac9f1; background: #faf6ff; }
.todo a.rev .n { color: var(--revised); }
.todo .go { position: absolute; right: 14px; top: 14px; color: var(--muted-2); }

/* Charts */
.chart-card h2 { margin-bottom: 2px; }
.chart-card .sub { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.segbar { display: flex; gap: 2px; height: 28px; }
.segbar .seg { display: flex; align-items: center; padding: 0 8px; border-radius: 4px; min-width: 6px; font-size: .8rem; font-weight: 700; overflow: hidden; }
.segbar .seg:hover, .segbar .seg:focus-visible { text-decoration: none; filter: brightness(.93); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .84rem; }
.chart-legend .lg { color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-legend .lg b { font-weight: 700; }
.chart-table { margin-top: 10px; font-size: .82rem; }
.chart-table summary { cursor: pointer; color: var(--muted); }
.colchart { width: 100%; height: auto; display: block; }
.colchart .tick { font-size: 10px; fill: #666; font-family: var(--font); }
.colchart .val { font-size: 11px; font-weight: 700; fill: #191919; font-family: var(--font); }
.colchart g:hover path { fill: #1757ac; }
.tip { position: fixed; z-index: 100; background: #111827; color: #fff; font-size: .78rem; padding: 6px 9px; border-radius: 6px; pointer-events: none; max-width: 260px; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); }

/* Steps / onboarding */
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 800px) { .howto { grid-template-columns: 1fr; } }
.howto .step { background: var(--brand-tint); border-radius: 10px; padding: 14px 16px; }
.howto .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.howto strong { display: block; }
.howto span { font-size: .85rem; color: #3b4656; }
.copybox { display: flex; gap: 8px; align-items: center; background: var(--brand-tint); border: 1px dashed var(--brand-light); border-radius: 8px; padding: 10px 12px; }
.copybox code { flex: 1; background: none; word-break: break-all; font-size: .9rem; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 800px) { .quick { grid-template-columns: 1fr; } }
.quick a { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; color: var(--text); box-shadow: var(--shadow); }
.quick a:hover { border-color: var(--brand); text-decoration: none; }
.quick .qi { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-tint); display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 42px; }
.quick strong { display: block; }
.quick span { font-size: .84rem; color: var(--muted); }
.quick a.primary { background: var(--red); color: #fff; border-color: var(--red); }
.quick a.primary span { color: #d9f1e3; }
.quick a.primary .qi { background: rgba(255, 255, 255, .18); }
.role-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.role-card strong { display: block; margin-bottom: 2px; }
.role-card span { font-size: .85rem; color: var(--muted); }

/* Login / register */
.login-side { background: linear-gradient(155deg, #0f3d2a 0%, #016938 60%, #019047 100%); border-right: 0; }
.login-side img { height: 44px; width: auto; margin-bottom: 28px; }
.login-main .logo-sm { height: 30px; margin-bottom: 16px; display: none; }
@media (max-width: 860px) { .login-side { border-bottom: 0; } }
.auth-wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; }
.auth-wrap .logo { height: 38px; margin-bottom: 18px; }
.demo-ribbon strong { background: #c47400; }
dl.kv.mb-2 { margin-bottom: 1rem; }

/* =====================================================================
   Sign-in page: green hero with illustration + sign-in card
   ===================================================================== */
body.hero-page { background: #f3f8f4; }
.hero-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(380px, 1fr); }
.hero { position: relative; overflow: hidden; color: #fff; padding: 52px 64px 44px; display: flex; flex-direction: column;
  background: linear-gradient(150deg, #04562b 0%, #067a3c 42%, #0a9349 100%); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > *:not(.hero-bg) { position: relative; z-index: 1; }
.hero-logo { height: 58px; width: auto; align-self: flex-start; }
.hero-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; position: relative; min-height: 420px; }
.hero-copy { max-width: 520px; position: relative; z-index: 2; margin-top: -40px; }
.hero-copy h1 { color: #fff; font-size: clamp(2.3rem, 4.4vw, 4rem); line-height: 1.06; font-weight: 800; letter-spacing: -.5px; margin: 0 0 22px; text-shadow: 0 2px 18px rgba(0, 38, 15, .25); }
.hero-copy p { font-size: clamp(1.05rem, 1.5vw, 1.45rem); line-height: 1.35; color: #eafbf0; max-width: 500px; margin: 0; }
.hero-art { position: absolute; right: -40px; bottom: -20px; width: min(62%, 600px); height: auto; z-index: 1; }
.hero-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.hero-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 0 22px; border-left: 1px solid rgba(255, 255, 255, .28); font-size: .92rem; color: #e3f7ea; line-height: 1.35; }
.hero-steps li:first-child { padding-left: 0; border-left: 0; }
.hero-steps .n { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #05703a; font-weight: 800; display: grid; place-items: center; font-size: 1rem; box-shadow: 0 4px 14px rgba(0, 38, 15, .25); }
.hero-steps strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 2px; }

.hero-side { display: flex; align-items: center; justify-content: center; padding: 40px 28px;
  background: radial-gradient(900px 500px at 100% 0%, #d9f2e2 0%, rgba(217, 242, 226, 0) 60%), radial-gradient(700px 500px at 0% 100%, #e4f5ea 0%, rgba(228, 245, 234, 0) 60%), #f6faf6; }
.signin-card { width: 100%; max-width: 540px; background: #fff; border-radius: 16px; padding: 40px 38px 34px; box-shadow: 0 24px 60px rgba(6, 74, 38, .12), 0 2px 6px rgba(6, 74, 38, .06); border: 1px solid #e6efe8; }
.signin-card h2 { font-size: 2.6rem; font-weight: 800; letter-spacing: -.5px; color: #0c2a1b; margin: 0 0 6px; }
.signin-card .lead { color: #4b5d53; font-size: 1.05rem; margin-bottom: 22px; }
.signin-card label { font-size: 1rem; font-weight: 700; color: #0c2a1b; margin-bottom: 8px; }
.signin-card input[type=email], .signin-card input[type=password], .signin-card input[type=text] { padding: 14px 14px; font-size: 1.02rem; border-radius: 9px; border-color: #c9d6cd; }
.signin-card input:focus { outline: 3px solid #bfe9cf; border-color: var(--brand); }
.signin-card .field { margin-bottom: 20px; }
.signin-card hr { border: 0; border-top: 1px solid #dfe8e2; margin: 30px 0 24px; }
.signin-card h3 { font-size: 1.45rem; font-weight: 800; color: #0c2a1b; margin: 0 0 14px; }
.signin-card .foot { color: #4b5d53; font-size: 1rem; margin: 26px 0 0; }
.btn-lg { padding: 15px 18px; font-size: 1.15rem; border-radius: 9px; font-weight: 700; }
.btn-outline { background: #fff; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--brand-tint); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px !important; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; color: #5b6b62; cursor: pointer; border-radius: 6px; display: grid; }
.pw-toggle:hover, .pw-toggle[aria-pressed=true] { color: var(--red); background: var(--brand-tint); }

@media (max-width: 1100px) {
  .hero { padding: 40px 36px 32px; }
  .hero-art { width: 58%; right: -60px; opacity: .92; }
  .hero-steps { grid-template-columns: 1fr; gap: 14px; }
  .hero-steps li { border-left: 0; padding: 0; }
}
@media (max-width: 860px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero { padding: 28px 24px 26px; }
  .hero-logo { height: 42px; }
  .hero-main { min-height: 0; padding: 26px 0 18px; }
  .hero-copy { margin-top: 0; }
  .hero-art { display: none; }
  .hero-steps { display: none; }
  .hero-side { padding: 22px 16px 36px; }
  .signin-card { padding: 28px 22px 24px; }
  .signin-card h2 { font-size: 2rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: floaty 7s ease-in-out infinite; }
  @keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}
@media (min-width: 861px) {
  .hero-copy { max-width: min(520px, 58%); }
  .hero-copy p { max-width: 88%; }
  .hero-art { width: min(52%, 560px); right: -18px; bottom: -6px; filter: drop-shadow(0 26px 34px rgba(0, 38, 15, .32)); }
}
@media (min-width: 861px) and (max-width: 1400px) {
  .hero-copy h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
  .hero-copy p { font-size: 1.08rem; }
}
