/* JE WH Management — JE identity: blue #2BAAE1 (marks), #127AB3 (buttons/links), charcoal #333034 */
:root {
  --brand: #2BAAE1;
  --brand-ink: #127AB3;
  --brand-tint: #E6F4FB;
  --ink: #333034;
  --text: #2E2D31;
  --muted: #5B6670;
  --bg: #F4F7F9;
  --surface: #FFFFFF;
  --line: #DCE4EA;
  --thead: #EDF2F6;
  --in: #1E8A57;  --in-tint: #E4F3EB;
  --out: #C3362B; --out-tint: #FBE9E7;
  --trf: #127AB3; --trf-tint: #E6F4FB;
  --ret: #A86300; --ret-tint: #FBF0DD;
  --cus: #6A4C9C; --cus-tint: #EFEAF7;
  --adj: #5B6670; --adj-tint: #EDF1F4;
  --warn: #A86300;
  --r: 10px;
  --font-ar: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-lat: "Montserrat", "Cairo", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font-ar); font-size: 15px; line-height: 1.6; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.lat, .code, .num { font-family: var(--font-lat); }
.code { font-weight: 600; font-size: .9em; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.35; }
h1 { font-size: 22px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #fff; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: baseline; gap: 8px; padding: 4px 10px 16px; }
.wordmark { font-family: var(--font-lat); font-weight: 800; font-size: 26px; letter-spacing: -.02em; color: #fff; line-height: 1; }
.wordmark b { color: var(--brand); font-weight: 800; }
.brand small { color: #C3C9CF; font-family: var(--font-lat); font-weight: 600; font-size: 12px; letter-spacing: .12em; }
.side a { color: #DDE2E6; padding: 8px 12px; border-radius: 8px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.side a:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.side a.on { background: rgba(43,170,225,.18); color: #fff; box-shadow: inset -3px 0 0 var(--brand); }
.side .sep { border-top: 1px solid rgba(255,255,255,.12); margin: 8px 6px; }
.side .who { margin-top: auto; padding: 10px 12px; font-size: 13px; color: #C3C9CF; }
.side .who b { color: #fff; display: block; }
.main { min-width: 0; }
.topbar { display: none; }
.page { max-width: 1180px; margin: 0 auto; padding: 22px 24px 90px; display: grid; gap: 16px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bottomnav { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: #fff; padding: 10px 16px; position: sticky; top: 0; z-index: 20; }
  .topbar .wordmark { font-size: 22px; }
  .topbar .uname { font-size: 13px; color: #C3C9CF; }
  .page { padding: 14px 16px 96px; }
  html { scroll-padding-bottom: 96px; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; inset-inline: 0; background: var(--surface); border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom, 0); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; font-size: 12px; color: var(--muted); font-weight: 600; }
  .bottomnav a.on { color: var(--brand-ink); }
  .bottomnav a svg { width: 22px; height: 22px; }
  .bottomnav a.plus span.dot { background: var(--brand-ink); color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-top: -18px; box-shadow: 0 2px 8px rgba(18,122,179,.35); }
}

/* ---------- components ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

.btn { font: inherit; font-weight: 700; border: 1px solid var(--brand-ink); background: var(--brand-ink); color: #fff; border-radius: 8px; padding: 8px 16px; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--brand-ink); }
.btn.plain { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.danger { background: var(--out); border-color: var(--out); }
.btn.ok { background: var(--in); border-color: var(--in); }
.btn.sm { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn.big { min-height: 48px; font-size: 16px; }

label.f { display: grid; gap: 4px; font-weight: 600; font-size: 13.5px; color: var(--ink); min-width: 0; }
label.f > span.req::after { content: " *"; color: var(--out); }
input, select, textarea { font: inherit; font-size: 15px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--text); min-height: 40px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
textarea { min-height: 70px; resize: vertical; }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--brand-ink); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }

.pill { display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.t-in { background: var(--in-tint); color: var(--in); }
.t-out { background: var(--out-tint); color: var(--out); }
.t-trf { background: var(--trf-tint); color: var(--trf); }
.t-ret { background: var(--ret-tint); color: var(--ret); }
.t-cus { background: var(--cus-tint); color: var(--cus); }
.t-adj { background: var(--adj-tint); color: var(--adj); }
.s-draft { background: var(--adj-tint); color: var(--adj); }
.s-pending { background: var(--ret-tint); color: var(--ret); }
.s-approved { background: var(--trf-tint); color: var(--trf); }
.s-in_transit { background: var(--cus-tint); color: var(--cus); }
.s-executed { background: var(--in-tint); color: var(--in); }
.s-rejected, .s-cancelled { background: var(--out-tint); color: var(--out); }
.s-reversed { background: var(--adj-tint); color: var(--adj); text-decoration: line-through; }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--thead); color: var(--ink); font-size: 13px; white-space: nowrap; position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: #F8FBFD; }
td.n, th.n { text-align: end; }
.neg { color: var(--out); font-weight: 700; }

.list { display: grid; gap: 8px; }
.vrow { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--line); border-radius: var(--r); padding: 10px 14px; color: inherit; }
.vrow:hover { text-decoration: none; border-color: var(--brand); }
.vrow.c-in { border-inline-start-color: var(--in); }
.vrow.c-out { border-inline-start-color: var(--out); }
.vrow.c-trf { border-inline-start-color: var(--trf); }
.vrow.c-ret { border-inline-start-color: var(--ret); }
.vrow.c-cus { border-inline-start-color: var(--cus); }
.vrow.c-adj { border-inline-start-color: var(--adj); }
.vrow .route { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; }

.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 2px; color: inherit; }
.kpi:hover { text-decoration: none; border-color: var(--brand); }
.kpi b { font-family: var(--font-lat); font-size: 28px; color: var(--ink); line-height: 1.2; }
.kpi span { color: var(--muted); font-size: 13.5px; }
.kpi.alert b { color: var(--out); }

.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.type-btn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 4px; color: var(--ink); font-weight: 700; cursor: pointer; text-align: start; font: inherit; }
.type-btn:hover { border-color: var(--brand); text-decoration: none; }
.type-btn small { font-weight: 500; color: var(--muted); font-size: 12.5px; }

.lines { display: grid; gap: 10px; }
.line { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; grid-template-columns: 2fr 110px 1.2fr auto; align-items: end; background: #FBFCFD; }
.line .wide { grid-column: 1 / -1; }
.line .avail { font-size: 12.5px; color: var(--muted); }
@media (max-width: 700px) { .line { grid-template-columns: 1fr 1fr; } .line .item { grid-column: 1 / -1; } }

.picker { position: relative; }
.picker .menu { position: absolute; inset-inline: 0; top: 100%; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); max-height: 280px; overflow-y: auto; }
.picker .menu div { padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--thead); }
.picker .menu div:hover, .picker .menu div.act { background: var(--brand-tint); }

.photos { display: flex; flex-wrap: wrap; gap: 10px; }
.photo { width: 104px; height: 104px; border-radius: 8px; border: 1px solid var(--line); overflow: hidden; position: relative; background: var(--thead); cursor: zoom-in; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo button { position: absolute; top: 4px; inset-inline-start: 4px; border: 0; border-radius: 50%; width: 24px; height: 24px; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.need { background: var(--out-tint); color: var(--out); border-radius: 8px; padding: 8px 12px; font-weight: 700; }
.note { background: var(--brand-tint); border-radius: 8px; padding: 10px 14px; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 16px; }
.kv div { display: grid; }
.kv span { font-size: 12.5px; color: var(--muted); }
.kv b { color: var(--ink); font-weight: 700; }

.toast { position: fixed; bottom: 80px; inset-inline-start: 50%; transform: translateX(50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 100; max-width: min(92vw, 520px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
[dir=rtl] .toast { transform: translateX(50%); }
.toast.err { background: var(--out); }

.modal-bg { position: fixed; inset: 0; background: rgba(20,24,28,.45); z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 12px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; padding: 18px; display: grid; gap: 12px; }
.modal.wide { width: min(900px, 100%); }
.viewer img { max-width: 100%; max-height: 80vh; display: block; margin: auto; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: center; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.meter { height: 10px; border-radius: 999px; background: var(--thead); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--ink); }
.login .card { width: min(380px, 100%); display: grid; gap: 14px; padding: 26px; }
.login .wordmark { color: var(--ink); font-size: 40px; }
.login .arcs { height: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-ink)); border-radius: 999px; }

/* ---------- printed voucher ---------- */
.print-page { background: #fff; max-width: 820px; margin: 0 auto; padding: 24px; color: #111; }
.pv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; }
.pv-head .wordmark { color: var(--ink); font-size: 34px; }
.pv-head .co { font-family: var(--font-lat); font-weight: 700; color: var(--ink); font-size: 13px; }
.pv-band { color: #fff; padding: 8px 14px; border-radius: 6px; display: flex; justify-content: space-between; font-weight: 800; font-size: 17px; }
.pv-band.in { background: var(--in); } .pv-band.out { background: var(--out); } .pv-band.trf { background: var(--trf); }
.pv-band.ret { background: var(--ret); } .pv-band.cus { background: var(--cus); } .pv-band.adj { background: var(--adj); }
.pv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin: 12px 0; font-size: 14px; }
.print-page table { font-size: 13.5px; }
.pv-lines { overflow-x: auto; }
.print-page th, .print-page td { border: 1px solid #bbb; }
.pv-sign { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; text-align: center; font-size: 13px; }
.pv-sign div { border-top: 1px solid #555; padding-top: 6px; }
@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .no-print, .side, .topbar, .bottomnav { display: none !important; }
  .shell { display: block; }
  .page { padding: 0; max-width: none; }
  .print-page { padding: 0; max-width: none; }
  .pv-band, .pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ===================== polish layer ===================== */
:root { --shadow: 0 1px 2px rgba(20,30,40,.05), 0 4px 14px rgba(20,30,40,.05); --shadow-hover: 0 2px 4px rgba(20,30,40,.06), 0 10px 26px rgba(20,30,40,.09); }
.ic { flex: none; }
.card, .kpi, .vrow, .type-btn, .stat-card, .todo-item { box-shadow: var(--shadow); }

/* sidebar */
.side { background: linear-gradient(180deg, #333034 0%, #2a272b 100%); gap: 2px; }
.brand { flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 20px; }
.brand small { font-size: 10.5px; letter-spacing: .32em; color: #8E979F; }
.side a { transition: background .15s, color .15s; }
.side a .ic { opacity: .75; }
.side a.on .ic, .side a:hover .ic { opacity: 1; color: var(--brand); }
.side .who { display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
.side .who div { display: grid; flex: 1; min-width: 0; }
.side .who b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .who .out { padding: 6px; color: #C3C9CF; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center;
  font-family: var(--font-lat); font-weight: 800; font-size: 13px; flex: none; }
.avatar.sm { width: 30px; height: 30px; font-size: 12px; }

/* page transitions and loading */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page > * { animation: rise .28s ease-out both; }
.page > .grid > *:nth-child(2) { animation-delay: .03s; }
.page > .grid > *:nth-child(3) { animation-delay: .06s; }
.page > .grid > *:nth-child(4) { animation-delay: .09s; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk { border-radius: var(--r); background: linear-gradient(90deg, #E8EEF2 25%, #F3F6F8 50%, #E8EEF2 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.sk-title { height: 34px; width: 40%; }
.sk-card { height: 110px; }
.sk-block { height: 240px; }
@media (prefers-reduced-motion: reduce) { .page > *, .sk { animation: none; } }

/* hover lift on everything clickable */
a.kpi, a.vrow, a.type-btn, a.stat-card, a.todo-item { transition: transform .15s, box-shadow .15s, border-color .15s; }
a.kpi:hover, a.vrow:hover, a.type-btn:hover, a.stat-card:hover, a.todo-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); text-decoration: none; }

/* home: hero band */
.hero { position: relative; overflow: hidden; border-radius: 16px; padding: 26px 28px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #3d3a3f 0%, #333034 45%, #26383f 100%);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; box-shadow: var(--shadow); }
.hero-arcs { position: absolute; inset-inline-end: -60px; top: -70px; width: 260px; height: 260px; pointer-events: none; }
.hero-arcs span { position: absolute; border-radius: 50%; border: 16px solid transparent; border-top-color: var(--brand); border-left-color: var(--brand); transform: rotate(-12deg); }
.hero-arcs span:nth-child(1) { inset: 0; opacity: .35; }
.hero-arcs span:nth-child(2) { inset: 58px; opacity: .7; }
.hero-text { position: relative; display: grid; gap: 2px; }
.hero h1 { color: #fff; font-size: 26px; }
.hero-date { color: #9FD8F2; font-weight: 600; font-size: 14px; }
.hero-role { color: #C3C9CF; font-size: 14px; }
.hero-actions { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-actions .btn { white-space: nowrap; }
.hero .btn.big { background: var(--brand); border-color: var(--brand); color: #10222B; }
.btn.ghost-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.section-title { margin-top: 6px; }

/* home: weekly numbers */
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 4px;
  color: inherit; position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--trf); }
.stat-card.t-out::before { background: var(--out); } .stat-card.t-ret::before { background: var(--ret); } .stat-card.t-adj::before { background: var(--adj); }
.stat-top { display: flex; align-items: center; gap: 8px; }
.stat-title { color: var(--muted); font-weight: 700; font-size: 13.5px; }
.stat-big { font-family: var(--font-lat); font-size: 28px; color: var(--ink); line-height: 1.25; margin-top: 4px; }
.stat-sub { color: var(--muted); font-size: 13px; }
.stat-card.alert .stat-big { color: var(--out); }
.chip { width: 32px; height: 32px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--brand-tint); color: var(--brand-ink); flex: none; }
.t-out .chip { background: var(--out-tint); color: var(--out); } .t-ret .chip { background: var(--ret-tint); color: var(--ret); }
.t-adj .chip { background: var(--adj-tint); color: var(--adj); }
.chip.ok { background: var(--in-tint); color: var(--in); }

/* home: what is waiting */
.todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.todo-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); font-weight: 600; }
.todo-item b { font-family: var(--font-lat); font-size: 22px; min-width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-ink); }
.todo-item.alert b { background: var(--out-tint); color: var(--out); }
.todo-item span { flex: 1; }
.todo-item .ic { color: var(--muted); }
.all-clear { display: flex; align-items: center; gap: 12px; }

/* home: charts */
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: #B9C4CC; stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-family: var(--font-lat); }
.chart .bar { fill: var(--brand-ink); transition: fill .12s; }
.chart .bar.on { fill: var(--brand); }
.chart .hit { fill: transparent; cursor: default; }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 8px; padding: 4px 10px;
  font-size: 12.5px; display: grid; text-align: center; pointer-events: none; white-space: nowrap; }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; align-items: center; gap: 10px; color: inherit; }
.hbar:hover { text-decoration: none; }
.hbar-label { display: flex; gap: 6px; min-width: 0; font-size: 13.5px; }
.hbar-label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.hbar-track { height: 10px; background: var(--thead); border-radius: 999px; overflow: hidden; }
.hbar-track i { display: block; height: 100%; background: var(--brand-ink); border-radius: 999px; }
.hbar:hover .hbar-track i { background: var(--brand); }

/* voucher type tiles */
.type-btn { grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; row-gap: 2px; border-radius: 12px; }
.type-ic { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-ink); }
.type-name { font-weight: 800; }
.type-btn.c-in .type-ic { background: var(--in-tint); color: var(--in); }
.type-btn.c-out .type-ic { background: var(--out-tint); color: var(--out); }
.type-btn.c-ret .type-ic { background: var(--ret-tint); color: var(--ret); }
.type-btn.c-cus .type-ic { background: var(--cus-tint); color: var(--cus); }
.type-btn.c-adj .type-ic { background: var(--adj-tint); color: var(--adj); }
.more-row { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }

/* login: brand panel */
.login { background: radial-gradient(120% 120% at 100% 0%, #26383f 0%, #333034 55%, #2a272b 100%); }
.login .card { box-shadow: 0 20px 60px rgba(0,0,0,.35); border: 0; border-radius: 16px; }

@media (max-width: 860px) {
  .hero { padding: 20px; border-radius: 14px; }
  .hero h1 { font-size: 21px; }
  .hero-actions .btn { flex: 1; padding-inline: 10px; }
  .types { grid-template-columns: 1fr 1fr; }
  .topbar { padding-top: max(10px, env(safe-area-inset-top)); }
}
