/* Nergaa BI cloud — portal and admin console.
   Full width on large screens; the admin console has a sidebar from 1024px, a menu button below it. */
:root {
  --bg: #f4f6f9; --card: #ffffff; --ink: #111827; --muted: #5b6472; --faint: #8a93a1; --line: #e4e7ec; --line-soft: #eef0f3;
  --brand: #0e7490; --brand-2: #7c3aed; --brand-ink: #ffffff; --brand-soft: #e3f2f6;
  --ok: #15803d; --ok-soft: #e8f6ed; --warn: #a15c00; --warn-soft: #fff4e0; --bad: #b42318; --bad-soft: #fdeceb;
  --side: #0f172a; --side-ink: #cbd5e1; --side-on: #ffffff; --side-hover: rgba(255, 255, 255, .07);
  --radius: 14px; --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --shadow-lg: 0 10px 30px -12px rgba(16, 24, 40, .25);
  --pad: clamp(16px, 2.2vw, 36px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f14; --card: #141a21; --ink: #e8ebef; --muted: #9aa3ae; --faint: #6b7480; --line: #263039; --line-soft: #1c242c;
    --brand: #38bdf8; --brand-2: #a78bfa; --brand-ink: #04202c; --brand-soft: #0c2a36;
    --ok: #4ade80; --ok-soft: #0f2a1a; --warn: #fbbf24; --warn-soft: #2d2410; --bad: #f87171; --bad-soft: #351616;
    --side: #0a0e13; --side-ink: #9aa3ae; --side-hover: rgba(255, 255, 255, .05);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 10px 30px -12px rgba(0, 0, 0, .7);
  }
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
h1 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 0 0 14px; letter-spacing: -.005em; } h3 { font-size: 15px; margin: 0 0 8px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }

/* ---------------------------------------------------------------- top bar (portal, admin below 1024px) */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.top .in { width: 100%; padding: 10px var(--pad); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
nav.main { display: flex; gap: 2px; flex-wrap: wrap; flex: 1; }
nav.main a { padding: 7px 12px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 550; }
nav.main a.on, nav.main a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; text-transform: uppercase; flex: 0 0 auto; }

/* ---------------------------------------------------------------- page */
main { width: 100%; padding: 28px var(--pad) 64px; }
main.narrow { max-width: 480px; margin: 0 auto; padding-top: 7vh; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 22px; margin: 0 0 18px; min-width: 0; }
.card > h2:first-child { display: flex; align-items: center; gap: 9px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid > .card { margin: 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.grid + .card, .grid + .grid, .card + .grid { margin-top: 18px; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; } .row3 { display: grid; gap: 14px; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 640px) { .row, .row3 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- KPI tiles */
.kpis { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0 0 18px; }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; gap: 12px; } .kpis .card { padding: 14px 14px 14px 18px; }
  .kpi-top { font-size: 11px; letter-spacing: .04em; } .kpi-label { font-size: 12px; } }
.kpis .card { margin: 0; position: relative; overflow: hidden; }
.kpis .card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent, var(--brand)); }
.kpis .card.ok { --accent: var(--ok); } .kpis .card.warn { --accent: var(--warn); } .kpis .card.bad { --accent: var(--bad); }
.kpis .card.violet { --accent: var(--brand-2); }
.kpi-top { color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.kpi { font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.kpi-label { color: var(--muted); font-size: 13px; }
.kpi-label b { color: var(--ink); font-weight: 650; }

/* ---------------------------------------------------------------- forms and buttons */
label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 5px; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], input[type=tel],
select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 90px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); padding: 9px 15px; border-radius: var(--radius-sm); font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s, transform .05s; }
.btn:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.08); color: var(--brand-ink); }
.btn.danger { color: var(--bad); } .btn.danger:hover { border-color: var(--bad); background: var(--bad-soft); }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.ghost { border-color: transparent; background: transparent; }
form.inline { display: inline; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.btns input[type=number], .btns input[type=text] { width: 88px; padding: 5px 9px; font-size: 13px; border-radius: 8px; }
.btns form.inline { display: inline-flex; gap: 6px; align-items: center; }

/* ---------------------------------------------------------------- messages */
.flash { padding: 11px 14px; border-radius: var(--radius-sm); margin: 0 0 16px; background: var(--ok-soft); color: var(--ok);
  border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.flash.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.flash.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.callouts { display: grid; gap: 10px; }
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); }
.callout .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.callout.bad .ic { background: var(--bad-soft); color: var(--bad); } .callout.warn .ic { background: var(--warn-soft); color: var(--warn); }
.callout.bad { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); }
.callout.warn { border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.callout .t1 { font-weight: 650; } .callout .t2 { color: var(--muted); font-size: 14px; margin-top: 2px; }
.callout .when { color: var(--faint); font-size: 12px; margin-top: 4px; }
@media (max-width: 640px) { .callout { grid-template-columns: auto minmax(0, 1fr); } .callout .btns { grid-column: 1 / -1; } }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty .ic { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.empty .btn { margin-top: 12px; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ---------------------------------------------------------------- pills, tables */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 650;
  background: var(--line-soft); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.brand { background: var(--brand-soft); color: var(--brand); }
nav .pill::before, .pill.count::before { display: none; }
.pill.count { padding: 0 7px; min-width: 20px; justify-content: center; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.t th { text-align: left; color: var(--muted); font-weight: 650; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  background: var(--bg); position: sticky; top: 0; z-index: 1; }
table.t th:first-child { border-top-left-radius: 8px; } table.t th:last-child { border-top-right-radius: 8px; }
table.t th, table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td, table.t tr:not(:first-child):hover td { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.nowrap, th.nowrap { white-space: nowrap; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card.scroll { padding: 6px 8px; } .card.scroll > table.t th:first-child, .card.scroll > table.t td:first-child { padding-left: 14px; }

/* ---------------------------------------------------------------- portal bits */
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.steps li:last-child { border-bottom: 0; }
.dot { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--line-soft); color: var(--muted); }
.dot.done { background: var(--ok-soft); color: var(--ok); } .dot.now { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 4px var(--brand-soft); }
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan { position: relative; display: flex; flex-direction: column; margin: 0; transition: transform .15s, box-shadow .15s; }
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 2px; }
.plan ul { padding: 0; margin: 14px 0 18px; flex: 1; list-style: none; }
.plan li { padding: 5px 0 5px 24px; position: relative; font-size: 14px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px; border: solid var(--ok);
  border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.plan.on { outline: 2px solid var(--brand); }
.plan .btn { width: 100%; }
.bar { height: 8px; background: var(--line-soft); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; }
.bar.hot > span { background: var(--bad); }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px dashed var(--line);
  padding: 7px 11px; border-radius: 8px; display: inline-block; user-select: all; word-break: break-all; }
.hero { padding: clamp(24px, 6vh, 72px) 0 28px; display: grid; gap: 18px; }
.hero h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -.03em; max-width: 18ch; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 70ch; margin: 0; }
.erps { display: flex; flex-wrap: wrap; gap: 8px; } .erps span { border: 1px solid var(--line); background: var(--card);
  border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.section-title { margin: 34px 0 16px; font-size: 20px; }
footer.foot { width: 100%; padding: 18px var(--pad) 28px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- admin shell: sidebar from 1024px */
.shell { min-height: 100vh; }
.side { display: none; }
.menu-toggle { display: none; }
@media (min-width: 1024px) {
  .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; background: var(--side); color: var(--side-ink);
    padding: 18px 14px; gap: 4px; overflow-y: auto; }
  .side .brand { color: #fff; padding: 4px 8px 18px; }
  .side .label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: color-mix(in srgb, var(--side-ink) 60%, transparent);
    padding: 14px 10px 6px; }
  .side a.nav { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--radius-sm); color: var(--side-ink); font-weight: 550; }
  .side a.nav:hover { background: var(--side-hover); color: var(--side-on); text-decoration: none; }
  .side a.nav.on { background: rgba(56, 189, 248, .14); color: var(--side-on); box-shadow: inset 3px 0 0 #38bdf8; }
  .side a.nav .pill { margin-left: auto; }
  .side .me { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 6px 4px; display: flex; align-items: center; gap: 10px; }
  .side .me .btn { margin-left: auto; background: transparent; color: var(--side-ink); border-color: rgba(255, 255, 255, .15); }
  .shell > header.top { display: none; }
}
@media (max-width: 1023.98px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .shell nav.main { display: none; flex-basis: 100%; flex-direction: column; padding: 6px 0 4px; }
  .shell .top.open nav.main { display: flex; }
  .shell nav.main a { display: flex; align-items: center; gap: 10px; }
  .shell .top .who { display: none; } .shell .top.open .who { display: flex; flex-basis: 100%; padding: 6px 0 4px; }
}

/* ================================================================ customer portal */
.erp-erpnext { --erp: #0b84ff; } .erp-odoo { --erp: #8f4d7d; } .erp-sapb1 { --erp: #e0a100; }
.erp-dynamics_nav { --erp: #0f7bd6; } .erp-sage_evolution { --erp: #00a650; } .erp-other { --erp: #64748b; }
.erp-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; font-weight: 800;
  font-size: 12px; letter-spacing: -.02em; color: #fff; background: var(--erp, var(--brand)); box-shadow: 0 4px 12px -6px var(--erp, var(--brand)); }
.erp-chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; color: var(--ink); }
.erp-chip::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--erp, var(--brand)); }

/* the colourful band at the top of the home page */
.welcome { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 3vw, 34px);
  margin: 0 0 18px; color: #fff; background:
    radial-gradient(120% 140% at 100% 0%, rgba(167, 139, 250, .55) 0%, transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(56, 189, 248, .45) 0%, transparent 60%),
    linear-gradient(135deg, #0b3b4d 0%, #134e6f 45%, #3b2a7a 100%); box-shadow: var(--shadow-lg); }
.welcome h1 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); }
.welcome .sub { color: rgba(255, 255, 255, .82); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.welcome .pill { background: rgba(255, 255, 255, .16); color: #fff; }
.welcome .pill.ok { background: rgba(74, 222, 128, .2); color: #bbf7d0; } .welcome .pill.warn { background: rgba(251, 191, 36, .22); color: #fde68a; }
.welcome .pill.bad { background: rgba(248, 113, 113, .25); color: #fecaca; }
.welcome .row-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.welcome .btn { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff; }
.welcome .btn:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.welcome .btn.primary { background: #fff; color: #0b3b4d; border-color: #fff; }
.welcome .btn.primary:hover { filter: none; background: #e0f2fe; color: #0b3b4d; }

.meter { display: flex; align-items: baseline; gap: 6px; } .meter .of { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ERP choice tiles (radio buttons) */
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tile { position: relative; display: flex; gap: 11px; align-items: center; padding: 12px 13px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--card); cursor: pointer; font-weight: 600; margin: 0; transition: border-color .15s, box-shadow .15s, transform .1s; }
.tile:hover { border-color: var(--erp, var(--brand)); transform: translateY(-1px); text-decoration: none; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.tile:has(input:checked) { border-color: var(--erp, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--erp, var(--brand)) 18%, transparent); }
.tile:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
a.tile { color: var(--ink); }

/* form + help side by side on wide screens */
.split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr) 360px; } .split > aside { position: sticky; top: 84px; } }
.split > aside .card { margin: 0 0 18px; }
.help-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.help-list li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14px; }
.help-list .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: var(--brand-soft); color: var(--brand); }
.callout.info { border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); background: color-mix(in srgb, var(--brand-soft) 60%, var(--card)); }
.field-hint { color: var(--faint); font-size: 12px; margin-top: 4px; }
.input-group { position: relative; } .input-group .reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 650; font-size: 13px; margin: 2px 0 8px; padding: 0; }
.section-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 22px 0 4px; }
.section-label:first-child { margin-top: 0; }
.form-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
button[disabled], .btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.busy { pointer-events: none; opacity: .75; }
.btn.busy::after { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.busy::after { animation: none; } .plan:hover, .tile:hover { transform: none; } }

/* sign-in / sign-up: brand panel beside the form */
.auth { display: grid; min-height: calc(100vh - 57px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .auth { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.auth .art { display: none; position: relative; overflow: hidden; color: #fff; padding: clamp(32px, 5vw, 72px);
  background: radial-gradient(100% 90% at 100% 0%, rgba(167, 139, 250, .55), transparent 60%),
              radial-gradient(90% 90% at 0% 100%, rgba(56, 189, 248, .5), transparent 60%), linear-gradient(140deg, #0b3b4d, #2e2470); }
@media (min-width: 960px) { .auth .art { display: flex; flex-direction: column; justify-content: center; gap: 22px; } }
.auth .art h2 { font-size: clamp(26px, 2.6vw, 40px); line-height: 1.12; letter-spacing: -.02em; color: #fff; margin: 0; max-width: 16ch; }
.auth .art p { color: rgba(255, 255, 255, .8); max-width: 46ch; margin: 0; font-size: 16px; }
.auth .art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.auth .art li { display: flex; gap: 10px; align-items: center; color: rgba(255, 255, 255, .92); }
.auth .art li svg.i { color: #7dd3fc; }
.auth .art .erps span { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; }
.auth .form { display: flex; align-items: center; justify-content: center; padding: clamp(24px, 5vw, 64px) var(--pad); }
.auth .form > div { width: 100%; max-width: 440px; }
.auth h1 { margin-bottom: 6px; } .auth .lead { color: var(--muted); margin: 0 0 18px; }
main.bare { padding: 0; }
.or { display: flex; align-items: center; gap: 10px; color: var(--faint); font-size: 12px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.danger-zone h2 { color: var(--bad); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 6px; }
.status-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); } .status-dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.status-dot.wait { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
@media print { header.top, footer.foot, .no-print { display: none !important; } body { background: #fff; } .card { box-shadow: none; border: 0; } }

.callout > div { min-width: 0; overflow-wrap: anywhere; }
.callout > .btns:empty { display: none; }
@media (max-width: 720px) {
  header.top .in { gap: 10px; }
  header.top .in > nav.main { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
  header.top .in > nav.main a { white-space: nowrap; }
  header.top .in > .who { margin-left: auto; } header.top .in > .who .muted { display: none; }
  .page-head .actions, .page-head > .btn { width: 100%; }
}
@media (max-width: 900px) { .scroll > table.t { min-width: 720px; } }
