/* Starboard Tasks — brand: #1b75bb */
:root {
  --blue: #1b75bb;
  --blue-dark: #135a91;
  --blue-tint: #e8f2fa;
  --blue-soft: #f2f8fd;
  --ink: #0e2236;
  --ink-2: #3d4f61;
  --muted: #5b6b7b;
  --line: #e2e8f0;
  --line-2: #cfd9e4;
  --bg: #f4f7fb;
  --card: #ffffff;
  --orange: #c2570c;
  --orange-ink: #9a4309;
  --orange-tint: #fdf0e6;
  --red: #b42318;
  --red-tint: #fdecea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 34, 54, .06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1 { font-size: 26px; font-weight: 800; margin: 2px 0 0; line-height: 1.2; }
h2 { font-size: 17px; font-weight: 800; margin: 0 0 12px; }
small { font-size: 12px; }
.ic { flex: none; }
[hidden] { display: none !important; }
.sr, .sr-file { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #7fbbe6; outline-offset: 2px; }

/* utilities */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.b { font-weight: 700; }
.block { display: block; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 14px; }
.grow { flex: 1; min-width: 0; }
.c-blue { color: var(--blue); }
.c-orange { color: var(--orange); }
.c-red { color: var(--red); }
.w-auto { width: auto !important; max-width: 100%; }
.w-half { max-width: 360px; }
.w-34 { width: 34%; }
.row-gap { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.inline { display: inline; }
.pre { white-space: pre-line; margin: 0; color: var(--ink-2); }
.narrow { max-width: 720px; }
.span-2 { grid-column: 1 / -1; }
.align-start { align-items: start; }

/* ---------- Shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 252px; flex: none; background: var(--ink); color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark { width: 42px; height: 42px; border-radius: 11px; background: #fff; display: flex; align-items: center; justify-content: center; }
.brand-name { font-weight: 800; font-size: 17px; line-height: 1.2; }
.nav-list { display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #c9d6e3; text-decoration: none; font-weight: 500; }
.nav-link:hover { background: #16314b; color: #fff; }
.nav-link.is-active { background: var(--blue); color: #fff; font-weight: 700; }
.nav-count { margin-left: auto; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.sidebar-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid #1f3a55; }
.sidebar-user .who { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.sidebar-user small { color: #c9d6e3; }
.sidebar .icon-btn { color: #c9d6e3; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.main { padding: 28px 36px 60px; display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1360px; }
.scrim { display: none; }
.bottom-nav { display: none; }

.avatar { width: 38px; height: 38px; border-radius: 99px; background: var(--blue-tint); color: var(--blue-dark); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sidebar .avatar { background: var(--blue); color: #fff; }
.avatar.sm { width: 34px; height: 34px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; background: #fff; color: var(--blue); }

.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn.ghost { border: 0; background: transparent; }
.dot-count { position: absolute; top: 5px; right: 5px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 1px 5px; line-height: 1.3; }

/* ---------- Page parts ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.card-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.split { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.grow-2 { flex: 2 1 520px; min-width: 0; }
.grow-1 { flex: 1 1 300px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
[data-live] { display: flex; flex-direction: column; gap: 20px; }
.person b { white-space: nowrap; }
.empty { color: var(--muted); padding: 18px 4px; }
.empty.big { padding: 36px 22px; text-align: center; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi-num { font-size: 32px; font-weight: 800; line-height: 1.1; }
.tint-blue { background: var(--blue-tint); border-color: transparent; color: var(--blue-dark); }
.tint-orange { background: var(--orange-tint); border-color: transparent; color: var(--orange-ink); }
.tint-red { background: var(--red-tint); border-color: transparent; color: var(--red); }
.tint-blue .kpi-label, .tint-orange .kpi-label, .tint-red .kpi-label { color: inherit; }

.bar { height: 8px; background: var(--blue-tint); border-radius: 99px; overflow: hidden; flex: 1; min-width: 60px; }
.bar span { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .3s; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.table th { text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 8px; font-weight: 700; }
.table td { padding: 12px 8px; border-top: 1px solid #eef2f6; vertical-align: middle; }
.table tr.is-muted td { opacity: .55; }
.person { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.person span:last-child { display: flex; flex-direction: column; }
.person small { color: var(--muted); }

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.pill-blue { background: var(--blue-tint); color: var(--blue-dark); }
.pill-orange { background: var(--orange-tint); color: var(--orange-ink); }
.pill-red { background: var(--red-tint); color: var(--red); }
.pill-solid { background: var(--blue); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--bg); color: var(--ink-2); vertical-align: middle; }
.badge-high { background: var(--orange-tint); color: var(--orange-ink); }
.badge-urgent { background: var(--red-tint); color: var(--red); }
.role { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.role-admin { background: var(--ink); color: #fff; }
.role-manager { background: var(--blue); color: #fff; }
.role-staff { background: var(--blue-tint); color: var(--blue-dark); }

.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef2f6; font-size: 14px; }
.dot { width: 10px; height: 10px; border-radius: 99px; margin-top: 6px; flex: none; }
.dot-blue { background: var(--blue); }
.dot-orange { background: var(--orange); }
.live-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #eef2f6; flex-wrap: wrap; }
.mini-list { list-style: none; margin: 10px 0 0; padding: 0; }
.mini-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.mini-list a { color: var(--ink-2); text-decoration: none; }
.box-sm { width: 16px; height: 16px; border-radius: 5px; border: 2px solid #9fb6cb; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.box-sm.is-done { background: var(--blue); border-color: var(--blue); }
.box-sm.is-missed { border-color: var(--orange); }
.staff-card { display: flex; flex-direction: column; gap: 12px; }
.staff-head { display: flex; align-items: center; gap: 10px; }

/* ---------- Forms ---------- */
label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 700; }
.label, legend { font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 10px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
input, select, textarea { font: inherit; font-weight: 500; color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; height: 46px; background: #fff; width: 100%; }
textarea { padding: 12px 14px; height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 3px solid var(--blue-tint); }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; accent-color: var(--blue); padding: 0; flex: none; }
.big-input { font-size: 18px; font-weight: 700; }
.code-input { font-size: 22px; letter-spacing: .3em; text-align: center; font-weight: 700; }
.select-sm { height: 36px; padding: 0 8px; font-size: 13px; width: auto; }
.check-row { flex-direction: row; align-items: center; gap: 10px; padding-top: 30px; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 16px 18px; }
.filters label { min-width: 160px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; border: 0; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-light:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--blue-dark); border: 2px solid var(--blue); }
.btn-danger-outline { background: #fff; color: var(--red); border: 1.5px solid #f3c7c2; }
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 54px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 8px 6px; font: inherit; font-weight: 700; font-size: 13px; color: var(--blue); cursor: pointer; text-decoration: none; }

.seg { display: inline-flex; gap: 6px; background: var(--bg); padding: 5px; border-radius: 12px; flex-wrap: wrap; width: fit-content; }
.seg label { flex-direction: row; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 9px; color: var(--muted); cursor: pointer; font-weight: 700; }
.seg input:checked + span { background: var(--blue); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid #7fbbe6; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { flex-direction: row; font-weight: 700; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip > span { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: #fff; color: var(--muted); cursor: pointer; font-size: 14px; }
.chip-round > span { border-radius: 99px; }
.chip .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: transparent; font-style: normal; }
.chip input:checked + span { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-dark); }
.chip input:checked + span .box { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid #7fbbe6; }

.role-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.role-cards legend { width: 100%; }
.role-card { flex-direction: row; }
.role-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role-card > span { display: flex; flex-direction: column; gap: 3px; min-width: 220px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-2); cursor: pointer; }
.role-card small { color: var(--muted); font-weight: 500; }
.role-card input:checked + span { border: 2px solid var(--blue); background: var(--blue-tint); }
.role-card.is-disabled > span { border-style: dashed; background: var(--bg); opacity: .6; cursor: not-allowed; }

.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-item { flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer; }
.check-item:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid #eef2f6; flex-direction: row; font-weight: 500; }
.switch-row > span { display: flex; flex-direction: column; }
.switch-row small { color: var(--muted); font-weight: 500; }
.card > .switch-row:first-of-type, h2 + .switch-row { border-top: 0; }
.switch-details summary { list-style: none; cursor: pointer; }
.switch-details summary::-webkit-details-marker { display: none; }
.switch-details summary .ic { transform: rotate(180deg); color: var(--muted); }
.switch-details[open] summary .ic { transform: rotate(-90deg); }
.pad-b { padding-bottom: 16px; }

.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-family: ui-monospace, monospace; font-size: 13px; }
.invite-card { border: 2px solid var(--blue); }
.steps, .ticks { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-2); }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--blue-tint); color: var(--blue-dark); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.qr { width: 220px; max-width: 100%; }
.qr svg { width: 100%; height: auto; display: block; }

.flash { padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.flash-ok { background: var(--blue-tint); color: var(--blue-dark); }
.flash-err { background: var(--red-tint); color: var(--red); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(14, 34, 54, .25); }

/* ---------- Staff screens ---------- */
.hero { background: var(--blue); color: #fff; border-radius: 22px; padding: 22px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.hero-date { color: #d6e8f6; font-size: 14px; }
.hero-progress { background: var(--blue-dark); border-radius: 16px; padding: 14px 16px; min-width: 260px; flex: 1; max-width: 440px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.bar-hero { background: #2c86cc; }
.bar-hero span { background: #fff; }
.task-group { display: flex; flex-direction: column; gap: 10px; }
.task-group h2 { margin: 6px 0 0; font-size: 16px; }
.task-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid #cfe1f1; border-radius: 16px; padding: 10px 14px; min-height: 70px; box-shadow: var(--shadow); }
.task-card .check { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #9fb6cb; background: #fff; color: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }
.task-card .check:hover { border-color: var(--blue); }
.task-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-decoration: none; padding: 4px 0; }
.task-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.task-meta { font-size: 12.5px; color: var(--muted); }
.task-card.is-done { border-color: var(--line); box-shadow: none; }
.task-card.is-done .check { background: var(--blue); border-color: var(--blue); color: #fff; }
.task-card.is-done .task-title { color: var(--muted); text-decoration: line-through; }

.task-h1 { margin: 12px 0 16px; font-size: 24px; }
.facts { margin-bottom: 16px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.fact small { color: var(--muted); font-weight: 600; }
.block-sec { margin: 18px 0; }
.upload-box { border: 2px dashed #9fb6cb; border-radius: 14px; background: var(--bg); min-height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--blue-dark); cursor: pointer; font-weight: 700; }
.upload-box.is-busy { opacity: .6; }
.proof { max-width: 100%; max-height: 360px; border-radius: 12px; display: block; margin-bottom: 10px; }

.week-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); }
.wk-track { width: 100%; height: 80px; background: var(--blue-tint); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.wk-track span { width: 100%; background: var(--blue); border-radius: 8px; }
.wk-track span.is-today { background: #7fbbe6; }
.day-card { padding: 16px 18px; }

.group-label { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 10px 0 8px; }
.alert-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); margin-bottom: 8px; font-size: 14px; }
.alert-card.is-unread { border: 1.5px solid #cfe1f1; }
.alert-card .block { color: var(--ink-2); margin: 2px 0; }
.alert-ic { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.ic-blue { background: var(--blue); }
.ic-orange { background: var(--orange); }
.ic-red { background: var(--red); }
.ic-dark { background: var(--ink-2); }
.unread-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--blue); flex: none; margin-top: 6px; }

.profile-hero { background: var(--blue); color: #fff; border-radius: 22px; padding: 22px; display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.profile-hero div div { color: #d6e8f6; font-size: 14px; }
.list-card { padding: 6px 18px; margin-bottom: 14px; }
.list-card .group-label { margin-top: 14px; }

/* ---------- Auth ---------- */
.bare { background: #fff; }
.auth { min-height: 100vh; display: flex; flex-direction: column; }
.auth-hero { background: var(--blue); min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-radius: 0 0 36px 36px; padding: 40px 20px; }
.auth-logo { width: 96px; height: 96px; border-radius: 24px; background: #fff; display: flex; align-items: center; justify-content: center; }
.auth-name { color: #fff; font-size: 24px; font-weight: 800; }
.auth-card { width: 100%; max-width: 420px; margin: 0 auto; padding: 28px 22px 40px; display: flex; flex-direction: column; gap: 16px; }
.auth-card h1 { font-size: 22px; }
.auth-card p { margin: -8px 0 0; }

/* ---------- Phones & small tablets ---------- */
@media (max-width: 900px) {
  body { font-size: 15px; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; transform: translateX(-105%); transition: transform .2s; height: 100%; box-shadow: 8px 0 30px rgba(0, 0, 0, .2); }
  .menu-open .sidebar { transform: none; }
  .menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(14, 34, 54, .45); z-index: 40; }
  .topbar { display: flex; align-items: center; gap: 6px; position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 10px; padding-top: max(8px, env(safe-area-inset-top)); }
  .topbar-title { flex: 1; font-weight: 800; font-size: 18px; }
  .topbar-logo { display: inline-flex; padding: 0 8px; }
  .topbar .bell { border: 0; }
  .main { padding: 16px 16px 96px; gap: 16px; }
  .page-head h1 { font-size: 22px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi { padding: 14px; }
  .kpi-num { font-size: 26px; }
  .card { padding: 16px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .check-row { padding-top: 0; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); justify-content: space-around; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 10px; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; position: relative; cursor: pointer; }
  .bottom-nav .is-active { color: var(--blue); font-weight: 800; }
  .bottom-nav .dot-count { top: 4px; right: calc(50% - 22px); }
  .toast { bottom: 88px; }
  .sticky-cta { position: sticky; bottom: 76px; background: linear-gradient(transparent, var(--bg) 30%); padding-top: 12px; }
  .hero { border-radius: 0 0 24px 24px; margin: -16px -16px 0; padding: 20px 18px 22px; }
  .hero-progress { max-width: none; }
  .profile-hero { border-radius: 0 0 24px 24px; margin: -16px -16px 14px; }
  .head-actions .btn { height: 42px; padding: 0 14px; }
  .table.compact { min-width: 0; }
  .hide-sm { display: none; }
  [data-live] { gap: 16px; }
  .role-card > span { min-width: 0; }
  .role-cards { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .kpis-3 .kpi-num { font-size: 22px; }
  .chip > span { padding: 0 10px; }
}
