/* ApplurBot portals. Inter (self-hosted), blue accent, white cards on a soft page. Client portal = light.
   Platform admin = dark navy ([data-theme="dark"] on <html>). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px; --radius-sm: 10px; --gap: 16px;
  --bg: #f4f6fb; --side: #ffffff; --panel: #ffffff; --panel2: #f4f6fb; --line: #e5e9f2; --field: #ffffff;
  --tx: #111827; --mu: #6b7280;
  --accent: #2f6bff; --accent-2: #1f54d6; --accent-tx: #ffffff; --accent-soft: #e8efff; --lime: #2f6bff;
  --nav-bg: transparent; --nav-on: #e8efff; --nav-on-tx: #2f6bff; --nav-tx: #4b5563;
  --btn-bg: #2f6bff; --btn-bg-h: #1f54d6;
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --bad: #b91c1c; --bad-bg: #fee2e2;
  --chart-a: #2f6bff; --chart-b: #10b981; --chart-c: #d9dfec;
  --chat-bg: #eef1f8; --chat-you: #dceBff; --chat-bot: #ffffff;
  --shadow: none;
  color-scheme: light;
}
/* Dark (the platform admin starts here, like the reference): deep navy panels, violet-blue accents */
:root[data-theme="dark"] {
  --bg: #0a0f1f; --side: #0d1328; --panel: #0d1328; --panel2: #121a36; --line: #1a2342; --field: #0a0f1f;
  --tx: #e6eaf5; --mu: #8d99be;
  --accent: #6c8cff; --accent-2: #8aa2ff; --accent-tx: #ffffff; --accent-soft: #19234a; --lime: #7c5cff;
  --nav-on: linear-gradient(90deg, #4b46e5, #5b7cff); --nav-on-tx: #ffffff; --nav-tx: #9aa6c8;
  --btn-bg: linear-gradient(90deg, #6c5cff, #2f6bff); --btn-bg-h: linear-gradient(90deg, #7d6eff, #4a7fff);
  --ok: #5fe0a4; --ok-bg: #0f3a2c; --warn: #ffb36b; --warn-bg: #3a2a14; --bad: #ff8a80; --bad-bg: #431b18;
  --chart-a: #7c5cff; --chart-b: #2dd4bf; --chart-c: #34406a;
  --chat-bg: #0a0f1f; --chat-you: #1d3a8a; --chat-bot: #121a36;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--tx); font-size: 13.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; left: -9999px; }
.muted { color: var(--mu); }
.small { font-size: 12.5px; }
#toast { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); background: #14201a; color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 30; max-width: 90vw; box-shadow: 0 8px 30px rgba(0,0,0,.25); }

/* ---------- app frame ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.3px; padding: 4px 8px 16px; }
.brand-logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; overflow: hidden; }
.brand-logo svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.nav-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mu); padding: 14px 10px 6px; }
.nav { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; font-weight: 500; color: var(--nav-tx); background: transparent; border: 0; width: 100%; text-align: left; font-size: 13.5px; }
.nav:hover:not(:disabled) { color: var(--tx); background: var(--accent-soft); }
.nav.on { background: var(--nav-on); color: var(--nav-on-tx); font-weight: 600; }
.nav:disabled { opacity: 0.55; cursor: default; }
.nav svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav .soon { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--mu); }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 600; padding: 0 7px; border-radius: 99px; background: var(--accent); color: #fff; }
.nav-sep { height: 1px; background: var(--line); margin: 10px 6px; }
.side-foot { margin-top: auto; padding: 12px 8px 2px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.side-foot .who { min-width: 0; line-height: 1.25; }
.side-foot .who b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who span { font-size: 12px; color: var(--mu); }

.main { padding: 0 32px 48px; display: flex; flex-direction: column; gap: 22px; min-width: 0; width: 100%; max-width: 1360px; }
.tb { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: -2px; }
.tb .ws { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tb .r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; padding-top: 6px; }
.page-head h1 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.4px; font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--mu); font-size: 13.5px; max-width: 70ch; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mu); margin-bottom: 6px; }

/* ---------- shared parts ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 10px; font-size: 14.5px; font-weight: 600; letter-spacing: -0.1px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card h3 small { font-weight: 500; font-size: 12.5px; color: var(--mu); }
button.primary, button.secondary, button.ghost { border-radius: 10px; padding: 8px 16px; font-weight: 600; border: 1px solid transparent; min-height: 36px; font-size: 13.5px; transition: background .15s, border-color .15s; }
button.primary { background: var(--btn-bg); color: #fff; }
button.primary:hover:not(:disabled) { background: var(--btn-bg-h); }
button.primary:disabled, button.secondary:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary, button.ghost { background: var(--panel); border-color: var(--line); color: var(--tx); }
button.secondary:hover:not(:disabled), button.ghost:hover { border-color: var(--mu); }
button.ghost { padding: 6px 11px; min-height: 0; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
button.ghost svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.pill.paused { background: var(--warn-bg); color: var(--warn); }
.pill.draft { background: var(--accent-soft); color: var(--mu); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--gap); }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; box-shadow: var(--shadow); }
.kpi .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--mu); font-weight: 500; }
.kpi .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.kpi .ic svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kpi .v { font-size: 24px; font-weight: 700; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 6px; }
.kpi .l { color: var(--mu); font-size: 13px; }
.kpi .d { font-size: 12px; font-weight: 600; margin-top: 2px; color: var(--mu); }
.kpi .d.ok { color: var(--ok); } .kpi .d.warn { color: var(--warn); }
.spark { width: 100%; height: 40px; margin-top: 8px; display: block; }
.spark .ln { fill: none; stroke: var(--chart-a); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark .fl { fill: var(--chart-a); opacity: 0.1; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--gap); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--gap); }
.stack { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rows > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-width: 0; flex-wrap: wrap; }
.rows > li + li { border-top: 1px solid var(--line); }
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; background: var(--accent-soft); color: var(--accent); }
.grow { flex: 1 1 180px; min-width: 0; }
.grow b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.grow span { display: block; font-size: 12.5px; color: var(--mu); overflow-wrap: anywhere; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; background: var(--mu); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-weight: 500; }
.bar-track { height: 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--chart-a); width: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.legend { display: flex; flex-direction: column; gap: 8px; font-weight: 500; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 14px; }
.steps span { font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 99px; background: var(--accent-soft); color: var(--tx); }
.note { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 8px 12px; }
svg { max-width: 100%; }

/* chart card */
.chart { width: 100%; height: 250px; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--mu); font-size: 10.5px; font-family: var(--font); }
.chart .bar-a { fill: var(--chart-a); } .chart .bar-b { fill: var(--chart-b); }
.legend-row { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--mu); margin-top: 6px; }
.legend-row i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend-row .a { background: var(--chart-a); } .legend-row .b { background: var(--chart-b); } .legend-row .c { background: var(--chart-c); }
.empty { color: var(--mu); text-align: center; padding: 38px 10px; border: 1px dashed var(--line); border-radius: 12px; }

/* sign-in */
.gate { max-width: 400px; margin: 11vh auto 0; padding: 30px; }
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-art { background: #0a0f2e url("/brand/login-art.jpg") center top / cover; position: relative; min-height: 220px; }
.login-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,12,40,0) 55%, rgba(8,12,40,.7)); }
.login-art .quote { position: absolute; left: 36px; right: 36px; bottom: 34px; color: #fff; z-index: 1; font-size: 22px; line-height: 1.3; letter-spacing: -0.4px; font-weight: 500; }
.login-art .quote small { display: block; margin-top: 10px; font-size: 13px; opacity: .8; font-weight: 400; letter-spacing: 0; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(24px, 8vw, 96px); gap: 2px; }
.login-form .brand { padding-left: 0; }
.login-form h1 { font-size: 24px; letter-spacing: -0.5px; margin: 22px 0 4px; font-weight: 700; }
.login-form .gate-title { font-size: 24px; }

/* photo hero + trip cards */
.hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 210px; color: #fff; background: #0d1328; display: flex; align-items: flex-end; box-shadow: var(--shadow); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,19,40,.85) 0%, rgba(13,19,40,.5) 55%, rgba(13,19,40,.1) 100%); }
.hero .in { position: relative; z-index: 1; padding: 28px; display: flex; flex-direction: column; gap: 6px; max-width: 640px; }
.hero h1 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -0.5px; font-weight: 700; }
.hero p { margin: 0; opacity: .88; }
.hero .acts { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.hero button.primary { background: #fff; color: #111827; }
.hero button.secondary { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
.trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gap); }
.trip { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.trip .ph { aspect-ratio: 4 / 3; background: var(--accent-soft) center / cover; position: relative; }
.trip .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trip .ph .tag { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.92); color: #111827; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.trip .bd b { font-weight: 600; }
.trip .bd span { font-size: 12.5px; color: var(--mu); }
.trip .price { margin-top: 6px; font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.price { font-variant-numeric: tabular-nums; font-weight: 650; }
.strike { color: var(--mu); text-decoration: line-through; font-size: 12.5px; margin-left: 6px; font-weight: 400; }
.thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--accent-soft); }

/* split ring (AI with human) */
.ring-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ring .tr { fill: none; stroke: var(--chart-c); stroke-width: 12; }
.ring .vl { fill: none; stroke: var(--chart-a); stroke-width: 12; stroke-linecap: round; }
.ring text { fill: var(--tx); font-family: var(--font); font-weight: 650; font-size: 22px; }

/* embedded inbox */
.inbox-frame { width: 100%; height: calc(100vh - 120px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: block; box-shadow: var(--shadow); }

/* agent builder: form + live test */
.builder { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: var(--gap); align-items: start; }
.sticky { position: sticky; top: 14px; }

/* ---------- phones and small tablets ---------- */
html, body { overflow-x: clip; max-width: 100%; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.trips { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.card > *, .kpi > *, .hero .in > * { min-width: 0; }
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 6px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .brand { width: auto; flex: none; padding: 0 10px 0 0; font-size: 15px; }
  #nav { display: flex; flex-wrap: nowrap; gap: 4px; align-items: center; }
  .nav { width: auto; flex: none; white-space: nowrap; padding: 8px 12px; }
  .nav:disabled, .nav-sep, .nav-label, .side-foot { display: none; }
    .main { padding: 0 14px 40px; gap: 18px; }
  .tb { padding: 10px 0; }
  .tb .ws { font-size: 13.5px; }
  .page-head h1 { font-size: 24px; }
  .page-head .r, .page-head > button { width: 100%; }
  .page-head .r button, .page-head > button { flex: 1 1 auto; }
  .grid2, .builder { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .v { font-size: 26px; }
  .kpi .top { font-size: 12.5px; align-items: flex-start; }
  .kpi .ic { display: none; }
  .card { padding: 16px; }
  .hero { min-height: 0; border-radius: 16px; }
  .hero .in { padding: 20px; }
  .hero h1 { font-size: 24px; }
  .hero .acts button { flex: 1 1 100%; }
  .bar-row { grid-template-columns: 90px minmax(0, 1fr) 36px; }
  .login-wrap { grid-template-columns: minmax(0, 1fr); }
  .login-art { min-height: 200px; background-position: center 18%; }
  .login-art .quote { display: none; }
  .login-art .quote { left: 20px; right: 20px; bottom: 18px; font-size: 17px; }
  .login-form { padding: 28px 20px 40px; }
  .login-form h1, .login-form .gate-title { font-size: 26px; }
  .inbox-frame { height: calc(100dvh - 150px); min-height: 420px; border-radius: 12px; }
  .chart { height: 210px; }
  .donut-wrap { justify-content: center; }
  input, select, textarea { font-size: 16px !important; } /* stops iPhone zooming in on fields */
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 600px) { .trips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .trip .bd { padding: 10px; } .trip .price { font-size: 16px; } }

/* ---------- polish: slim sticky header, Light/Dark switch, calmer rhythm ---------- */
.main { gap: 18px; padding-bottom: 56px; }
.tb { position: sticky; top: 0; z-index: 6; flex-wrap: nowrap; padding: 12px 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.tb-title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tb .r { flex-wrap: nowrap; gap: 8px; }
.theme-seg { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.theme-seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--mu); font-weight: 600; font-size: 12.5px; padding: 5px 11px; border-radius: 8px; min-height: 28px; }
.theme-seg button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-seg button.on { background: var(--accent); color: #fff; }
.theme-seg button:not(.on):hover { color: var(--tx); }
.login-theme { position: fixed; top: 14px; right: 14px; z-index: 5; }
.page-head { padding-top: 0; align-items: center; }
.page-head p { margin: 0; font-size: 14px; max-width: 74ch; }
.greet { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.4px; line-height: 1.25; }
.card { --shadow: 0 1px 2px rgba(16, 24, 40, 0.05); padding: 20px 22px; gap: 6px; }
:root[data-theme="dark"] .card { --shadow: none; }
.card h3 { margin-bottom: 8px; font-size: 15px; }
.card > h3 + * { margin-top: 2px; }
.rows > li { padding: 13px 2px; }
.rows > li:hover { background: var(--accent-soft); border-radius: 10px; }
.kpi { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
:root[data-theme="dark"] .kpi { box-shadow: none; }
@media (max-width: 960px) {
  .tb { padding: 10px 0; }
  .tb-title { font-size: 16px; }
  .tb .userchip .who { display: none; }
  .tb #logout, .tb #lock { padding: 5px 9px; font-size: 12.5px; }
  .theme-seg button { padding: 5px 9px; }
}
@media (max-width: 520px) { .tb { gap: 8px; } .tb-title { font-size: 15px; } .card h3 { flex-wrap: wrap; } .theme-seg button { font-size: 0; gap: 0; padding: 6px 10px; } .theme-seg button svg { width: 15px; height: 15px; } }

button.nav[hidden] { display: none; }

/* the real ApplurBot logo (dark ink in the light theme, white in the dark theme) */
.brand-wm { padding: 4px 8px 16px; }
.login-form .brand-wm { padding: 4px 0 8px; }
.brand-wm img { height: 32px; width: auto; display: block; }
.brand-wm .wm-dark { display: none; }
html[data-theme="dark"] .brand-wm .wm-light { display: none; }
html[data-theme="dark"] .brand-wm .wm-dark { display: block; }
.login-form .brand-wm img { height: 34px; }
@media (max-width: 960px) { .side .brand-wm { padding: 0 10px 0 0; } .side .brand-wm img { height: 26px; } }

/* shown for a moment while we check whether the person is already signed in (so the sign-in screen never flashes) */
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--mu); font-size: 14px; }

/* forgot-password link on the sign-in screen */
.forgot-link { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 13px; font-weight: 500; }
.forgot-link:hover { text-decoration: underline; }

/* While the app first loads its data, cards show a soft moving shine instead of looking empty. */
.shell.loading .card, .shell.loading .kpi { position: relative; overflow: hidden; }
.shell.loading .card::after, .shell.loading .kpi::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--mu) 14%, transparent) 50%, transparent 80%); transform: translateX(-100%); animation: ab-shine 1.3s ease-in-out infinite; }
@keyframes ab-shine { to { transform: translateX(100%); } }
