/* FNP panel - design v2 (owner 12 Nov 2026, RP-19: CNP standard or better). Montserrat type, the green FNP brand, blue actions,
   and a colour for every place in the panel, so each screen and menu item is recognised at a glance. Light and dark. */
@font-face { font-family: 'Unbounded'; src: url(/vendor/fonts/unbounded-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(/vendor/cert/montserrat-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(/vendor/cert/montserrat-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(/vendor/cert/montserrat-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(/vendor/cert/montserrat-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url(/vendor/cert/montserrat-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --bg: #f3f6fb; --surface: #ffffff; --surface-2: #f6f8fc; --surface-3: #eef2f8; --ink: #0f1b2d; --muted: #5f6b80; --line: #e3e8f1;
  --brand: #0f766e; --brand-2: #14a085; --brand-ink: #ffffff; --brand-soft: #e3f4f0;
  --btn: #1f6fc5; --btn-2: #3b8de8; --btn-hover: #185ca6; --btn-ink: #ffffff; --wa: #1faa59;
  --accent: #d97706; --accent-soft: #fff3df; --danger: #dc2626; --danger-soft: #fdecec; --ok: #15803d; --ok-soft: #e6f6ec;
  --indigo: #4f46e5; --sky: #0ea5e9; --emerald: #10b981; --amber: #f59e0b; --orange: #f97316; --rose: #e11d48; --violet: #7c3aed;
  --teal: #0d9488; --pink: #db2777; --slate: #475569; --cyan: #0891b2; --lime: #65a30d;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 8px 24px -12px rgba(16,24,40,.16); --shadow-lg: 0 20px 50px -18px rgba(16,24,40,.35);
  --radius: 18px; --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --side-w: 268px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0a1220; --surface: #111b2d; --surface-2: #0e1727; --surface-3: #16233a; --ink: #e8eef8; --muted: #9aa7bf; --line: #22314d;
  --brand: #2bb3a3; --brand-2: #34c9b4; --brand-ink: #04211e; --brand-soft: #10302d; --btn: #3d8fe6; --btn-2: #5aa6f2; --btn-hover: #5aa2ee; --btn-ink: #ffffff; --wa: #2fbf6c;
  --accent: #f0a63a; --accent-soft: #33260f; --danger: #f87171; --danger-soft: #3a1d1d; --ok: #4ade80; --ok-soft: #12301f;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 10px 26px -14px rgba(0,0,0,.7); --shadow-lg: 0 24px 50px -18px rgba(0,0,0,.8); } }
:root[data-theme="dark"] {
  --bg: #0a1220; --surface: #111b2d; --surface-2: #0e1727; --surface-3: #16233a; --ink: #e8eef8; --muted: #9aa7bf; --line: #22314d;
  --brand: #2bb3a3; --brand-2: #34c9b4; --brand-ink: #04211e; --brand-soft: #10302d; --btn: #3d8fe6; --btn-2: #5aa6f2; --btn-hover: #5aa2ee; --btn-ink: #ffffff; --wa: #2fbf6c;
  --accent: #f0a63a; --accent-soft: #33260f; --danger: #f87171; --danger-soft: #3a1d1d; --ok: #4ade80; --ok-soft: #12301f;
  --shadow: 0 1px 0 rgba(255,255,255,.03), 0 10px 26px -14px rgba(0,0,0,.7); --shadow-lg: 0 24px 50px -18px rgba(0,0,0,.8); }

* { box-sizing: border-box; }
html, body { margin: 0; color: var(--ink); font: 500 15px/1.5 var(--font); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { background: radial-gradient(900px 500px at 100% -10%, color-mix(in srgb, var(--sky) 9%, transparent), transparent 60%),
  radial-gradient(800px 500px at -10% 110%, color-mix(in srgb, var(--emerald) 9%, transparent), transparent 60%), var(--bg); background-attachment: fixed; min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--btn); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 1.45rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
.muted { color: var(--muted); } .small { font-size: .84rem; } .center { text-align: center; }
.hidden { display: none !important; }
svg { flex: none; }

/* ---------- shell: side menu (computer), icon rail (iPad), top + bottom bars (phone) ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: calc(16px + env(safe-area-inset-top)) 12px 16px; position: sticky; top: 0; height: 100vh; overflow: auto;
  display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .02em; padding: 4px 8px 14px; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.brand img, .brand svg { width: 42px; height: 42px; border-radius: 12px; display: block; box-shadow: 0 6px 16px -8px rgba(15,118,110,.8); }
.brand small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; letter-spacing: .02em; margin-top: 1px; }
.nav-head { font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 12px 12px 4px; opacity: .8; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button, .navlink { --c: var(--brand); display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; padding: 7px 10px; border-radius: 12px; cursor: pointer;
  text-align: left; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; position: relative; transition: background .15s, transform .15s; }
.ni { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 13%, transparent); color: var(--c); flex: none; transition: .15s; }
.ni svg { width: 18px; height: 18px; }
.nav button:hover, .navlink:hover { background: var(--surface-2); }
.nav button.on { background: color-mix(in srgb, var(--c) 11%, var(--surface)); color: var(--ink); }
.nav button.on .ni { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 80%, white), var(--c)); color: #fff; box-shadow: 0 6px 14px -6px var(--c); }
.nav button.on::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); }
.nav .count, .tabbar .count { margin-left: auto; background: var(--rose); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; }
.side-cta { margin-top: 12px; border-radius: 16px; padding: 14px; color: #fff; background: linear-gradient(140deg, #1f6fc5, #0f766e); box-shadow: 0 14px 30px -16px #0f766e; }
.side-cta b { display: block; font-size: .95rem; } .side-cta small { display: block; opacity: .85; font-size: .74rem; margin: 3px 0 10px; }
.side-cta .btn { width: 100%; background: #fff; color: #0b4f72; border: 0; }
.side-foot { margin-top: auto; padding-top: 14px; }
.ver { color: var(--muted); font-size: .72rem; text-align: center; margin-top: 10px; }

.main { min-width: 0; padding: 0 max(clamp(14px, 3vw, 34px), env(safe-area-inset-right)) 96px max(clamp(14px, 3vw, 34px), env(safe-area-inset-left)); width: 100%; }
.main-in { max-width: 1240px; margin: 0 auto; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 0 12px; margin-bottom: 6px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.hello { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.hello .t { min-width: 0; } .hello .t small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.hello h1 { font-size: 1.15rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .86rem; letter-spacing: .03em; flex: none;
  background: linear-gradient(135deg, var(--violet), var(--indigo)); box-shadow: 0 6px 14px -6px var(--indigo); }
.toplinks { display: flex; gap: 6px; }
.tl { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem; text-decoration: none; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; }
.tl svg { width: 16px; height: 16px; }
.tl.home svg { color: var(--emerald); } .tl.price svg { color: var(--amber); } .tl.kit svg { color: var(--teal, #0d9488); }
.tl:hover { border-color: color-mix(in srgb, var(--btn) 45%, var(--line)); }
.tl.help { background: linear-gradient(135deg, #38bdf8, var(--sky)); color: #fff; border: 0; box-shadow: 0 8px 18px -10px var(--sky); }
.tl.acct { padding: 3px 12px 3px 3px; gap: 8px; }
.tl.acct .avatar { width: 30px; height: 30px; font-size: .72rem; box-shadow: none; }
.tl.on { outline: 3px solid color-mix(in srgb, var(--btn) 30%, transparent); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }

/* page header on every screen */
.phead { --c: var(--brand); display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; flex-wrap: wrap; }
.phead .pi { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, white), var(--c)); box-shadow: 0 10px 22px -12px var(--c); }
.phead .pi svg { width: 24px; height: 24px; }
.phead .tt { flex: 1; min-width: 200px; } .phead h2 { margin: 0; font-size: 1.35rem; } .phead p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.phead .acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* bottom tab bar and More sheet (phones) */
.tabbar { display: none; }
.sheet-bg { position: fixed; inset: 0; z-index: 55; background: rgba(8,12,24,.45); display: flex; align-items: flex-end; animation: fade .15s; }
.sheet { width: 100%; max-height: 86vh; overflow: auto; background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 2px auto 12px; }
@keyframes up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } } @keyframes fade { from { opacity: 0; } }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tiles .nav-head { grid-column: 1 / -1; margin: 8px 2px 0; }
.tilebtn { --c: var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 14px 6px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 700; font-size: .78rem; text-align: center; text-decoration: none; cursor: pointer; min-height: 86px; line-height: 1.2; }
.tilebtn .ni { width: 38px; height: 38px; border-radius: 12px; }
.tilebtn.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--surface)); }

@media (max-width: 1100px) and (min-width: 700px) {          /* iPad / small laptop: icon rail with small labels */
  :root { --side-w: 92px; }
  .side { padding: calc(14px + env(safe-area-inset-top)) 8px 14px; align-items: stretch; }
  .brand { flex-direction: column; gap: 4px; padding: 4px 0 10px; font-size: .9rem; text-align: center; } .brand small { display: none; }
  .nav-head, .side-cta small, .side-cta b, .ver { display: none; }
  .nav button, .navlink { flex-direction: column; gap: 4px; padding: 8px 2px; font-size: .64rem; text-align: center; line-height: 1.15; }
  .nav button.on::before { left: -8px; }
  .nav .count { position: absolute; top: 2px; right: 10px; margin: 0; min-width: 18px; height: 18px; font-size: .64rem; }
  .side-cta { padding: 8px; border-radius: 14px; } .side-cta .btn { padding: 8px 4px; font-size: .62rem; flex-direction: column; gap: 3px; white-space: normal; }
  .toplinks .tl span { display: none; } .toplinks .tl { padding: 8px; }
}
@media (max-width: 699px) {                                  /* phones */
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding-top: calc(10px + env(safe-area-inset-top)); }
  .hello h1 { font-size: 1.02rem; } .hello .badges { display: none; } .avatar { width: 36px; height: 36px; }
  .toplinks { display: none; }
  .tl.help > span, .tl.acct > span:not(.avatar) { display: none; } .tl.help { padding: 9px; } .tl.acct { padding: 3px; }
  .tabbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 6px; justify-content: space-around; }
  .tabbar button { --c: var(--brand); position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; flex: 1; border: 0; background: none; padding: 5px 2px; border-radius: 16px;
    font-size: .62rem; font-weight: 700; color: var(--muted); cursor: pointer; }
  .tabbar .ni { width: 34px; height: 30px; border-radius: 11px; background: none; color: var(--muted); }
  .tabbar button.on { color: var(--ink); } .tabbar button.on .ni { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 75%, white), var(--c)); color: #fff; box-shadow: 0 6px 14px -8px var(--c); }
  .tabbar .count { position: absolute; top: 0; right: 16%; margin: 0; min-width: 17px; height: 17px; font-size: .62rem; }
  .main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .phead { margin-bottom: 14px; } .phead .pi { width: 44px; height: 44px; border-radius: 13px; } .phead h2 { font-size: 1.15rem; }
  .phead .acts { width: 100%; } .phead .acts .btn { flex: 1; }
}
@media (max-width: 480px) { .hide-xs { display: none; } .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 8px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .card-h h3 { margin: 0; flex: 1; }
.card-h .ni { width: 34px; height: 34px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

/* stat tiles: coloured icon square + big number */
.tile, .stat { --c: var(--brand); position: relative; overflow: hidden; }
.stat { display: flex; gap: 12px; align-items: flex-start; }
.si { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 65%, white), var(--c)); box-shadow: 0 10px 20px -12px var(--c); }
.si svg { width: 22px; height: 22px; }
.tile .big, .stat .big { font-size: 1.55rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.tile .lbl, .stat .lbl { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat::after, .tile::after { content: ""; position: absolute; right: -34px; bottom: -34px; width: 120px; height: 120px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 7px, color-mix(in srgb, var(--c) 10%, transparent) 7px 9px); pointer-events: none; }

/* hero banner (Home) */
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; color: #fff; background: linear-gradient(125deg, #0f766e 0%, #0e7490 48%, #1f6fc5 100%);
  box-shadow: 0 22px 44px -24px #0e7490; margin-bottom: 16px; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 10px, rgba(255,255,255,.08) 10px 13px); }
.hero h2 { font-size: 1.5rem; margin: 0 0 4px; position: relative; z-index: 1; } .hero p { margin: 0; opacity: .9; position: relative; z-index: 1; }
.hero .row { position: relative; z-index: 1; margin-top: 14px; }
.hero .hchip { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem; }
.hero .btn { background: #fff; color: #0b4f72; border: 0; } .hero .btn.ghostw { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }

/* action tiles (CNP dashboard style, AC-57) */
.acts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.act { --c: var(--brand); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); text-decoration: none; cursor: pointer; text-align: left; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; font-weight: 700; font-size: .9rem; }
.act small { display: block; color: var(--muted); font-weight: 600; font-size: .74rem; margin-top: 2px; }
.act:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); box-shadow: 0 14px 28px -16px var(--c); }
.act .si { width: 42px; height: 42px; border-radius: 13px; }
.act.wide { grid-column: span 2; flex-direction: row; align-items: center; }
.act.warm { background: linear-gradient(120deg, #fff7ed, #fef3c7); border-color: #fdba74; color: #9a3412; }
.act.warm small { color: #9a3412; opacity: .85; }
:root[data-theme="dark"] .act.warm { background: linear-gradient(120deg, #3a2410, #3a2e10); color: #fdba74; border-color: #7c4a1a; }
@media (max-width: 480px) { .acts-grid { grid-template-columns: 1fr 1fr; } .act.wide { grid-column: 1 / -1; } }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 9px 16px; border-radius: 12px;
  cursor: pointer; font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ink); white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn:hover { border-color: color-mix(in srgb, var(--btn) 50%, var(--line)); }
.btn.primary { background: linear-gradient(180deg, var(--btn-2), var(--btn)); border-color: transparent; color: var(--btn-ink); box-shadow: 0 8px 18px -10px var(--btn); }
.btn.primary:hover { background: var(--btn-hover); }
.btn.green, .btn.wa { background: linear-gradient(180deg, #2fc46c, var(--wa)); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px var(--wa); }
.btn.orange, .btn.accent { background: linear-gradient(180deg, #fb923c, var(--orange)); border-color: transparent; color: #fff; }
.btn.violet { background: linear-gradient(180deg, #8b5cf6, var(--violet)); border-color: transparent; color: #fff; }
.btn.outline { border-color: var(--btn); color: var(--btn); background: transparent; }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: none; }
.btn.soft { background: var(--surface-2); }
.btn.sm { padding: 6px 11px; font-size: .82rem; border-radius: 10px; gap: 6px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn svg { width: 17px; height: 17px; } .btn.sm svg { width: 15px; height: 15px; }
.btn.copy { border-style: dashed; color: var(--btn); background: color-mix(in srgb, var(--btn) 6%, var(--surface)); }
.btn.copy.done { border-style: solid; color: var(--ok); background: var(--ok-soft); }
label.f { display: block; font-weight: 700; font-size: .84rem; }
label.f > span { display: block; margin-bottom: 5px; color: var(--ink); }
.in, select.in, textarea.in { width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); outline: none; font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.in::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); font-weight: 500; }
.in:focus { border-color: var(--btn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--btn) 15%, transparent); background: var(--surface); }
.form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form .wide { grid-column: 1 / -1; }
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 700; }
.switch input { width: 44px; height: 24px; appearance: none; background: var(--line); border-radius: 24px; position: relative; cursor: pointer; transition: .15s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked { background: linear-gradient(90deg, var(--emerald), var(--brand)); } .switch input:checked::after { left: 23px; }
.pending { outline: 2px dashed var(--amber); outline-offset: 3px; border-radius: 10px; }
.upd { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- tables and lists ---------- */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.tbl th { text-align: left; color: var(--muted); font-weight: 800; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tbl th:first-child { border-top-left-radius: 12px; } .tbl th:last-child { border-top-right-radius: 12px; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.tbl tr.click { cursor: pointer; }
.tbl-wrap { overflow-x: auto; }
.pill { --c: var(--slate); display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 800; letter-spacing: .01em;
  background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); border: 0; white-space: nowrap; }
.pill.ok { --c: var(--ok); } .pill.warn { --c: var(--accent); } .pill.bad { --c: var(--danger); } .pill.brand { --c: var(--brand); }
.pill.blue { --c: var(--btn); } .pill.violet { --c: var(--violet); } .pill.sky { --c: var(--sky); } .pill.indigo { --c: var(--indigo); }
.pill.solid { background: var(--c); color: #fff; }
.list-person { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.list-person:last-child { border-bottom: 0; }
.empty { padding: 34px 20px; text-align: center; color: var(--muted); font-weight: 600; }
.empty svg { width: 40px; height: 40px; display: block; margin: 0 auto 8px; color: color-mix(in srgb, var(--muted) 60%, transparent); }

/* split view (Owners) and tabs */
.split { display: grid; grid-template-columns: minmax(290px, 380px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { --c: var(--btn); border: 0; background: none; padding: 8px 13px; font-weight: 700; color: var(--muted); cursor: pointer; border-radius: 10px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; }
.tabs button svg { width: 16px; height: 16px; color: var(--c); }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.who-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; transition: background .12s; }
.who-item:hover { background: var(--surface-2); }
.who-item.on { background: color-mix(in srgb, var(--btn) 8%, var(--surface)); border-color: color-mix(in srgb, var(--btn) 30%, var(--line)); }
.who-item .avatar { width: 42px; height: 42px; }
.who-item .wt { flex: 1; min-width: 0; } .who-item b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { --c: var(--slate); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .8rem; cursor: pointer; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.fchip i { font-style: normal; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); border-radius: 99px; padding: 0 7px; font-size: .74rem; }
.fchip.on { background: var(--c); color: #fff; border-color: var(--c); } .fchip.on i { background: rgba(255,255,255,.25); color: #fff; }

/* ---------- login and the certificate check page ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); }
.auth-card { width: min(430px, 100%); background: var(--surface); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.auth-head { background: linear-gradient(150deg, #16a085, #0f766e 55%, #0e5f6e); color: #fff; text-align: center; padding: 28px 20px 22px; position: relative; overflow: hidden; }
.auth-head::after { content: ''; position: absolute; left: -80px; bottom: -120px; width: 300px; height: 300px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 9px, rgba(255,255,255,.07) 9px 12px); }
.auth-head img { width: 112px; height: 112px; display: block; margin: 0 auto 6px; position: relative; z-index: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.25)); }
.auth-head .t { font-size: 1.8rem; font-weight: 800; letter-spacing: .1em; line-height: 1.1; position: relative; z-index: 1; }
.auth-head .s { font-size: .8rem; opacity: .9; margin-top: 4px; letter-spacing: .04em; position: relative; z-index: 1; font-weight: 600; }
.auth-body { padding: 24px 26px 18px; display: flex; flex-direction: column; gap: 14px; }
.auth-body h2 { text-align: center; margin: 0; }
.auth-body .btn { width: 100%; padding: 12px 15px; }
.auth-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; font-weight: 600; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-foot { border-top: 1px solid var(--line); padding: 13px; text-align: center; background: var(--surface-2); }
.auth-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.auth-foot a:hover { color: var(--btn); } .auth-foot svg { width: 16px; height: 16px; color: var(--emerald); }
.linkbtn { background: none; border: 0; color: var(--btn); font-weight: 700; cursor: pointer; padding: 4px; }

/* ---------- overlays ---------- */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 14px; z-index: 80;
  font-weight: 700; max-width: 92vw; box-shadow: var(--shadow-lg); animation: up .2s ease-out; }
.toast.bad { background: var(--danger); color: #fff; }
.modal-bg { position: fixed; inset: 0; background: rgba(8,12,24,.5); display: grid; place-items: center; z-index: 50; padding: 14px; animation: fade .15s; backdrop-filter: blur(2px); }
.modal { width: min(580px, 100%); max-height: 92vh; overflow: auto; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); animation: up .2s ease-out; }
.modal.wide { width: min(980px, 100%); }
.modal-acts { justify-content: flex-end; margin-top: 18px; }
@media (max-width: 699px) { .modal-bg { align-items: end; padding: 0; } .modal { width: 100%; border-radius: 22px 22px 0 0; max-height: 92vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); } }
.busy { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(8,12,24,.18); z-index: 70; }
.spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid color-mix(in srgb, var(--brand) 20%, transparent); border-top-color: var(--brand); animation: s .8s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }
.banner { padding: 13px 15px; border-radius: 14px; font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.banner svg { width: 20px; height: 20px; }
.banner.warn { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 85%, black); }
.banner.bad { background: var(--danger-soft); color: var(--danger); } .banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.info { background: color-mix(in srgb, var(--btn) 10%, var(--surface)); color: var(--btn); }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* drop-down menus (Need Help, Account) - CNP AC-57 / PS-19 */
.dropdown { position: fixed; z-index: 60; width: 350px; max-width: calc(100vw - 20px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 14px; animation: ddin .14s ease-out; max-height: calc(100vh - 90px); overflow: auto; }
@keyframes ddin { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.dd-title { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 2px 2px 10px; }
.help-row { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--surface-2); }
.help-row + .help-row { margin-top: 10px; }
.help-row .lbl { display: flex; align-items: center; gap: 8px; font-size: .68rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.help-row .lbl .ni { width: 26px; height: 26px; border-radius: 8px; } .help-row .lbl .ni svg { width: 15px; height: 15px; }
.help-row .val { font-size: 1.12rem; font-weight: 800; margin: 6px 0 10px; word-break: break-all; letter-spacing: .01em; }
.help-acts { display: flex; gap: 8px; } .help-acts .btn { flex: 1; padding: 9px 8px; font-size: .8rem; }
.btn.grey { background: var(--surface-3); border-color: transparent; color: var(--ink); }
.dd-who { display: flex; gap: 12px; align-items: center; padding: 6px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dd-who .avatar { width: 46px; height: 46px; } .dd-who b { display: block; font-size: 1rem; } .dd-who small { color: var(--muted); font-weight: 600; word-break: break-all; }
.dd-item { --c: var(--slate); display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; background: none; border-radius: 12px; cursor: pointer; font-weight: 700; text-align: left; color: var(--ink); font-size: .9rem; text-decoration: none; }
.dd-item .ni { width: 34px; height: 34px; } .dd-item:hover { background: var(--surface-2); }
.dd-item small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; }
.dd-item.danger { color: var(--danger); }
.menu-list { display: flex; flex-direction: column; gap: 2px; }

/* new version + install */
.update-bar { position: sticky; top: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center;
  background: #fef3c7; border-bottom: 1.5px solid #f59e0b; color: #78350f; font-weight: 600; font-size: .86rem; padding: calc(9px + env(safe-area-inset-top)) 14px 9px; }
.update-bar svg { width: 18px; height: 18px; }
.update-bar .btn { border: 1.5px solid #b45309; border-radius: 20px; background: #f59e0b; color: #1c1400; padding: 6px 18px; }
.update-bar .btn:hover { background: #fbbf24; }
.istep { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.istep .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--btn-2), var(--btn)); color: #fff; font-weight: 800; flex: none; }
.ipic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: #0a84ff; flex: none; }
.ipic svg { width: 22px; height: 22px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.app-card { display: flex; align-items: center; gap: 14px; }
.app-card img { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: var(--shadow); }

/* filters, settings, misc */
.filters { margin: 0 0 14px; } .filters > .in, .filters > select.in { width: auto; flex: 1 1 170px; } .filters > input[type=search] { flex: 2 1 240px; }
.filters > label { flex: 0 1 auto; white-space: nowrap; } .filters > label .in { width: auto; }
.set-row { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(240px, 1.2fr); gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.set-row:first-of-type { border-top: 0; }
@media (max-width: 700px) { .set-row { grid-template-columns: 1fr; } }
select.in.sm { padding: 6px 9px; font-size: .84rem; width: auto; }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.phone-row { display: flex; gap: 6px; } .phone-row .cc { width: auto; flex: 0 0 auto; max-width: 46%; } .phone-row .in:not(.cc) { flex: 1; min-width: 0; }
.in.bad { border-color: var(--danger); } .hint { color: var(--danger); margin-top: 4px; font-size: .78rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--btn); color: var(--btn); }
code, .code { font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .02em; }
.keybox { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.keybox code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: .86rem; }
.thumb { width: 100%; aspect-ratio: 1123 / 794; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2) center / cover no-repeat; cursor: zoom-in; box-shadow: var(--shadow); }
.cert-card { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; }
@media (max-width: 600px) { .cert-card { grid-template-columns: 1fr; } }
.speed { position: fixed; right: 12px; bottom: 12px; z-index: 45; font-size: .72rem; }

/* phones and iPad portrait: tables become cards (CNP PS-87, audit AU-07) */
@media (max-width: 900px) {
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr:first-child { display: none; }
  .tbl.cards tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl.cards td { border: 0; padding: 3px 0; }
  .tbl.cards td[data-l]::before { content: attr(data-l) ": "; color: var(--muted); font-size: .76rem; font-weight: 700; }
  .tbl tr:hover td { background: none; }
}
@media print { .side, .top, .tabbar { display: none !important; } }

/* Need Help buttons exactly as CNP: WhatsApp #25D366, Call / Email #0284c7, Copy grey */
.btn.call { background: linear-gradient(180deg, #0ea5e9, #0284c7); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -10px #0284c7; }
.help-acts .btn.wa { background: #25D366; box-shadow: 0 8px 18px -10px #25D366; }
.btn.grey.done { background: var(--ok-soft); color: var(--ok); }
.dd-item > span { min-width: 0; }
.side-cta .btn.on { outline: 3px solid rgba(255,255,255,.5); }

/* Downloads, reminders, section heads */
.dl-card { display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.dl-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #1f6fc5, #0ea5e9); }
.dl-app::before { background: linear-gradient(90deg, #10b981, #0f766e); }
.dl-top { display: flex; gap: 14px; align-items: flex-start; }
.dl-top .si { width: 56px; height: 56px; border-radius: 16px; } .dl-top .si svg { width: 28px; height: 28px; }
.dl-top h3 { font-size: 1.25rem; margin: 2px 0 8px; }
.lbl { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.btn.big { padding: 14px 18px; font-size: 1rem; border-radius: 14px; width: 100%; }
.dl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dl-steps li { display: flex; gap: 12px; align-items: flex-start; }
.dl-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--btn) 12%, transparent); color: var(--btn); font-weight: 800; font-size: .8rem; flex: none; }
.remind { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); background: linear-gradient(110deg, color-mix(in srgb, var(--teal) 8%, var(--surface)), var(--surface)); }
.sec-h { display: flex; align-items: center; gap: 10px; margin-top: 22px; } .sec-h h3 { margin: 0; font-size: 1.05rem; }
.avatar.xl { width: 64px; height: 64px; font-size: 1.3rem; }
.app-card { flex-wrap: wrap; }
.side-cta .btn { white-space: normal; text-align: left; font-size: .84rem; padding: 10px 12px; line-height: 1.25; justify-content: flex-start; }
@media (max-width: 699px) {
  .btn { white-space: normal; text-align: center; }
  .app-card .btn, .hero .row .btn { width: 100%; margin-left: 0 !important; }
  .hero { padding: 18px; } .hero h2 { font-size: 1.3rem; }
  .stat .big { font-size: 1.3rem; } .stat { padding: 14px; } .si { width: 40px; height: 40px; border-radius: 12px; }
  .grid.g4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid.g4 .stat { flex-direction: column; gap: 8px; }
}
@media (max-width: 1100px) and (min-width: 700px) {
  .side-cta .btn { font-size: .62rem; padding: 8px 3px; text-align: center; justify-content: center; flex-direction: column; gap: 4px; }
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Learn: course player + list, training cards, certificate pictures */
.course-in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .course-in { grid-template-columns: 1fr; } }
.vlist { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow: auto; }
.vlist button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 9px 10px; cursor: pointer; text-align: left; color: var(--ink); font-weight: 700; font-size: .86rem; }
.vlist button:hover { border-color: color-mix(in srgb, var(--rose) 40%, var(--line)); }
.vlist button.on { background: color-mix(in srgb, var(--rose) 9%, var(--surface)); border-color: var(--rose); }
.vlist .vn { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--rose) 14%, transparent); color: var(--rose); font-weight: 800; flex: none; }
.vlist button.on .vn { background: var(--rose); color: #fff; }
.vlist .vt { flex: 1; min-width: 0; } .vlist .vt small { display: block; color: var(--muted); font-weight: 600; font-size: .72rem; }
.vlist svg { width: 16px; height: 16px; color: var(--rose); }
.train { --c: var(--violet); display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; padding-top: 0; }
.train-band { display: flex; justify-content: space-between; align-items: center; margin: 0 -18px 4px; padding: 12px 18px; color: #fff;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 75%, white), var(--c)); }
.train-band .pill { background: rgba(255,255,255,.25); color: #fff; }
.train h3 { margin: 0; } .train .price { font-size: 1.3rem; font-weight: 800; color: var(--c); } .train .price small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.train .btn.wa { margin-top: auto; }
.thumb { display: block; padding: 0; position: relative; }
.thumb:not(.ready)::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
.thumb.sm { cursor: default; box-shadow: none; }
.thumb.big { cursor: default; border-radius: 10px; }
.cert-tile .thumb { border: 0; }

/* Keys as cards */
.keycard { display: flex; flex-direction: column; gap: 14px; }
.keycard.off { opacity: .8; }
.keycard .keybox code { font-size: 1rem; margin-top: 3px; display: inline-block; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kv > div { background: var(--surface-2); border-radius: 12px; padding: 9px 11px; min-width: 0; }
.kv span:first-child { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.kv b { display: flex; font-size: .9rem; } .kv small { display: block; color: var(--muted); font-weight: 600; font-size: .74rem; }
.key-ctl { border-top: 1px dashed var(--line); padding-top: 12px; align-items: flex-start; gap: 14px; }
.key-ctl .lbl { margin-bottom: 5px; }
.filters-card { padding: 12px; }
.kgroup + .kgroup { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pill.orange { --c: var(--orange); }
.req.new { border-left: 4px solid var(--rose); }
.quote { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--line); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.codebox { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.codebox b { font-size: 1.5rem; letter-spacing: .08em; }
.hero.warm-hero { background: linear-gradient(125deg, #f97316, #f59e0b 55%, #eab308); box-shadow: 0 22px 44px -24px #f97316; }
.hero.warm-hero .btn { color: #9a3412; }
.hero.warm-hero .btn.copy { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.5); }

/* Owners screen */
.searchbox { position: relative; } .searchbox svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.searchbox .in { padding-left: 40px; }
.who-list { padding: 6px; max-height: calc(100vh - 260px); overflow: auto; }
@media (max-width: 1100px) { .who-list { max-height: 420px; } }
.who-item .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--slate); }
.dot.active { background: var(--ok); } .dot.soon { background: var(--amber); } .dot.expired { background: var(--danger); } .dot.new { background: var(--sky); } .dot.blocked { background: var(--rose); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 25%, transparent); }
.avatar.grey { background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: none; }
.owner-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.give-line { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 10px; background: var(--surface-2); }
.give-hint { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.give-comm { font-size: .9rem; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--orange) 9%, var(--surface)); color: var(--ink); }
.give-who { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.give-who > div { flex: 1; min-width: 180px; }
.give-total { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; border-radius: 14px; background: linear-gradient(120deg, color-mix(in srgb, var(--btn) 10%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.give-total b { display: block; font-size: 1.2rem; }
.keycard .keybox code { white-space: nowrap; font-size: .92rem; }
.split > div, #certs-h { scroll-margin-top: 90px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .act.warm { background: linear-gradient(120deg, #3a2410, #3a2e10); color: #fdba74; border-color: #7c4a1a; } }
:root[data-theme="dark"] .act.warm small, .act.warm small { color: inherit; }

/* round 4 audit fixes */
.busy.quiet { background: transparent; } .busy.quiet .spin { display: none; }                 /* AU-02: taps blocked from the first moment */
@media (pointer: coarse) { .in, select.in, textarea.in, select.in.sm { font-size: 16px; } }      /* AU-04: no iPhone / iPad zoom on tap */
.split > * { min-width: 0; }                                                                      /* AU-03 */
.btn.locked { color: var(--muted); background: var(--surface-2); border-style: dashed; }
.btn.locked svg { color: var(--accent); }
.back-row { display: none; }
@media (max-width: 1100px) {                                                                      /* AU-12: an Owner opens full screen */
  .split.picked > :first-child { display: none; }
  .split.picked .back-row { display: flex; margin-bottom: 12px; }
}
.sort { display: flex; gap: 8px; align-items: center; }
.sort select.in { width: auto; }
select.in { max-width: 100%; text-overflow: ellipsis; }
.filters > * { max-width: 100%; min-width: 0; }
@media (max-width: 480px) { .filters > .in, .filters > select.in, .filters > input[type=search] { flex: 1 1 100%; } }

/* FNP wordmark (owner 12 Nov 10:55: option 1) - Unbounded, white-to-blue on green, teal-to-blue on light */
.wm { font-family: 'Unbounded', 'Montserrat', sans-serif; font-weight: 800; letter-spacing: .04em; line-height: .95;
  background: linear-gradient(90deg, #ffffff 0%, #d1fae5 45%, #7dd3fc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wm.on-light { background-image: linear-gradient(90deg, #0f766e 0%, #0e7490 50%, #1f6fc5 100%); }
:root[data-theme="dark"] .wm.on-light { background-image: linear-gradient(90deg, #5eead4, #7dd3fc); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wm.on-light { background-image: linear-gradient(90deg, #5eead4, #7dd3fc); } }
.brand .wm { font-size: 1.35rem; display: block; }
/* login card head, option A: the brain as tall as the name block beside it */
.auth-head.a { display: flex; align-items: center; gap: 18px; text-align: left; padding: 22px 24px; }
.auth-head.a img { width: 92px; height: 92px; margin: 0; flex: none; }
.auth-head.a .t { font-size: 2.6rem; letter-spacing: .04em; }
.auth-head.a .s { font-size: .86rem; line-height: 1.3; margin-top: 8px; letter-spacing: .01em; }
@media (max-width: 380px) { .auth-head.a img { width: 78px; height: 78px; } .auth-head.a .t { font-size: 2.2rem; } }

/* Recharge window */
.rc-now { display: flex; gap: 6px; flex-wrap: wrap; }
.rc-group { --c: var(--brand); display: grid; gap: 8px; }
.rc-pack { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.rc-pack:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--line)); }
.rc-pack b { display: block; } .rc-pack small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.rc-pack .rc-tick { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.rc-pack .rc-tick svg { width: 15px; height: 15px; }
.rc-pack.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--surface)); }
.rc-pack.on .rc-tick { background: var(--c); border-color: var(--c); color: #fff; }
.rc-price { text-align: right; font-weight: 800; white-space: nowrap; } .rc-price small { font-weight: 600; }
.rc-foot { position: sticky; bottom: -22px; margin: 0 -22px -22px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.rc-foot b { font-size: 1.25rem; } .rc-foot small { color: var(--muted); font-weight: 600; }
.rc-foot .btn.big { width: auto; }
.btn.disabled { opacity: .5; }
.vlist.blue button.on { background: color-mix(in srgb, var(--btn) 9%, var(--surface)); border-color: var(--btn); }
.vlist.blue .vn { background: color-mix(in srgb, var(--btn) 14%, transparent); color: var(--btn); }
.vlist.blue button.on .vn { background: var(--btn); color: #fff; } .vlist.blue svg { color: var(--btn); }

/* ===== Mobile audit (owner 13 Nov 23:13): phones and iPads, Android and iOS - patterns from CNP's Manage Users ===== */
/* Owner header: avatar + text; buttons on their own row on a phone, never on top of the email or phone */
.owner-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-bottom: 16px; }
.oh-txt { min-width: 0; display: grid; gap: 6px; }
.oh-txt h2 { margin: 0; overflow-wrap: anywhere; }
.oh-meta { display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; }
.oh-meta span { overflow-wrap: anywhere; min-width: 0; }
.oh-meta span + span::before { content: "·"; margin-right: 8px; }
.oh-acts { display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) {
  .owner-head { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .owner-head .avatar.xl { width: 54px; height: 54px; font-size: 1.1rem; align-self: start; }
  .oh-acts { grid-column: 1 / -1; } .oh-acts .btn.primary { flex: 1; justify-content: center; }
  .oh-meta { flex-direction: column; } .oh-meta span + span::before { content: none; }   /* company, email and phone each on its own line */
}
/* Pills never stick out of their card: long ones (Trial ends on ...) wrap on a phone */
.chips-row { min-width: 0; } .chips-row .pill { max-width: 100%; }
@media (max-width: 699px) { .pill { white-space: normal; text-align: left; } }
/* Owners on phones and iPads: the list OR one Owner (the Owner page no longer stays under the list after "All Owners") */
@media (max-width: 1100px) {
  .split:not(.picked) > :nth-child(2) { display: none; }
  .owners-page.picked > .phead { display: none; }
}
/* Tabs on a phone: every tab visible in rows (no tab hidden off the edge, no half icon) */
@media (max-width: 699px) {
  .tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); overflow: visible; }
  .tabs button { justify-content: center; padding: 9px 6px; }
}
/* Card titles with a pill (Access level and keys): the pill moves under the title instead of squeezing it */
.card-h { flex-wrap: wrap; } .card-h h3 { min-width: min(150px, 100%); }
/* Key cards: on a small phone the Copy button moves under the key instead of covering it */
.kc-top { flex-wrap: wrap; align-items: flex-start; row-gap: 10px; }
.kc-top > :first-child { flex: 1 1 auto; min-width: min(100%, 232px) !important; }   /* the key keeps its room; Copy goes under it when the card is narrow */
/* Fingers and thumbs: buttons at least 36 px on touch screens (Android, iPhone, iPad) */
@media (pointer: coarse), (max-width: 1100px) {
  .btn.sm { min-height: 36px; min-width: 36px; justify-content: center; }
  .chip { min-height: 34px; display: inline-flex; align-items: center; }
  .switch { min-height: 36px; }
}
/* Recharge on a small phone: the total above, the Send button full width under it */
@media (max-width: 400px) { .rc-foot { flex-wrap: wrap; } .rc-foot .btn.big { flex: 1 1 100%; justify-content: center; } }
/* iPhone Safari: "vh" counts the hidden toolbar, so windows and menus were cut off at the bottom - use the visible height where known */
.modal { max-height: 92dvh; } .sheet { max-height: 86dvh; } .dropdown { max-height: calc(100dvh - 90px); }
.shell { min-height: 100dvh; } .side { height: 100dvh; }
@media (max-width: 699px) { .modal { max-height: 92dvh; } }
/* windows scroll on their own - the page behind does not move (iOS and Android) */
.modal, .sheet, .who-list, .dropdown { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* taps: no grey flash, no double-tap zoom delay on buttons */
* { -webkit-tap-highlight-color: transparent; }
button, .btn, .chip, a, label, select, .who-item, .tabbar button { touch-action: manipulation; }
/* while a window is open the page behind it does not scroll (iPhone Safari moved the page under a bottom window) */
html:has(.modal-bg), html:has(.sheet-bg) { overflow: hidden; }
/* iPad landscape and small laptops: wide tables keep each value on one line and scroll sideways inside their card */
@media (min-width: 901px) and (max-width: 1280px) {
  .tbl-wrap .tbl td[data-l], .tbl-wrap .tbl th { white-space: nowrap; }
  .tbl-wrap .tbl td:first-child { min-width: 150px; }
}
/* window titles: a long title wraps, the close button stays at the top right (it used to drop to a line of its own) */
.modal-h { flex-wrap: nowrap; align-items: flex-start; } .modal-h h2 { flex: 1; min-width: 0; overflow-wrap: anywhere; } .modal-h > .btn { flex: none; margin-top: -2px; }
/* iPad: the Owner tabs wrap onto a second line instead of running off the right edge */
@media (min-width: 700px) and (max-width: 1100px) { .tabs { flex-wrap: wrap; overflow: visible; } }
/* phones: the Account and Need Help menus stop above the bottom bar */
@media (max-width: 699px) { .dropdown { max-height: calc(100vh - 180px); max-height: calc(100dvh - 170px - env(safe-area-inset-bottom)); } }

/* GO-303: Set your own password (after a password from the admin side) */
.ownpw-top { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ownpw-top h2 { margin: 0; }
/* GO-305: My profile - fixed fields shown, not editable */
.fixed-val { padding: 11px 13px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line); font-weight: 700; overflow-wrap: anywhere; }
.fixed-note { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.fixed-note p { margin: 0; flex: 1 1 240px; }
/* Requests cards on phones (GO-307 check): the buttons go under the person, the text keeps its width */
.req-row { flex-wrap: wrap; gap: 12px; }
.req-who { flex: 1 1 300px; }
.req-who > div { min-width: 0; overflow-wrap: anywhere; }
.req-acts { gap: 8px; flex-wrap: wrap; }
@media (max-width: 700px) { .req-acts { width: 100%; } .req-acts > * { flex: 1 1 auto; justify-content: center; } }
/* GO-309: antivirus tip on Downloads */
.av-tip { align-items: flex-start; text-align: left; line-height: 1.45; }
.av-tip > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.av-tip > div > div { font-weight: 500; } .av-tip > div > div b { font-weight: 800; }
/* panel 1.8.34 (owner 15 Nov, iPad portrait): Downloads cards one under the other on tablets and phones; the video button wraps */
@media (max-width: 1100px) { .dl-grid { grid-template-columns: minmax(0, 1fr); } }
.dl-watch { white-space: normal; max-width: 100%; height: auto; min-height: 34px; text-align: left; line-height: 1.25; }
