:root {
  --ground: #f7f5f9;
  --surface: #ffffff;
  --ink: #1c1620;
  --ink-2: #554a5c;
  --ink-3: #857a8c;
  --line: #e3dde8;
  --brand: #8e44ad;          /* buttons, links (deep shade of the logo purple) */
  --brand-ink: #ffffff;
  --brand-soft: #f3e8f8;
  --accent: #dc9ef4;         /* the logo lavender: highlights, focus */
  --black: #000000;          /* logo background: top bar */
  --accent-soft: #f6eafc;
  --ok: #2f6b3a;
  --ok-soft: #e5f0e6;
  --low: #b25a12;
  --low-soft: #fbecdc;
  --out: #a3261c;
  --out-soft: #f8e2df;
  /* location strip colours */
  --loc-main: #8e44ad;
  --loc-fba: #a9792b;
  --loc-transit: #e4c98f;
  --loc-mk: #3f6f8f;
  --loc-def: #b9afa8;
  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 2px rgba(28, 22, 32, .06), 0 4px 16px rgba(28, 22, 32, .05);
  --font-ui: "Hind", system-ui, sans-serif;
  --font-brand: "Marcellus", Georgia, serif;
  --nav-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
.num { font-variant-numeric: tabular-nums; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- shell ---------- */
.app { display: grid; min-height: 100dvh; grid-template-rows: auto 1fr; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--ink); }
.brand-word { font-family: var(--font-brand); font-size: 22px; letter-spacing: .08em; color: var(--brand); }
.brand-sub { font-size: 13px; color: var(--ink-3); }
.topbar .spacer { flex: 1; }
.who { font-size: 13px; color: var(--ink-2); text-align: right; line-height: 1.2; }
.who b { display: block; font-weight: 600; color: var(--ink); }

.main { padding: 16px 16px calc(var(--nav-h) + 24px); max-width: 1180px; width: 100%; margin: 0 auto; }

.nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--line);
}
.nav a {
  display: grid; place-items: center; align-content: center; gap: 2px;
  font-size: 12px; color: var(--ink-3); text-decoration: none;
}
.nav a svg { width: 22px; height: 22px; }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav .extra { display: none; }

@media (min-width: 900px) {
  .app { grid-template-columns: 220px 1fr; grid-template-rows: auto 1fr; }
  .topbar { grid-column: 1 / -1; }
  .nav {
    position: sticky; top: 57px; height: calc(100dvh - 57px); align-self: start;
    display: flex; flex-direction: column; gap: 2px; padding: 16px 10px;
    border-top: 0; border-right: 1px solid var(--line);
  }
  .nav a {
    display: flex; justify-content: flex-start; gap: 10px; padding: 9px 12px;
    font-size: 15px; border-radius: var(--radius-s);
  }
  .nav a[aria-current="page"] { background: var(--brand-soft); }
  .nav a svg { width: 20px; height: 20px; }
  .nav .extra { display: flex; }
  .nav .more-tab { display: none; }
  .main { padding: 24px 32px 48px; }
}

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-family: var(--font-brand); font-weight: 400; font-size: 28px; letter-spacing: .01em; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.page-head .grow { flex: 1; min-width: 160px; }
.page-head p { margin: 2px 0 0; color: var(--ink-3); font-size: 15px; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel + .panel, .stack > * + * { margin-top: 16px; }
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.panel-head h2 { flex: 1; }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; } .grid-2 > .panel + .panel { margin-top: 0; } }

/* ---------- buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink); font-weight: 500; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.btn.primary:hover { background: #74348f; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand); }
.btn.danger { color: var(--out); }
.btn.small { min-height: 34px; padding: 4px 10px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.icon-btn { width: 42px; padding: 0; }

label.field { display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.field input, .field select, .field textarea, input.search {
  width: 100%; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface); color: var(--ink); font-size: 16px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, input.search:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hint { font-size: 13px; color: var(--ink-3); margin: 4px 0 0; }

.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented button {
  min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 15px;
}
.segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- status ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.low { background: var(--low-soft); color: var(--low); }
.badge.out { background: var(--out-soft); color: var(--out); }
.badge.plain { background: var(--ground); color: var(--ink-2); border: 1px solid var(--line); }
.badge.gold { background: #f6eedd; color: #7a5518; }

/* ---------- location strip (signature element) ---------- */
.strip { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--line); }
.strip span { display: block; height: 100%; min-width: 3px; }
.strip span + span { border-left: 2px solid var(--surface); }
.strip.big { height: 14px; }
.loc-MAIN, .dot-main { background: var(--loc-main); }
.loc-fba, .dot-fba { background: var(--loc-fba); }
.loc-TRANSIT, .dot-transit { background: var(--loc-transit); }
.loc-mk, .dot-mk { background: var(--loc-mk); }
.loc-DEF, .dot-def { background: var(--loc-def); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: inherit; text-decoration: none; }
a.row:hover .row-title { color: var(--brand); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 14px; color: var(--ink-3); }
.row .strip { margin-top: 6px; }
.row-end { text-align: right; font-size: 14px; }
.row-end b { display: block; font-size: 18px; font-weight: 600; }
.thumb { width: 48px; height: 48px; border-radius: var(--radius-s); background: var(--brand-soft); object-fit: cover; flex: none; display: grid; place-items: center; color: var(--brand); font-family: var(--font-brand); font-size: 18px; }

/* products page as a table on wide screens */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- dashboard ---------- */
.today { display: grid; gap: 16px; }
@media (min-width: 900px) { .today { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 600px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figure { background: var(--surface); padding: 12px 14px; }
.figure .v { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.figure .k { font-size: 13px; color: var(--ink-3); }
.festival { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--radius); background: #f8f0df; border: 1px solid #ead9b6; }
.festival b { font-family: var(--font-brand); font-weight: 400; font-size: 20px; color: #6b4a12; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .quick { grid-template-columns: repeat(4, 1fr); } }
.quick .btn { min-height: 52px; }

/* ---------- product detail ---------- */
.prod-head { display: grid; gap: 16px; }
@media (min-width: 700px) { .prod-head { grid-template-columns: 200px 1fr; } .prod-img { width: auto; } }
.prod-img { width: 132px; aspect-ratio: 1; border-radius: var(--radius); background: var(--accent-soft); display: grid; place-items: center; overflow: hidden; position: relative; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-img .initial { font-family: var(--font-brand); font-size: 52px; color: var(--brand); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 15px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
.loc-table td:first-child { display: flex; align-items: center; gap: 8px; }
.loc-table td:first-child i { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ---------- picker ---------- */
.picker { position: relative; }
.picker-results { position: absolute; z-index: 15; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow); max-height: 300px; overflow: auto; }
.picker-results button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border: 0; background: none; text-align: left; cursor: pointer; border-top: 1px solid var(--line); }
.picker-results button:first-child { border-top: 0; }
.picker-results button:hover, .picker-results button:focus { background: var(--ground); }
.chosen { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius-s); }
.chosen .row-main { min-width: 0; }

/* ---------- assistant ---------- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - 57px - var(--nav-h) - 40px); min-height: 420px; }
@media (min-width: 900px) { .chat { height: calc(100dvh - 57px - 48px); } }
.chat-log { flex: 1; overflow-y: auto; padding: 4px 2px 12px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 640px; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.msg.user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg img { max-width: 220px; border-radius: 8px; margin-bottom: 6px; }
.msg.bot.typing { color: var(--ink-3); }
.proposals { align-self: stretch; max-width: 640px; border: 1px solid var(--accent); background: var(--accent-soft); border-radius: var(--radius); padding: 12px; }
.proposals h3 { font-size: 15px; margin-bottom: 8px; }
.proposal { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid #ead9b6; font-size: 15px; }
.proposal:first-of-type { border-top: 0; }
.proposal input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); }
.proposal .err { color: var(--out); font-size: 14px; }
.proposal.done { color: var(--ok); }
.composer { display: flex; gap: 8px; align-items: flex-end; padding-top: 8px; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; min-height: 46px; max-height: 140px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; resize: none; background: var(--surface); }
.composer textarea:focus { outline: none; border-color: var(--brand); }
.attach-preview { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); padding: 6px 0; }
.attach-preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.suggest button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 14px; }

/* ---------- toast / dialog ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 15px; max-width: calc(100vw - 32px); }
.toast.error { background: var(--out); }
@media (min-width: 900px) { .toast { bottom: 24px; } }
dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); box-shadow: 0 20px 60px rgba(28, 22, 32, .25); color: var(--ink); }
dialog::backdrop { background: rgba(28, 22, 32, .45); }
dialog .dlg-head { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
dialog .dlg-head h2 { flex: 1; }
dialog .dlg-body { padding: 16px; overflow: auto; }

.empty { text-align: center; padding: 32px 16px; color: var(--ink-2); }
.empty h2 { margin-bottom: 6px; }
.empty .actions { justify-content: center; }
.changes { max-height: 260px; overflow: auto; font-size: 14px; background: var(--ground); border-radius: var(--radius-s); padding: 8px 12px; margin: 8px 0; }
.changes div { padding: 2px 0; }
.scan-video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- labels (print) ---------- */
.label-sheet { display: grid; grid-template-columns: repeat(auto-fill, 50mm); gap: 3mm; }
.label {
  width: 50mm; height: 30mm; padding: 2mm 2.5mm; border: 1px dashed var(--line); background: #fff;
  display: grid; grid-template-rows: auto auto 1fr auto; overflow: hidden; color: #000;
  font-size: 7pt; line-height: 1.15;
}
.label .l-brand { font-family: var(--font-brand); font-size: 9pt; letter-spacing: .08em; display: flex; justify-content: space-between; }
.label .l-name { font-weight: 600; font-size: 7.5pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label svg { width: 100%; height: 11mm; }
.label .l-foot { display: flex; justify-content: space-between; font-size: 6.5pt; }
.label .l-mrp { font-weight: 700; font-size: 8pt; }

@media print {
  body { background: #fff; }
  .topbar, .nav, .no-print, .toast { display: none !important; }
  .app { display: block; }
  .main { padding: 0; max-width: none; }
  .label { border: 0; break-inside: avoid; }
  .label-sheet { gap: 2mm; }
}

@media (prefers-reduced-motion: no-preference) {
  .proposals:not(.applied) { animation: rise .25s ease-out; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.proposals.applied { background: var(--ok-soft); border-color: #bcd8bf; }
.proposals.applied h3 { color: var(--ok); }
#view:focus { outline: none; }
@media (min-width: 900px) { .today .figures { grid-template-columns: repeat(2, 1fr); } }
input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }

/* ---------- sign in ---------- */
.signed-out .nav { display: none; }
.signed-out .app { grid-template-columns: 1fr; }
.signed-out .topbar { display: none; }
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; box-shadow: var(--shadow); }
.auth-brand { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.auth h1 { font-size: 24px; margin-bottom: 6px; }
.auth .muted { margin: 0 0 8px; font-size: 15px; }
.auth .btn.primary { width: 100%; margin-top: 4px; }
.signed-out .main { padding: 0; max-width: none; }
.link-btn { background: none; border: 0; padding: 0; margin-left: 6px; color: var(--brand); cursor: pointer; font-size: 13px; text-decoration: underline; }

/* Logo */
.brand, .auth-brand { align-items: center; }
.brand-logo { width: 32px; height: 32px; border-radius: 50%; flex: none; display: block; }
.auth-brand .brand-logo { width: 44px; height: 44px; }

/* ---------- OSTNKART logo colours: black top bar, lavender brand ---------- */
.topbar { background: var(--black); border-bottom-color: var(--black); color: #fff; }
.topbar .brand-word { color: var(--accent); }
.topbar .brand-sub { color: #bfb3c6; }
.topbar .who { color: #cfc4d6; }
.topbar .who b { color: #fff; }
.topbar .link-btn { color: var(--accent); }
.auth-brand .brand-word { color: var(--brand); }
.nav a[aria-current="page"] svg { color: var(--brand); }
.segmented button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); }

/* ---------- product photo in the form, area ---------- */
.photo-pick { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.prod-img.small { width: 88px; flex: none; }
.prod-img.small .initial svg { width: 30px; height: 30px; color: var(--brand); }
.area-tag { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: .92em; }
.field-label { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 4px; }
label.field.check { display: flex; gap: 8px; align-items: center; }
label.field.check input { width: 18px; height: 18px; min-height: 0; }
.auth-alt { margin: 14px 0 0; text-align: center; display: flex; gap: 16px; justify-content: center; }
.auth-alt .link-btn { font-size: 14px; margin: 0; }

/* ---------- filters ---------- */
.filters { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-items: end; }
.filters [hidden] { display: none; }

/* ---------- shipment labels ---------- */
.label-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.label-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: grid; }
.label-card.selected { border-color: var(--brand); box-shadow: 0 0 0 2px var(--accent-soft); }
.label-pick { position: relative; display: block; cursor: pointer; background: #fff; border-bottom: 1px solid var(--line); }
.label-pick img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 6px; }
.label-pick input { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; z-index: 1; }
.label-meta { padding: 8px 10px 10px; display: grid; gap: 2px; }
.label-meta .row-title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.label-actions { display: flex; align-items: center; justify-content: space-between; gap: 4px 6px; margin-top: 4px; flex-wrap: wrap; }
.label-actions .btn.small { padding-left: 0; padding-right: 0; }
.copies { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.copies input { width: 58px; min-height: 34px; padding: 4px 6px; border: 1px solid var(--line); border-radius: var(--radius-s); font-size: 15px; }
.badge.mk-amazon { background: var(--brand-soft); color: var(--brand); justify-self: start; }
.badge.mk-flipkart { background: #e6effd; color: #1d5bbf; justify-self: start; }
.print-opts { margin-top: 12px; max-width: 320px; }
.label-print { display: none; }

@media print {
  body.printing-labels #view > *:not(.label-print) { display: none !important; }
  body.printing-labels .label-print { display: block; }
  .label-print.one .lp-item { page-break-after: always; break-after: page; display: flex; align-items: flex-start; justify-content: center; }
  .label-print.one .lp-item:last-child { page-break-after: auto; break-after: auto; }
  .label-print.one img { max-width: 100%; max-height: 98vh; object-fit: contain; }
  .label-print.many { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6mm; }
  .label-print.many .lp-item { break-inside: avoid; }
  .label-print.many img { width: 100%; }
}

/* ---------- sales trends ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-size: 10px; fill: var(--ink-3); font-family: var(--font-ui); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.figure .v.up { color: var(--ok); }
.figure .v.down { color: var(--out); }
.share { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.share-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; flex-wrap: wrap; }
.bar { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 4px 0 2px; }
.bar span { display: block; height: 100%; border-radius: 999px; }

/* ---------- alerts and log ---------- */
.panel-head h2 svg { width: 20px; height: 20px; vertical-align: -3px; margin-right: 6px; color: var(--brand); }
.alert-phone { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; background: var(--accent-soft); border-radius: var(--radius-s); }
.audit-detail { font-size: 13px; color: var(--ink-2); margin-top: 2px; background: var(--ground); border-radius: var(--radius-s); padding: 4px 8px; overflow-wrap: anywhere; }
.form-grid > label.field, .filters > label.field { align-content: start; }
