/* ============================================================
   DevCorp dashboards (ISP dashboard and staff portal)
   The same template as the GlobiPay admin panel:
   flat white surfaces · black text · teal accent · Outfit · optional dark theme
   Every page: top bar, side menu, heading, stat strip, toolbar, table
   ============================================================ */

/* ── Tokens: white pages, black text, teal for actions and highlights (the default) ── */
:root {
  --teal: #06d6a0;                      /* filled buttons, logo, active marks (with black on top) */
  --primary: #04936f; --primary-dark: #037a5c; --primary-ink: #0a0f11; --primary-soft: rgba(6, 214, 160, .14);
  --success: #15803d; --success-soft: rgba(21, 128, 61, .1);
  --warning: #a16207; --warning-soft: rgba(161, 98, 7, .1);
  --danger: #c8284f; --danger-dark: #a51d40; --danger-soft: rgba(200, 40, 79, .09);
  --info: #0369a1; --info-soft: rgba(3, 105, 161, .09);
  --neutral-soft: rgba(10, 15, 17, .06);

  --bg: #ffffff; --bg-secondary: #ffffff; --bg-card: #ffffff; --bg-card-2: #f4f7f6; --bg-input: #ffffff; --bg-topbar: #ffffff;
  --overlay: rgba(10, 15, 17, .4);
  --text: #0a0f11; --text-muted: #4f5e64; --text-light: #7f8f95;
  --border: #e3e9e7; --border-strong: #c9d3d0;
  --shadow-md: 0 8px 24px rgba(10, 15, 17, .07); --shadow-lg: 0 18px 48px rgba(10, 15, 17, .14);

  --radius: 10px; --radius-sm: 8px; --radius-xs: 7px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --sidebar-w: 236px; --topbar-h: 60px;

  /* the names the pages' own inline styles use */
  --ink: var(--text); --muted: var(--text-muted); --line: var(--border); --card: var(--bg-card); --soft: var(--bg-card-2);
  --accent: var(--primary); --accent-soft: var(--primary-soft); --ok: var(--success); --ok-soft: var(--success-soft);
  --warn: var(--warning); --warn-soft: var(--warning-soft);
  color-scheme: light;
}
/* Dark, when chosen with the switch in the top bar (remembered in this browser) */
:root[data-theme="dark"] {
  --teal: #06d6a0;
  --primary: #06d6a0; --primary-dark: #05b88a; --primary-ink: #03241b; --primary-soft: rgba(6, 214, 160, .12);
  --success: #4ade80; --success-soft: rgba(74, 222, 128, .12);
  --warning: #f5c451; --warning-soft: rgba(245, 196, 81, .13);
  --danger: #ff6b86; --danger-dark: #f04a6a; --danger-soft: rgba(255, 107, 134, .13);
  --info: #4cc3f5; --info-soft: rgba(76, 195, 245, .13);
  --neutral-soft: rgba(139, 156, 164, .14);
  --bg: #0b1114; --bg-secondary: #121a1f; --bg-card: #121a1f; --bg-card-2: #19242a; --bg-input: #0b1114; --bg-topbar: #121a1f;
  --overlay: rgba(3, 8, 10, .62);
  --text: #e7eef0; --text-muted: #8b9ca4; --text-light: #61737c;
  --border: #24323a; --border-strong: #31434d;
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .3); --shadow-lg: 0 18px 48px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2 { font-weight: 600; color: var(--text); letter-spacing: -.01em; margin: 0; }
h1 { font-size: 1.6rem; line-height: 1.25; text-wrap: balance; }
h2 { font-size: .98rem; margin: 0 0 12px; }
a { color: var(--primary); text-decoration: none; cursor: pointer; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--text-muted); margin: 2px 0 0; font-size: .86rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: .92em; }
.sub { display: block; color: var(--text-muted); font-size: .78rem; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ── Brand ── */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; line-height: 1.1; color: var(--text); }
.brand small { display: block; font-weight: 500; font-size: .66rem; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.logo { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--teal); }
.logo svg { width: 17px; height: 17px; fill: none; stroke: var(--primary-ink); stroke-width: 2.6; stroke-linecap: round; }
.logo svg circle { fill: var(--primary-ink); }

/* ── Shell: side menu beside a top bar and the page ── */
.shell { display: grid; grid-template-columns: var(--side-w, var(--sidebar-w)) minmax(0, 1fr); min-height: 100vh; }
.main-col { min-width: 0; display: flex; flex-direction: column; }

/* ── Topbar ── */
.topbar { position: sticky; top: 0; z-index: 100; flex: none; height: var(--topbar-h); padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg-topbar); border-bottom: 1px solid var(--border); }
.topbar-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; padding: 0; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); transition: all .15s ease; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-card-2); }
.menu-btn { display: none; }
.search-trigger { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; max-width: 460px; height: 38px; padding: 0 12px; cursor: pointer; text-align: left;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); color: var(--text-light); font: inherit; font-size: .86rem; transition: all .15s ease; }
.search-trigger:hover { border-color: var(--border-strong); color: var(--text-muted); }
.search-trigger span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd { font: 500 .7rem var(--mono); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--text-muted); background: transparent; white-space: nowrap; }
.user-email { display: none; font-size: .8rem; color: var(--text-muted); }
@media (min-width: 768px) { .user-email { display: inline; } }
@media (max-width: 600px) { .search-trigger kbd { display: none; } }

/* ── Sidebar ── */
.side { position: sticky; top: 0; z-index: 200; height: 100vh; display: flex; flex-direction: column; background: var(--bg-secondary); border-right: 1px solid var(--border); }
.side .brand { height: var(--topbar-h); flex: none; padding: 0 18px; }
.side nav { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px 14px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.nav-h { display: block; padding: 14px 10px 6px; font-size: .66rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-light); }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin-bottom: 1px; border-radius: var(--radius-xs);
  color: var(--text-muted); font-size: .87rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side nav a:hover { color: var(--text); background: var(--bg-card-2); }
.side nav a.active { background: var(--primary-soft); color: var(--primary); }
.side-foot { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--border); }
.who-av { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: .78rem; font-weight: 600; }
.who { flex: 1; min-width: 0; line-height: 1.3; }
.who b, .who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who b { font-size: .8rem; font-weight: 600; color: var(--text); }
.who span { font-size: .74rem; color: var(--text-muted); }
.side-overlay { position: fixed; inset: 0; z-index: 190; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .2s; }
.side-grip { display: none; }

/* Wide screens: the menu's right edge can be dragged (or focus it and use the arrow keys); double-click puts the width back. */
@media (min-width: 992px) {
  .side-grip { display: block; position: absolute; top: 0; right: -5px; bottom: 0; width: 10px; z-index: 5; cursor: col-resize; touch-action: none; outline: none; }
  .side-grip::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: var(--primary); opacity: 0; transition: opacity .15s; }
  .side-grip:hover::after, .side-grip:focus-visible::after, body.resizing .side-grip::after { opacity: 1; }
  body.resizing { cursor: col-resize; user-select: none; }
}
/* Smaller screens: the menu slides in over the page from the button in the top bar. */
@media (max-width: 991.98px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .side { position: fixed; top: 0; left: 0; bottom: 0; width: 260px; height: auto; transform: translateX(-100%); transition: transform .22s ease; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .side-overlay.open { opacity: 1; pointer-events: auto; }
}

/* ── Page ── */
.content { flex: 1; width: 100%; min-width: 0; padding: 26px 28px 48px; container: page / inline-size; }
.content > * { max-width: 1320px; margin-left: auto; margin-right: auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.page-title { flex: 1; min-width: 240px; }
.page-ico { display: none; }
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--primary); }
.page-head h1 { margin: 2px 0; }
.page-head .muted { margin: 0; font-size: .9rem; max-width: 70ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@media (max-width: 991.98px) { .content { padding: 20px 16px 40px; } }

/* ── Stat strip ── */
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin-bottom: 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stats .card.stat { min-width: 0; padding: 16px 20px; margin: 0; border: 0; border-radius: 0; background: none; }
.stats .card.stat + .card.stat { border-left: 1px solid var(--border); }
.stat .ico { display: none; }
.stat .k { font-size: .78rem; font-weight: 500; color: var(--text-muted); }
.stat .v { margin-top: 2px; font-size: 1.5rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .s { margin-top: 2px; font-size: .76rem; color: var(--text-light); }
@media (max-width: 767px) {
  .stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .card.stat:nth-child(odd) { border-left: 0; }
  .stats .card.stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ── Cards ── */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card + .card { margin-top: 20px; }
.card-pad { padding: 16px 18px; }
.card > .card-pad:first-child:has(+ .table-wrap), .card > .card-pad:first-child:has(+ .empty) { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card > .card-pad:first-child:has(+ .table-wrap) h2, .card > .card-pad:first-child:has(+ .empty) h2 { margin: 0; }
.card-pad > p { margin: 8px 0 0; }

/* ── Toolbar and filter chips ── */
.filters { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.filters input { height: 36px; margin-top: 0; }
.chip { padding: 5px 11px; border: 1px solid transparent; border-radius: 99px; background: none; color: var(--text-muted); font: inherit; font-size: .82rem; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all .15s ease; }
.chip:hover { color: var(--text); background: var(--bg-card-2); }
.chip.active { background: var(--bg-card-2); border-color: var(--border-strong); color: var(--text); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th { text-align: left; vertical-align: bottom; padding: 10px 12px; font-size: .72rem; font-weight: 600; line-height: 1.3; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-light); background: var(--bg-card); border-bottom: 1px solid var(--border); }
td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; overflow-wrap: break-word; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--bg-card-2); }
tr.click { cursor: pointer; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.num .btn, td .actions .btn { margin: 2px 0 2px 4px; }
td.mono, td .mono { overflow-wrap: anywhere; }
.lead { display: flex; align-items: center; gap: 11px; min-width: 0; }
.lead > div { min-width: 6.5em; }
.lead b { display: block; font-weight: 600; }
.row-ico, .avatar { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); font-size: .76rem; font-weight: 600; }
.row-ico { background: var(--neutral-soft); color: var(--text-muted); }
.row-ico.on { background: var(--success-soft); color: var(--success); }
.row-ico svg.i { width: 17px; height: 17px; }

/* ── Status pills ── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: .74rem; font-weight: 600; white-space: nowrap;
  background: var(--neutral-soft); color: var(--text-muted); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.ok { background: var(--success-soft); color: var(--success); }
.pill.warn { background: var(--warning-soft); color: var(--warning); }
.pill.bad { background: var(--danger-soft); color: var(--danger); }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--text-light); }
.dot.ok { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: .44rem .9rem; cursor: pointer; text-decoration: none;
  font: inherit; font-size: .86rem; font-weight: 500; line-height: 1.5; border-radius: var(--radius-xs); border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text); transition: all .15s ease; }
.btn:hover { background: var(--bg-card-2); border-color: var(--border-strong); color: var(--text); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: var(--primary-ink); font-weight: 600; }
.btn.primary:hover { background: var(--teal-hover, #05c494); border-color: var(--teal-hover, #05c494); color: var(--primary-ink); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.btn.ghost { background: transparent; }
.btn.sm { padding: .3rem .72rem; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: default; }

/* ── Forms ── */
label { display: block; font-size: .78rem; font-weight: 600; color: var(--text-muted); }
label .muted { font-size: inherit; font-weight: 400; color: var(--text-light); }
input, select, textarea { display: block; width: 100%; margin-top: .35rem; padding: 8px 11px; outline: none; font: inherit; font-size: .86rem; font-weight: 400; color: var(--text);
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-xs); transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: var(--text-light); }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
select option { background: var(--bg-card); color: var(--text); }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; padding: 0; }
input[type=color] { height: 38px; padding: 4px; cursor: pointer; }
.stack { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.switch { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--bg-card-2); cursor: pointer; }
.switch input { margin: 3px 0 0; flex: none; }
.switch b, .switch i { display: block; font-style: normal; }
.switch b { color: var(--text); font-size: .86rem; }
.switch i { color: var(--text-muted); font-weight: 400; font-size: .8rem; }
.err, .ok-note, .suspended-note { border-radius: var(--radius); padding: 10px 14px; font-size: .86rem; font-weight: 500; }
.err, .suspended-note { background: var(--danger-soft); color: var(--danger); }
.suspended-note { margin-bottom: 14px; }
.ok-note { background: var(--success-soft); color: var(--success); }
@media (max-width: 820px) { .row, .row3 { grid-template-columns: 1fr; } input, select, textarea { font-size: 16px; } }   /* smaller text makes iPhones zoom the page on focus */

/* ── Messages across a page ── */
.notice { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 20px; border-radius: var(--radius); font-size: .88rem;
  background: var(--warning-soft); color: var(--text); }
.notice > div { flex: 1; min-width: 200px; }
.notice.bad { background: var(--danger-soft); }
.callout { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: .88rem; }
.callout.warn { background: var(--warning-soft); }
.empty { padding: 44px 16px; text-align: center; color: var(--text-muted); font-size: .88rem; }
.empty::before { content: ""; display: block; width: 32px; height: 32px; margin: 0 auto 10px; background: var(--text-light); opacity: .55;
  -webkit-mask: var(--wifi) center / contain no-repeat; mask: var(--wifi) center / contain no-repeat;
  --wifi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4.5 10.5a11 11 0 0 1 15 0M7.5 14a6.5 6.5 0 0 1 9 0'/%3E%3Ccircle cx='12' cy='17.5' r='1' fill='black'/%3E%3C/svg%3E"); }
.empty .btn { margin-top: 14px; }

/* ── Details, lists and steps inside pages ── */
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; margin: 6px 0 18px; padding: 14px 16px; font-size: .86rem; background: var(--bg-card-2); border-radius: var(--radius); }
.kv dt { color: var(--text-muted); font-weight: 500; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
pre.script { margin: 0; padding: 14px 16px; max-height: 340px; overflow: auto; white-space: pre; font: .78rem/1.55 var(--mono);
  background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); }
ol.steps { margin: 0 0 14px; padding-left: 20px; color: var(--text-muted); font-size: .86rem; }
ol.steps li { margin: 5px 0; }
ol.steps b { color: var(--text); }
.progress { height: 6px; margin: 4px 0 14px; border-radius: 99px; background: var(--bg-card-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--primary); }
.todo { display: grid; gap: 2px; }
.todo > * { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-xs); color: var(--text); font-weight: 500; }
.todo a:hover { background: var(--bg-card-2); }
.todo a::after { content: "→"; margin-left: auto; color: var(--primary); }
.todo .tick { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-strong); font-size: .72rem; }
.todo .done { color: var(--text-muted); font-weight: 400; }
.todo .done .tick { background: var(--success-soft); border-color: transparent; color: var(--success); text-decoration: none; }
.guide { max-width: 860px; }
.guide p { margin: 8px 0 0; }
.guide ol { margin: 10px 0 0; padding-left: 22px; }
.guide ol li { margin: 7px 0; }
.guide .actions { margin-top: 14px; }
.ticks { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: .7rem; font-weight: 700; }
.step-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.step-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); font-weight: 600; background: var(--primary-soft); color: var(--primary); }
.faq { display: grid; gap: 8px; margin-top: 4px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.faq summary { font-weight: 500; cursor: pointer; }
.faq details p { color: var(--text-muted); margin: 8px 0 2px; }
@media (max-width: 820px) { .step-card { grid-template-columns: 1fr; gap: 10px; } .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; } }

/* ── Branding page: the form beside a phone showing the customer's page ── */
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.logo-pick { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.logo-box { display: grid; place-items: center; width: 88px; height: 88px; flex: none; overflow: hidden; border-radius: var(--radius); border: 1px dashed var(--border-strong); background: var(--bg-card-2); color: var(--text-muted); font-size: .76rem; }
.logo-box img { max-width: 100%; max-height: 100%; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sw { width: 38px; height: 38px; border-radius: var(--radius-sm); border: 2px solid var(--bg-card); outline: 1px solid var(--border-strong); cursor: pointer; }
.sw.active { outline: 2px solid var(--text); }
/* The phone keeps the customer page's own look, whichever theme the dashboard is in. */
.phone { --b1: #5b4cf0; --b2: #8b5cf6; --on: #fff; --acc: #5b4cf0; position: sticky; top: calc(var(--topbar-h) + 20px); overflow: hidden; border-radius: 30px; border: 8px solid #10132a; background: #f3f4fb; color: #10132a; font-size: .8rem; }
.ph-hero { display: grid; justify-items: center; gap: 2px; padding: 26px 14px 56px; text-align: center; color: var(--on); background: linear-gradient(140deg, var(--b1), var(--b2)); border-radius: 0 0 22px 22px; }
.ph-hero b { font-size: 1.05rem; font-weight: 700; }
.ph-hero span { opacity: .85; font-size: .78rem; }
.ph-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 16px; background: rgba(255, 255, 255, .18); }
.ph-mark svg { width: 28px; height: 28px; }
.ph-mark.logo { width: 64px; height: 64px; background: #fff; padding: 6px; border-radius: 18px; }
.ph-mark.logo img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.ph-body { display: grid; gap: 10px; padding: 0 10px 18px; margin-top: -40px; }
.ph-card { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 10px 22px -16px rgba(16, 19, 42, .5); }
.ph-card small { display: block; font-weight: 700; margin-bottom: 8px; font-size: .78rem; }
.ph-input { padding: 9px 10px; border-radius: 10px; border: 2px solid #e5e7f3; background: #f6f7fc; color: #9aa0bd; }
.ph-btn { margin-top: 8px; padding: 10px; border-radius: 10px; text-align: center; font-weight: 700; color: var(--on); background: linear-gradient(135deg, var(--b1), var(--b2)); }
.ph-plan { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 2px solid #e5e7f3; border-radius: 12px; background: #fafbff; }
.ph-plan span:first-child { margin-right: auto; }
.ph-plan b, .ph-plan i { display: block; font-style: normal; }
.ph-plan i { color: #686d8a; font-size: .7rem; }
.ph-price { font-weight: 700; color: var(--acc); }
.ph-plan em { font-style: normal; font-weight: 700; color: #fff; background: #16a34a; padding: 5px 12px; border-radius: 99px; }
@media (max-width: 980px) { .brand-grid { grid-template-columns: minmax(0, 1fr); } .phone { position: static; max-width: 300px; margin: 0 auto; } }

/* ── Subscriptions ── */
.sub-status p { margin: 10px 0 0; font-size: 1rem; font-weight: 500; }
.sub-status p.muted { font-size: .86rem; font-weight: 400; margin-top: 4px; }
.periods { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.period { position: relative; cursor: pointer; }
.period input { position: absolute; opacity: 0; }
.period span { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); transition: border-color .15s, box-shadow .15s; }
.period b { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); }
.period em { font-style: normal; font-size: 1.4rem; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.period i { font-style: normal; font-weight: 400; color: var(--text-muted); font-size: .82rem; }
.period input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.period input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.sub-wait { display: grid; justify-items: center; gap: 6px; padding: 22px 0 8px; text-align: center; }
.spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-bottom: 20px; }
.bill-grid .card + .card { margin-top: 0; }
.bill-foot { grid-column: 1 / -1; display: grid; gap: 10px; }
@media (max-width: 980px) { .bill-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── Pop-ups ── */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: var(--overlay); animation: fade .15s; }
.modal-frame { position: relative; width: 100%; max-width: 560px; }
.modal-frame:has(.modal-box.wide) { max-width: 780px; }
.modal-box { width: 100%; max-height: 90vh; overflow: auto; padding: 20px; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-lg); }
/* the title is the pop-up's header, the buttons its footer */
.modal-box > h2:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -20px -20px 16px; padding: 16px 60px 14px 20px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
.modal-box h2 { margin-top: 18px; }
.modal-foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 20px -20px -20px; padding: 12px 20px; border-top: 1px solid var(--border); }
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; cursor: pointer;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-xs); color: var(--text-muted); font-size: 1.2rem; line-height: 1; }
.modal-x:hover { color: var(--text); border-color: var(--border-strong); }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 400; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 9px;
  background: var(--text); color: var(--bg); font-size: .86rem; font-weight: 500; box-shadow: var(--shadow-lg); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
@media (max-width: 820px) {
  .modal { padding: 0; place-items: end center; }
  .modal-frame, .modal-frame:has(.modal-box.wide) { max-width: none; align-self: end; }
  .modal-box { max-height: 92vh; border-radius: 14px 14px 0 0; }
  .modal-foot .btn { flex: 1 1 auto; }
  .page-head .actions, .page-head .actions .btn { width: 100%; }
  .filters input { max-width: none !important; width: 100%; margin: 4px 0 0 !important; }
}

/* ── Quick search (the box in the top bar, or Ctrl+K) ── */
.palette { place-items: start center; padding-top: 12vh; }
.palette-box { width: 100%; max-width: 560px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow-lg); }
.palette-box input { margin: 0; padding: 14px 18px; font-size: 1rem; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: var(--bg-card); box-shadow: none; }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.palette-item { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 8px 12px; cursor: pointer; text-align: left; font: inherit; font-size: .88rem;
  background: none; border: 0; border-radius: var(--radius-xs); color: var(--text); }
.palette-item span { margin-left: auto; color: var(--text-light); font-size: .76rem; white-space: nowrap; }
.palette-item.on { background: var(--primary-soft); color: var(--primary); }
.palette-none { padding: 18px; text-align: center; color: var(--text-muted); font-size: .86rem; }
@media (max-width: 820px) { .palette { place-items: start center; padding: 12px; } }

/* ── Sign-in screens: a quiet panel beside the form ── */
.auth { min-height: 100vh; display: flex; background: var(--bg); }
.auth-art { position: relative; overflow: hidden; flex: 1; display: none; flex-direction: column; justify-content: flex-end; gap: 34px; padding: 52px; background: var(--bg-secondary); border-right: 1px solid var(--border); }
@media (min-width: 960px) { .auth-art { display: flex; } }
.auth-art::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-size: 52px 52px;
  background-image: linear-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px); }
.auth-art::after { content: ""; position: absolute; top: 16%; left: 22%; width: 400px; height: 400px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(6, 214, 160, .22) 0%, transparent 70%); filter: blur(70px); }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .brand { position: absolute; top: 52px; left: 52px; }
.auth-art h2 { margin: 0 0 16px; max-width: 13em; font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.auth-art p { margin: 0; max-width: 380px; color: var(--text-muted); font-size: .95rem; line-height: 1.7; }
.points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 12px; align-items: center; font-weight: 500; color: var(--text); }
.points li span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: var(--radius-sm); background: var(--primary-soft); color: var(--primary); }
.auth-main { display: flex; flex-direction: column; justify-content: center; width: 480px; max-width: 100%; flex: none; padding: 44px 52px; background: var(--bg-card); border-left: 1px solid var(--border); }
.auth-card { width: 100%; }
.auth-card > .brand { margin-bottom: 34px; font-size: 1.2rem; }
.auth-card > .brand .logo { width: 44px; height: 44px; border-radius: var(--radius-sm); }
.auth-card > .brand .logo svg { width: 24px; height: 24px; }
.auth-card h1 { font-size: 1.5rem; }
.auth-card form { margin-top: 22px; }
.auth-card input { padding: 11px 13px; }
.auth-card .btn.primary { width: 100%; margin-top: 4px; padding: .7rem; font-size: .95rem; }
.auth-card .center { margin-top: 20px; }
.forgot { justify-self: end; margin-top: -6px; font-size: .82rem; }
@media (max-width: 959.98px) { .auth-main { width: 100%; padding: 32px 24px; border-left: 0; } }

/* ── Tables on narrow pages: each row becomes a card, each cell a "name: value" line ── */
/* Phones. */
@media (max-width: 820px) {
  .table-wrap { overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  tbody tr:last-child { border-bottom: 0; }
  td, td.num, td:first-child, td:last-child { width: auto; padding: 0; border: 0; text-align: left; overflow-wrap: anywhere; }
  td::before { content: attr(data-label); display: block; margin-bottom: 1px; color: var(--text-light); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
  td:first-child { grid-column: 1 / -1; font-size: .95rem; }
  td:first-child::before, td[data-label=""]::before { display: none; }
  td[data-label=""] { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
  td[data-label=""]:empty { display: none; }
  tbody tr:hover td { background: none; }
  td.num .btn { margin: 0; }
}
/* Larger screens where the page beside the menu is still too narrow for a wide table (a small laptop, or the
   menu dragged wide). It goes by the page's own width, not the screen's. */
@media (min-width: 821px) { @container page (max-width: 860px) {
  .table-wrap { overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tbody tr { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
  tbody tr:last-child { border-bottom: 0; }
  td, td.num, td:first-child, td:last-child { width: auto; padding: 0; border: 0; text-align: left; overflow-wrap: anywhere; }
  td::before { content: attr(data-label); display: block; margin-bottom: 1px; color: var(--text-light); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
  td:first-child { grid-column: 1 / -1; font-size: .95rem; }
  td:first-child::before, td[data-label=""]::before { display: none; }
  td[data-label=""] { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
  td[data-label=""]:empty { display: none; }
  tbody tr:hover td { background: none; }
  td.num .btn { margin: 0; }
} }

/* ── Printed voucher sheet ── */
.print-sheet { display: none; }
@media print {
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; color: #000; background: #fff; }
  .voucher { border: 1px dashed #888; border-radius: 8px; padding: 10px 12px; break-inside: avoid; font: 12px/1.35 system-ui, sans-serif; }
  .voucher .op { font-weight: 700; }
  .voucher .code { font: 700 18px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .12em; margin: 4px 0; }
}

/* ── Button icons, drawn in the button's own colour ── */
.btn[data-act="add-router"]::before, .btn[data-act="add-plan"]::before, .btn[data-act="new-codes"]::before, .btn[data-act="add-provider"]::before, .btn[data-act="add-partner"]::before, .btn[data-act="script"]::before, .btn[data-act="edit-plan"]::before, .btn[data-act="edit"]::before, .btn[data-act="edit-partner"]::before, .btn[data-act="password"]::before, .btn[data-act="reset-password"]::before, .btn[data-act="grant"]::before, .btn[data-act="payout"]::before, .btn[data-act="copy-link"]::before, .btn[data-act="mpesa-test"]::before, .btn[data-act="billing-test"]::before, .btn[data-act="toggle-router"]::before, .btn[data-act="disable-code"]::before, .btn[data-act="suspend"]::before, .btn[data-act="reactivate"]::before, .btn[data-act="print"]::before, a.btn[target="_blank"]::before, #copy::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.btn[data-act="add-router"], .btn[data-act="add-plan"], .btn[data-act="new-codes"], .btn[data-act="add-provider"], .btn[data-act="add-partner"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%205v14M5%2012h14'%2F%3E%3C%2Fsvg%3E"); }
.btn[data-act="script"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M4%206l6%206-6%206M12%2018h8'%2F%3E%3C%2Fsvg%3E"); }
.btn[data-act="edit-plan"], .btn[data-act="edit"], .btn[data-act="edit-partner"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M4%2020h4L19%209l-4-4L4%2016v4ZM14%206l4%204'%2F%3E%3C%2Fsvg%3E"); }
.btn[data-act="password"], .btn[data-act="reset-password"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'8'%20cy%3D'15'%20r%3D'4'%2F%3E%3Cpath%20d%3D'M11%2012l9-9M16%207l3%203'%2F%3E%3C%2Fsvg%3E"); }
.btn[data-act="grant"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'3'%20y%3D'5'%20width%3D'18'%20height%3D'16'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M3%2010h18M8%203v4M16%203v4M12%2013v5M9.5%2015.5h5'%2F%3E%3C%2Fsvg%3E"); }
.btn[data-act="payout"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'2.5'%20y%3D'6'%20width%3D'19'%20height%3D'12'%20rx%3D'2'%2F%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'2.5'%2F%3E%3C%2Fsvg%3E"); }
.btn[data-act="copy-link"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'9'%20y%3D'9'%20width%3D'11'%20height%3D'11'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M5%2015V6a2%202%200%200%201%202-2h9'%2F%3E%3C%2Fsvg%3E"); }
.btn[data-act="mpesa-test"], .btn[data-act="billing-test"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M20%2011a8%208%200%201%200-2.3%206.3M20%204v7h-7'%2F%3E%3C%2Fsvg%3E"); }
.btn[data-act="toggle-router"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%203v9M6.3%206.3a8%208%200%201%200%2011.4%200'%2F%3E%3C%2Fsvg%3E"); }
.btn[data-act="disable-code"], .btn[data-act="suspend"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'9'%2F%3E%3Cpath%20d%3D'M5.6%205.6l12.8%2012.8'%2F%3E%3C%2Fsvg%3E"); }
.btn[data-act="reactivate"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M5%2012.5l4.5%204.5L19%207.5'%2F%3E%3C%2Fsvg%3E"); }
.btn[data-act="print"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M7%208V3h10v5M7%2017H5a2%202%200%200%201-2-2v-4a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202v4a2%202%200%200%201-2%202h-2'%2F%3E%3Crect%20x%3D'7'%20y%3D'14'%20width%3D'10'%20height%3D'7'%20rx%3D'1'%2F%3E%3C%2Fsvg%3E"); }
a.btn[target="_blank"] { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M14%204h6v6M20%204l-9%209M18%2014v5a1%201%200%200%201-1%201H5a1%201%200%200%201-1-1V7a1%201%200%200%201%201-1h5'%2F%3E%3C%2Fsvg%3E"); }
#copy { --ic: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'2.2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'9'%20y%3D'9'%20width%3D'11'%20height%3D'11'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M5%2015V6a2%202%200%200%201%202-2h9'%2F%3E%3C%2Fsvg%3E"); }
.btn.sm::before { width: 14px !important; height: 14px !important; }

/* ── First sign-in: the two steps beside the form ── */
.onboard-steps li { color: var(--text-muted); }
.onboard-steps li span { font-weight: 700; background: var(--neutral-soft); color: var(--text-muted); }
.onboard-steps li.now { color: var(--text); }
.onboard-steps li.now span { background: var(--teal); color: var(--primary-ink); }
.onboard-steps li.done span { background: var(--success-soft); color: var(--success); }
#onboard .auth-main { width: 580px; }
#onboard .auth-card form { margin-top: 20px; }
#onboard .periods { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
@media (max-width: 959.98px) { #onboard .auth-main { width: 100%; } }
