/* JobBell — single stylesheet, no build step */
:root {
  --brand: #108a00;
  --brand-600: #0d7400;
  --brand-50: #ecf8e9;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --line-2: #f1f5f9;
  --bg: #f5f7f6;
  --card: #ffffff;
  --danger: #dc2626;
  --danger-50: #fef2f2;
  --warn: #b45309;
  --warn-50: #fffbeb;
  --info: #1d4ed8;
  --info-50: #eff6ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container-sm { max-width: 460px; margin: 0 auto; padding: 0 16px; }
.container-md { max-width: 820px; margin: 0 auto; padding: 0 16px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1.05rem; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 .92rem/1.2 var(--font); cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #cbd5e1; background: #fafafa; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: var(--danger-50); }
.btn-sm { padding: .4rem .7rem; font-size: .83rem; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.active { color: #d97706; }
svg.i { width: 18px; height: 18px; flex: none; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 1.25rem; }
.card-head { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card + .card { margin-top: 1rem; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label, .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--ink-2); }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=date], .field input[type=search], .field select, .field textarea {
  width: 100%; padding: .65rem .8rem; border: 1px solid #d1d5db; border-radius: var(--radius-sm); background: #fff; font: 400 .95rem var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(16, 138, 0, .15); }
.field .help { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.field .error, .error-text { font-size: .83rem; color: var(--danger); margin-top: .3rem; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { margin-top: .2rem; width: 16px; height: 16px; accent-color: var(--brand); }
.otp-input { letter-spacing: .6em; font-size: 1.5rem !important; text-align: center; font-weight: 700; }
input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; }
input[type=range] { width: 100%; accent-color: var(--brand); }

.switch { position: relative; display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 40px; height: 22px; background: #cbd5e1; border-radius: 999px; position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(16, 138, 0, .25); }

/* ---------- Alerts / badges ---------- */
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid; font-size: .92rem; margin-bottom: 1rem; display: flex; gap: .6rem; align-items: flex-start; }
.alert-success { background: var(--brand-50); border-color: #bfe5b7; color: #14532d; }
.alert-error { background: var(--danger-50); border-color: #fecaca; color: #991b1b; }
.alert-warn { background: var(--warn-50); border-color: #fde68a; color: #92400e; }
.alert-info { background: var(--info-50); border-color: #bfdbfe; color: #1e3a8a; }
.alert .grow { flex: 1; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge-green { background: var(--brand-50); color: #166534; }
.badge-red { background: var(--danger-50); color: #b91c1c; }
.badge-amber { background: var(--warn-50); color: #92400e; }
.badge-blue { background: var(--info-50); color: #1e40af; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- Top bar ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.topbar .container { display: flex; align-items: center; gap: 1rem; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; text-decoration: none !important; }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.nav { display: flex; gap: .25rem; margin-left: 1rem; }
.nav a { padding: .45rem .75rem; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .92rem; text-decoration: none; }
.nav a:hover { background: var(--line-2); }
.nav a.active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.topbar .spacer { flex: 1; }
.access-pill { font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; text-decoration: none !important; }
.access-pill.trial { background: var(--info-50); color: #1e40af; }
.access-pill.active, .access-pill.admin { background: var(--brand-50); color: #166534; }
.access-pill.expired, .access-pill.suspended { background: var(--danger-50); color: #b91c1c; }
.menu { position: relative; }
.menu-btn { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; cursor: pointer; padding: .3rem; border-radius: 999px; font: inherit; color: var(--ink); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 200px; padding: .35rem; display: none; }
.menu.open .menu-list { display: block; }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: .55rem .75rem; border-radius: 7px; color: var(--ink); font: 500 .9rem var(--font); background: none; border: 0; cursor: pointer; text-decoration: none; }
.menu-list a:hover, .menu-list button:hover { background: var(--line-2); }
.menu-list .sep { height: 1px; background: var(--line); margin: .3rem 0; }
.mobile-nav { display: none; }
@media (max-width: 820px) {
  .nav { display: none; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 40; justify-content: space-around; padding: .35rem 0 calc(.35rem + env(safe-area-inset-bottom)); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; font-size: .72rem; color: var(--muted); padding: .2rem .6rem; text-decoration: none; }
  .mobile-nav a.active { color: var(--brand); font-weight: 600; }
  body.has-mobile-nav { padding-bottom: 64px; }
  .access-pill { display: none; }
}

.page { padding: 1.5rem 0 3rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }

/* ---------- Jobs board ---------- */
.board { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.board > * { min-width: 0; }
.sidebar { position: sticky; top: 76px; }
.side-list { list-style: none; margin: 0; padding: .4rem; }
.side-list a { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: 8px; color: var(--ink-2); font-size: .9rem; font-weight: 500; text-decoration: none; }
.side-list a:hover { background: var(--line-2); }
.side-list a.active { background: var(--brand-50); color: var(--brand-600); font-weight: 600; }
.side-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list .count { font-size: .75rem; font-weight: 700; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 .45rem; min-width: 22px; text-align: center; line-height: 1.5; }
.side-list .count:empty, .side-list .count[data-n="0"] { display: none; }
.side-title { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .8rem 1rem .2rem; }
@media (max-width: 900px) {
  .board { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar .card { overflow-x: auto; display: flex; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .side-list { display: flex; gap: .25rem; white-space: nowrap; }
  .side-list li { flex: none; }
  .side-title { display: none; }
}

.toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar form { flex: 1; min-width: 220px; }
.live { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); font-weight: 500; }
.live .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); position: relative; }
.live .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: pulse 2s infinite; }
.live.off .pulse { background: #94a3b8; } .live.off .pulse::after { display: none; }
.live.err .pulse { background: var(--danger); } .live.err .pulse::after { border-color: var(--danger); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.job { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .75rem; box-shadow: var(--shadow); position: relative; transition: border-color .2s, box-shadow .2s; }
.job:hover { border-color: #cbd5e1; }
.job.unread { border-left: 4px solid var(--brand); padding-left: calc(1.1rem - 3px); }
.job.is-new { animation: flash 2.4s ease-out; }
@keyframes flash { 0% { background: #e3f6de; transform: translateY(-6px); opacity: 0; } 15% { opacity: 1; transform: none; } 100% { background: #fff; } }
.job-top { display: flex; gap: .75rem; align-items: flex-start; }
.job-title { font-size: 1.02rem; font-weight: 650; color: var(--ink); line-height: 1.35; flex: 1; min-width: 0; }
.job-title a { color: inherit; }
.job-title a:hover { color: var(--brand); text-decoration: none; }
.job.read .job-title { color: var(--ink-2); font-weight: 550; }
.job-actions { display: flex; gap: .15rem; margin: -.3rem -.4rem 0 0; }
.job-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .45rem 0 .5rem; font-size: .84rem; color: var(--muted); }
.job-meta strong { color: var(--ink-2); font-weight: 600; }
.job-desc { font-size: .9rem; color: var(--ink-2); margin: 0 0 .6rem; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-desc.open { -webkit-line-clamp: unset; }
.skills { display: flex; flex-wrap: wrap; gap: .35rem; }
.skill { font-size: .76rem; background: var(--line-2); color: var(--ink-2); padding: .15rem .55rem; border-radius: 999px; }
.cat-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .76rem; font-weight: 600; }
.job-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }

.new-pill { position: sticky; top: 72px; z-index: 30; display: flex; justify-content: center; margin-bottom: .5rem; }
.new-pill button { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: .5rem 1rem; font: 600 .85rem var(--font); cursor: pointer; box-shadow: var(--shadow-lg); }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty svg { width: 44px; height: 44px; color: #cbd5e1; margin-bottom: .5rem; }
.empty h3 { color: var(--ink); }

.banner { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; flex-wrap: wrap; }
.banner .grow { flex: 1; min-width: 220px; }
.banner-expired { background: #fff1f2; border: 1px solid #fecdd3; }
.banner-sound { background: #fffbeb; border: 1px solid #fde68a; }
.banner-setup { background: var(--info-50); border: 1px solid #bfdbfe; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: .5rem; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; border-radius: 10px; padding: .75rem .9rem; box-shadow: var(--shadow-lg); font-size: .88rem; display: flex; gap: .6rem; align-items: flex-start; animation: toastIn .25s ease-out; cursor: pointer; }
.toast .t-title { font-weight: 600; }
.toast .t-sub { opacity: .75; font-size: .8rem; }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 820px) { .toasts { bottom: 76px; } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: #fafbfa; white-space: nowrap; }
.table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fcfdfc; }

/* ---------- Stats ---------- */
.stat { padding: 1.1rem 1.25rem; }
.stat .label { font-size: .8rem; color: var(--muted); font-weight: 600; margin: 0; }
.stat .value { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; margin-top: .2rem; }
.stat .sub { font-size: .8rem; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.bars .bar span { display: block; width: 100%; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.bars .bar small { font-size: .65rem; color: var(--muted); white-space: nowrap; }
.bars .bar em { font-style: normal; font-size: .68rem; color: var(--ink-2); font-weight: 600; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .65rem 1rem; color: var(--muted); font-weight: 600; font-size: .92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a.active { color: var(--brand-600); border-color: var(--brand); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 60px); display: flex; align-items: center; padding: 2rem 0; }
.auth-card { padding: 1.75rem; }
.auth-card h1 { font-size: 1.4rem; }
.steps { display: flex; gap: .4rem; margin-bottom: 1.25rem; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps span.on { background: var(--brand); }
.divider { text-align: center; color: var(--muted); font-size: .85rem; margin: 1.25rem 0; }

/* ---------- Landing ---------- */
.hero { padding: 4.5rem 0 3.5rem; text-align: center; background: radial-gradient(1200px 400px at 50% -10%, #dff3da 0%, transparent 70%); }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -.03em; max-width: 760px; margin: 0 auto 1rem; }
.hero p.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 620px; margin: 0 auto 1.75rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--brand-600); background: var(--brand-50); padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.section { padding: 3.5rem 0; }
.section h2 { font-size: 1.7rem; text-align: center; margin-bottom: .5rem; }
.section .sub { text-align: center; color: var(--muted); margin-bottom: 2rem; }
.feature { padding: 1.3rem; }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: .8rem; }
.feature .ic svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.how { counter-reset: how; }
.how .step { padding: 1.3rem; position: relative; }
.how .step::before { counter-increment: how; content: counter(how); width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: .75rem; font-size: .9rem; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.plan { padding: 1.4rem; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand); }
.plan .ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; white-space: nowrap; }
.plan .name { font-weight: 700; }
.plan .price { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: .4rem 0 0; }
.plan .per { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .88rem; color: var(--ink-2); flex: 1; }
.plan li { padding: .25rem 0 .25rem 1.4rem; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

.footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: var(--muted); font-size: .85rem; background: #fff; }

/* ---------- Setup ---------- */
.copy-box { display: flex; align-items: center; gap: .5rem; background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: .75rem .9rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95rem; word-break: break-all; }
.copy-box .val { flex: 1; }
.copy-box .btn { background: #fff; color: var(--ink); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: .7rem; padding: .55rem 0; align-items: flex-start; }
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1; flex: none; display: grid; place-items: center; font-size: .75rem; color: #fff; }
.checklist li.done .tick { background: var(--brand); border-color: var(--brand); }
ol.guide { padding-left: 1.2rem; margin: 0; }
ol.guide li { margin-bottom: .6rem; }
kbd { background: var(--line-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: .05rem .35rem; font-size: .82em; font-family: inherit; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: #0f172a; color: #cbd5e1; padding: 1rem .75rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .logo { color: #fff; padding: .25rem .5rem 1rem; }
.admin-side a.item { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 8px; color: #cbd5e1; font-size: .9rem; font-weight: 500; text-decoration: none; }
.admin-side a.item:hover { background: #1e293b; color: #fff; }
.admin-side a.item.active { background: var(--brand); color: #fff; }
.admin-side .group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: 1rem .7rem .35rem; font-weight: 700; }
.admin-main { min-width: 0; }
.admin-top { background: #fff; border-bottom: 1px solid var(--line); height: 60px; display: flex; align-items: center; padding: 0 1.5rem; gap: 1rem; position: sticky; top: 0; z-index: 30; }
.admin-content { padding: 1.5rem; max-width: 1200px; }
.admin-toggle { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; bottom: 0; width: 250px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .admin.nav-open .admin-side { transform: none; }
  .admin-toggle { display: inline-flex; }
  .admin-content { padding: 1rem; }
}
.kv { display: grid; grid-template-columns: 160px 1fr; gap: .5rem 1rem; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
pre.raw { background: #0f172a; color: #e2e8f0; padding: 1rem; border-radius: 10px; overflow: auto; max-height: 420px; font-size: .8rem; white-space: pre-wrap; word-break: break-word; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: .3rem; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 .6rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .88rem; text-decoration: none; }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pagination .disabled { opacity: .45; }

/* ---------- Invoice ---------- */
.invoice { max-width: 760px; margin: 2rem auto; background: #fff; padding: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
.invoice table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.invoice th, .invoice td { padding: .6rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.invoice .total td { font-weight: 800; font-size: 1.1rem; border-bottom: 0; }
@media print { .no-print { display: none !important; } body { background: #fff; } .invoice { border: 0; margin: 0; } }
.grid > .card, .plans > .card { margin-top: 0; }
