/* Sulvara Invoicing — mobile-first styles, Sulvara brand kit:
   navy #081B33, teal #18C4A5, ice #EFFFFF, coral #F5604F · Outfit (headings) + Inter (text).
   Each company's own colours and logo go on its PDFs; the app itself always uses this kit. */
:root {
  --navy: #081B33; --navy-2: #12294A; --navy-3: #2A4468; --teal: #18C4A5; --teal-d: #0E7F6B; --teal-bg: #D8F5EE; --coral: #F5604F; --ice: #EFFFFF;
  --accent: #0E7F6B;
  --ink: #081B33; --body: #2A3B52; --muted: #4A5D75; --line: #E4EBF2; --bg: #F3F6F9; --card: #FFFFFF;
  --ok: #047857; --ok-bg: #ECFDF5; --warn: #B45309; --warn-bg: #FFFBEB; --bad: #A3301F; --bad-bg: #FDE3E0; --info: #1D4ED8; --info-bg: #EFF6FF;
  --radius: 16px; --head: "Outfit", "Inter", system-ui, sans-serif; --shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 14px rgba(15,23,42,.05);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --nav-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; color: var(--body); background: var(--bg); line-height: 1.5; overscroll-behavior-y: contain; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.25; font-family: var(--head); font-weight: 600; }
h1 { font-size: 1.5rem; font-weight: 700; } h2 { font-size: 1.05rem; } h3 { font-size: .95rem; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.mark { width: 34px; height: 34px; flex: 0 0 34px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.small { font-size: .82rem; }
.right { text-align: right; }

/* ---------- Sign-in & no access ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; padding: 64px 24px 32px; background: var(--navy); color: #fff; }
.auth-in { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 18px; }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.auth-brand .mark { width: 72px; height: 72px; flex-basis: 72px; }
.auth-word { font-family: var(--head); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.auth-sub { font-size: .68rem; letter-spacing: .16em; color: var(--teal); font-weight: 600; margin-top: 6px; }
.auth-h { color: #fff; font-size: 1.4rem; margin: 0; }
.auth-lead { color: #DCE6F0; font-size: 1rem; margin: 0; line-height: 1.55; }
.auth-lead strong { color: #fff; }
.auth .field label { color: #DCE6F0; }
.auth-foot { text-align: center; color: #B8C7D9; font-size: .82rem; margin: 0; }
.auth a { color: var(--teal); }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font: inherit; font-weight: 600; font-size: 1rem; min-height: 54px; padding: 12px 16px; border-radius: 14px; border: 0; background: #fff; color: var(--navy); cursor: pointer; margin-top: 8px; }
.gbtn:hover { background: #F3F6F9; }
.auth-or { display: flex; align-items: center; gap: 12px; color: #B8C7D9; font-size: .82rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--navy-3); }
.auth-form { background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: 16px; padding: 16px; }
.auth-h2 { color: #fff; font-size: 1.05rem; margin: 0 0 10px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 12px 0 0; font-size: .85rem; color: #B8C7D9; }
.okmsg { background: rgba(24,196,165,.14); border: 1px solid rgba(24,196,165,.5); color: #DFFBF5; border-radius: 12px; padding: 12px 14px; font-size: .9rem; line-height: 1.45; }
.gbtn svg { width: 20px; height: 20px; }
.invite { display: flex; gap: 12px; align-items: flex-start; background: var(--navy-2); border-radius: 14px; padding: 14px; font-size: .84rem; color: #DCE6F0; line-height: 1.5; }
.invite svg { color: var(--teal); flex: 0 0 20px; }
.note { background: var(--navy-2); border: 1px solid var(--navy-3); color: #DCE6F0; border-radius: 14px; padding: 12px 14px; font-size: .85rem; }
.note code { color: var(--teal); }
.auth .error { margin: 0; }
.auth .small.muted { color: #B8C7D9; }
.auth .small.muted strong { color: #fff; }
.auth form { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Shell ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 16px 10px; background: var(--navy); color: #fff; min-height: 60px; }
.topbar .t-logo { height: 34px; max-width: 96px; background: #fff; border-radius: 8px; padding: 3px 6px; display: inline-flex; align-items: center; }
.topbar .t-logo img { max-height: 28px; max-width: 84px; object-fit: contain; }
.topbar .t-co { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: var(--navy-2); border: 1px solid var(--navy-3); color: #fff; border-radius: 22px; min-height: 40px; padding: 0 12px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; text-align: left; }
.topbar .t-co[disabled] { cursor: default; background: transparent; border-color: transparent; padding-left: 2px; opacity: 1; }
.topbar .t-co svg { color: var(--teal); flex: 0 0 16px; }
.topbar .t-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; color: #fff; }
.topbar > .t-name { font-family: var(--head); font-size: 1.1rem; }
.topbar .t-back { display: inline-flex; align-items: center; color: #fff; text-decoration: none; padding: 4px; margin-left: -6px; min-width: 32px; min-height: 40px; }
.topbar .chip { background: var(--navy-2); color: #DCE6F0; }
.chip { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: #F1F5F9; color: #475569; text-decoration: none; }
.chip.trial { background: var(--info-bg); color: var(--info); } .chip.active { background: var(--ok-bg); color: var(--ok); }
.chip.expired, .chip.trial_ended, .chip.suspended { background: var(--bad-bg); color: var(--bad); }
.topbar .chip.trial { background: #1E3A8A; color: #fff; } .topbar .chip.expired, .topbar .chip.trial_ended, .topbar .chip.suspended { background: var(--coral); color: var(--navy); }
.main { padding: 16px 16px calc(var(--nav-h) + var(--safe-b) + 28px); max-width: 760px; margin: 0 auto; }

.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: var(--nav-h); color: var(--muted); text-decoration: none; font-size: .7rem; font-weight: 600; }
.bottomnav a svg { width: 22px; height: 22px; }
.bottomnav a.active { color: var(--teal-d); }
.bottomnav a.active svg { color: var(--teal-d); }
@media (min-width: 900px) {
  .bottomnav { top: 56px; bottom: 0; right: auto; width: 96px; grid-template-columns: 1fr; grid-auto-rows: 76px; align-content: start; border-top: 0; border-right: 1px solid var(--line); }
  .bottomnav a { height: 76px; }
  .main { padding-left: 120px; padding-bottom: 48px; max-width: 900px; }
}

.fab { position: fixed; right: 18px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 25; width: 56px; height: 56px; border-radius: 18px; background: var(--teal); color: var(--navy); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(15,23,42,.25); text-decoration: none; border: 0; cursor: pointer; }
.fab svg { width: 26px; height: 26px; }
@media (min-width: 900px) { .fab { bottom: 28px; right: 28px; } }

/* ---------- Banners ---------- */
.banner { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: .88rem; display: flex; gap: 10px; align-items: flex-start; }
.banner.info { background: var(--info-bg); color: #1E3A8A; }
.banner.bad { background: var(--bad-bg); color: #7F1D1D; border: 1px solid #FECACA; }
.banner.warn { background: var(--warn-bg); color: #78350F; }
.banner strong { display: block; }

/* ---------- Cards & lists ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card > h2:first-child { margin-bottom: 12px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 20px 2px 8px; }
.section-title h2 { margin: 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); min-width: 0; }
.stat .k { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat .v { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-top: 2px; overflow-wrap: anywhere; }
.stat .s { font-size: .76rem; color: var(--muted); }
.stat .v { font-family: var(--head); }
.stat.accent { background: var(--navy); border-color: var(--navy); } .stat.accent .k { color: #B8C7D9; } .stat.accent .v { color: #fff; } .stat.accent .s { color: var(--teal); }
.hello { margin: 0; color: var(--muted); font-size: .9rem; }
.co-title { margin: 0 0 14px; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.quick a { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 8px; text-align: center; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .8rem; box-shadow: var(--shadow); }
.quick a svg { display: block; margin: 0 auto 6px; width: 24px; height: 24px; color: var(--teal-d); }

.list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid #F1F5F9; text-decoration: none; color: inherit; }
.row:last-child { border-bottom: 0; }
.row:active { background: #F8FAFC; }
.row .main-col { flex: 1; min-width: 0; }
.row .t1 { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t2 { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .amt { text-align: right; white-space: nowrap; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.row .amt .badge { margin-top: 3px; }
.row .avatar, .who .avatar { width: 38px; height: 38px; border-radius: 19px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .8rem; flex: 0 0 38px; }
.rowbtn { width: 100%; border: 0; border-bottom: 1px solid #F1F5F9; background: none; font: inherit; text-align: left; cursor: pointer; }
.row .kit-logo { width: 52px; height: 38px; flex: 0 0 52px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.row .kit-logo img { max-width: 46px; max-height: 32px; object-fit: contain; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty svg { width: 40px; height: 40px; color: #CBD5E1; display: block; margin: 0 auto 8px; }
.search { margin-bottom: 10px; display: flex; gap: 8px; }
.seg { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; padding-bottom: 2px; scrollbar-width: none; }
.seg button { font: inherit; font-size: .8rem; font-weight: 600; border: 1px solid #CBD5E1; background: #fff; color: var(--muted); border-radius: 99px; padding: 6px 12px; white-space: nowrap; cursor: pointer; }
.seg button.on { background: var(--navy); border-color: var(--navy); color: #fff; }

.badge { display: inline-block; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.b-paid { background: var(--teal-bg); color: #0B6B5A; } .b-partial { background: var(--info-bg); color: var(--info); }
.b-unpaid { background: #F1F5F9; color: #475569; } .b-overdue { background: var(--warn-bg); color: var(--warn); } .b-void { background: var(--bad-bg); color: var(--bad); }
.b-overdue { background: var(--bad-bg); color: var(--bad); }
.b-type { background: #F1F5F9; color: #334155; font-family: var(--mono); font-size: .66rem; }
.b-auto, .b-open { background: var(--teal-bg); color: #0B6B5A; }
.b-lock { background: var(--navy); color: #fff; display: inline-flex; align-items: center; gap: 4px; }
.b-lock svg { color: var(--teal); }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field label, .lbl { display: block; font-weight: 600; font-size: .82rem; color: var(--ink); margin-bottom: 5px; }
input, select, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #CBD5E1; border-radius: 10px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-d); box-shadow: 0 0 0 3px rgba(24,196,165,.25); }
input[readonly], textarea[readonly] { background: #F3F6F9; color: var(--body); }
input[type=color] { padding: 4px; height: 44px; width: 64px; }
input[type=checkbox] { width: auto; }
textarea { min-height: 84px; resize: vertical; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.grid2 > *, .item-nums > * { min-width: 0; }
input[type=date] { min-width: 0; display: block; }
.grid2 > .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 12px; }
.check input { margin-top: 4px; }
.row.kc { cursor: pointer; }
.row.kc input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: var(--teal); }
#kit-restrict .check { margin-bottom: 0; }
.error { background: var(--bad-bg); color: var(--bad); border: 1px solid #FECACA; border-radius: 10px; padding: 9px 12px; margin-bottom: 14px; font-size: .88rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: .92rem; padding: 11px 16px; min-height: 44px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2; }
.btn-primary { background: var(--teal); color: var(--navy); } .btn-primary:hover { filter: brightness(.95); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: #CBD5E1; }
.btn-danger { background: #fff; color: var(--bad); border-color: #FECACA; }
.btn-sm { padding: 7px 11px; font-size: .82rem; min-height: 36px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row.stack > .btn { flex: 1 1 140px; }
.actionbar { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); display: flex; gap: 8px; padding: 10px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 20px rgba(15,23,42,.12); margin-top: 12px; z-index: 10; }
.actionbar .btn { flex: 1; }
@media (min-width: 900px) { .actionbar { bottom: 16px; } }
.icon-btn { background: none; border: 0; padding: 8px; cursor: pointer; color: var(--muted); border-radius: 8px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: #F1F5F9; color: var(--ink); }

/* Line items as cards (fits phones) */
.item { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: #FCFDFE; }
.item .item-top { display: flex; gap: 6px; align-items: flex-start; }
.item .item-top textarea, .item .item-top input { flex: 1; min-height: 44px; }
.item .item-nums { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 8px; margin-top: 8px; align-items: end; }
.item .item-nums .lbl { font-size: .72rem; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.item .amt-out { font-weight: 700; color: var(--ink); text-align: right; padding: 10px 2px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.totals { font-size: .92rem; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.totals .grand { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.toggle { display: flex; border: 1px solid #CBD5E1; border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.toggle button { flex: 1; font: inherit; font-size: .85rem; font-weight: 600; border: 0; background: #fff; padding: 9px 8px; cursor: pointer; color: var(--muted); }
.toggle button.on { background: var(--navy); color: #fff; }

dl.details { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; font-size: .9rem; }
dl.details dt { color: var(--muted); } dl.details dd { margin: 0; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }

/* Settings */
.menu { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 14px; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 14px; border: 0; border-bottom: 1px solid #F1F5F9; background: none; font: inherit; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.menu a:last-child, .menu button:last-child { border-bottom: 0; }
.menu svg { width: 20px; height: 20px; color: var(--muted); flex: 0 0 20px; }
.menu .grow { flex: 1; } .menu .sub { display: block; font-size: .78rem; color: var(--muted); }
.logo-box { display: flex; align-items: center; gap: 14px; }
.logo-prev { width: 120px; height: 64px; border: 1px dashed #CBD5E1; border-radius: 10px; display: grid; place-items: center; background: #fff; overflow: hidden; color: var(--muted); font-size: .75rem; text-align: center; }
.logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #CBD5E1; cursor: pointer; }
.swatches button.on { box-shadow: 0 0 0 2px var(--ink); }
.colour-custom { display: flex; gap: 12px; align-items: flex-end; margin-top: 14px; }
.colour-custom .wheel { position: relative; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); box-shadow: 0 0 0 1px #CBD5E1; }
.colour-custom .wheel input { position: absolute; inset: 12px; width: 24px; height: 24px; padding: 0; border: 2px solid #fff; border-radius: 50%; cursor: pointer; -webkit-appearance: none; appearance: none; background: none; }
.colour-custom .wheel input::-webkit-color-swatch-wrapper { padding: 0; }
.colour-custom .wheel input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.colour-custom .wheel input::-moz-color-swatch { border: 0; border-radius: 50%; }
#k-hex { font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
#k-hex.bad { border-color: #F5604F; }

/* Modal (bottom sheet on phones) */
.sheet-bg { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
@media (min-width: 640px) { .sheet-bg { align-items: center; padding: 16px; } .sheet { border-radius: 16px; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet-foot { display: flex; gap: 8px; margin-top: 6px; } .sheet-foot .btn { flex: 1; }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 18px); transform: translateX(-50%); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 80; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-weight: 500; max-width: calc(100vw - 32px); }
.toast.err { background: var(--bad); }
.loading { padding: 48px 16px; text-align: center; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid #E2E8F0; border-top-color: var(--teal-d); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 8px; border-bottom: 1px solid #F1F5F9; vertical-align: top; }
.scroll-x { overflow-x: auto; }

/* Shared numbering */
.numbox { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid #CDEFE7; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.numbox .k { font-size: .78rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.numbox .n { font-family: var(--head); font-weight: 700; font-size: 1.45rem; color: var(--ink); letter-spacing: .02em; }
.numbox .h { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.card .numbox { border-color: #CDEFE7; background: #F7FDFB; }

/* More menu, brand kit, admin */
.who { display: flex; gap: 14px; align-items: center; }
.who img { height: 44px; max-width: 120px; object-fit: contain; }
.who strong { color: var(--ink); font-family: var(--head); font-size: 1.05rem; }
.menu-h { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin: 18px 4px 6px; font-family: var(--font); }
.menu .badge { margin-right: 4px; }
.lockbar { display: flex; gap: 12px; align-items: center; background: var(--navy); color: #DCE6F0; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: .85rem; }
.lockbar svg { color: var(--teal); flex: 0 0 18px; }
.lockbar strong { display: block; color: #fff; }
.kit-head { display: flex; gap: 14px; align-items: center; }
.kit-head .field { margin-bottom: 8px; }
.kit-name { display: block; font-family: var(--head); font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; }
.sw-ro { width: 36px; height: 36px; border-radius: 10px; display: inline-block; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--navy); border-radius: 14px; margin-bottom: 14px; }
.tabs a { min-height: 40px; display: grid; place-items: center; border-radius: 10px; color: #DCE6F0; text-decoration: none; font-size: .8rem; font-weight: 500; text-align: center; padding: 0 4px; }
.tabs a.on { background: #fff; color: var(--navy); font-weight: 600; }

/* ---------- Intro tutorial ---------- */
.intro { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--navy); color: #fff; padding: calc(16px + var(--safe-t, 0px)) 0 24px; }
.intro-top { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.intro-top .mark { width: 40px; height: 40px; }
.intro-skip { background: none; border: 0; color: #B8C7D9; font: inherit; font-weight: 600; padding: 10px; cursor: pointer; }
.intro-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.intro-track::-webkit-scrollbar { display: none; }
.intro-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 28px 0; box-sizing: border-box; }
.intro-shot { width: min(62vw, 250px); aspect-ratio: 480 / 696; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.45); border: 6px solid var(--navy-2); }
.intro-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.intro-step { margin-top: 22px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.intro-h { color: #fff; font-size: 1.5rem; margin: 8px 0 8px; }
.intro-p { color: #DCE6F0; margin: 0; line-height: 1.55; max-width: 360px; }
.intro-foot { padding: 16px 24px 0; display: flex; flex-direction: column; gap: 14px; max-width: 440px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.intro-dots { display: flex; justify-content: center; gap: 8px; }
.intro-dots span { width: 8px; height: 8px; border-radius: 99px; background: var(--navy-3); transition: width .2s; }
.intro-dots span.on { width: 22px; background: var(--teal); }
