:root {
  --blue: #234f9f;
  --blue-cta: #2563eb;
  --blue-dark: #172554;
  --navy: #0c0933;
  --violet: #732fe8;
  --blue-light: #9bc6fd;
  --blue-very-light: #eff6ff;
  --neutral: #e3e6ea;
  --ink: #172554;
  --muted: #5d687c;
  --line: #dfe3e8;
  --canvas: #f5f7fa;
  --white: #fff;
  --success: #1b7f52;
  --danger: #b42318;
  --radius: 2px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
h1, h2, h3, h4, h5, .metric strong { font-family: Sora, Inter, ui-sans-serif, system-ui, sans-serif; }
a { color: var(--blue); text-decoration: none; }
button, input, select { font: inherit; }
.muted { color: var(--muted); }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; border-top: 4px solid var(--blue); background: linear-gradient(135deg, var(--blue-very-light) 0 68%, #fff 68%); }
.login-card { width: min(440px, 100%); padding: 36px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 2px; background: var(--white); box-shadow: 0 12px 30px rgba(23, 37, 84, .08); }
.login-brand { margin: 0 0 34px; }
.login-logo { display: block; width: 100%; max-width: 330px; height: auto; margin: 0; }
.login-card h1 { font-size: 25px; margin: 0 0 6px; }
.login-card form { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 7px; color: #354154; font-size: 14px; font-weight: 650; }
input, select { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #bcc5d1; border-radius: 2px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 2px solid rgba(37,99,235,.18); outline-offset: 1px; border-color: var(--blue-cta); }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 0; border-radius: 2px; cursor: pointer; font-weight: 720; }
.button-primary { background: var(--blue-cta); color: #fff; }
.button-primary:hover { background: var(--blue); }
.button-quiet { background: #edf1f7; color: var(--ink); }
.alert { padding: 12px 14px; margin: 18px 0; border-radius: 2px; font-size: 14px; }
.alert-error { color: #7a1d16; background: #fef0ef; border: 1px solid #f6c5c0; }
.alert-success { color: #12643f; background: #e6f6ee; border: 1px solid #b8e3cc; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); border-top: 4px solid var(--blue); }
.sidebar { position: sticky; top: 0; height: calc(100vh - 4px); display: flex; flex-direction: column; padding: 24px 18px 18px; background: #fff; border-right: 1px solid var(--line); border-left: 4px solid var(--blue-dark); }
.brand { display: block; padding: 4px 5px 20px; border-bottom: 1px solid var(--neutral); }
.brand-logo { display: block; }
.brand img { width: 100%; height: auto; display: block; }
.logo-dark { display: none !important; }
.app-version { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .03em; text-align: right; }
.login-brand .app-version { max-width: 330px; margin-top: 8px; text-align: right; }
.nav { display: grid; gap: 14px; overflow-y: auto; padding: 20px 2px 0 0; }
.nav-group { display: grid; gap: 4px; }
.nav-group-title { padding: 0 12px 5px; color: #8a95a6; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.nav a { display: flex; align-items: center; min-height: 42px; padding: 9px 12px; border-left: 3px solid transparent; border-radius: 2px; color: #435066; font-weight: 620; font-size: 14px; }
.nav a:hover { background: #f1f4f8; }
.nav a.active { color: var(--blue-dark); border-left-color: var(--blue-cta); background: var(--blue-very-light); }
.nav a.unavailable { color: #9aa4b3; }
.sidebar-user { margin-top: auto; padding: 18px 6px 0; border-top: 1px solid var(--line); }
.sidebar-user strong, .sidebar-user span { display: block; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.logout-form { margin-top: 12px; }
.logout-form button { width: 100%; }
.main { min-width: 0; }
.topbar { min-height: 74px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 14px 30px; border-bottom: 1px solid var(--line); background: #fff; }
.topbar h1 { margin: 0 auto 0 0; font-size: 24px; }
.filters-form { display: flex; align-items: end; gap: 10px; }
.filters-form label { min-width: 130px; font-size: 12px; }
.filters-form select, .filters-form input { min-height: 38px; padding: 6px 9px; }
.date-filter-form { order: 3; width: 100%; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); }
.date-filter-form > label:first-of-type { min-width: 210px; }
.compare-toggle-label { min-width: 155px !important; }
.compare-check { min-height: 38px; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #cbd3df; border-radius: 2px; background: #fff; color: var(--ink); font-weight: 600; }
.compare-check input { width: 16px; min-height: 16px; flex: 0 0 auto; margin: 0; padding: 0; }
.compare-date-fields { display: flex; align-items: end; gap: 10px; }
.compare-date-fields label { min-width: 145px; }
.compare-date-fields input[readonly] { color: var(--muted); background: #f4f6f9; }
.topbar-account { display: flex; align-items: center; gap: 10px; padding-left: 16px; border-left: 1px solid var(--line); white-space: nowrap; }
.topbar-account > span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 700; }
.topbar-account .logout-form { margin: 0; }
.topbar-account .logout-form button { width: auto; }
.content { padding: 28px 30px 50px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); background: #fff; }
.metric .label { display: block; color: var(--muted); font-size: 13px; }
.metric strong { display: block; margin-top: 10px; color: var(--blue-dark); font-size: 27px; letter-spacing: -.35px; }
.metric small { display: block; margin-top: 8px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 18px; margin-top: 18px; }
.panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel + .panel, .section-gap { margin-top: 18px; }
.panel h2 { margin: 0 0 18px; font-size: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { margin: 0; }
.panel-intro { margin: 5px 0 0; }
.measurement-form { display: grid; grid-template-columns: 1.1fr 1fr 1fr auto; align-items: end; gap: 16px; }
.measurement-form label small { min-height: 32px; color: var(--muted); font-size: 12px; font-weight: 400; }
.optional { color: var(--muted); font-size: 12px; font-weight: 400; }
.measurement-submit { padding-bottom: 32px; }
.measurement-submit .button { white-space: nowrap; }
.measurement-switcher { min-width: 260px; }
.measurement-switcher label { font-size: 12px; }
.measurement-detail { margin-bottom: 20px; }
.settings-form { display: grid; gap: 12px; max-width: 860px; }
.settings-form textarea { width: 100%; min-height: 180px; padding: 12px; border: 1px solid #cbd3df; border-radius: 2px; background: #fff; color: var(--ink); resize: vertical; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.settings-form textarea:focus { outline: 3px solid rgba(35,79,157,.16); border-color: var(--blue); }
.settings-form .button { justify-self: start; }
.measurement-settings-form { display: grid; gap: 18px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-grid label small { color: var(--muted); font-size: 12px; font-weight: 400; }
.settings-wide { grid-column: 1 / -1; }
.measurement-settings-form textarea { width: 100%; min-height: 100px; padding: 12px; border: 1px solid #cbd3df; border-radius: 2px; background: #fff; color: var(--ink); resize: vertical; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.measurement-settings-form textarea:focus { outline: 3px solid rgba(35,79,157,.16); border-color: var(--blue); }
.measurement-options { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 2px; }
.measurement-options legend { padding: 0 7px; color: var(--ink); font-size: 14px; font-weight: 750; }
.measurement-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.measurement-options .check-label { align-items: flex-start; min-height: 76px; }
.measurement-options .check-label span { min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; }
.measurement-options .check-label strong,
.measurement-options .check-label small { display: block; }
.measurement-options .check-label small { margin-top: 4px; color: var(--muted); font-weight: 400; }
.tracker-code-panel .code { max-height: 430px; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0 10px; }
.empty-state { text-align: center; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { margin: 0; }
.copy-button { white-space: nowrap; }
.traffic-chart {
  --chart-series-pageviews: #234f9f;
  --chart-series-sessions: #2563eb;
  --chart-series-conversion-potential: #732fe8;
  --chart-series-pages-to-conversion: #0891b2;
  --chart-series-active-time: #b45309;
  --chart-series-instant-exits: #dc2626;
  --chart-series-new-visitors: #16843d;
  --chart-series-returning-visitors: #db2777;
}
.chart-metric-controls { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.chart-metric-controls legend { margin: 0 0 9px; padding: 0; color: var(--muted); font-size: 12px; font-weight: 760; }
.chart-metric-options { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.chart-metric-option { min-height: 34px; display: inline-flex; grid-template-columns: none; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #cbd3df; border-radius: 2px; background: #fff; color: #354154; font-size: 12px; font-weight: 680; cursor: pointer; }
.chart-metric-option:hover { border-color: #8da2c2; background: #f8faff; }
.chart-metric-option input { width: 15px; min-height: 15px; flex: 0 0 auto; margin: 0; padding: 0; accent-color: var(--blue-cta); }
.chart-metric-option:focus-within { outline: 2px solid rgba(37,99,235,.18); outline-offset: 1px; border-color: var(--blue-cta); }
.chart-metric-option span { white-space: nowrap; }
.chart-scale-note { margin: -2px 0 10px; padding: 8px 10px; border-left: 3px solid var(--violet); background: #f7f4ff; color: #51446b; font-size: 12px; }
.chart-stage { position: relative; min-width: 0; }
.chart { width: 100%; height: 280px; display: block; touch-action: pan-y; }
.chart:focus { outline: 2px solid rgba(37,99,235,.2); outline-offset: 2px; }
.chart-grid { stroke: #e8ecf2; stroke-width: 1; }
.chart-area { fill: var(--chart-series-color, var(--blue)); fill-opacity: .09; }
.chart-line { fill: none; stroke: var(--chart-series-color, var(--blue)); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-line-compare { stroke: var(--chart-series-color, var(--violet)); stroke-dasharray: 8 6; opacity: .58; }
.chart-single-point, .chart-hover-point { fill: var(--chart-series-color, var(--blue)); stroke: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart-single-point.is-comparison, .chart-hover-point.is-comparison { fill: var(--white); stroke: var(--chart-series-color, var(--violet)); opacity: .82; }
.chart-hover-line { stroke: #778397; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.chart-hover-line.is-hidden { display: none; }
.chart-hit-area { fill: transparent; pointer-events: all; cursor: crosshair; }
.chart-label { fill: var(--muted); font-size: 11px; }
.chart-series-pageviews { --chart-series-color: var(--chart-series-pageviews); }
.chart-series-sessions { --chart-series-color: var(--chart-series-sessions); }
.chart-series-conversion_potential { --chart-series-color: var(--chart-series-conversion-potential); }
.chart-series-pages_to_conversion { --chart-series-color: var(--chart-series-pages-to-conversion); }
.chart-series-active_time { --chart-series-color: var(--chart-series-active-time); }
.chart-series-instant_exits { --chart-series-color: var(--chart-series-instant-exits); }
.chart-series-new_visitors { --chart-series-color: var(--chart-series-new-visitors); }
.chart-series-returning_visitors { --chart-series-color: var(--chart-series-returning-visitors); }
.chart-series-legend { min-height: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 7px; color: var(--ink); font-size: 12px; font-weight: 680; }
.chart-series-legend span, .chart-tooltip-row > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.chart-series-legend i, .chart-tooltip-row i { width: 18px; height: 3px; flex: 0 0 auto; display: inline-block; border-radius: 2px; background: var(--chart-series-color, var(--blue)); }
.chart-tooltip { position: absolute; z-index: 6; width: min(310px, calc(100% - 16px)); padding: 12px; border: 1px solid #c9d2df; border-top: 3px solid var(--blue-cta); border-radius: 2px; background: rgba(255,255,255,.98); color: var(--ink); box-shadow: 0 12px 28px rgba(23,37,84,.16); pointer-events: none; }
.chart-tooltip[hidden] { display: none; }
.chart-tooltip-date { display: block; margin-bottom: 7px; font-size: 13px; }
.chart-tooltip-period { display: block; margin: -3px 0 8px; color: var(--muted); font-size: 10px; }
.chart-tooltip-row { min-height: 27px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 0; border-top: 1px solid #edf0f4; font-size: 11px; }
.chart-tooltip-row > span:first-child { min-width: 0; }
.chart-tooltip-values { display: grid; justify-items: end; flex: 0 0 auto; }
.chart-tooltip-values strong { color: var(--ink); font-size: 12px; }
.chart-tooltip-values small { margin-top: 1px; color: var(--muted); font-size: 9px; }
.chart-period-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.chart-period-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-period-legend i { width: 18px; height: 0; display: inline-block; border-top: 3px solid var(--muted); border-radius: 2px; }
.chart-period-legend i.previous { border-top-style: dashed; }
.empty { min-height: 180px; display: grid; place-items: center; text-align: center; color: var(--muted); border: 1px dashed #cbd3df; border-radius: 2px; }
.report-table { min-width: 0; }
.report-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin: 0 0 15px; padding: 12px; border: 1px solid var(--neutral); border-radius: 2px; background: var(--blue-very-light); }
.report-search { width: min(430px, 100%); }
.report-search span { font-size: 12px; }
.report-search input { min-height: 40px; background: #fff; }
.report-toolbar-status { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; font-size: 12px; }
.report-message { min-height: 18px; margin-top: 3px; color: var(--success); font-size: 12px; font-weight: 700; }
.report-message:empty { display: none; }
.report-message.is-error { color: var(--danger); }
.table-scroll-top { height: 16px; margin: 0 0 8px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; }
.table-scroll-top::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar { height: 12px; }
.table-scroll-top-inner { height: 1px; }
.table-wrap { max-height: 680px; overflow: auto; overscroll-behavior-x: contain; scrollbar-gutter: stable; }
.table-load-more { display: flex; justify-content: center; padding: 16px 0 0; }
.table-load-more .button { min-width: 190px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 10px; border-bottom: 1px solid #e6e9ee; text-align: left; vertical-align: top; }
th { position: sticky; top: 0; z-index: 2; color: var(--blue-dark); background: var(--blue-very-light); font-size: 11px; font-weight: 760; text-transform: uppercase; letter-spacing: .045em; }
th:first-child,
td:first-child { position: sticky; left: 0; min-width: 210px; background: var(--white); box-shadow: 1px 0 0 var(--line); }
th:first-child { z-index: 4; background: var(--blue-very-light); }
td:first-child { z-index: 1; }
tbody tr:hover td { background: #f8faff; }
tbody tr:hover td:first-child { background: #f8faff; }
.table-wrap.is-scrolled-x th:first-child,
.table-wrap.is-scrolled-x td:first-child { box-shadow: 8px 0 14px -12px rgba(24,35,52,.72), 1px 0 0 var(--line); }
.table-empty-row td:first-child { position: static; min-width: 0; box-shadow: none; }
td.num, th.num { text-align: right; white-space: nowrap; }
td small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 500; white-space: normal; }
tr:last-child td { border-bottom: 0; }
.sort-button { width: 100%; display: inline-flex; align-items: center; gap: 7px; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; font-weight: inherit; letter-spacing: inherit; text-align: inherit; text-transform: inherit; }
th.num .sort-button { justify-content: flex-end; }
.sort-button:hover, .sort-button:focus-visible { color: var(--blue); }
.sort-button:focus-visible { outline: 2px solid rgba(35,79,157,.28); outline-offset: 4px; border-radius: 2px; }
.sort-icon { min-width: 13px; color: #8b96a6; font-size: 14px; line-height: 1; }
.conversion-cell strong { display: block; color: var(--blue-dark); font-size: 15px; }
.table-empty-row td { text-align: center; }
[hidden] { display: none !important; }
.url-cell { max-width: 510px; overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 2px; background: #eef2f7; color: #435066; font-size: 12px; font-weight: 700; }
.badge-success { color: #12643f; background: #e6f6ee; }
.badge-danger { color: #8f241b; background: #fdebea; }
.button-small { min-height: 34px; padding: 6px 10px; font-size: 12px; }
.button-compare { color: #fff; background: var(--violet); white-space: nowrap; }
.button-compare:hover { background: #5d21c4; }
.comparison-heading { min-width: 112px; text-align: center; }
.comparison-heading > span { display: block; margin-bottom: 7px; }
.comparison-heading .button { width: 100%; color: #fff; text-transform: none; letter-spacing: 0; }
.comparison-cell { width: 112px; text-align: center !important; }
.comparison-cell .button { width: 86px; }
.button-danger { color: #8f241b; background: #fdebea; }
.button-danger:hover { color: #fff; background: var(--danger); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button[data-loading="true"] { cursor: wait; }
.comparison-intro { margin: 0 0 18px; padding: 13px 15px; border-left: 4px solid var(--blue); border-radius: 0 2px 2px 0; background: var(--blue-very-light); color: #354154; }
.comparison-intro p { margin: 0; }
.comparison-panel + .comparison-panel { margin-top: 18px; }
.comparison-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.comparison-chart { min-width: 0; margin: 0; padding: 16px 14px 12px; border: 1px solid #e5eaf1; border-radius: 2px; background: #fbfcfe; }
.comparison-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 2px 6px; }
.comparison-chart-head h3 { margin: 0; font-size: 15px; }
.comparison-chart-head > small { max-width: 190px; color: var(--muted); font-size: 10px; line-height: 1.35; text-align: right; }
.comparison-chart .chart { height: 280px; }
.comparison-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 7px 3px 2px; color: var(--muted); font-size: 12px; }
.comparison-legend > span { min-width: 0; display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 6px; }
.comparison-legend > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comparison-legend strong { color: var(--ink); font-size: 11px; white-space: nowrap; }
.comparison-visitor-mix span,
.comparison-visitor-mix small { display: block; }
.comparison-visitor-mix small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 600; }
.comparison-legend i { width: 10px; height: 10px; display: inline-block; border-radius: 50%; }
.comparison-selected { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.comparison-selected h3 { margin: 0 0 12px; font-size: 15px; }
.comparison-selected-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.comparison-selected-item { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px 9px 13px; border: 1px solid #e4e9f0; border-radius: 2px; background: #fff; }
.comparison-selected-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.row-error { background: #fef0ef; }
.funnel { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr 110px; align-items: center; gap: 14px; }
.funnel-track { height: 28px; overflow: hidden; background: #edf1f6; border-radius: 2px; }
.funnel-fill { height: 100%; min-width: 2px; background: linear-gradient(90deg, var(--blue), var(--violet)); border-radius: 2px; }
.code { padding: 14px; border-radius: 2px; background: var(--navy); color: #dbeafe; overflow-x: auto; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.definition { display: grid; grid-template-columns: 210px 1fr; gap: 0; }
.definition dt, .definition dd { margin: 0; padding: 11px 0; border-bottom: 1px solid #edf0f4; }
.definition dt { color: var(--muted); }
.status-dot { width: 8px; height: 8px; display: inline-block; margin-right: 6px; border-radius: 50%; background: var(--success); }
.theme-toggle { min-height: 38px; padding: 7px 11px; white-space: nowrap; }
.login-theme-toggle { position: fixed; top: 18px; right: 18px; z-index: 2; }
.user-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.user-form label small { color: var(--muted); font-size: 12px; font-weight: 400; }
.user-sites { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 2px; }
.user-sites legend { padding: 0 7px; color: #354154; font-size: 14px; font-weight: 720; }
.user-sites > small { display: block; margin-top: 11px; color: var(--muted); font-size: 12px; }
.user-sites-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.check-label { min-width: 0; display: flex; grid-template-columns: none; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid #e2e7ee; border-radius: 2px; background: #f8fafc; cursor: pointer; }
.check-label input { width: 17px; min-height: 17px; flex: 0 0 auto; margin: 0; padding: 0; }
.check-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-sites.is-disabled { opacity: .55; }
.user-submit { grid-column: 1 / -1; }
.comparison-row-selected td { background: #f4f7fc; }
.comparison-row-selected td:first-child { background: #f4f7fc; }
.row-error td:first-child { background: #fef0ef; }
.comparison-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; }
.comparison-modal-backdrop { position: absolute; inset: 0; background: rgba(12, 9, 51, .76); }
.comparison-modal-dialog { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 40px); display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 2px; background: var(--white); box-shadow: 0 24px 70px rgba(4, 10, 20, .28); }
.comparison-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.comparison-modal-head h2 { margin: 2px 0 0; font-size: 21px; }
.comparison-modal-eyebrow { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.comparison-modal-close { width: 40px; height: 40px; display: grid; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 2px; color: var(--ink); background: #edf1f7; cursor: pointer; font-size: 25px; line-height: 1; }
.comparison-modal-close:hover { background: #e1e7f0; }
.comparison-modal-status { margin: 18px 22px 0; padding: 13px 14px; border-radius: 2px; color: var(--muted); background: #f2f5f9; font-size: 14px; }
.comparison-modal-status.is-error { color: #7a1d16; background: #fef0ef; border: 1px solid #f6c5c0; }
.comparison-modal-content { min-height: 180px; overflow-y: auto; padding: 20px 22px 24px; }
.comparison-modal-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.comparison-modal-summary strong, .comparison-modal-summary span { display: block; }
.comparison-modal-summary strong { margin-bottom: 4px; }
.modal-open { overflow: hidden; }

.conversion-path-panel .table-wrap { max-height: none; }
.conversion-path-panel table { min-width: 1580px; }
.visitor-mix-cell strong,
.visitor-mix-cell small { display: block; white-space: nowrap; }
.visitor-mix-cell { text-align: center !important; }
.visitor-mix-cell small { margin-top: 4px; color: var(--muted); font-size: 10px; }
th[data-sort-heading="new_visitors"] .sort-button { justify-content: center; }
.visitor-mix-summary { border-top-color: var(--violet); }
.visitor-mix-summary small { color: var(--violet); font-weight: 650; }
.path-detail-cell .button { min-width: 66px; }
.conversion-path-note { margin: 15px 0 0; font-size: 12px; }
.path-detail-modal .comparison-modal-dialog { width: min(1080px, 100%); }
.path-detail-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.path-detail-intro strong,
.path-detail-intro span { display: block; }
.path-detail-intro strong { margin-bottom: 4px; }
.path-detail-list { display: grid; gap: 9px; }
.conversion-journey { overflow: hidden; border: 1px solid #dfe5ed; border-radius: 2px; background: #fff; }
.conversion-journey summary { list-style: none; }
.conversion-journey summary::-webkit-details-marker { display: none; }
.conversion-journey-summary { min-height: 76px; display: grid; grid-template-columns: minmax(125px, .8fr) minmax(240px, 1.5fr) 130px 72px 22px; align-items: center; gap: 13px; padding: 12px 14px; cursor: pointer; }
.conversion-journey[open] .conversion-journey-summary { border-bottom: 1px solid var(--line); background: #fbfcfe; }
.journey-identity,
.journey-value { min-width: 0; }
.journey-identity strong,
.journey-identity small,
.journey-value strong,
.journey-value small { display: block; }
.journey-identity strong { font-size: 13px; }
.journey-identity small,
.journey-value small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.journey-pills { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.journey-value { text-align: right; white-space: nowrap; }
.journey-value strong { margin-top: 4px; font-size: 13px; }
.conversion-journey[open] .live-chevron { transform: rotate(180deg); }
.conversion-journey-detail { padding: 18px 18px 4px 32px; background: #f9fbfd; }
.conversion-path-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.conversion-path-step { position: relative; min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr) 72px 72px; align-items: start; gap: 10px; padding: 0 0 17px; }
.conversion-path-step:not(:last-child)::after { position: absolute; top: 23px; bottom: -1px; left: 11px; width: 1px; content: ''; background: #d7dee8; }
.conversion-path-dot { position: relative; z-index: 1; width: 24px; height: 24px; display: grid; place-items: center; border: 3px solid #dbe5f5; border-radius: 50%; color: #fff; background: var(--blue); font-size: 9px; font-weight: 800; }
.conversion-path-step.is-conversion .conversion-path-dot { border-color: #ccebdc; background: #20a464; }
.conversion-path-step.is-conversion .conversion-path-page strong { color: #12643f; }
.conversion-path-page { min-width: 0; }
.conversion-path-page strong,
.conversion-path-page small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversion-path-page strong { font-size: 12px; }
.conversion-path-page small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.conversion-path-step time,
.conversion-path-duration { color: var(--muted); font-size: 10px; text-align: right; white-space: nowrap; }
.path-detail-empty { min-height: 220px; }

.live-dashboard { overflow: hidden; }
.live-dashboard-head { align-items: flex-start; }
.live-summary { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.live-count-badge { min-height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 2px; color: #12643f; background: #e6f6ee; font-size: 12px; font-weight: 700; }
.live-count-badge i { width: 8px; height: 8px; border-radius: 50%; background: #20a464; box-shadow: 0 0 0 4px rgba(32,164,100,.12); }
.live-feed-status { min-height: 21px; margin: -5px 0 12px; font-size: 12px; }
.live-feed-status.is-error { color: var(--danger); font-weight: 700; }
.live-list-heading,
.live-visitor-summary { display: grid; grid-template-columns: minmax(150px, 1.05fr) minmax(260px, 1.7fr) minmax(190px, 1.35fr) 86px 65px 112px 22px; align-items: center; gap: 13px; }
.live-list-heading { padding: 0 14px 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.live-list { display: grid; gap: 9px; }
.live-visitor { overflow: hidden; border: 1px solid #dfe5ed; border-radius: 2px; background: #fff; transition: opacity .25s ease, filter .25s ease, border-color .2s ease, background .2s ease; }
.live-visitor:hover { border-color: #c4cfdf; }
.live-visitor summary { list-style: none; }
.live-visitor summary::-webkit-details-marker { display: none; }
.live-visitor-summary { min-height: 76px; padding: 12px 14px; cursor: pointer; }
.live-visitor[open] .live-visitor-summary { border-bottom: 1px solid var(--line); background: #fbfcfe; }
.live-identity { min-width: 0; display: flex; align-items: center; gap: 10px; }
.live-state-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #20a464; box-shadow: 0 0 0 5px rgba(32,164,100,.12); animation: live-pulse 2.2s ease-in-out infinite; }
.live-identity-text { min-width: 0; }
.live-identity strong,
.live-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-identity strong { font-size: 13px; }
.live-identity small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.live-pills { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.live-pill { max-width: 150px; display: inline-flex; align-items: center; min-height: 22px; overflow: hidden; padding: 3px 7px; border: 1px solid #e1e6ed; border-radius: 2px; color: #435066; background: #f3f6f9; font-size: 10px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.live-pill-country { max-width: 118px; }
.live-pill-source { color: #264d91; background: #edf3ff; border-color: #d9e5fb; }
.live-pill-new { color: #12643f; background: #eaf8f1; border-color: #ccebdc; }
.live-pill-conversion { color: #6f421f; background: #fff4e8; border-color: #f1dcc6; }
.live-pill-departed { color: #5e6877; background: #eceff3; }
.live-current { min-width: 0; }
.live-current strong,
.live-current small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-current strong { font-size: 12px; }
.live-current small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.live-value { text-align: right; font-size: 13px; font-weight: 750; white-space: nowrap; }
.live-activity { color: #167348; font-size: 11px; font-weight: 750; text-align: right; white-space: nowrap; }
.live-chevron { color: var(--muted); font-size: 20px; line-height: 1; text-align: center; transition: transform .2s ease; }
.live-visitor[open] .live-chevron { transform: rotate(180deg); }
.live-visitor-detail { padding: 17px 18px 19px 45px; background: #f9fbfd; }
.live-detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.live-visitor-detail h3 { margin: 0 0 11px; font-size: 13px; }
.live-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.live-timeline-item { position: relative; min-width: 0; display: grid; grid-template-columns: 12px minmax(0, 1fr) 78px 65px; align-items: start; gap: 10px; padding: 0 0 15px; }
.live-timeline-item:not(:last-child)::after { position: absolute; top: 10px; bottom: -2px; left: 5px; width: 1px; content: ''; background: #d7dee8; }
.live-timeline-dot { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 3px; border: 3px solid #dbe5f5; border-radius: 50%; background: var(--blue); }
.live-timeline-item.is-current .live-timeline-dot { border-color: #ccebdc; background: #20a464; box-shadow: 0 0 0 3px rgba(32,164,100,.08); }
.live-timeline-item.is-current .live-timeline-page strong { color: #12643f; }
.live-timeline-page { min-width: 0; }
.live-timeline-page strong,
.live-timeline-page small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-timeline-page strong { font-size: 12px; }
.live-timeline-page small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.live-timeline time,
.live-timeline-duration { color: var(--muted); font-size: 10px; text-align: right; white-space: nowrap; }
.live-timeline-empty { padding: 10px 0; color: var(--muted); font-size: 12px; }
.live-empty { min-height: 210px; display: grid; place-items: center; align-content: center; gap: 7px; text-align: center; color: var(--muted); border: 1px dashed #cbd3df; border-radius: 2px; }
.live-empty strong { color: var(--ink); }
.live-empty span { font-size: 12px; }
.live-visitor.is-departed { opacity: .56; filter: grayscale(.7); background: #f0f2f4; }
.live-visitor.is-departed .live-state-dot { background: #7e8794; box-shadow: 0 0 0 5px rgba(126,135,148,.11); animation: none; }
.live-visitor.is-departed .live-activity { color: #5d6674; }
.live-visitor.is-entering { animation: live-enter .55s cubic-bezier(.2,.75,.25,1) both; }
@keyframes live-enter { from { opacity: 0; transform: translateY(-14px) scale(.985); background: #eaf8f1; } to { opacity: 1; transform: none; } }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(32,164,100,.11); } 50% { box-shadow: 0 0 0 7px rgba(32,164,100,.04); } }
@media (prefers-reduced-motion: reduce) {
  .live-visitor.is-entering, .live-state-dot { animation: none; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #7da5f5;
  --blue-cta: #4f83f1;
  --blue-dark: #a7c1fb;
  --violet: #a77af1;
  --blue-very-light: #172642;
  --neutral: #2c3749;
  --navy: #080623;
  --ink: #edf3fc;
  --muted: #9ca9bd;
  --line: #2c3749;
  --canvas: #0c131f;
  --white: #151e2d;
  --success: #57c893;
  --danger: #f07168;
}
:root[data-theme="dark"] body { background: var(--canvas); color: var(--ink); }
:root[data-theme="dark"] .login-page { background: linear-gradient(135deg, #111d32 0 68%, var(--canvas) 68%); }
:root[data-theme="dark"] .login-card,
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] th { background: var(--white); }
:root[data-theme="dark"] .login-card { box-shadow: 0 24px 70px rgba(0, 0, 0, .36); }
:root[data-theme="dark"] .brand img,
:root[data-theme="dark"] .login-logo { filter: none; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
:root[data-theme="dark"] label,
:root[data-theme="dark"] .user-sites legend { color: #cad4e4; }
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .settings-form textarea,
:root[data-theme="dark"] .measurement-settings-form textarea { border-color: #3a465a; background: #101827; color: var(--ink); }
:root[data-theme="dark"] .compare-check { border-color: #3a465a; background: #101827; }
:root[data-theme="dark"] .compare-date-fields input[readonly] { background: #111b2a; }
:root[data-theme="dark"] input:focus,
:root[data-theme="dark"] select:focus,
:root[data-theme="dark"] .settings-form textarea:focus,
:root[data-theme="dark"] .measurement-settings-form textarea:focus { outline-color: rgba(125, 165, 245, .23); border-color: var(--blue); }
:root[data-theme="dark"] .button-quiet,
:root[data-theme="dark"] .comparison-modal-close { background: #243044; color: var(--ink); }
:root[data-theme="dark"] .button-quiet:hover,
:root[data-theme="dark"] .comparison-modal-close:hover { background: #303d53; }
:root[data-theme="dark"] .topbar { background: #101826; }
:root[data-theme="dark"] .nav-group-title { color: #718097; }
:root[data-theme="dark"] .nav a { color: #b7c2d3; }
:root[data-theme="dark"] .nav a:hover { background: #1c2738; }
:root[data-theme="dark"] .nav a.active { color: #a9c5ff; background: #1d3153; }
:root[data-theme="dark"] .nav a.unavailable { color: #637086; }
:root[data-theme="dark"] .alert-error,
:root[data-theme="dark"] .comparison-modal-status.is-error { color: #ffb4ad; background: #3a2023; border-color: #6a3436; }
:root[data-theme="dark"] .alert-success { color: #96e5bd; background: #153629; border-color: #285c45; }
:root[data-theme="dark"] .report-toolbar,
:root[data-theme="dark"] .check-label,
:root[data-theme="dark"] .comparison-modal-status { border-color: #2d394b; background: #111b2a; }
:root[data-theme="dark"] .report-search input { background: #0e1725; }
:root[data-theme="dark"] th,
:root[data-theme="dark"] td,
:root[data-theme="dark"] .definition dt,
:root[data-theme="dark"] .definition dd { border-color: #273244; }
:root[data-theme="dark"] th,
:root[data-theme="dark"] th:first-child { background: var(--blue-very-light); }
:root[data-theme="dark"] .sort-icon { color: #77859a; }
:root[data-theme="dark"] tbody tr:hover td,
:root[data-theme="dark"] tbody tr:hover td:first-child { background: #17263e; }
:root[data-theme="dark"] .conversion-cell strong { color: #a7c1fb; }
:root[data-theme="dark"] .empty { border-color: #3a465a; }
:root[data-theme="dark"] .badge { background: #243044; color: #c7d1df; }
:root[data-theme="dark"] .badge-success { color: #96e5bd; background: #17402f; }
:root[data-theme="dark"] .badge-danger,
:root[data-theme="dark"] .button-danger { color: #ffaaa3; background: #452427; }
:root[data-theme="dark"] .button-danger:hover { color: #fff; background: #b9433b; }
:root[data-theme="dark"] .comparison-intro { background: #192d4b; color: #c8d5e8; }
:root[data-theme="dark"] .comparison-chart { border-color: #2c3749; background: #111a28; }
:root[data-theme="dark"] .comparison-row-selected td { background: #17263e; }
:root[data-theme="dark"] .comparison-row-selected td:first-child { background: #17263e; }
:root[data-theme="dark"] .traffic-chart {
  --chart-series-pageviews: #8bb5ff;
  --chart-series-sessions: #5b9aff;
  --chart-series-conversion-potential: #b28cff;
  --chart-series-pages-to-conversion: #49c4df;
  --chart-series-active-time: #f2aa5a;
  --chart-series-instant-exits: #ff7d76;
  --chart-series-new-visitors: #5bd581;
  --chart-series-returning-visitors: #f083bd;
}
:root[data-theme="dark"] .chart-metric-option { border-color: #3a465a; background: #101827; color: #cad4e4; }
:root[data-theme="dark"] .chart-metric-option:hover { border-color: #58677d; background: #172236; }
:root[data-theme="dark"] .chart-scale-note { background: #231d39; color: #d4c5ee; }
:root[data-theme="dark"] .chart-grid { stroke: #2b3749; }
:root[data-theme="dark"] .chart-area { fill: var(--chart-series-color, #7da5f5); fill-opacity: .14; }
:root[data-theme="dark"] .chart-tooltip { border-color: #3a465a; border-top-color: #7da5f5; background: rgba(16,24,39,.98); box-shadow: 0 16px 34px rgba(0,0,0,.42); }
:root[data-theme="dark"] .chart-tooltip-row { border-color: #2a3548; }
:root[data-theme="dark"] .funnel-track { background: #243044; }
:root[data-theme="dark"] .row-error { background: #3a2023; }
:root[data-theme="dark"] .row-error td:first-child { background: #3a2023; }
:root[data-theme="dark"] .table-wrap.is-scrolled-x th:first-child,
:root[data-theme="dark"] .table-wrap.is-scrolled-x td:first-child { box-shadow: 8px 0 14px -12px rgba(0,0,0,.95), 1px 0 0 var(--line); }
:root[data-theme="dark"] .comparison-modal-dialog { box-shadow: 0 30px 90px rgba(0, 0, 0, .58); }
:root[data-theme="dark"] .conversion-journey { border-color: #2d394b; background: #131d2b; }
:root[data-theme="dark"] .conversion-journey[open] .conversion-journey-summary,
:root[data-theme="dark"] .conversion-journey-detail { background: #101927; }
:root[data-theme="dark"] .conversion-path-step:not(:last-child)::after { background: #334055; }
:root[data-theme="dark"] .conversion-path-dot { border-color: #283c5c; }
:root[data-theme="dark"] .conversion-path-step.is-conversion .conversion-path-dot { border-color: #285c45; background: #52c98d; }
:root[data-theme="dark"] .conversion-path-step.is-conversion .conversion-path-page strong { color: #96e5bd; }
:root[data-theme="dark"] .live-count-badge { color: #96e5bd; background: #17402f; }
:root[data-theme="dark"] .live-visitor { border-color: #2d394b; background: #131d2b; }
:root[data-theme="dark"] .live-visitor:hover { border-color: #425069; }
:root[data-theme="dark"] .live-visitor[open] .live-visitor-summary,
:root[data-theme="dark"] .live-visitor-detail { background: #101927; }
:root[data-theme="dark"] .live-pill { border-color: #344156; color: #c7d1df; background: #222e40; }
:root[data-theme="dark"] .live-pill-source { color: #b8cefb; border-color: #29436e; background: #172a48; }
:root[data-theme="dark"] .live-pill-new { color: #96e5bd; border-color: #285c45; background: #153629; }
:root[data-theme="dark"] .live-pill-conversion { color: #f3cba9; border-color: #60452f; background: #34271d; }
:root[data-theme="dark"] .live-pill-departed { color: #b3bdcb; background: #2b3544; }
:root[data-theme="dark"] .live-timeline-item:not(:last-child)::after { background: #334055; }
:root[data-theme="dark"] .live-timeline-dot { border-color: #283c5c; }
:root[data-theme="dark"] .live-timeline-item.is-current .live-timeline-dot { border-color: #285c45; background: #52c98d; }
:root[data-theme="dark"] .live-timeline-item.is-current .live-timeline-page strong { color: #96e5bd; }
:root[data-theme="dark"] .live-empty { border-color: #3a465a; }
:root[data-theme="dark"] .live-visitor.is-departed { background: #161d27; }
@media (max-width: 1150px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .filters-form { order: 3; width: 100%; flex-wrap: wrap; }
  .date-filter-form { border-top: 1px solid var(--line); }
  .topbar-account { margin-left: auto; }
  .measurement-form { grid-template-columns: 1fr 1fr; }
  .measurement-submit { padding-bottom: 0; }
  .measurement-switcher { width: 100%; min-width: 0; }
  .user-sites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .measurement-options-grid { grid-template-columns: 1fr; }
  .live-list-heading { display: none; }
  .live-visitor-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 11px 14px; }
  .live-identity { grid-column: 1; grid-row: 1; }
  .live-chevron { grid-column: 2; grid-row: 1; }
  .live-pills, .live-current { grid-column: 1 / -1; }
  .live-value { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
  .live-value::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 650; text-transform: uppercase; }
  .live-activity { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .live-activity::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 650; text-transform: uppercase; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 14px; }
  .brand { width: 220px; padding-bottom: 14px; }
  .nav { grid-template-columns: 1fr; gap: 12px; overflow: visible; }
  .nav-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-group-title { grid-column: 1 / -1; padding-top: 4px; }
  .sidebar-user { display: none; }
  .topbar { padding: 16px; }
  .content { padding: 18px 16px 40px; }
  .cards { grid-template-columns: 1fr; }
  .topbar-account > span { display: none; }
  .filters-form { display: grid; grid-template-columns: 1fr 1fr; }
  .filters-form label:first-of-type { grid-column: 1 / -1; }
  .date-filter-form > label:first-of-type { min-width: 0; }
  .compare-date-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .date-filter-form > .button { grid-column: 1 / -1; }
  .measurement-form { grid-template-columns: 1fr; }
  .measurement-form label small { min-height: 0; }
  .measurement-submit .button { width: 100%; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-wide { grid-column: auto; }
  .user-form { grid-template-columns: 1fr; }
  .user-sites, .user-submit { grid-column: auto; }
  .user-sites-grid { grid-template-columns: 1fr; }
  .code-head { align-items: stretch; flex-direction: column; }
  .panel-head { align-items: flex-start; flex-wrap: wrap; }
  .chart-metric-option { flex: 1 1 calc(50% - 4px); }
  .chart-metric-option:last-child { flex-basis: 100%; }
  .chart { height: 260px; }
  .copy-button { width: 100%; }
  .definition { grid-template-columns: 1fr; }
  .definition dt { padding-bottom: 2px; border-bottom: 0; }
  .definition dd { padding-top: 2px; }
  .funnel-row { grid-template-columns: 1fr; gap: 6px; }
  .report-toolbar { align-items: stretch; flex-direction: column; }
  .report-search { width: 100%; }
  .report-toolbar-status { align-items: stretch; justify-content: flex-start; flex-wrap: wrap; }
  .button-compare { width: 100%; }
  .comparison-charts, .comparison-selected-list { grid-template-columns: 1fr; }
  .comparison-legend { grid-template-columns: 1fr; }
  .theme-toggle { margin-left: auto; }
  .login-theme-toggle { top: 12px; right: 12px; }
  .comparison-modal { padding: 0; }
  .comparison-modal-dialog { width: 100%; max-height: 100vh; height: 100vh; border: 0; border-radius: 0; }
  .comparison-modal-head { padding: 15px 16px; }
  .comparison-modal-status { margin: 14px 16px 0; }
  .comparison-modal-content { padding: 16px; }
  .comparison-modal-summary { align-items: flex-start; flex-direction: column; }
  .path-detail-intro { align-items: flex-start; flex-direction: column; }
  .conversion-journey-summary { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; }
  .journey-identity { grid-column: 1; grid-row: 1; }
  .conversion-journey-summary .live-chevron { grid-column: 2; grid-row: 1; }
  .journey-pills { grid-column: 1 / -1; }
  .journey-value { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; text-align: left; }
  .journey-value small,
  .journey-value strong { margin: 0; }
  .conversion-journey-detail { padding: 16px 12px 3px; }
  .conversion-path-step { grid-template-columns: 24px minmax(0, 1fr) 62px; }
  .conversion-path-duration { display: none; }
  .live-dashboard { padding: 16px; }
  .live-dashboard-head, .live-summary { width: 100%; }
  .live-summary { justify-content: flex-start; }
  .live-visitor-summary { padding: 12px; }
  .live-visitor-detail { padding: 15px 12px 17px; }
  .live-timeline-item { grid-template-columns: 12px minmax(0, 1fr) 65px; }
  .live-timeline-duration { display: none; }
}
