/* ============================================================
   Air Note — Admin Dashboard
   White + light-blue system on the brand's navy ink.
   Same easing family as the site. Light mode only.
   ============================================================ */

:root {
  --bg:            #F4F7FA;
  --card:          #FFFFFF;
  --hairline:      #E2E9F1;
  --hairline-2:    #D3DEE9;
  --ink:           #0F2438;
  --body:          #3F566B;
  --muted:         #7E93A6;
  --accent:        #2E5E8E;
  --accent-strong: #24486C;
  --accent-soft:   #EAF1F8;
  --sky:           #7FA6C7;
  --tint:          #F3F7FB;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 20px;
  --shadow-card: 0 1px 2px rgba(15,36,56,.03), 0 10px 30px rgba(15,36,56,.05);
  --shadow-lift: 0 2px 6px rgba(15,36,56,.05), 0 18px 44px rgba(15,36,56,.09);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Soft daylight atmosphere — echoes the site's aurora, in day blues. */
body::before {
  content: "";
  position: fixed; inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 34% at 18% 8%,  rgba(127,166,199,.18), transparent 70%),
    radial-gradient(38% 30% at 85% 14%, rgba(46,94,142,.10),   transparent 70%),
    radial-gradient(46% 36% at 55% 98%, rgba(214,226,238,.55), transparent 70%);
  animation: atmo 26s var(--ease) infinite alternate;
  will-change: transform;
}
@keyframes atmo {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(2%, -1.5%, 0) scale(1.05); }
}

::selection { background: rgba(127,166,199,.3); }

.hidden { display: none !important; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

/* ---------- shared motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes shimmer { to { background-position: -200% 0; } }

.skeleton {
  color: transparent !important;
  border-radius: 8px;
  background: linear-gradient(90deg, #E8EEF5 25%, #F5F8FB 45%, #E8EEF5 65%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  min-width: 64px;
  min-height: 1em;
  display: inline-block;
  user-select: none;
}

/* ---------- loading / center screens ---------- */
.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--hairline-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- login ---------- */
.login-card {
  position: relative;
  width: 100%;
  max-width: 384px;
  background: var(--card);
  border-radius: 24px;
  padding: 40px 34px 34px;
  text-align: center;
  box-shadow: var(--shadow-lift);
  animation: card-in .6s var(--ease) both;
}
/* top sheen, same trick as the site's glass cards */
.login-card::before {
  content: "";
  position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127,166,199,.55), transparent);
}
.brand-mark {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 6px;
}
.login-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 26px;
  color: var(--ink);
}
.field { display: block; text-align: left; margin-bottom: 14px; }
.field span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--tint);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 15px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field input:focus {
  outline: none;
  background: #fff;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(127,166,199,.22);
}

.btn-primary {
  width: 100%;
  margin-top: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 13px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.btn-primary::after {
  content: "";
  position: absolute; top: -20%; bottom: -20%; width: 36%; left: -50%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  opacity: 0;
  pointer-events: none;
}
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15,36,56,.25);
}
.btn-primary:hover::after { animation: sweep .9s var(--ease) 1; }
@keyframes sweep {
  0%   { left: -50%; opacity: 0; }
  12%  { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}
.btn-primary:active { transform: translateY(0) scale(.99); }
.btn-primary:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; }

.link-btn {
  display: inline-block;
  margin-top: 16px;
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  transition: color .25s var(--ease);
}
.link-btn:hover { color: var(--accent-strong); text-decoration: underline; }
.link-btn.subtle { color: var(--muted); display: block; margin-top: 18px; }
.link-btn.subtle:hover { color: var(--body); }

.auth-msg {
  margin-top: 16px;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  animation: rise .4s var(--ease) both;
}
.auth-msg.warn { background: #FBEDE6; color: #94491F; }
.auth-msg.ok   { background: #E6F2EA; color: #2F6440; }

/* ---------- app shell ----------
   Polar-style floating sheet: the sidebar sits directly on the page
   background, and the content area is one raised white rounded panel
   inset from the top/right/bottom edges. */
#view-app { display: flex; min-height: 100vh; padding: 12px 12px 12px 0; }

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: transparent;
  padding: 20px 16px 12px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: calc(100vh - 12px);
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  padding: 0 8px 22px;
}
.side-badge {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
}
.side-nav { flex: 1; }
.nav-group { margin-bottom: 24px; }
.nav-heading {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0 10px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
  margin-bottom: 2px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-item .nav-ico {
  display: inline-flex;
  color: var(--muted);
  width: 16px;
  justify-content: center;
  transition: color .25s var(--ease), transform .3s var(--ease);
}
.nav-item .nav-ico svg { width: 15px; height: 15px; }
.nav-item:hover { background: rgba(46,94,142,.06); color: var(--ink); }
.nav-item:hover .nav-ico { transform: translateY(-1px); }
.nav-item.active { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.nav-item.active .nav-ico { color: var(--accent); }
.nav-item.disabled { color: var(--muted); cursor: default; justify-content: space-between; }
.nav-item.disabled:hover { background: none; color: var(--muted); }
.soon {
  font-style: normal;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(127,166,199,.16);
  padding: 2px 7px;
  border-radius: 999px;
}
.side-foot {
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.who-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}
.avatar {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--sky));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.who {
  font-size: 13px;
  color: var(--body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-foot .link-btn.subtle { margin-top: 10px; padding: 0 8px; text-align: left; }

/* ---------- content: the floating sheet ---------- */
.content {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(15,36,56,.04), 0 16px 44px rgba(15,36,56,.07);
  padding: 44px 48px;
  min-height: calc(100vh - 24px);
  animation: card-in .55s var(--ease) both;
}
/* keep line lengths sane on wide screens without shrinking the sheet */
.content > * { max-width: 1080px; }
.page-head { margin-bottom: 28px; animation: rise .55s var(--ease) both; }
.page-title { font-family: var(--serif); font-weight: 600; font-size: 30px; color: var(--ink); letter-spacing: -.01em; }
.page-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* KPI cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.kpi-card {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 22px 24px;
  animation: card-in .6s var(--ease) both;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.kpi-card:nth-child(1) { animation-delay: .03s; }
.kpi-card:nth-child(2) { animation-delay: .09s; }
.kpi-card:nth-child(3) { animation-delay: .15s; }
.kpi-card:nth-child(4) { animation-delay: .21s; }
.kpi-card:nth-child(5) { animation-delay: .27s; }
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  background: #F0F5FA;
}
.kpi-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.kpi-value {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* panels */
.panel {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 22px;
  animation: card-in .6s var(--ease) .1s both;
}
.panel-title { font-family: var(--serif); font-weight: 600; font-size: 19px; margin-bottom: 16px; color: var(--ink); }
.muted { color: var(--muted); font-size: 14px; }

/* controls */
.controls { margin-bottom: 16px; display: flex; gap: 12px; animation: rise .55s var(--ease) .05s both; }
.search {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--tint);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  min-width: 280px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.search::placeholder { color: var(--muted); }
.search:focus {
  outline: none;
  background: #fff;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(127,166,199,.22);
}
select.search { min-width: 160px; cursor: pointer; }

/* segmented pill toggle (analytics range) */
.seg {
  display: inline-flex;
  gap: 4px;
  background: var(--tint);
  border-radius: 999px;
  padding: 4px;
}
.seg-btn {
  border: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--body);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.seg-btn:hover { color: var(--ink); }
.seg-btn.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15,36,56,.22);
}

/* ---------- funnel ---------- */
.funnel-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.funnel-page-head .page-head { margin-bottom: 0; }
.funnel-range { flex: none; background: #fff; border: 1px solid var(--hairline); box-shadow: 0 2px 8px rgba(15,36,56,.04); }
.funnel-tabs {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--tint);
  animation: rise .5s var(--ease) .04s both;
}
.funnel-tab {
  min-width: 146px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  color: var(--body);
  background: transparent;
  font: 500 13.5px var(--sans);
  cursor: pointer;
  transition: color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.funnel-tab:hover { color: var(--ink); }
.funnel-tab.active { color: #fff; background: var(--ink); box-shadow: 0 5px 15px rgba(15,36,56,.18); }
.funnel-tab:active { transform: scale(.98); }
.funnel-panel {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  animation: card-in .58s var(--ease) .08s both;
}
.funnel-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--hairline);
}
.funnel-panel-title { font: 600 19px/1.25 var(--sans); color: var(--ink); }
.funnel-panel-sub { margin-top: 3px; color: var(--muted); font-size: 13px; }
.funnel-entrants { flex: none; color: var(--muted); font-size: 13px; }
.funnel-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(132px, 1fr));
  gap: 0;
  min-width: 950px;
  padding: 34px 24px 38px;
  overflow-x: auto;
}
.funnel-stage {
  --stage-scale: 1;
  position: relative;
  min-height: 194px;
  padding: 18px 17px;
  color: var(--ink);
  background: var(--tint);
  border: 1px solid var(--hairline);
  border-right: 0;
  animation: funnel-stage-in .55s var(--ease) both;
}
.funnel-stage:first-child { border-radius: 15px 0 0 15px; }
.funnel-stage:last-child { border-right: 1px solid var(--hairline); border-radius: 0 15px 15px 0; }
.funnel-stage::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -7px;
  width: 13px;
  height: 13px;
  border-top: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  background: inherit;
  transform: translateY(-50%) rotate(45deg);
}
.funnel-stage::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 3px;
  min-width: 10px;
  border-radius: 3px;
  background: var(--accent);
  opacity: .55;
  transform: scaleX(var(--stage-scale));
  transform-origin: left center;
}
.funnel-stage:last-child::after { display: none; }
.funnel-stage.is-goal { background: var(--ink); color: #fff; border-color: var(--ink); }
.funnel-stage.is-goal::before { background: var(--sky); opacity: 1; }
@keyframes funnel-stage-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.funnel-stage:nth-child(2) { animation-delay: .04s; }
.funnel-stage:nth-child(3) { animation-delay: .08s; }
.funnel-stage:nth-child(4) { animation-delay: .12s; }
.funnel-stage:nth-child(5) { animation-delay: .16s; }
.funnel-stage:nth-child(6) { animation-delay: .20s; }
.funnel-stage:nth-child(7) { animation-delay: .24s; }
.funnel-step { display: block; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .09em; }
.funnel-stage.is-goal .funnel-step, .funnel-stage.is-goal .funnel-stage-hint, .funnel-stage.is-goal .funnel-stage-rate { color: rgba(255,255,255,.62); }
.funnel-stage-label { margin-top: 17px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.funnel-stage-hint { min-height: 34px; margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.35; }
.funnel-stage-count { display: block; margin-top: 15px; font: 400 34px/1 var(--serif); }
.funnel-stage-rate { margin-top: 8px; color: var(--body); font-size: 10.5px; }
.funnel-step-rate { position: absolute; z-index: 3; top: -22px; left: 0; color: var(--muted); font-size: 10px; white-space: nowrap; }
.funnel-loading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 194px; color: var(--muted); font-size: 13px; }
.funnel-loading .spinner { width: 18px; height: 18px; }
.funnel-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-card); animation: card-in .6s var(--ease) .13s both; }
.funnel-metric { min-height: 142px; padding: 22px 24px; border-right: 1px solid var(--hairline); }
.funnel-metric:last-child { border-right: 0; }
.funnel-metric-label { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.funnel-metric-value { display: block; margin-top: 12px; color: var(--ink); font: 400 34px/1 var(--serif); }
.funnel-metric.accent .funnel-metric-value { color: var(--accent); }
.funnel-metric-note { display: block; margin-top: 9px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.funnel-insight { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-radius: 14px; color: var(--body); background: var(--tint); font-size: 13px; animation: rise .5s var(--ease) .18s both; }
.insight-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(46,94,142,.09); }

/* tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--hairline);
  transition: color .25s var(--ease);
}
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--accent); }
.data-table th.active { color: var(--ink); }
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--hairline);
  color: var(--body);
  transition: background .2s var(--ease);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table td.strong { color: var(--ink); font-weight: 500; }
.data-table tr.clickable { cursor: pointer; }
.data-table tbody tr.clickable:hover td { background: rgba(46,94,142,.045); }
.data-table tbody tr.clickable td:first-child { border-radius: 8px 0 0 8px; }
.data-table tbody tr.clickable td:last-child { border-radius: 0 8px 8px 0; }

/* mini list */
.mini-list { display: flex; flex-direction: column; }
.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid var(--hairline);
  border-radius: 8px;
  transition: background .2s var(--ease);
}
.mini-row:hover { background: rgba(46,94,142,.04); }
.mini-row:last-child { border-bottom: none; }
.mini-primary { color: var(--ink); font-size: 14px; }
.mini-secondary { color: var(--muted); font-size: 13px; }

/* detail */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  transition: color .25s var(--ease), transform .3s var(--ease);
  animation: rise .45s var(--ease) both;
}
.back-link:hover { color: var(--accent-strong); text-decoration: underline; transform: translateX(-2px); }
.detail-grid { display: grid; grid-template-columns: 140px 1fr; gap: 12px 20px; }
.detail-key { color: var(--muted); font-size: 14px; }
.detail-val { color: var(--ink); font-size: 14px; word-break: break-all; }

/* bars */
.bar-row { display: flex; align-items: center; gap: 14px; padding: 7px 0; }
.bar-label { width: 200px; flex-shrink: 0; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; height: 10px; background: #fff; border-radius: 999px; overflow: hidden; }
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sky), var(--accent));
  border-radius: 999px;
  transition: width .9s var(--ease);
}
.bar-value { width: 56px; text-align: right; font-size: 13px; color: var(--body); font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  #view-app { flex-direction: column; padding: 0 8px 12px; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 16px 8px 12px; }
  .content { border-radius: 18px; min-height: 0; }
  .side-brand { padding: 0 8px 0 0; }
  .side-nav { display: flex; gap: 12px; flex: 1 1 100%; }
  .nav-group { display: flex; gap: 4px; margin-bottom: 0; }
  .nav-group:nth-child(2) { display: none; }
  .side-foot { border: none; padding: 0; }
  .side-foot .link-btn.subtle { margin-top: 0; }
  .who-row { padding: 0; }
  .who { display: none; }
  .content { padding: 24px 18px; }
  .detail-grid { grid-template-columns: 100px 1fr; }
  .bar-label { width: 120px; }
  .funnel-page-head { align-items: flex-start; flex-direction: column; }
  .funnel-range { align-self: stretch; justify-content: space-between; }
  .funnel-range .seg-btn { flex: 1; padding-inline: 10px; }
  .funnel-tabs { display: flex; }
  .funnel-tab { min-width: 0; flex: 1; }
  .funnel-panel-head { align-items: flex-start; flex-direction: column; }
  .funnel-flow { margin: 0; padding-inline: 18px; }
  .funnel-metrics { grid-template-columns: 1fr 1fr; }
  .funnel-metric:nth-child(2) { border-right: 0; }
  .funnel-metric:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
}

/* ---------- reduced motion — non-negotiable ---------- */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .page-head, .controls, .kpi-card, .panel, .login-card, .auth-msg, .back-link {
    animation-duration: .01s;
    animation-delay: 0s;
  }
  .kpi-card, .btn-primary, .nav-item .nav-ico, .back-link { transition: none; }
  .btn-primary::after { display: none; }
  .bar-fill { transition: none; }
  .funnel-tabs, .funnel-panel, .funnel-metrics, .funnel-insight, .funnel-stage { animation: none; }
  .skeleton { animation: none; }
}
