/* Lumi Trade — order tracking & CRM */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #16202e;
  --ink-2: #4a5566;
  --muted: #7a8494;
  --line: #e3e6eb;
  --line-2: #eef0f3;
  --brand: #0f3d5c;
  --brand-ink: #ffffff;
  --accent: #0b8a7a;
  --accent-soft: #e3f4f1;
  --warn: #b26b00;
  --warn-soft: #fff4e0;
  --bad: #c0392b;
  --bad-soft: #fdecea;
  --ok: #18794e;
  --ok-soft: #e6f4ec;
  --info: #2a62b8;
  --info-soft: #e8f0fc;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; line-height: 1.25; margin: 0 0 4px; letter-spacing: -.01em; }
h2 { font-size: 15px; margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.bad { color: var(--bad); }
.ok { color: var(--ok); }
.hidden { display: none !important; }
.accent { color: var(--accent); }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 0 24px; height: 56px; background: var(--brand); color: var(--brand-ink); }
.topbar a { color: rgba(255,255,255,.78); }
.topbar a:hover { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 17px; color: #fff !important; letter-spacing: -.01em; }
.brand span { color: #6fd3c4; font-weight: 600; margin-left: 2px; }
.topbar .links { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.topbar .links a { padding: 6px 12px; border-radius: 6px; white-space: nowrap; }
.topbar .links a.on { background: rgba(255,255,255,.14); color: #fff; }
.topbar .me { display: flex; align-items: center; gap: 14px; font-size: 13px; white-space: nowrap; }
.topbar .me form { margin: 0; }
.topbar .me .link { color: rgba(255,255,255,.78); }
.navtoggle { display: none; background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }

.page { max-width: 1320px; margin: 0 auto; padding: 24px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead p { margin: 2px 0 0; }
.back { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; font: 500 13px var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn:hover { border-color: #c9ced6; background: #fafbfc; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #087567; }
.btn.small { padding: 4px 10px; font-size: 12px; }
.btn.wide { width: 100%; justify-content: center; }
button.link { background: none; border: 0; padding: 0; color: var(--info); cursor: pointer; font: inherit; }
button.link.danger, .danger { color: var(--bad); }
button.link.ok { color: var(--ok); }
button.link.bad { color: var(--bad); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.actions.sticky { position: sticky; bottom: 0; z-index: 2; background: var(--surface); padding: 12px 0; border-top: 1px solid var(--line-2); margin-top: 12px; box-shadow: 0 -8px 12px -10px rgba(16,24,40,.12); }
form.inline { display: inline; margin: 0; }

/* ---------- cards / layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; min-width: 0; }
.card.inset { background: #fafbfc; box-shadow: none; }
.card.narrow { max-width: 420px; margin: 60px auto; }
.card.narrow-md { max-width: 780px; margin-left: auto; margin-right: auto; }
.card.auth h1 { font-size: 26px; margin-bottom: 4px; }
.more { margin-left: auto; font-size: 12px; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid2.wide-left { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; }
a.kpi:hover { border-color: var(--accent); }
.kpi .n { font-size: 22px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--muted); }
.kpi.bad .n { color: var(--bad); }

/* ---------- alerts ---------- */
.alert { display: block; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; border: 1px solid transparent; color: inherit; }
.alert.err { background: var(--bad-soft); color: #8e2418; border-color: #f5c6c0; }
.alert.ok { background: var(--ok-soft); color: #135e3d; border-color: #bfe3cf; }
.alert.warn { background: var(--warn-soft); color: #7a4a00; border-color: #f2d9a6; }
a.alert:hover { text-decoration: none; filter: brightness(.98); }
.alerts { margin-bottom: 4px; }
.flash { transition: opacity .6s, max-height .6s, margin .6s, padding .6s; max-height: 80px; overflow: hidden; }
.flash.gone { opacity: 0; max-height: 0; margin: 0; padding: 0 14px; border-width: 0; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafbfc; }
.tbl td:first-child > a { white-space: nowrap; }
.tbl.compact td { padding: 6px 8px; }
.tbl th.right, .tbl td.right { text-align: right; }
.tbl tr.total td { font-weight: 600; border-top: 1px solid var(--line); background: #fafbfc; }
.tbl tr.dim td { opacity: .55; }
.thumbcell { width: 52px; }
.thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; background: var(--line-2); }
.thumb.empty { display: block; }
.stars { color: #e0a100; letter-spacing: 1px; }

/* ---------- pills / tags ---------- */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--line-2); color: var(--ink-2); white-space: nowrap; text-transform: capitalize; }
.pill.lg { font-size: 13px; padding: 5px 14px; }
.pill.new, .pill.draft, .pill.planned, .pill.confirmed { background: var(--info-soft); color: var(--info); }
.pill.reviewing, .pill.booked, .pill.deposit_paid, .pill.in_production, .pill.qc { background: var(--warn-soft); color: var(--warn); }
.pill.quoted, .pill.sent, .pill.packed, .pill.picked_up { background: #f1e9fb; color: #6b3fa0; }
.pill.shipped, .pill.departed, .pill.in_transit, .pill.arrived, .pill.customs { background: var(--accent-soft); color: var(--accent); }
.pill.accepted, .pill.delivered, .pill.closed { background: var(--ok-soft); color: var(--ok); }
.pill.declined, .pill.rejected, .pill.cancelled, .pill.expired { background: var(--bad-soft); color: var(--bad); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11px; background: var(--line-2); color: var(--ink-2); text-transform: capitalize; white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.internal { background: #222c3a; color: #fff; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 6px 12px; border-radius: 999px; color: var(--ink-2); font-size: 13px; text-transform: capitalize; border: 1px solid transparent; }
.tabs a:hover { background: var(--surface); text-decoration: none; }
.tabs a.on { background: var(--surface); border-color: var(--line); color: var(--ink); font-weight: 600; box-shadow: var(--shadow); }
.tabs a span { color: var(--muted); font-size: 11px; margin-left: 2px; }
.tabs.inline { margin: 0 0 0 auto; font-weight: 400; }
.tabs.inline a { padding: 2px 9px; font-size: 12px; }

/* ---------- order progress ---------- */
.steps { list-style: none; display: flex; padding: 0; margin: 0 0 14px; counter-reset: s; overflow-x: auto; }
.steps li { flex: 1; min-width: 86px; position: relative; text-align: center; font-size: 11px; color: var(--muted); padding-top: 26px; text-transform: capitalize; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 11px; line-height: 20px; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.steps li:first-child::after { display: none; }
.steps li.done::before { background: var(--accent); color: #fff; content: '✓'; }
.steps li.done::after, .steps li.now::after { background: var(--accent); }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li.now::before { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px rgba(15,61,92,.15); }
.statusform { margin: 0; }
.statusform input[name=note] { flex: 2; }

/* ---------- definition lists ---------- */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 12px; }
.dl dt { color: var(--muted); font-size: 13px; }
.dl dd { margin: 0; }
.dl.tight { gap: 4px 12px; font-size: 13px; }
.dl.tight dd { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- quotes (portal) ---------- */
.quote { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.qhead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

/* ---------- files / gallery ---------- */
.files { list-style: none; padding: 0; margin: 0; }
.files li { padding: 6px 0; border-bottom: 1px solid var(--line-2); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--line-2); display: block; }
.gallery figcaption { margin-top: 4px; display: flex; gap: 4px; flex-wrap: wrap; }
.upload { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 12px; }
ul.plain { list-style: none; padding: 0; margin: 6px 0; }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 12px 18px; font-size: 13px; }
.timeline li::before { content: ''; position: absolute; left: 3px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline li::after { content: ''; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t { display: block; font-size: 11px; color: var(--muted); }
.timeline strong { font-weight: 600; text-transform: capitalize; }

/* ---------- forms ---------- */
label { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); margin-bottom: 12px; flex: 1; min-width: 0; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: 14px var(--font); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(11,138,122,.25); border-color: var(--accent); }
input[type=checkbox] { display: inline-block; width: auto; margin: 0 6px 0 0; vertical-align: -2px; }
input[type=file] { padding: 6px; background: #fafbfc; }
textarea { resize: vertical; }
label.check { display: flex; align-items: center; font-weight: 400; font-size: 13px; color: var(--ink); flex: 0 0 auto; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.row > label { flex: 1 1 140px; }
.row > .grow2 { flex: 2 1 240px; }
.row.tight { gap: 8px; margin-bottom: 12px; align-items: center; }
.row.tight > input, .row.tight > select { margin: 0; flex: 1 1 160px; width: auto; }
.row.tight > input[name=q] { flex: 2 1 220px; }
.row.between { justify-content: space-between; align-items: center; }
.row.between label { margin: 0; }
input.filter { margin: 0 0 12px; max-width: 320px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 2px; margin: 0 0 12px; min-width: 0; }
fieldset[disabled] { border: 0; padding: 0; }
legend { font-size: 12px; font-weight: 600; padding: 0 6px; color: var(--ink-2); }
.hint { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 3px; min-height: 1em; }
.hint.bad { color: var(--bad); }
details > summary { cursor: pointer; list-style: none; display: inline-flex; }
details > summary::-webkit-details-marker { display: none; }
details { margin-top: 10px; }
form.sub { margin-top: 12px; padding: 14px; background: #fafbfc; border: 1px solid var(--line-2); border-radius: 8px; }
.inline-edit { margin: 0; text-align: left; }
.inline-edit[open] { position: relative; }
.inline-edit form.sub { position: absolute; right: 0; z-index: 5; width: min(560px, 85vw); box-shadow: 0 8px 24px rgba(16,24,40,.14); background: #fff; }
select.pillselect { width: auto; margin: 0; padding: 3px 8px; font-size: 12px; border-radius: 999px; }

/* ---------- dashboard charts ---------- */
.bars { display: flex; flex-direction: column; gap: 6px; }
.bar { display: grid; grid-template-columns: 110px 1fr 56px; gap: 10px; align-items: center; color: var(--ink); font-size: 12px; text-decoration: none !important; }
.bar .bl { text-transform: capitalize; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .bt { height: 14px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.bar .bf { display: block; height: 100%; background: var(--accent); border-radius: 4px; min-width: 2px; }
.bar .bn { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
a.bar:hover .bf { background: var(--brand); }
.cols { display: flex; gap: 10px; align-items: flex-end; height: 170px; padding-top: 8px; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.col .stack { flex: 1; width: 100%; max-width: 56px; position: relative; display: flex; align-items: flex-end; justify-content: center; }
.col .rev, .col .pro { position: absolute; bottom: 0; border-radius: 4px 4px 0 0; }
.col .rev { width: 100%; background: #c8dbe8; }
.col .pro { width: 46%; background: var(--accent); }
.col .cl { font-size: 11px; color: var(--muted); margin-top: 6px; }
.legend { margin: 10px 0 0; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-left: 8px; }
.sw.rev { background: #c8dbe8; } .sw.pro { background: var(--accent); }

/* ---------- pricing calculator ---------- */
.calcgrid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.results { position: sticky; top: 72px; margin: 0; }
.results .big { display: flex; flex-direction: column; margin-bottom: 10px; }
.results .big .l { font-size: 12px; color: var(--muted); }
.results .big .n { font-size: 26px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.results .big + .big .n { color: var(--accent); }
.marginbadge { margin: 8px 0; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 13px; text-align: center; }
.marginbadge.ok { background: var(--ok-soft); color: var(--ok); }
.marginbadge.bad { background: var(--bad-soft); color: var(--bad); }
.warnings { padding-left: 18px; margin: 6px 0; color: var(--bad); font-size: 12px; }
.ai { margin-top: 10px; font-size: 13px; }
.pre.ai { background: #f6f8fb; border: 1px solid var(--line-2); border-radius: 8px; padding: 12px; margin-bottom: 10px; font-size: 13px; }
.aiscore { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; margin-bottom: 10px; font-weight: 600; }
.aiscore .n { font-size: 26px; font-variant-numeric: tabular-nums; }
.aiscore.ok { background: var(--ok-soft); color: var(--ok); }
.aiscore.warn { background: var(--warn-soft); color: var(--warn); }
.issues { list-style: none; padding: 0; margin: 0 0 10px; }
.issues li { padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.issues li.high .tag { background: var(--bad-soft); color: var(--bad); }
.issues li.medium .tag { background: var(--warn-soft); color: var(--warn); }
.helper { margin: 0 0 10px; }
.helper[open] { background: #fafbfc; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; }
.helper .row { margin-top: 8px; }
.helper .btn { margin-top: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .grid2, .grid2.wide-left, .calcgrid { grid-template-columns: minmax(0, 1fr); }
  .results { position: static; }
}
@media (max-width: 760px) {
  .page { padding: 16px; }
  .topbar { padding: 0 16px; flex-wrap: wrap; height: auto; min-height: 56px; gap: 8px 16px; }
  .navtoggle { display: block; }
  .topbar .links, .topbar .me { display: none; width: 100%; }
  .topbar.open .links { display: flex; flex-direction: column; padding-bottom: 8px; }
  .topbar.open .me { display: flex; padding-bottom: 12px; flex-wrap: wrap; }
  .card { padding: 14px; }
  .card.narrow { margin: 24px auto; }
  .kpi .n { font-size: 19px; }
  .bar { grid-template-columns: 90px 1fr 40px; }
  .dl { grid-template-columns: 1fr; gap: 0; }
  .dl dt { margin-top: 6px; }
  .dl.tight { grid-template-columns: 1fr auto; }
  .inline-edit form.sub { position: static; width: auto; }
  .tbl { display: block; overflow-x: auto; font-size: 13px; }
}
.row:not(.tight):not(.between) > label.check { margin-top: 28px; }
form.inline + form.inline { margin-left: 10px; }

/* ---------- shipment page ---------- */
.kpis.five { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.facts > div { display: flex; flex-direction: column; min-width: 0; }
.facts span { font-size: 12px; color: var(--muted); }
.facts strong { font-weight: 500; overflow-wrap: anywhere; }
.facts em { font-style: normal; font-size: 11px; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr); gap: 24px; align-items: start; }
.breakdown { border-left: 1px solid var(--line-2); padding-left: 20px; }
.breakdown h3 { margin-top: 0; }
.breakdown .bar { grid-template-columns: 1fr 70px; grid-template-areas: "l n" "t t"; gap: 2px 8px; margin-bottom: 6px; }
.breakdown .bar .bl { grid-area: l; } .breakdown .bar .bn { grid-area: n; } .breakdown .bar .bt { grid-area: t; height: 8px; }
.tblwrap { overflow-x: auto; }
.tbl.landed td, .tbl.landed th { white-space: nowrap; }
.tbl.landed td:first-child { white-space: normal; min-width: 180px; }
.tbl.landed .gcost { background: #f6f8fb; }
.tbl.landed .gsell { background: #f1f8f6; }
.tbl.landed tr.group th { text-transform: none; letter-spacing: 0; font-size: 12px; text-align: center; border-bottom: 0; padding-bottom: 2px; color: var(--ink-2); }
.tbl.landed tfoot td { font-weight: 600; border-top: 1px solid var(--line); }
.legendline { margin-top: 10px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sw.gcost { background: #e3e9f2; } .sw.gsell { background: #d6eee8; }
@media (max-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .breakdown { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 14px; }
}
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; gap: 10px 14px; } }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* ---------- shipment page v2 ---------- */
.kpi .s { font-size: 11px; color: var(--muted); margin-top: 2px; }
.kpi.good .n { color: var(--ok); }
.kpi.warn .n { color: var(--warn); }
.route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 1.1fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 4px 0 16px; }
.route .pt { display: flex; flex-direction: column; min-width: 0; }
.route .pt.end { text-align: right; }
.route .city { font-size: 18px; font-weight: 650; letter-spacing: -.01em; overflow-wrap: anywhere; }
.route .when { font-size: 12px; color: var(--muted); }
.route .when.bad { color: var(--bad); }
.route .line { position: relative; display: flex; flex-direction: column; align-items: center; }
.route .line::before { content: ''; position: absolute; top: 13px; left: 0; right: 0; border-top: 2px dashed var(--line); }
.route .ic { position: relative; background: var(--surface); padding: 0 8px; font-size: 18px; line-height: 26px; color: var(--accent); }
.route .mode { font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.tracker { list-style: none; display: flex; padding: 0; margin: 0; gap: 4px; }
.tracker li { flex: 1; min-width: 0; }
.tracker li > span, .tracker li button { display: block; width: 100%; padding: 7px 4px; border-radius: 6px; font: 500 11px var(--font); text-align: center; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tracker li.done > span { background: var(--accent-soft); color: var(--accent); }
.tracker li.now > span { background: var(--brand); color: #fff; font-weight: 600; }
.tracker li button { background: var(--line-2); color: var(--muted); border: 1px dashed transparent; cursor: pointer; }
.tracker li button:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
.tracker form { margin: 0; }
.tracker + .hint { margin: 6px 0 16px; }
.facts { border-top: 1px solid var(--line-2); padding-top: 14px; }
.mono { font-family: var(--mono); font-size: 13px; }
h2 .count { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--line-2); border-radius: 999px; padding: 0 8px; }
.checklist { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.chk { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.chk.yes { background: var(--ok-soft); color: var(--ok); border-color: #bfe3cf; }
.chk.no { color: var(--muted); border-style: dashed; }
.doclist { list-style: none; padding: 0; margin: 0 0 4px; }
.doclist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.doclist li:last-child { border-bottom: 0; }
.ficon { flex: 0 0 38px; height: 44px; border-radius: 6px; background: #eef2f7; color: var(--ink-2); font: 700 10px var(--font); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6px; border: 1px solid var(--line); }
.dmain { flex: 1; min-width: 0; }
.dtitle { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dmeta { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 6px; align-items: center; }
.dact { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
button.vis { font: 500 11px var(--font); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; white-space: nowrap; }
button.vis.on { background: var(--info-soft); color: var(--info); border-color: #c9d9f3; }
.iconbtn { background: none; border: 0; width: 26px; height: 26px; border-radius: 6px; font-size: 16px; line-height: 1; cursor: pointer; color: var(--muted); }
.iconbtn.danger:hover { background: var(--bad-soft); color: var(--bad); }
.gallery figcaption { align-items: center; }
.gallery figcaption form { margin-left: auto; }
@media (max-width: 760px) {
  .route .city { font-size: 15px; }
  .tracker { flex-wrap: wrap; }
  .tracker li { flex: 1 0 30%; }
}

/* ---------- members / invitation status ---------- */
.members { list-style: none; padding: 0; margin: 0 0 14px; }
.members li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.members li:last-child { border-bottom: 0; }
.members li.dim { opacity: .55; }
.avatar { flex: 0 0 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; background: var(--line-2); color: var(--ink-2); }
.avatar.accepted { background: var(--accent-soft); color: var(--accent); }
.avatar.pending { background: var(--info-soft); color: var(--info); border: 1px dashed #9db8e6; }
.avatar.expired { background: var(--warn-soft); color: var(--warn); border: 1px dashed #e4bf7c; }
.who { flex: 1; min-width: 0; }
.who .name { font-weight: 500; overflow-wrap: anywhere; }
.istate { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.mact { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }

/* ---------- product import ---------- */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 28px 16px; border: 2px dashed var(--line); border-radius: 12px; background: #fafbfc; cursor: pointer; margin-bottom: 14px; color: var(--ink); }
.drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.drop .dicon { font-size: 28px; color: var(--accent); line-height: 1; }
.drop .fname { color: var(--ink); font-weight: 600; }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 13px; }
.stepno { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; align-items: center; justify-content: center; }
.supgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.matchbox { border-radius: 10px; padding: 14px 16px; border: 1px solid var(--line); background: #fafbfc; }
.matchbox.match { border-color: #bfe3cf; background: #f4fbf7; }
.matchbox.suspect { border-color: #f2d9a6; background: #fffaf0; }
.mhead { font-weight: 650; margin-bottom: 4px; }
.mhead.ok { color: var(--ok); } .mhead.warn { color: var(--warn); }
.choices { display: grid; gap: 8px; margin: 10px 0; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 400; color: var(--ink); font-size: 13px; margin: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(11,138,122,.15); }
.choice input { width: auto; margin: 3px 0 0; }
.reasons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.confirmnew { margin: 0 0 0 4px; }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.tbl.imp td { vertical-align: top; padding: 8px 6px; }
.tbl.imp input, .tbl.imp select { margin: 0; padding: 5px 6px; font-size: 13px; display: inline-block; }
.tbl.imp .nums div { white-space: nowrap; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
.tbl.imp .pcell { min-width: 260px; }
.tbl.imp .pname { width: 100%; font-weight: 600; margin-bottom: 4px; }
.tbl.imp .sub2 { display: flex; gap: 4px; margin-bottom: 4px; }
.tbl.imp .notes { width: 100%; font-size: 12px; color: var(--ink-2); margin-bottom: 2px; }
.tbl.imp .incat { min-width: 150px; }
.tbl.imp .incat select { margin-top: 4px; width: 100%; }
.tbl.imp input.flag { border-color: #e4bf7c; background: #fffaf0; }
.tbl.imp input.fixed { border-color: #9fd3b8; background: #f4fbf7; }
.tbl.imp tr.main.err td { background: #fff7f6; }
.tbl.imp tr.main.warnrow td, .tbl.imp tr.issues-row.warnrow td { background: #fffdf6; }
.tbl.imp tr.issues-row td { border-top: 0; padding-top: 0; }
.tbl.imp tr.main:has(+ tr.issues-row) td { border-bottom: 0; }
.tbl.imp tr.off td { opacity: .45; }
.tbl.imp tbody tr:hover td { background: inherit; }
.thumb.lg { width: 56px; height: 56px; }
.rowissues { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12px; }
.rowissues li { padding-left: 2px; color: var(--ink-2); }
.rowissues li.high { color: var(--bad); }
.rowissues .src { display: inline-block; min-width: 38px; font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.importbar { position: sticky; bottom: 0; z-index: 5; display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: 0 -6px 20px rgba(16,24,40,.08); margin-bottom: 18px; }
.importbar .grow { flex: 1; }
@media (max-width: 1000px) { .supgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .importbar { flex-wrap: wrap; } .importbar .grow { display: none; } }
#reviewForm > fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.matchbox label.check { align-items: flex-start; gap: 0; font-size: 12px; }
.matchbox label.check input { margin-top: 2px; }

/* ---------- email-code sign-in & invitation steps ---------- */
.card.wide-auth { max-width: 560px; }
.codehead { display: flex; gap: 12px; align-items: center; background: var(--info-soft); border-radius: 10px; padding: 12px 14px; margin: 14px 0; }
.mailicon { font-size: 22px; color: var(--info); }
.codeinput { font: 600 26px var(--mono); letter-spacing: .35em; text-align: center; padding: 12px; }
.codefoot { margin-top: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.authsteps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 14px 0 16px; counter-reset: a; }
.authsteps li { flex: 1; font-size: 12px; padding: 7px 10px; border-radius: 8px; background: var(--line-2); color: var(--muted); counter-increment: a; }
.authsteps li::before { content: counter(a) '. '; font-weight: 700; }
.authsteps li.now { background: var(--brand); color: #fff; font-weight: 600; }
.authsteps li.done { background: var(--accent-soft); color: var(--accent); }
.authsteps li.done::before { content: '✓ '; }

/* ---------- product photos (form) ---------- */
.photodrop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 16px; border: 2px dashed var(--line); border-radius: 12px; background: #fafbfc; margin-bottom: 10px; cursor: pointer; }
.photodrop:hover, .photodrop:focus, .photodrop.over { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.photodrop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.photodrop .dicon { font-size: 26px; line-height: 1; }
.photodrop.has { padding: 12px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-bottom: 12px; }
.pgrid:empty { display: none; }
.pthumb { position: relative; display: block; margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--line-2); aspect-ratio: 1; font-weight: 400; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pthumb.toobig { border-color: var(--bad); }
.pthumb .pmain { position: absolute; top: 6px; left: 6px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.pthumb .prm { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.92); font-size: 11px; padding: 4px 6px; display: flex; align-items: center; gap: 4px; color: var(--ink-2); }
.pthumb .prm input { margin: 0; }
.pthumb:has(.prm input:checked) img { opacity: .3; }
.pthumb:has(.prm input:checked) .prm { color: var(--bad); font-weight: 600; }
.pthumb .pdel { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(22,32,46,.75); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.pthumb .pcap { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.9); font-size: 10px; padding: 2px 6px; color: var(--muted); }
.pthumb.toobig .pcap { color: var(--bad); font-weight: 600; }

/* ---------- sign-in pages (shared layout) ---------- */
main.page:has(.authwrap) { max-width: none; padding: 0; }
.authwrap { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr); min-height: 100vh; }
.authbrand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px; color: #dbe7f1;
  background: radial-gradient(1200px 500px at -10% 110%, rgba(11,138,122,.45), transparent 60%), radial-gradient(700px 400px at 120% -10%, rgba(111,211,196,.18), transparent 60%), linear-gradient(160deg, #0f3d5c, #0a2b42); }
.authbrand::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.authbrand > * { position: relative; z-index: 1; }
.ab-logo { font-size: 22px; font-weight: 700; color: #fff !important; letter-spacing: -.01em; text-decoration: none !important; }
.ab-logo span { color: #6fd3c4; margin-left: 2px; }
.ab-logo.mobile { display: none; color: var(--brand) !important; }
.ab-logo.mobile span { color: var(--accent); }
.ab-mid { max-width: 440px; }
.ab-route { width: 100%; max-width: 340px; color: #dbe7f1; margin-bottom: 18px; }
.ab-mid h2 { display: block; font-size: 28px; line-height: 1.2; color: #fff; margin: 0 0 18px; letter-spacing: -.02em; }
.ab-mid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ab-mid li { padding-left: 26px; position: relative; font-size: 14px; }
.ab-mid li::before { content: ''; position: absolute; left: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: rgba(111,211,196,.25); box-shadow: inset 0 0 0 4px rgba(111,211,196,.9); }
.ab-foot { font-size: 12px; opacity: .75; margin: 0; }
.authpanel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.authcard { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px 36px 28px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 12px 32px rgba(16,24,40,.08); }
.authcard:has(.row) { max-width: 560px; }
.authcard h1 { font-size: 24px; margin: 0 0 6px; }
.authcard .lead { color: var(--ink-2); margin: 0 0 20px; font-size: 14px; line-height: 1.55; }
.authcard label { font-size: 13px; margin-bottom: 14px; }
.authcard input { padding: 11px 12px; font-size: 15px; border-radius: 9px; }
.authcard .alert { margin-bottom: 16px; }
.btn.lg { padding: 12px 18px; font-size: 15px; border-radius: 10px; margin-top: 4px; }
.authicon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: var(--accent-soft); color: var(--accent); }
.authicon svg { width: 26px; height: 26px; }
.authicon.mail, .authicon.lock { background: var(--info-soft); color: var(--info); }
.authicon.warn { background: var(--warn-soft); color: var(--warn); }
.authicon.check { background: var(--ok-soft); color: var(--ok); }
.lrow { display: flex; justify-content: space-between; align-items: baseline; }
.lrow a { font-weight: 500; }
.pwfield { position: relative; display: block; }
.pwfield input { padding-right: 64px; }
.pwtoggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 2px; background: none; border: 0; color: var(--info); font: 600 12px var(--font); cursor: pointer; padding: 6px 8px; border-radius: 6px; }
.pwtoggle:hover { background: var(--info-soft); }
.hintline { margin: 16px 0 0; font-size: 12px; color: var(--muted); text-align: center; }
.authlinks { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.authlinks form { margin: 0; }
.resend { margin-top: 14px; text-align: center; }
.checklist-tips { list-style: none; padding: 14px 16px; margin: 0 0 20px; background: #f7f9fb; border: 1px solid var(--line-2); border-radius: 10px; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.checklist-tips li { padding-left: 20px; position: relative; }
.checklist-tips li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.authcard .codeinput { font: 600 28px var(--mono); letter-spacing: .4em; text-align: center; padding: 14px 10px 14px 22px; margin: 0 0 14px; border-radius: 12px; }
.authcard .codeinput::placeholder { color: #c9d0d9; }
.authcard .authsteps { margin-top: 0; }
.authlegal { margin-top: 18px; font-size: 11px; color: var(--muted); }
@media (max-width: 860px) {
  .authwrap { grid-template-columns: 1fr; }
  .authbrand { display: none; }
  .ab-logo.mobile { display: block; margin-bottom: 18px; }
  .authpanel { justify-content: flex-start; padding: 32px 16px; }
  .authcard { padding: 26px 20px 22px; border-radius: 14px; }
}

/* ---------- logo animation: Highs Business → Lumi Trade (plays once) ---------- */
.ab-logo.morph { position: relative; display: inline-grid; white-space: nowrap; line-height: 1.15; }
.ab-logo.morph > span { grid-area: 1 / 1; display: inline-flex; gap: .28em; }
.ab-logo.morph .w2 { color: #6fd3c4; }
.ab-logo.morph.mobile .w1 { color: var(--brand); } .ab-logo.morph.mobile .w2 { color: var(--accent); }
.ab-logo.morph .ch { display: inline-block; will-change: transform, opacity, filter; }
.ab-logo.morph .m-from .ch { animation: lt-out .55s cubic-bezier(.55,0,.75,.3) both; animation-delay: calc(1.1s + var(--i) * 45ms); }
.ab-logo.morph .m-to .ch { opacity: 0; animation: lt-in .7s cubic-bezier(.2,.8,.25,1) both; animation-delay: calc(1.75s + var(--i) * 60ms); }
.ab-logo.morph .m-to { pointer-events: none; }
.ab-logo.morph .m-to .w2 .ch:last-child { animation-name: lt-in-glow; animation-duration: 1.4s; }
@keyframes lt-out {
  to { opacity: 0; transform: translateY(-.55em) rotate(-6deg); filter: blur(6px); }
}
@keyframes lt-in {
  from { opacity: 0; transform: translateY(.6em) scale(.9); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes lt-in-glow {
  0%   { opacity: 0; transform: translateY(.6em) scale(.9); filter: blur(8px); text-shadow: none; }
  45%  { opacity: 1; transform: none; filter: none; text-shadow: 0 0 18px rgba(111,211,196,.9); }
  100% { opacity: 1; transform: none; filter: none; text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-logo.morph .m-from { display: none; }
  .ab-logo.morph .m-to .ch { animation: none; opacity: 1; }
}
.ab-logo.morph span { margin-left: 0; color: inherit; }
.ab-logo.morph > span { gap: .22em; }
.ab-logo.morph .w1 { color: #fff; }
.ab-logo.morph .w2 { color: #6fd3c4; }
.ab-logo.morph.mobile .w1 { color: var(--brand); }
.ab-logo.morph.mobile .w2 { color: var(--accent); }

/* ---------- client company details ---------- */
.companywrap { max-width: 780px; margin: 0 auto; }
.welcome { background: linear-gradient(135deg, #0f3d5c, #0b5f68); color: #e6f1f6; border-radius: 16px; padding: 26px 30px; margin-bottom: 18px; }
.welcome h1 { color: #fff; font-size: 24px; margin: 6px 0 8px; }
.welcome p { margin: 0; opacity: .9; }
.welcome strong { color: #fff; }
.wstep { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(111,211,196,.2); color: #8fe3d6; padding: 3px 10px; border-radius: 999px; }
.companyform { padding: 6px 28px 22px; }
.companyform section { padding: 18px 0 6px; border-bottom: 1px solid var(--line-2); }
.companyform section:last-of-type { border-bottom: 0; }
.companyform h3 { margin-top: 0; }
.reqmark { color: var(--bad); font-weight: 700; margin-left: 2px; }
label.haserr input, label.haserr textarea { border-color: var(--bad); background: #fff8f7; }
.ferr { display: block; color: var(--bad); font-size: 12px; font-weight: 500; margin-top: 4px; }
.formend { padding-top: 16px; border-top: 1px solid var(--line-2); }
.formend .grow { flex: 1; }

/* =========================================================================
   Client portal: left menu + wide content (Lulyboo-style)
   ========================================================================= */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.ico { width: 20px; height: 20px; flex: 0 0 auto; }
.sbrand, .sorg, .suser { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none !important; }
.sbrand { padding: 4px 8px 16px; }
.sbrand strong { display: block; font-size: 17px; letter-spacing: -.01em; }
.sbrand small, .sorg small, .suser small { display: block; font-size: 11px; color: var(--muted); }
.sbrand small { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: 10px; }
.smark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #0f3d5c); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.sorg { padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; margin-bottom: 10px; }
.sorg:hover { border-color: var(--accent); }
.sorg strong, .suser strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.oav, .uav { flex: 0 0 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; background: var(--accent-soft); color: var(--accent); border: 1px solid #c8e8e2; }
.uav { border-radius: 50%; background: #eef2f7; color: var(--brand); border-color: var(--line); }
.snav { display: grid; gap: 2px; }
.snav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none !important; }
.snav a:hover { background: #f4f6f8; color: var(--ink); }
.snav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.sfoot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
.suser { padding: 6px 8px; border-radius: 10px; }
.suser:hover { background: #f4f6f8; }
.suser small { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssignout { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 10px; color: var(--ink-2); font: 500 14px var(--font); cursor: pointer; }
.ssignout:hover { background: var(--bad-soft); color: var(--bad); }
.shell-main { min-width: 0; display: flex; flex-direction: column; }
.crumbbar { position: sticky; top: 0; z-index: 9; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 40px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); min-width: 0; }
.crumbs a { color: var(--muted); }
.crumbs strong { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { width: 15px; height: 15px; }
.sidetoggle { display: none; border: 0; background: none; padding: 6px; margin-left: -6px; cursor: pointer; color: var(--ink); }
.page.cpage { max-width: 1240px; width: 100%; padding: 34px 40px 60px; }

/* page header: eyebrow + big title */
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.phead h1 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 6px; }
.phead .sub { color: var(--ink-2); margin: 0; font-size: 15px; }
.phead .btn, .stat, .tabs2 a { gap: 8px; }
.phead .btn { padding: 10px 16px; font-size: 14px; border-radius: 10px; }
.phead .btn .ico { width: 18px; height: 18px; }

/* stat cards with icons */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none !important; box-shadow: var(--shadow); }
.stat:hover { border-color: var(--accent); }
.stat strong { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -.02em; }
.stat small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.stat.attn { border-color: #f2d9a6; background: #fffcf4; }
.sico { flex: 0 0 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.sico .ico { width: 22px; height: 22px; }
.sico.c1 { background: var(--info-soft); color: var(--info); }
.sico.c2 { background: var(--warn-soft); color: var(--warn); }
.sico.c3 { background: #f1e9fb; color: #6b3fa0; }
.sico.c4 { background: var(--accent-soft); color: var(--accent); }

/* table cards with tabs and search */
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.thead { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 8px; }
.thead h2 { margin: 0; font-size: 16px; }
.tcard .tbl td, .tcard .tbl th { padding-left: 22px; padding-right: 22px; }
.tcard .tbl th { background: #fafbfc; border-top: 1px solid var(--line-2); }
.tbl.big td { padding-top: 14px; padding-bottom: 14px; font-size: 15px; }
.tbl tr.rowlink { cursor: pointer; }
.tbl tr.rowlink:hover td { background: #f7fbfa; }
.tabs2 { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs2 a { display: inline-flex; align-items: center; padding: 16px 12px 14px; color: var(--ink-2); font-size: 15px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.tabs2 a span { font-size: 12px; background: var(--line-2); color: var(--muted); border-radius: 999px; padding: 1px 8px; }
.tabs2 a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 650; }
.tabs2 a.on span { background: var(--accent-soft); color: var(--accent); }
.tsearch { display: flex; gap: 10px; align-items: center; padding: 14px 22px; position: relative; }
.tsearch input[name=q] { margin: 0; padding: 11px 12px 11px 40px; border-radius: 10px; font-size: 15px; flex: 1; }
.tsearch .sicon { position: absolute; left: 34px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.tsearch .btn { padding: 10px 16px; border-radius: 10px; }
.prog { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; min-width: 90px; margin-top: 6px; }
.prog span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #2bb3a0); border-radius: 999px; }
.progcell { min-width: 140px; }
.progcell .prog { margin: 0 0 3px; }
.empty { text-align: center; padding: 34px 20px 30px; color: var(--ink-2); }
.empty .sico { margin: 0 auto 12px; }
.empty p { margin: 0 0 14px; line-height: 1.6; }
.empty.slim { padding: 20px; }
.grid2.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(16,24,40,.2); }
  .shell.open .side { transform: none; }
  .shell.open::after { content: ''; position: fixed; inset: 0; background: rgba(16,24,40,.35); z-index: 30; }
  .sidetoggle { display: inline-flex; }
  .crumbbar { padding: 0 16px; }
  .page.cpage { padding: 22px 16px 40px; }
  .phead h1 { font-size: 26px; }
  .grid2.even { grid-template-columns: 1fr; }
  .tcard .tbl td, .tcard .tbl th { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 961px) { .shell { background: linear-gradient(to right, #fff 264px, var(--bg) 264px); } }
.cpage .pagehead h1 { font-size: 28px; letter-spacing: -.02em; }

/* generic drag-and-drop file zone */
.filedrop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 30px 18px; border: 2px dashed var(--line); border-radius: 14px; background: #fafbfc; cursor: pointer; margin-bottom: 12px; transition: border-color .15s, background .15s; }
.filedrop:hover, .filedrop:focus-visible, .filedrop.over { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.filedrop.over { transform: scale(1.005); }
.filedrop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; width: 100%; }
.filedrop .dicon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--accent); }
.filedrop .dicon svg { width: 22px; height: 22px; }
.filedrop strong { font-size: 15px; color: var(--ink); }
.filedrop .dlink { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.filedrop.has { padding: 16px 18px; flex-direction: row; justify-content: center; }
.filedrop.has .dicon { width: 32px; height: 32px; }
.filedrop.has .dsub { display: none; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.fgrid:empty { display: none; }
.fitem { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 36px 8px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.fitem img, .fitem .fext { flex: none; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.fitem .fext { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .03em; }
.fitem .fmeta { display: flex; flex-direction: column; min-width: 0; }
.fitem .fname { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fitem .fsize { font-size: 12px; color: var(--muted); }
.fitem.toobig { border-color: var(--bad); }
.fitem.toobig .fsize { color: var(--bad); font-weight: 600; }
.fitem .fdel { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--line-2); color: var(--ink-2); font-size: 16px; line-height: 1; cursor: pointer; }
.fitem .fdel:hover { background: var(--bad); color: #fff; }
label.flabel { margin-bottom: 6px; }
/* multi-product request form */
.rqform { max-width: 880px; margin: 0 auto; }
.rqform .card { margin-bottom: 16px; }
.rqhead { display: flex; align-items: center; justify-content: space-between; margin: 26px 2px 10px; }
.rqhead h2 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.rqhead .count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; }
.rqitem { border-left: 4px solid var(--accent); }
.rqitemhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rqbadge { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.rqdel { border: 0; background: var(--line-2); color: var(--ink-2); min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; font-size: 18px; line-height: 1; cursor: pointer; }
.rqdel:hover, .rqitem.confirm .rqdel { background: var(--bad); color: #fff; font-size: 12px; font-weight: 600; }
.rqitem.confirm { border-left-color: var(--bad); }
.rqadd { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; margin-bottom: 16px; border: 2px dashed var(--accent); border-radius: 14px; background: transparent; color: var(--accent); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.rqadd:hover { background: var(--accent-soft); }
.rqadd svg { width: 18px; height: 18px; }
.rqcur { margin-left: 4px; }
.filedrop.compact { padding: 18px 16px; }
.filedrop.compact .dicon { width: 36px; height: 36px; }
/* products inside a request (detail pages) */
.rqitems { display: flex; flex-direction: column; gap: 12px; }
.rqrow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rqrow .rqn { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
.rqrow .rqname { margin: 3px 0 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.rqrow .rqfacts { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.rqrow .rqfacts b { color: var(--ink); font-weight: 600; }
.rqrow .pre { margin: 8px 0 0; font-size: 13px; }
.rqthumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rqthumbs a { display: block; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--line-2); }
.rqthumbs img { width: 100%; height: 100%; object-fit: cover; }
.rqthumbs .fchip { width: auto; height: auto; padding: 6px 10px; font-size: 12px; display: flex; align-items: center; color: var(--ink-2); text-decoration: none; }
.rqrow .rqside { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 640px) { .rqrow { grid-template-columns: 30px minmax(0, 1fr); } .rqrow .rqside { grid-column: 2; align-items: flex-start; text-align: left; } }
