/* OceanBrown Survey design system
   Navy/charcoal structure, electric-blue accent, light-grey working surfaces. */
:root {
  --navy-950: #06131d; --navy-900: #0b1324; --navy-800: #111c33; --navy-700: #1a2742; --navy-600: #26365a;
  --blue-600: #1e6bff; --blue-500: #3d82ff; --blue-400: #6aa1ff; --blue-50: #eef4ff;
  --grey-0: #ffffff; --grey-25: #fafbfc; --grey-50: #f4f6f9; --grey-100: #eceff4; --grey-200: #dde2ea; --grey-300: #c5ccd8;
  --grey-500: #6b7487; --grey-600: #4b5466; --grey-800: #1f2533; --ink: #0f1626;
  --ok: #0f9d6b; --ok-bg: #e7f7f0; --warn: #b7791f; --warn-bg: #fdf5e6; --bad: #d93a3a; --bad-bg: #fdecec; --info-bg: #eef4ff;
  --sev-low: #3aa776; --sev-moderate: #e3a008; --sev-high: #f0661f; --sev-critical: #d92d4b;
  --accent: var(--blue-600);
  --radius: 10px; --radius-sm: 6px; --shadow: 0 1px 2px rgba(15,22,38,.06), 0 4px 16px rgba(15,22,38,.06);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--grey-50); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 700; } h2 { font-size: 1.25rem; font-weight: 650; } h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 .8em; }
.muted { color: var(--grey-500); } .small { font-size: .86rem; } .mono { font-family: var(--mono); font-size: .9em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }
.hidden { display: none !important; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .62em 1.05em; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .93rem; cursor: pointer; background: var(--accent); color: #fff; transition: background .15s, box-shadow .15s; min-height: 40px; text-decoration: none !important; white-space: nowrap; }
.btn:hover { background: var(--blue-500); } .btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--grey-800); border-color: var(--grey-200); } .btn.secondary:hover { background: var(--grey-50); }
.btn.ghost { background: transparent; color: var(--grey-600); } .btn.ghost:hover { background: var(--grey-100); }
.btn.danger { background: var(--bad); } .btn.danger:hover { background: #c12f2f; }
.btn.sm { padding: .35em .7em; min-height: 32px; font-size: .84rem; } .btn.lg { padding: .85em 1.3em; min-height: 50px; font-size: 1rem; }
.btn.block { width: 100%; }
label.field, .field { display: block; margin-bottom: 1rem; }
.field > span, .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--grey-800); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=time], input[type=datetime-local], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: .62em .75em; border: 1px solid var(--grey-300); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); min-height: 42px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30,107,255,.16); outline: none; }
.hint { font-size: .82rem; color: var(--grey-500); margin-top: .3rem; }
.error-text { color: var(--bad); font-size: .85rem; margin-top: .35rem; font-weight: 500; }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; } .row > .grow { flex: 1; }
.grid { display: grid; gap: 1rem; } .grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.checkbox { display: flex; gap: .55rem; align-items: flex-start; margin: .35rem 0; cursor: pointer; } .checkbox input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy-900); color: #c7d2e8; padding: 1.1rem .8rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: .6rem; padding: .2rem .5rem 1.1rem; color: #fff; font-weight: 700; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--blue-600), #00c2ff); display: grid; place-items: center; color: #fff; font-size: .9rem; font-weight: 800; }
.brand small { display: block; color: #7e8db0; font-weight: 500; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.nav a { display: flex; gap: .6rem; align-items: center; color: #c7d2e8; padding: .55rem .7rem; border-radius: 8px; font-weight: 500; font-size: .93rem; text-decoration: none; }
.nav a:hover { background: var(--navy-800); color: #fff; } .nav a.active { background: var(--navy-700); color: #fff; box-shadow: inset 3px 0 0 var(--blue-500); }
.nav .section { color: #6f7ea3; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding: 1rem .7rem .35rem; }
.sidebar .foot { margin-top: auto; border-top: 1px solid var(--navy-700); padding-top: .8rem; font-size: .84rem; }
.sidebar .foot .who { color: #fff; font-weight: 600; } .sidebar .foot button { color: #9fb3d9; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.6rem; background: #fff; border-bottom: 1px solid var(--grey-200); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 1.15rem; margin: 0; } .topbar .spacer { flex: 1; }
.content { padding: 1.5rem 1.6rem 3rem; max-width: 1720px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .shell.nav-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(7,13,26,.45); }
  .menu-toggle { display: inline-flex; } .content { padding: 1rem; } .topbar { padding: .7rem 1rem; }
}

/* ---------- surfaces ---------- */
.card { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; } .card h2 { font-size: 1.05rem; } .card .card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; } .card .card-head h2 { margin: 0; flex: 1; }
.stat { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1rem 1.1rem; position: relative; overflow: hidden; }
.stat .v { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; } .stat .l { color: var(--grey-500); font-size: .82rem; font-weight: 500; }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.stats { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 1.2rem; }
.badge { display: inline-flex; align-items: center; gap: .3em; padding: .15em .55em; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--grey-100); color: var(--grey-600); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.info { background: var(--blue-50); color: var(--blue-600); }
.badge.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--info-bg); border: 1px solid #d5e3ff; margin-bottom: 1rem; font-size: .92rem; }
.alert.warn { background: var(--warn-bg); border-color: #f4dfb5; } .alert.bad { background: var(--bad-bg); border-color: #f6caca; } .alert.ok { background: var(--ok-bg); border-color: #bfe9d6; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--grey-500); } .empty h3 { color: var(--grey-800); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--grey-200); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-weight: 600; color: var(--grey-600); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: .65rem .8rem; background: var(--grey-25); border-bottom: 1px solid var(--grey-200); white-space: nowrap; }
table.data td { padding: .65rem .8rem; border-bottom: 1px solid var(--grey-100); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; } table.data tr.clickable { cursor: pointer; } table.data tr.clickable:hover td { background: var(--blue-50); }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.toolbar select, .toolbar input { width: auto; min-width: 150px; }
.pager { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; margin-top: .8rem; }

/* ---------- modal & toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(7,13,26,.55); display: grid; place-items: center; z-index: 100; padding: 1rem; }
.modal { background: #fff; border-radius: 12px; width: min(620px, 100%); max-height: 90vh; overflow: auto; padding: 1.4rem; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { width: min(980px, 100%); } .modal .actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.2rem; }
.toasts { position: fixed; bottom: 1rem; right: 1rem; z-index: 200; display: flex; flex-direction: column; gap: .5rem; max-width: calc(100vw - 2rem); }
.toast { background: var(--navy-900); color: #fff; padding: .75rem 1rem; border-radius: 8px; box-shadow: var(--shadow); font-size: .9rem; max-width: 380px; }
.toast.bad { background: #a52222; } .toast.ok { background: #0c7a54; }

/* ---------- tabs, lists ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--grey-200); margin-bottom: 1rem; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: .65rem .9rem; font: inherit; font-weight: 600; color: var(--grey-500); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.kv.compact { grid-template-columns: 120px 1fr; font-size: .88rem; } .kv.compact dd { min-width: 0; }
.detail-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); align-items: start; } @media (max-width: 1000px) { .detail-layout { grid-template-columns: 1fr; } }
body:has(.v-tabs) .toasts { bottom: 5.2rem; left: 1rem; }
.kv { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: .45rem 1rem; font-size: .92rem; } .kv dt { color: var(--grey-500); } .kv dd { margin: 0; word-break: break-word; }
.list-item { display: flex; gap: .9rem; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid var(--grey-100); } .list-item:last-child { border-bottom: 0; }

/* ---------- charts ---------- */
.chart-bars .bar-row { display: grid; grid-template-columns: minmax(120px, 38%) 1fr 64px; gap: .6rem; align-items: center; font-size: .86rem; margin: .3rem 0; }
.chart-bars .track { background: var(--grey-100); border-radius: 4px; height: 14px; overflow: hidden; } .chart-bars .fill { background: var(--accent); height: 100%; border-radius: 4px; }
.chart-bars .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--grey-600); }
svg.spark { width: 100%; height: 160px; display: block; }

/* ---------- map ---------- */
.map { position: relative; overflow: hidden; background: #dfe7ef; border-radius: var(--radius); border: 1px solid var(--grey-200); touch-action: none; user-select: none; height: 560px; }
.map .tiles img { position: absolute; width: 256px; height: 256px; image-rendering: auto; pointer-events: none; }
.map .marker { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); cursor: pointer; padding: 0; }
.map .cluster { position: absolute; transform: translate(-50%, -50%); background: var(--navy-800); color: #fff; border: 3px solid rgba(255,255,255,.85); border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35); padding: 0; }
.map .controls { position: absolute; top: .6rem; right: .6rem; display: flex; flex-direction: column; gap: .3rem; z-index: 5; }
.map .controls button { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--grey-300); background: #fff; font-size: 1.1rem; cursor: pointer; }
.map .attrib { position: absolute; right: 0; bottom: 0; background: rgba(255,255,255,.85); font-size: .7rem; padding: .1rem .4rem; z-index: 5; }
.map .accuracy { position: absolute; border-radius: 50%; background: rgba(30,107,255,.14); border: 1px solid rgba(30,107,255,.5); transform: translate(-50%, -50%); pointer-events: none; }
.map-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1rem; } @media (max-width: 1100px) { .map-layout { grid-template-columns: 1fr; } }
.legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .82rem; } .legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: .35rem; }

/* ---------- builder ---------- */
.builder { display: grid; grid-template-columns: 230px 1fr 340px; gap: 1rem; align-items: start; }
@media (max-width: 1200px) { .builder { grid-template-columns: 1fr; } }
.palette button { display: flex; width: 100%; text-align: left; gap: .5rem; padding: .5rem .65rem; margin-bottom: .3rem; border: 1px dashed var(--grey-300); border-radius: 6px; background: #fff; cursor: grab; font: inherit; font-size: .88rem; }
.palette button:hover { border-color: var(--accent); background: var(--blue-50); }
.b-section { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); margin-bottom: 1rem; }
.b-section > header { display: flex; gap: .5rem; align-items: center; padding: .7rem .9rem; border-bottom: 1px solid var(--grey-100); background: var(--grey-25); border-radius: var(--radius) var(--radius) 0 0; }
.b-section > header input { font-weight: 650; border-color: transparent; background: transparent; }
.b-section > header input:hover, .b-section > header input:focus { border-color: var(--grey-300); background: #fff; }
.b-questions { padding: .6rem; min-height: 54px; }
.b-q { display: flex; gap: .6rem; align-items: center; padding: .6rem .7rem; border: 1px solid var(--grey-200); border-radius: 8px; background: #fff; margin-bottom: .45rem; cursor: pointer; }
.b-q:hover { border-color: var(--blue-400); } .b-q.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(30,107,255,.18); }
.b-q .grip { cursor: grab; color: var(--grey-300); font-size: 1.1rem; user-select: none; } .b-q .q-label { flex: 1; min-width: 0; } .b-q .q-label b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-q.dragging { opacity: .4; } .drop-hint { height: 4px; background: var(--accent); border-radius: 2px; margin: .2rem 0; }
.inspector { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.opt-row { display: flex; gap: .4rem; align-items: center; margin-bottom: .35rem; } .opt-row input[type=text] { min-height: 36px; padding: .4em .6em; }

/* ---------- survey form (volunteer & public) ---------- */
.form-shell { max-width: 720px; margin: 0 auto; padding: 1rem; }
.form-header { background: var(--navy-900); color: #fff; padding: 1.4rem 1.2rem 1.2rem; border-radius: 0 0 14px 14px; margin: -1rem -1rem 1rem; position: relative; overflow: hidden; }
.form-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); }
.form-header .org { color: #9fb3d9; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.form-header h1 { font-size: 1.35rem; margin: .3rem 0 0; }
.progress { height: 6px; background: var(--grey-200); border-radius: 3px; overflow: hidden; margin: .8rem 0 1rem; } .progress > div { height: 100%; background: var(--accent); transition: width .25s; }
.q-card { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1.05rem; margin-bottom: .8rem; }
.q-card.has-error { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(217,58,58,.08); }
.q-card .q-title { font-weight: 650; margin-bottom: .2rem; } .q-card .req { color: var(--bad); margin-left: .2rem; }
.q-card .q-desc { color: var(--grey-600); font-size: .9rem; margin-bottom: .6rem; white-space: pre-wrap; }
.choice { display: flex; gap: .65rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--grey-200); border-radius: 8px; margin: .4rem 0; cursor: pointer; min-height: 48px; background: #fff; }
.choice:hover { border-color: var(--blue-400); } .choice input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; } .choice.checked { border-color: var(--accent); background: var(--blue-50); }
.scale { display: flex; gap: .4rem; flex-wrap: wrap; } .scale button { flex: 1; min-width: 44px; min-height: 48px; border: 1px solid var(--grey-300); background: #fff; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.scale button.on { background: var(--accent); color: #fff; border-color: var(--accent); } .scale-labels { display: flex; justify-content: space-between; font-size: .8rem; color: var(--grey-500); margin-top: .3rem; }
.gps-box { border: 1px dashed var(--grey-300); border-radius: 8px; padding: .9rem; background: var(--grey-25); }
.gps-box .coords { font-family: var(--mono); font-size: .95rem; margin: .4rem 0; } .gps-mini-map { height: 180px; margin-top: .6rem; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .55rem; margin-top: .6rem; }
.photo { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--grey-200); background: var(--grey-100); aspect-ratio: 1; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; } .photo .rm { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(7,13,26,.75); color: #fff; cursor: pointer; }
.photo input { position: absolute; left: 0; right: 0; bottom: 0; border: 0; border-radius: 0; min-height: 30px; font-size: .75rem; padding: .25rem .4rem; background: rgba(255,255,255,.92); }
.form-nav { display: flex; gap: .6rem; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--grey-50) 30%); padding: 1rem 0 .6rem; }
.form-nav .btn { flex: 1; }
.success { text-align: center; padding: 2rem 1rem; } .success .ref { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; background: var(--blue-50); color: var(--blue-600); padding: .4rem .9rem; border-radius: 8px; display: inline-block; margin: .6rem 0; letter-spacing: .03em; }
.success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 1rem; font-size: 2rem; }

/* ---------- volunteer app ---------- */
.v-top { background: var(--navy-900); color: #fff; padding: .8rem 1rem; display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 30; }
.v-top .title { flex: 1; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net { font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: var(--ok); color: #fff; } .net.offline { background: var(--warn); }
.v-tabs { display: flex; background: #fff; border-top: 1px solid var(--grey-200); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.v-tabs a { flex: 1; text-align: center; padding: .55rem .2rem .6rem; color: var(--grey-500); font-size: .78rem; font-weight: 600; text-decoration: none; position: relative; }
.v-tabs a.active { color: var(--accent); } .v-tabs a .ico { display: block; font-size: 1.2rem; line-height: 1.2; }
.v-tabs a .count { position: absolute; top: 4px; left: 55%; background: var(--bad); color: #fff; border-radius: 999px; font-size: .68rem; padding: 0 .35rem; }
.v-main { padding: 1rem 1rem 6rem; max-width: 760px; margin: 0 auto; }
.task { display: block; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1rem; margin-bottom: .7rem; color: inherit; text-decoration: none !important; }
.task:hover { border-color: var(--blue-400); } .task .k { font-size: .75rem; text-transform: uppercase; color: var(--grey-500); font-weight: 700; letter-spacing: .05em; }
.sync-state { display: inline-flex; gap: .3rem; align-items: center; font-size: .78rem; font-weight: 600; }

/* ---------- auth pages ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .panel { background: radial-gradient(1200px 600px at -10% 120%, #13306b 0%, transparent 60%), var(--navy-900); color: #dbe5fb; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth .panel h1 { color: #fff; font-size: 2.2rem; max-width: 18ch; } .auth .panel .lead { color: #a9b8d9; max-width: 46ch; font-size: 1.05rem; }
.auth .panel ul { list-style: none; padding: 0; color: #c7d2e8; } .auth .panel li { padding: .35rem 0; } .auth .panel li::before { content: "▸"; color: var(--blue-400); margin-right: .55rem; }
.auth .formside { display: grid; place-items: center; padding: 2rem 1rem; } .auth .box { width: min(400px, 100%); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 100vh; } .auth .panel { padding: 1rem 1.25rem; flex-direction: row; align-items: center; gap: 1rem; } .auth .panel > div, .auth .panel ul { display: none; } .auth .panel > p { margin: 0 0 0 auto; } .auth .formside { place-items: start center; padding: 1.5rem 1rem 2rem; } }
.otp { font-family: var(--mono); font-size: 1.5rem; letter-spacing: .4em; text-align: center; }
.qr-box { background: #fff; padding: .6rem; border: 1px solid var(--grey-200); border-radius: 8px; display: inline-block; }
.qr-box svg { display: block; width: 200px; height: 200px; }
@media print { .sidebar, .topbar, .btn, .toolbar { display: none !important; } .shell { display: block; } body { background: #fff; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* =====================================================================
   Public site (homepage, directory, account pages)
   ===================================================================== */
.site { background: #fff; color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; } .site > main { flex: 1 0 auto; } .site > .site-header, .site > .site-footer { flex-shrink: 0; }
.site-wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--grey-100); }
.site-header .site-wrap { display: flex; align-items: center; gap: 1.2rem; min-height: 68px; }
.site-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none !important; color: var(--navy-900); }
.site-brand img { height: 34px; width: auto; display: block; }
.wordmark { font-weight: 800; letter-spacing: -.02em; font-size: 1.12rem; line-height: 1; white-space: nowrap; }
.wordmark .o { color: var(--blue-600); } .wordmark .b { color: #0f2a6b; } .wordmark .s { color: var(--grey-600); font-weight: 600; margin-left: .25rem; }
.wordmark.light .b { color: #fff; } .wordmark.light .o { color: var(--blue-400); } .wordmark.light .s { color: #9fb3d9; }
.site-nav { display: flex; gap: .2rem; margin-left: auto; align-items: center; }
.site-nav a { color: var(--grey-800); font-weight: 600; font-size: .93rem; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; }
.site-nav a:hover { background: var(--grey-50); }
.site-nav .btn { margin-left: .3rem; }
.site-menu { display: none; margin-left: auto; }
@media (max-width: 980px) {
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: .6rem 1rem 1rem; border-bottom: 1px solid var(--grey-200); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; } .site-nav .btn { margin: .3rem 0 0; } .site-menu { display: inline-flex; }
}
.hero { background: radial-gradient(900px 500px at 85% -10%, rgba(30,107,255,.16), transparent 60%), radial-gradient(700px 400px at -10% 110%, rgba(0,194,255,.10), transparent 60%), linear-gradient(180deg, #f7f9fd, #fff); padding: 4.5rem 0 3.5rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); background: var(--blue-50); border: 1px solid #d5e3ff; padding: .35rem .75rem; border-radius: 999px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; margin: 1rem 0 1rem; color: var(--navy-950); font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue-600), #00a6e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: var(--grey-600); max-width: 36rem; }
.hero .ctas { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.6rem 0 1rem; }
.hero .assure { display: flex; gap: 1.2rem; flex-wrap: wrap; color: var(--grey-600); font-size: .88rem; } .hero .assure span::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: .4rem; }
.device-stack { position: relative; margin-bottom: 44px; }
.browser { border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(11,19,36,.18), 0 0 0 1px rgba(11,19,36,.06); overflow: hidden; }
.browser .bar { height: 30px; background: var(--grey-50); border-bottom: 1px solid var(--grey-200); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--grey-300); display: block; } .browser .bar .url { margin-left: 10px; font-size: .72rem; color: var(--grey-500); background: #fff; border: 1px solid var(--grey-200); border-radius: 6px; padding: 2px 10px; }
.browser img { display: block; width: 100%; height: auto; }
.phone { position: absolute; right: -18px; bottom: -44px; width: 158px; border-radius: 26px; background: var(--navy-950); padding: 8px; box-shadow: 0 30px 60px rgba(11,19,36,.35); }
.phone img { display: block; width: 100%; height: auto; border-radius: 19px; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .phone { width: 150px; right: 4px; bottom: -20px; } .device-stack { min-height: 0; margin-bottom: 1.5rem; } }
.section { padding: 4.5rem 0; } .section.alt { background: var(--grey-50); } .section.dark { background: var(--navy-900); color: #dbe5fb; }
.section-head { max-width: 46rem; margin: 0 auto 2.6rem; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.025em; color: var(--navy-950); } .section.dark .section-head h2 { color: #fff; }
.section-head p { color: var(--grey-600); font-size: 1.05rem; } .section.dark .section-head p { color: #a9b8d9; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1rem; }
.feature { background: #fff; border: 1px solid var(--grey-200); border-radius: 14px; padding: 1.3rem; transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: var(--blue-50); margin-bottom: .8rem; }
.feature h3 { font-size: 1.02rem; margin-bottom: .35rem; } .feature p { color: var(--grey-600); font-size: .93rem; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.2rem 1rem 1rem; background: #fff; border-radius: 14px; border: 1px solid var(--grey-200); }
.step::before { counter-increment: step; content: counter(step); width: 34px; height: 34px; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: .7rem; }
.step h3 { font-size: .98rem; margin-bottom: .25rem; } .step p { font-size: .88rem; color: var(--grey-600); margin: 0; }
.audiences { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.audience { display: flex; gap: 1rem; padding: 1.2rem; border-radius: 14px; background: #fff; border: 1px solid var(--grey-200); }
.audience .ico { font-size: 1.6rem; } .audience h3 { font-size: 1rem; margin-bottom: .25rem; } .audience p { margin: 0; color: var(--grey-600); font-size: .92rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; } @media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -.02em; }
.checks { list-style: none; padding: 0; margin: 1rem 0; } .checks li { padding: .4rem 0 .4rem 1.8rem; position: relative; color: var(--grey-800); }
.checks li::before { content: ""; position: absolute; left: 0; top: .62rem; width: 18px; height: 18px; border-radius: 50%; background: var(--blue-50); box-shadow: inset 0 0 0 2px var(--blue-600); }
.section.dark .checks li { color: #dbe5fb; } .section.dark .checks li::before { background: transparent; box-shadow: inset 0 0 0 2px var(--blue-400); }
.phones { display: flex; gap: 1rem; justify-content: center; } .phones .phone { position: static; width: 210px; } .phones .phone:nth-child(2) { transform: translateY(28px); }
.mapart { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); background: #0f1b33; }
.mapart svg { display: block; width: 100%; height: auto; }
.cta-band { background: linear-gradient(120deg, var(--navy-900), #12306e); color: #fff; border-radius: 20px; padding: 2.6rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; font-size: clamp(1.4rem, 2.6vw, 2rem); } .cta-band p { margin: 0; color: #b8c6e6; }
.site-footer { background: var(--navy-950); color: #9fb3d9; padding: 2.8rem 0 2rem; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; } @media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; } .site-footer a { color: #c7d2e8; display: block; padding: .2rem 0; }
.site-footer .company { background: #fff; display: inline-block; border-radius: 10px; padding: .5rem .8rem; margin-bottom: .8rem; } .site-footer .company img { height: 38px; display: block; }
.dir-hero { background: linear-gradient(180deg, #f4f7fd, #fff); padding: 3rem 0 1.5rem; }
.dir-search { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; } .dir-search input { flex: 1 1 280px; min-height: 48px; font-size: 1rem; } .dir-search select { flex: 0 1 200px; min-height: 48px; }
.survey-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin: 1.5rem 0 4rem; }
.survey-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--grey-200); border-radius: 14px; padding: 1.2rem; color: inherit; text-decoration: none !important; transition: box-shadow .15s, border-color .15s; }
.survey-card:hover { border-color: var(--blue-400); box-shadow: var(--shadow); } .survey-card h3 { font-size: 1.05rem; margin: .5rem 0 .4rem; } .survey-card p { color: var(--grey-600); font-size: .92rem; flex: 1; }
.survey-card .meta { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .8rem; color: var(--grey-500); margin-top: .6rem; }
.pw-wrap { position: relative; } .pw-wrap input { padding-right: 3.6rem; } .pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--blue-600); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: .4rem; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.choice-card { display: block; border: 2px solid var(--grey-200); border-radius: 12px; padding: .9rem; cursor: pointer; background: #fff; } .choice-card input { position: absolute; opacity: 0; }
.choice-card.on { border-color: var(--accent); background: var(--blue-50); } .choice-card b { display: block; margin: .3rem 0 .15rem; } .choice-card span { font-size: .82rem; color: var(--grey-600); }
.auth .panel .brand img { height: 30px; }

/* =====================================================================
   Large screens (laptops 1440px+ and desktop monitors 1920px+)
   ===================================================================== */
.stats.s8, .stats.s4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats.s9 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .stats.s8 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stats.s9 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .stats.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1440px) { .stats.s8 { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1800px) { .stats.s9 { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.form-page { max-width: 980px; }
.dev-hint { margin-top: 1.2rem; border: 1px dashed var(--grey-300); border-radius: 10px; padding: .6rem .9rem; font-size: .85rem; background: var(--grey-50); }
.dev-hint summary { cursor: pointer; font-weight: 600; color: var(--grey-700, #374151); }
.dev-hint ul { margin: .4rem 0 .6rem 1.1rem; padding: 0; } .dev-hint p { margin: .5rem 0; color: var(--grey-600); }
.dev-hint code { font-size: .8rem; background: #fff; border: 1px solid var(--grey-200); border-radius: 4px; padding: 0 .25rem; }
@media (min-width: 1440px) {
  .site-wrap { max-width: 1320px; padding: 0 2rem; }
  .hero { padding: 5.5rem 0 4.5rem; }
  .hero-grid { gap: 4rem; grid-template-columns: 1fr 1.1fr; }
  .hero p.lead { font-size: 1.22rem; }
  .phone { width: 190px; right: -28px; }
  .section { padding: 5.5rem 0; }
  .auth .panel { padding: 3.5rem max(3rem, 6vw); } .auth .panel h1 { font-size: 2.8rem; } .auth .panel .lead { font-size: 1.15rem; } .auth .box { width: min(440px, 100%); }
  .topbar, .content { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1800px) {
  html { font-size: 17px; }
  .site-wrap { max-width: 1440px; }
  .phone { width: 210px; }
}
.grid.tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); } .grid.tiles > .card + .card { margin-top: 0; }
@media (min-width: 1440px) and (min-height: 860px) { .map-layout .map { height: calc(100vh - 230px); } .map-layout { grid-template-columns: 1fr 400px; } }
@media (max-width: 860px) { .auth .wide-only { display: none; } .auth .back-links { white-space: nowrap; } }
@media (max-width: 860px) { .auth .panel { gap: .6rem; } .auth .panel .brand img { width: 38px; height: auto; } .auth .panel .wordmark { font-size: .98rem; } }

/* =====================================================================
   Survey results workspace
   ===================================================================== */
.results-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: .8rem; position: sticky; top: 62px; z-index: 15; box-shadow: var(--shadow); }
.results-toolbar .filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.results-toolbar label { display: flex; flex-direction: column; gap: .2rem; font-size: .75rem; font-weight: 600; color: var(--grey-500); text-transform: uppercase; letter-spacing: .04em; }
.results-toolbar label > span { padding-left: .1rem; }
.results-toolbar select, .results-toolbar input { padding: .42rem .55rem; font-size: .88rem; min-width: 0; }
.results-toolbar .seg select { max-width: 230px; } .results-toolbar .seg .row { gap: .4rem; flex-wrap: nowrap; }
.results-toolbar .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 .9rem; }
.chip { border: 1px solid #c9dafc; background: var(--blue-50); color: var(--blue-600); border-radius: 999px; padding: .2rem .65rem; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.chip:hover { background: #dbe7ff; }
.stat.with-ring { display: flex; align-items: center; gap: .7rem; } .ring { flex: none; }
.stat .delta { font-size: .76rem; font-weight: 700; margin-top: .2rem; } .stat .delta.up { color: var(--ok); } .stat .delta.down { color: var(--bad); }
.results-overview { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); margin-bottom: 1rem; }
.results-overview.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.results-overview > .card + .card { margin-top: 0; }
@media (max-width: 1200px) { .results-overview, .results-overview.three { grid-template-columns: 1fr; } }
.findings ul { list-style: none; margin: 0 0 .6rem; padding: 0; } .findings li { display: flex; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--grey-100); line-height: 1.45; }
.findings li:last-child { border-bottom: 0; } .findings .fi { width: 1.3rem; flex: none; text-align: center; color: var(--accent); font-weight: 800; }
.findings a { color: var(--ink); text-decoration: none; } .findings a:hover { color: var(--accent); text-decoration: underline; }
.chart-cap { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--grey-500); margin: .4rem 0 .2rem; }
.timeline { width: 100%; height: auto; display: block; }
.col-lab { font-size: 11px; fill: var(--grey-500); } .col-val { font-size: 11px; font-weight: 700; fill: var(--grey-800); } .col-mean { font-size: 11px; font-weight: 700; fill: var(--ink); }
.cols { width: 100%; height: auto; display: block; }
/* bars */
.rbars { display: grid; gap: .45rem; }
.rbar { display: grid; grid-template-columns: minmax(110px, 40%) 1fr 92px; gap: .7rem; align-items: center; font-size: .87rem; }
.rbar-label { color: var(--grey-800); line-height: 1.25; }
.rbar-track { background: var(--grey-100); border-radius: 4px; height: 16px; overflow: hidden; }
.rbar-fill { height: 100%; border-radius: 4px; background: var(--accent); opacity: .78; transition: width .4s ease; }
.rbar.top .rbar-fill { opacity: 1; } .rbar.top .rbar-label { font-weight: 700; }
.rbar-val { display: flex; gap: .45rem; justify-content: flex-end; align-items: baseline; font-variant-numeric: tabular-nums; }
.rbar-val b { font-size: .95rem; } .rbar-val span { color: var(--grey-500); font-size: .78rem; min-width: 2.2rem; text-align: right; }
.rbars.large .rbar { font-size: 1.15rem; grid-template-columns: minmax(160px, 38%) 1fr 130px; } .rbars.large .rbar-track { height: 26px; } .rbars.large .rbar-val b { font-size: 1.3rem; }
/* donut */
.donut { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.donut svg { flex: none; } .donut-big { font-size: 26px; font-weight: 800; fill: var(--ink); } .donut-small { font-size: 11px; fill: var(--grey-500); }
.donut.large .donut-big { font-size: 40px; } .donut.large .donut-small { font-size: 14px; }
.legend-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; flex: 1; min-width: 180px; }
.legend-list li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: .55rem; align-items: center; font-size: .87rem; }
.legend-list i { width: 12px; height: 12px; border-radius: 3px; display: block; } .legend-list b { font-variant-numeric: tabular-nums; } .legend-list em { font-style: normal; color: var(--grey-500); font-size: .78rem; min-width: 2rem; text-align: right; }
.legend-list.inline { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .7rem; } .legend-list.inline li { display: flex; gap: .4rem; }
.donut.large .legend-list li { font-size: 1.15rem; } .donut.large .legend-list i { width: 16px; height: 16px; }
/* stacked / compare */
.stacked .srow { display: grid; grid-template-columns: minmax(110px, 26%) 1fr; gap: .8rem; align-items: center; margin: .45rem 0; }
.srow-label b { display: block; font-size: .87rem; } .srow-label span { font-size: .75rem; color: var(--grey-500); }
.sbar { display: flex; height: 26px; border-radius: 5px; overflow: hidden; gap: 2px; background: var(--grey-100); }
.sbar > div { color: #fff; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; min-width: 2px; text-shadow: 0 1px 1px rgba(0,0,0,.25); }
.mini-bars { display: grid; gap: 3px; } .mini { display: grid; grid-template-columns: 1fr 38px; gap: .4rem; align-items: center; font-size: .72rem; color: var(--grey-600); }
.mini i { display: block; height: 7px; border-radius: 3px; min-width: 1px; }
.xtab td.num { text-align: right; white-space: nowrap; } .xtab th { vertical-align: bottom; }
/* numeric facts, keywords, quotes */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .6rem; margin-bottom: .6rem; }
.facts > div { background: var(--grey-50); border-radius: 8px; padding: .55rem .7rem; } .facts b { display: block; font-size: 1.25rem; } .facts span { font-size: .75rem; color: var(--grey-500); }
.kw { display: flex; flex-wrap: wrap; gap: .35rem .7rem; align-items: baseline; margin-bottom: .6rem; line-height: 1.2; }
.kw span { color: var(--navy-900, #0f2a6b); font-weight: 700; } .kw sup { font-size: .6em; color: var(--grey-500); margin-left: 1px; font-weight: 600; }
.quotes { list-style: none; padding: 0; margin: .2rem 0 0; display: grid; gap: .45rem; }
.quotes li { background: var(--grey-50); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; padding: .45rem .7rem; font-size: .87rem; line-height: 1.45; }
.quotes.long { max-height: 60vh; overflow: auto; margin-top: .7rem; }
/* layout of question cards */
.results-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.results-index { position: sticky; top: 150px; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); padding: .8rem .9rem; font-size: .86rem; }
.results-index a { display: block; padding: .3rem .4rem; border-radius: 6px; color: var(--grey-800); text-decoration: none; } .results-index a:hover { background: var(--grey-50); color: var(--accent); }
@media (max-width: 1100px) { .results-body { grid-template-columns: 1fr; } .results-index { display: none; } .results-toolbar { position: static; } }
.rsection { margin-bottom: 1.4rem; scroll-margin-top: 150px; }
.rsection-title { font-size: 1.05rem; margin: .2rem 0 .7rem; padding-bottom: .4rem; border-bottom: 2px solid var(--grey-200); color: var(--navy-900, #0f2a6b); }
.qgrid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 1500px) { .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qcard.wide { grid-column: 1 / -1; } }
.qgrid > .card + .card { margin-top: 0; }
.qcard { scroll-margin-top: 150px; display: flex; flex-direction: column; }
.qcard header { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; flex-wrap: wrap; }
.qcard h3 { margin: 0 0 .25rem; font-size: 1rem; line-height: 1.35; }
.qnum { flex: none; background: var(--blue-50); color: var(--blue-600); font-weight: 800; font-size: .78rem; border-radius: 6px; padding: .2rem .45rem; margin-top: .1rem; }
.qmeta { font-size: .8rem; color: var(--grey-500); }
.q-actions { display: flex; gap: .35rem; align-items: center; margin-left: auto; }
.q-actions .cmp { font-size: .8rem; padding: .3rem .4rem; max-width: 170px; }
.seg-toggle { display: inline-flex; border: 1px solid var(--grey-200); border-radius: 7px; overflow: hidden; }
.seg-toggle button { background: #fff; border: 0; padding: .25rem .55rem; cursor: pointer; font-size: .9rem; color: var(--grey-600); } .seg-toggle button.on, .seg-toggle button:hover { background: var(--blue-50); color: var(--blue-600); }
.qcard details { margin-top: .7rem; } .qcard summary { cursor: pointer; color: var(--grey-600); }
/* presentation mode */
.present { position: fixed; inset: 0; z-index: 500; background: #fff; display: flex; flex-direction: column; }
.present .pbar { height: 4px; background: var(--accent); transition: width .25s; }
.present .stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 3rem 6vw 5rem; overflow: auto; cursor: pointer; }
.slide { width: min(1200px, 100%); animation: slideIn .25s ease; cursor: default; }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.slide h1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.03em; color: var(--navy-950, #0b1324); margin: .3rem 0 1.5rem; }
.slide h2 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -.02em; color: var(--navy-950, #0b1324); margin: .3rem 0 1.6rem; line-height: 1.25; }
.slide .eyebrow { font-size: .85rem; }
.slide-chart { font-size: 1.1rem; }
.slide .facts b { font-size: 2rem; } .slide .facts span { font-size: 1rem; } .slide .quotes li { font-size: 1.2rem; } .slide .kw { font-size: 1.5rem; }
.slide .chart-cap { font-size: .9rem; } .slide .col-lab, .slide .col-val { font-size: 13px; }
.title-slide, .section-slide { text-align: left; }
.section-slide { border-left: 8px solid var(--accent); padding-left: 2rem; }
.big-stats { display: flex; gap: 3rem; flex-wrap: wrap; margin-top: 2rem; } .big-stats b { display: block; font-size: clamp(1.6rem, 3vw, 2.8rem); color: var(--accent); } .big-stats span { color: var(--grey-600); font-size: 1.1rem; }
.slide-findings { font-size: clamp(1.05rem, 1.6vw, 1.45rem); line-height: 1.5; padding-left: 1.2rem; } .slide-findings li { margin: .7rem 0; }
.pcontrols { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: .4rem; align-items: center; background: rgba(15,22,38,.85); color: #fff; border-radius: 999px; padding: .35rem .6rem; font-size: .9rem; font-variant-numeric: tabular-nums; }
.pcontrols button { background: none; border: 0; color: #fff; font-size: 1.2rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; cursor: pointer; } .pcontrols button:hover { background: rgba(255,255,255,.15); }
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; }
  .sidebar, .topbar, .tabs, .results-toolbar, .chips, .results-index, .q-actions, .toasts, .menu-toggle, .shell > .sidebar { display: none !important; }
  .shell { display: block !important; } .content { padding: 0 !important; max-width: none !important; }
  .print-only { display: block; } .print-head h1 { font-size: 20pt; margin: 0 0 .2rem; } .print-head p { color: #444; margin: 0 0 1rem; font-size: 10pt; }
  .card { box-shadow: none !important; break-inside: avoid; border-color: #ccc; }
  .results-body { display: block; } .qgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .qcard.wide { grid-column: 1 / -1; }
  .results-overview, .results-overview.three { grid-template-columns: 1fr 1fr !important; } .stats.s8 { grid-template-columns: repeat(4, 1fr) !important; }
  .rsection { break-before: auto; } .rsection-title { break-after: avoid; }
  .small.muted + .tabs { display: none; }
  a { color: inherit; text-decoration: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.results-toolbar select { max-width: 220px; }
.qgrid { grid-auto-flow: row dense; }
.seg-toggle button { font-size: .78rem; font-weight: 600; }
.slide .rbars.large .rbar-label { font-size: 1.1rem; }
.small-n { color: var(--warn) !important; font-weight: 600; }
#topActions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; gap: .5rem .7rem; }
  .topbar h1 { font-size: 1rem; flex: 1 1 calc(100% - 3.5rem); line-height: 1.3; }
  .topbar .spacer { display: none; }
  #topActions { flex: 1 1 100%; justify-content: flex-start; }
  #topActions .btn { padding: .4rem .65rem; font-size: .85rem; }
  .results-toolbar .filters label { flex: 1 1 45%; } .results-toolbar .filters .seg { flex-basis: 100%; }
  .results-toolbar select, .results-toolbar input { max-width: none; width: 100%; }
  .rbar { grid-template-columns: minmax(90px, 36%) 1fr 74px; gap: .45rem; font-size: .82rem; }
  .q-actions { margin-left: 0; width: 100%; } .q-actions .cmp { flex: 1; max-width: none; }
  .stacked .srow { grid-template-columns: 1fr; gap: .25rem; }
}
/* Continue with Google: neutral button (no third-party logo artwork) */
.btn.google { background: #fff; color: var(--grey-800); border: 1px solid var(--grey-300, #cfd5df); display: flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 600; text-decoration: none; }
.btn.google:hover { background: var(--grey-50); border-color: var(--grey-400, #9aa3b2); }
.g-badge { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--grey-200); display: inline-grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--blue-600); }
.or-divider { display: flex; align-items: center; gap: .8rem; color: var(--grey-500); font-size: .8rem; margin: 1rem 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--grey-200); }
/* map: heat layer, my location, view modes */
.map canvas.heat { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.map .markers { z-index: 3; }
.map .me-dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #1e6bff; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(30,107,255,.35), 0 1px 4px rgba(0,0,0,.4); pointer-events: none; }
.map .accuracy.me { background: rgba(30,107,255,.10); border-style: dashed; }
.map.locating .controls button[aria-label="Show my location"] { animation: pulse 1s infinite; }
@keyframes pulse { 50% { background: var(--blue-50); } }
.map-modes { position: absolute; top: .6rem; left: .6rem; z-index: 5; display: inline-flex; background: #fff; border: 1px solid var(--grey-300); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.map-modes button { border: 0; background: #fff; padding: .35rem .75rem; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--grey-600); }
.map-modes button.on { background: var(--blue-600); color: #fff; }
.map:fullscreen { border-radius: 0; height: 100vh !important; }
.loc-card .loc-ok { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; }
.loc-card .loc-ok b { color: var(--ok); }
.map-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.map-split .results-map { height: 460px; }
@media (min-width: 1440px) and (min-height: 860px) { .map-split .results-map { height: 560px; } }
.map-side h3 { margin: 0 0 .3rem; }
@media (max-width: 1000px) { .map-split { grid-template-columns: 1fr; } .map-split .results-map { height: 360px; } }
.loc-hint { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-style: dashed; margin-bottom: 1rem; }
.results-overview + .card, .card.loc-hint + .results-body { margin-top: 0; }
@media print { .map-split { grid-template-columns: 1fr 1fr !important; } .map .controls, .map-modes { display: none !important; } }
.heat-legend { position: absolute; left: .6rem; bottom: .6rem; z-index: 5; display: flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.92); border-radius: 6px; padding: .25rem .5rem; font-size: .72rem; color: var(--grey-600); box-shadow: var(--shadow); }
.heat-legend i { display: block; width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgb(198,222,252), rgb(110,168,240), rgb(37,125,224), rgb(20,78,168), rgb(9,40,102)); }
.heat-legend[hidden] { display: none; }
.platform-banner { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: .7rem; justify-content: center; background: #fff7e0; color: #7a5200; border-bottom: 1px solid #f2d68a; padding: .5rem 1rem; font-size: .9rem; font-weight: 600; text-align: center; }
.platform-banner button { background: none; border: 0; cursor: pointer; color: inherit; font-size: 1rem; margin-left: .3rem; }
@media print { .platform-banner { display: none; } }
.card.attention { margin-bottom: 1rem; } .attention ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.attention li { display: flex; gap: .6rem; align-items: center; } .attention li a { color: var(--ink); }
select.sm { padding: .25rem .4rem; font-size: .8rem; }
.grid.two { grid-template-columns: 1fr; } @media (min-width: 1000px) { .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } } .grid.two > .card + .card { margin-top: 0; } .grid.two { margin-bottom: 1rem; }
/* presentation v2 */
.present { --accent: var(--blue-600); }
.present .pbar { background: var(--accent); }
.present .slide .eyebrow { background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, #fff); }
.slide.wide { width: min(1500px, 100%); }
.slide-sub { font-size: clamp(1rem, 1.6vw, 1.35rem); color: var(--grey-600); margin: -.6rem 0 1.4rem; }
.takeaway { font-size: clamp(1.05rem, 1.7vw, 1.45rem); color: var(--ink); background: color-mix(in srgb, var(--accent) 8%, #fff); border-left: 5px solid var(--accent); border-radius: 0 10px 10px 0; padding: .7rem 1rem; margin: -.4rem 0 1.6rem; line-height: 1.4; }
.title-slide h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); border-left: 10px solid var(--accent); padding-left: 1.6rem; margin-left: -1.6rem; }
.big-stats.grid4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 3rem; }
.big-stats.grid4 b { font-size: clamp(2.2rem, 4.4vw, 4rem); color: var(--accent); line-height: 1.05; } .big-stats.grid4 span { font-size: clamp(1rem, 1.5vw, 1.3rem); }
.slide-findings { counter-reset: f; list-style: none; padding: 0; } .slide-findings li { counter-increment: f; display: grid; grid-template-columns: 2.6rem 1fr; gap: .8rem; align-items: start; }
.slide-findings li::before { content: counter(f); width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1rem; margin-top: .15rem; }
.slide-map { height: min(62vh, 680px); border-radius: 14px; }
.slide .rbar-fill, .slide .cols rect { fill: var(--accent); }
.present .pfoot { position: absolute; left: 2rem; right: 2rem; bottom: 1.3rem; display: flex; justify-content: space-between; font-size: .8rem; color: var(--grey-500); pointer-events: none; }
.slide-grid { position: absolute; inset: 0; z-index: 10; background: rgba(255,255,255,.97); padding: 2rem 4vw; overflow: auto; }
.sg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 1.1rem; }
.sg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .7rem; }
.sg-item { text-align: left; border: 1px solid var(--grey-200); background: #fff; border-radius: 10px; padding: .8rem .9rem; min-height: 86px; cursor: pointer; font: inherit; font-size: .9rem; display: flex; gap: .6rem; align-items: flex-start; }
.sg-item span { flex: none; font-weight: 800; color: var(--accent); min-width: 1.6rem; } .sg-item:hover { border-color: var(--accent); } .sg-item.on { outline: 3px solid var(--accent); } .sg-item.sec { background: var(--grey-50); font-weight: 700; }
@media print {
  body.printing-slides > *:not(.print-slides) { display: none !important; }
  body.printing-slides .print-slides { display: block; }
  .print-slide { break-after: page; height: 180mm; position: relative; display: flex; align-items: center; padding: 6mm 10mm 14mm; box-sizing: border-box; overflow: hidden; }
  .print-slide .slide { animation: none; width: 100%; }
  .print-slide .pfoot { position: absolute; left: 10mm; right: 10mm; bottom: 4mm; display: flex; justify-content: space-between; font-size: 9pt; color: #666; }
  .print-slide .slide-map { height: 120mm; } .print-slide .map .controls, .print-slide .map-modes { display: none; }
}
.present .pcontrols { left: auto; right: 1.2rem; transform: none; }
.present .pfoot { right: auto; max-width: calc(100% - 460px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.present .pfoot span + span { display: none; }
/* Lay slides out off-screen at page size so maps and charts measure correctly before printing */
.print-slides { display: block; position: fixed; left: -20000px; top: 0; width: 277mm; }
.print-slide { width: 277mm; height: 180mm; position: relative; display: flex; align-items: center; padding: 6mm 10mm 14mm; box-sizing: border-box; overflow: hidden; background: #fff; }
.print-slide .slide-map { height: 120mm; }
@media print { body.printing-slides .print-slides { position: static; left: auto; width: auto; } }
/* OceanBrown brand alignment */
.ob-product .contact-card { background: var(--navy-950); color: #dbe5fb; border-radius: 16px; padding: 1.6rem 1.8rem; box-shadow: var(--shadow); }
.ob-product .contact-card h3 { color: #fff; margin-top: 0; } .ob-product .contact-card dl { display: grid; grid-template-columns: 6.5rem 1fr; gap: .55rem .8rem; margin: 0; }
.ob-product .contact-card dt { color: #8fa3c8; font-size: .85rem; } .ob-product .contact-card dd { margin: 0; } .ob-product .contact-card a { color: #fff; }
.legal .site-wrap { max-width: 820px; padding-top: 3rem; padding-bottom: 4rem; } .legal h1 { font-size: 2.2rem; letter-spacing: -.02em; } .legal h2 { font-size: 1.2rem; margin-top: 2rem; } .legal li { margin: .35rem 0; line-height: 1.55; }
.posts-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { background: #fff; border: 1px solid var(--grey-200); border-radius: 14px; padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.post-card .meta { font-size: .78rem; color: var(--grey-500); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.post-card h3 { margin: .35rem 0 .5rem; } .post-card p { color: var(--grey-600); white-space: pre-line; margin: 0; }
.post-card.pinned { border-color: var(--blue-600); }
/* =====================================================================
   Standard 16:9 deck (1280 × 720 canvas, scaled to fit)
   ===================================================================== */
.present { background: #0d1626; }
.deck-viewport { flex: 1; position: relative; overflow: hidden; display: grid; place-items: center; }
.deck { width: 1280px; height: 720px; flex: none; transform-origin: center center; position: absolute; left: 50%; top: 50%; margin: -360px 0 0 -640px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.deck-slide { width: 1280px; height: 720px; position: relative; overflow: hidden; background: #fff; color: var(--ink); font-size: 20px; box-sizing: border-box; font-family: inherit; }
.deck-slide .d-foot { position: absolute; left: 64px; right: 64px; bottom: 26px; display: flex; justify-content: space-between; font-size: 13px; color: #7b8496; border-top: 1px solid #e6e9ef; padding-top: 10px; }
.deck-slide .d-foot span:first-child { max-width: 960px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deck-slide .d-num { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); }
/* title & closing */
.d-title .d-band { position: absolute; left: 0; top: 0; bottom: 0; width: 28px; background: var(--accent); }
.d-title::after { content: ""; position: absolute; right: -140px; top: -140px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.d-title-inner { position: absolute; left: 112px; right: 160px; top: 50%; transform: translateY(-50%); }
.d-kicker { font-size: 16px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.d-title h1 { font-size: 60px; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 26px; color: #06131d; font-weight: 800; }
.d-sub { font-size: 24px; color: #4b5466; margin: 0; } .d-note { font-size: 15px; color: #7b8496; margin-top: 28px; max-width: 760px; }
.d-brandmark { position: absolute; right: 64px; bottom: 40px; display: flex; gap: 10px; align-items: center; font-weight: 700; color: #4b5466; font-size: 15px; }
.d-title.closing h1 { font-size: 72px; }
/* section divider */
.d-section { background: var(--accent); color: #fff; padding: 0 112px; display: flex; flex-direction: column; justify-content: center; }
.d-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(6,19,29,.0), rgba(6,19,29,.35)); }
.d-section > * { position: relative; } .d-section .d-kicker { color: rgba(255,255,255,.8); }
.d-section h1 { font-size: 64px; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; color: #fff; max-width: 1000px; }
.d-section .d-sub { color: rgba(255,255,255,.85); }
.d-section .d-foot { color: rgba(255,255,255,.75); border-top-color: rgba(255,255,255,.25); } .d-section .d-num { color: #fff; }
/* content */
.d-content { padding: 52px 64px 80px; display: flex; flex-direction: column; }
.d-head { border-left: 6px solid var(--accent); padding-left: 20px; margin-bottom: 22px; flex: none; }
.d-eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7b8496; margin-bottom: 6px; }
.d-head h2 { font-size: 34px; line-height: 1.2; letter-spacing: -.02em; margin: 0; color: #06131d; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-takeaway { flex: none; font-size: 20px; line-height: 1.4; background: color-mix(in srgb, var(--accent) 8%, #fff); border-radius: 10px; padding: 12px 18px; margin: 0 0 22px; color: #1f2533; }
.d-body { flex: 1; min-height: 0; overflow: hidden; }
.d-body .rbars.large .rbar { font-size: 19px; grid-template-columns: minmax(200px, 36%) 1fr 150px; } .d-body .rbars.large .rbar-track { height: 26px; } .d-body .rbars { gap: 12px; }
.d-body .donut.large { gap: 48px; } .d-body .legend-list li { font-size: 19px; } .d-body .legend-list i { width: 16px; height: 16px; }
.d-body .facts b { font-size: 34px; } .d-body .facts span { font-size: 15px; } .d-body .cols { max-height: 380px; }
.d-body .quotes li { font-size: 18px; } .d-body .kw { font-size: 22px; } .d-body .chart-cap { font-size: 13px; }
.d-body .timeline { max-height: 200px; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; padding-top: 20px; }
.kpi b { display: block; font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--accent); } .kpi span { display: block; margin-top: 10px; font-size: 19px; color: #4b5466; }
.deck-findings { counter-reset: f; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.deck-findings li { counter-increment: f; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; font-size: 20px; line-height: 1.4; }
.deck-findings li::before { content: counter(f); width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.deck-map { height: 100%; min-height: 420px; border-radius: 12px; }
/* printing the deck: one slide per 13.333 × 7.5 in page */
.print-slides { display: block; position: fixed; left: -20000px; top: 0; width: 1280px; }
.print-slide { width: 1280px; height: 720px; padding: 0; display: block; overflow: hidden; }
@media print {
  body.printing-slides .print-slides { position: static; left: auto; width: 1280px; }
  body.printing-slides .print-slide { break-after: page; page-break-after: always; height: 720px; padding: 0; }
  body.printing-slides .print-slide .map .controls, body.printing-slides .print-slide .map-modes { display: none; }
}
.present .pcontrols { transition: opacity .3s; z-index: 20; }
.present.idle .pcontrols, .present.idle .pbar { opacity: 0; } .present.idle { cursor: none; }
.d-body .timeline { max-height: none; width: 100%; }
.updates-strip { display: grid; gap: .5rem; margin-bottom: 1rem; }
.updates-strip .update { display: flex; gap: .7rem; align-items: center; background: #fff; border: 1px solid #c9dafc; border-left: 4px solid var(--accent); border-radius: 10px; padding: .6rem .9rem; flex-wrap: wrap; }
.updates-strip .update .muted { flex: 1; min-width: 200px; font-size: .88rem; }
.posts-admin { display: grid; gap: .8rem; } .post-row h3 { margin: .6rem 0 .3rem; } .post-row .post-body { white-space: pre-line; color: var(--grey-600); margin: 0 0 .4rem; } .post-row.pinned { border-color: var(--accent); }
.crumbs a { font-weight: 600; } .crumbs { font-size: .9rem; }
.lib-list { max-height: 55vh; overflow: auto; border: 1px solid var(--grey-200); border-radius: 8px; margin-top: .6rem; }
.lib-row { display: flex; gap: .6rem; align-items: center; padding: .45rem .6rem; border-bottom: 1px solid var(--grey-100); cursor: pointer; } .lib-row:hover { background: var(--grey-50); } .lib-row > span { flex: 1; }
.v-news { margin: .4rem 0 1rem; border-left: 4px solid var(--accent); }
#updates .posts-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 380px)); justify-content: center; }
/* =====================================================================
   Motion — only when the person has not asked their device to reduce motion
   ===================================================================== */
@keyframes ob-growX { from { transform: scaleX(0); } }
@keyframes ob-growY { from { transform: scaleY(0); } }
@keyframes ob-rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes ob-fade { from { opacity: 0; } }
@keyframes ob-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ob-spin { from { opacity: 0; transform: rotate(-70deg) scale(.88); } }
@keyframes ob-in-next { from { opacity: 0; transform: translateX(48px); } }
@keyframes ob-in-prev { from { opacity: 0; transform: translateX(-48px); } }
@keyframes ob-float { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: no-preference) {
  .rbar-fill { transform-origin: left center; animation: ob-growX .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 55ms); }
  svg .col { transform-box: fill-box; transform-origin: center bottom; animation: ob-growY .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 25ms); }
  svg path.draw { stroke-dasharray: 1; animation: ob-draw 1.2s ease-out .2s both; }
  .donut svg { animation: ob-spin .8s cubic-bezier(.2,.8,.2,1) both; }
  .legend-list li { animation: ob-fade .5s both; }
  .sbar > div { transform-origin: left center; animation: ob-growX .7s cubic-bezier(.2,.8,.2,1) both; }
  .mini i { transform-origin: left center; animation: ob-growX .7s both; }
  .stats .stat { animation: ob-rise .5s both; } .stats .stat:nth-child(2) { animation-delay: 50ms; } .stats .stat:nth-child(3) { animation-delay: 100ms; } .stats .stat:nth-child(4) { animation-delay: 150ms; } .stats .stat:nth-child(5) { animation-delay: 200ms; } .stats .stat:nth-child(6) { animation-delay: 250ms; } .stats .stat:nth-child(7) { animation-delay: 300ms; } .stats .stat:nth-child(8) { animation-delay: 350ms; }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
  .reveal.in { opacity: 1; transform: none; }
  .q-card { animation: ob-rise .35s both; }
  .v-main .task { animation: ob-rise .4s both; }
  .phone { animation: ob-float 6s ease-in-out 1s infinite; }
  .hero .browser { animation: ob-rise .8s .1s both; } .hero h1, .hero p.lead { animation: ob-rise .7s both; }
  .updates-strip .update { animation: ob-rise .5s both; }
  .modal { animation: ob-rise .25s both; }
  .toast { animation: ob-rise .25s both; }
  /* presentation */
  .deck-slide.anim.enter-next { animation: ob-in-next .45s cubic-bezier(.2,.8,.2,1) both; }
  .deck-slide.anim.enter-prev { animation: ob-in-prev .45s cubic-bezier(.2,.8,.2,1) both; }
  .deck-slide.anim .d-head, .deck-slide.anim .d-title-inner > *, .deck-slide.anim.d-section > * { animation: ob-rise .6s .12s both; }
  .deck-slide.anim .d-title-inner > *:nth-child(2) { animation-delay: .22s; } .deck-slide.anim .d-title-inner > *:nth-child(3) { animation-delay: .34s; }
  .deck-slide.anim .d-band { transform-origin: top; animation: ob-growY .7s cubic-bezier(.2,.8,.2,1) both; }
  .deck-slide.anim .d-takeaway { animation: ob-fade .6s .3s both; }
  .deck-slide.anim .kpi, .deck-slide.anim .deck-findings li { animation: ob-rise .55s both; animation-delay: calc(.2s + var(--i, 0) * 110ms); }
  .deck-slide.anim .d-body { animation: ob-fade .5s .25s both; }
}
/* never animate printed pages or PDFs (charts must be complete) */
@media print { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1 !important; transform: none !important; } }
.print-slides *, .print-slides *::before, .print-slides *::after { animation: none !important; transition: none !important; }
