/* BasicPaper Replay — one visual language, DialKit-like: quiet alpha surfaces, 36px rows,
   filled-bar sliders with a thin handle, sliding pills, mono numbers.
   Colour (ali, 2026-11-27): data is one blue (--accent, a lighter blue for a second series); lime (--hl) marks the one
   thing that matters most in a view, always with ink text; red only for a loss, a drop or a problem; green only for small
   up arrows; everything else ink and grey. Notebook cover colours only where the subject is colour. No black outlines:
   a selection is a soft grey fill. The heatmap keeps its own rainbow. */
:root {
  /* SakinLab palette (site/assets/core.css: paper, ink, accent, alert, ok, caution; ali, 2026-11-28: "genel UI
     renkleriyle"). Every other tone is a mix of those, the same way in light and dark. */
  --paper: #FAFAFA; --ink-0: #171717;
  --bg: #F4F4F4;
  --panel: #ffffff;
  --panel-2: #FAFAFA;
  --surface: rgb(23 23 23 / .045);
  --surface-hover: rgb(23 23 23 / .075);
  --surface-active: rgb(23 23 23 / .1);
  --line: rgb(23 23 23 / .08);
  --line-strong: rgb(23 23 23 / .14);
  --text: #171717;
  --text-2: #5C5C5C;
  --text-3: #8C8C8C;
  --ink: #171717;
  --on-ink: #ffffff;
  --accent: #2E6BFF;
  --accent-2: color-mix(in oklab, #2E6BFF 42%, var(--paper));
  --accent-soft: color-mix(in oklab, #2E6BFF 12%, var(--paper));
  --accent-deep: color-mix(in oklab, #2E6BFF 80%, var(--ink-0));
  /* the one thing that matters most in a view: a blue wash with ink text (was lime) */
  --hl: color-mix(in oklab, #2E6BFF 14%, var(--paper)); --on-hl: var(--accent-deep);
  --good: color-mix(in oklab, #22A060 80%, var(--ink-0)); --good-bg: color-mix(in oklab, #22A060 13%, var(--paper));
  --bad: #E03E2F; --bad-text: color-mix(in oklab, #E03E2F 80%, var(--ink-0)); --bad-bg: color-mix(in oklab, #E03E2F 11%, var(--paper));
  --warn: color-mix(in oklab, #D99A1E 62%, var(--ink-0)); --warn-bg: color-mix(in oklab, #D99A1E 16%, var(--paper));
  --info: var(--accent); --info-bg: var(--accent-soft);
  --chart: var(--accent); --chart-2: var(--accent-2);
  /* categories (sources, campaigns): the accent, then the reference hues */
  --cat-1: #2E6BFF; --cat-2: #AF52DE; --cat-3: #FF8A1F; --cat-4: #FFC21A; --cat-5: #34C759; --cat-6: #30B0C7; --cat-7: #5856D6; --cat-8: #8E8E93;
  /* corners (SakinLab FD-06): pressed things 8, rows 8, cards 12, a card inside a frame = frame − gap, tags a pill */
  --radius: 8px; --radius-l: 12px; --radius-s: 6px; --radius-tag: 999px; --row: 36px; --gap: 6px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 4px 16px rgb(0 0 0 / .04);
  --shadow-pop: 0 8px 24px rgb(0 0 0 / .12);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161616; --ink-0: #EDEDED;
    --bg: #111111; --panel: #1B1B1B; --panel-2: #202020;
    --surface: rgb(237 237 237 / .05); --surface-hover: rgb(237 237 237 / .09); --surface-active: rgb(237 237 237 / .12);
    --line: rgb(237 237 237 / .08); --line-strong: rgb(237 237 237 / .15);
    --text: #EDEDED; --text-2: #A6A6A6; --text-3: #767676;
    --ink: #EDEDED; --on-ink: #111111;
    --accent: #2E6BFF; --accent-2: color-mix(in oklab, #2E6BFF 55%, var(--paper)); --accent-soft: color-mix(in oklab, #2E6BFF 22%, var(--paper)); --accent-deep: color-mix(in oklab, #2E6BFF 55%, var(--ink-0));
    --hl: color-mix(in oklab, #2E6BFF 26%, var(--paper)); --on-hl: var(--ink-0);
    --good: color-mix(in oklab, #22A060 70%, var(--ink-0)); --good-bg: color-mix(in oklab, #22A060 20%, var(--paper));
    --bad: #F0604F; --bad-text: color-mix(in oklab, #E03E2F 62%, var(--ink-0)); --bad-bg: color-mix(in oklab, #E03E2F 20%, var(--paper));
    --warn: color-mix(in oklab, #D99A1E 75%, var(--ink-0)); --warn-bg: color-mix(in oklab, #D99A1E 20%, var(--paper));
    --cat-8: #6e6e73;
    --shadow: none; --shadow-pop: 0 8px 32px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12px; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--panel-2); display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 0; font-weight: 600; letter-spacing: -0.01em; }
.brand .dot { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.brand small { display: block; font-weight: 400; color: var(--text-3); font-size: 11px; }
.navgroup { display: flex; flex-direction: column; gap: 2px; }
.navgroup h6 { margin: 0 0 4px; padding: 0 10px; font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: 0.02em; }
.navgroup a { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--radius); color: var(--text-2); }
.navgroup a:hover { background: var(--surface); color: var(--text); }
.navgroup a.on { background: var(--surface-active); color: var(--text); }
.navgroup a svg { width: 16px; height: 16px; flex: none; opacity: 0.8; }
.navgroup a .count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.side .foot { margin-top: auto; padding: 0 10px; font-size: 12px; color: var(--text-3); }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-bg); }
.live.off i { background: var(--text-3); box-shadow: none; }

/* sidebar toggle: the slim icon rail (default) leaves the width to the content, mainly the heatmap */
.sidetoggle { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: var(--radius); background: transparent; color: var(--text-3); font-size: 13px; cursor: pointer; text-align: left; }
.sidetoggle:hover { background: var(--surface); color: var(--text); }
.sidetoggle svg { width: 16px; height: 16px; flex: none; }
@media (min-width: 901px) {
  html.rail .app { grid-template-columns: 60px minmax(0, 1fr); }
  html.rail .side { padding: 16px 8px; align-items: center; gap: 14px; }
  html.rail .brand { padding: 4px 0 0; }
  html.rail .brand > span, html.rail .navgroup h6, html.rail .navgroup a > span, html.rail .live > span,
  html.rail .logout span, html.rail .sidetoggle span, html.rail .navgroup a .count { display: none; }
  html.rail .navgroup { align-items: center; }
  html.rail .navgroup a { width: 40px; height: 36px; padding: 0; justify-content: center; }
  html.rail .navgroup a svg { width: 18px; height: 18px; }
  html.rail .side .foot { padding: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  html.rail .side .foot.has-logout { align-items: center; }
  html.rail .side .foot .live { padding: 0; }
  html.rail .logout button, html.rail .sidetoggle { width: 40px; height: 36px; padding: 0; justify-content: center; }
}

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.topbar h1 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin-right: auto; }
.topbar h1 small { font-weight: 400; color: var(--text-3); font-size: 13px; margin-left: 8px; }
.content { padding: 20px 24px 48px; max-width: 1360px; }

/* ---------- controls ---------- */
.seg { position: relative; display: inline-flex; padding: 2px; border-radius: var(--radius); background: var(--surface); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg .pill { position: absolute; top: 2px; bottom: 2px; border-radius: 6px; background: var(--panel); box-shadow: 0 0 0 0.5px var(--line-strong), 0 1px 2px rgba(0, 0, 0, 0.06); transition: left 0.18s cubic-bezier(.2, .8, .2, 1), width 0.18s cubic-bezier(.2, .8, .2, 1); }
.seg button { position: relative; z-index: 1; flex: none; height: 30px; padding: 0 11px; border: 0; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { color: var(--text); }
.seg button .c { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-left: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius); border: 0; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-hover); }
.btn:active { background: var(--surface-active); }
.btn.ink { background: var(--ink); color: var(--on-ink); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface); }
.btn.icon { width: 32px; padding: 0; }
.btn svg { width: 15px; height: 15px; }

.slider { position: relative; height: var(--row); border-radius: var(--radius); background: var(--surface); overflow: hidden; cursor: ew-resize; touch-action: none; user-select: none; min-width: 180px; }
.slider .fill { position: absolute; inset: 0 auto 0 0; background: var(--surface-active); }
.slider:hover .fill, .slider.drag .fill { background: var(--line-strong); }
.slider .handle { position: absolute; top: 8px; bottom: 8px; width: 3px; margin-left: -1.5px; border-radius: 99px; background: var(--text); }
.slider .lbl, .slider .val { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font-size: 13px; pointer-events: none; }
.slider .lbl { left: 12px; color: var(--text-2); }
.slider .val { right: 12px; font-family: var(--mono); color: var(--text); }
.slider:focus-visible { outline: 2px solid var(--line-strong); outline-offset: 1px; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--row); padding: 0 12px; border-radius: var(--radius); background: var(--surface); cursor: pointer; user-select: none; font-size: 13px; color: var(--text-2); }
.toggle:hover { background: var(--surface-hover); }
.toggle .sw { position: relative; width: 28px; height: 16px; border-radius: 99px; background: var(--line-strong); transition: background 0.15s; flex: none; }
.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); transition: transform 0.15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle.on { color: var(--text); }
.toggle.on .sw { background: var(--accent); }
.toggle.on .sw::after { transform: translateX(12px); }

.field { display: flex; align-items: center; height: var(--row); border-radius: var(--radius); background: var(--surface); padding: 0 12px; gap: 8px; min-width: 0; }
.field:focus-within { background: var(--surface-hover); }
.field label { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.field input, .field select { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 13px; text-align: right; appearance: none; cursor: pointer; }
.field input { text-align: left; cursor: text; }
.field input::placeholder { color: var(--text-3); }
.field select option { background: var(--panel); color: var(--text); }
.field.chev::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg) translateY(-2px); flex: none; }

.panelbox { display: flex; flex-direction: column; gap: var(--gap); padding: 10px; border-radius: var(--radius-l); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.panelbox h5 { margin: 4px 4px 2px; font-size: 12px; font-weight: 500; color: var(--text-3); }

/* ---------- cards and layout ---------- */
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.card { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 16px; box-shadow: var(--shadow); }
.card > header { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 12px; min-width: 0; }
.card > header h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.card > header .hint { color: var(--text-3); font-size: 12px; flex-basis: 100%; order: 2; }
.card > header .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.section { margin-top: 24px; }
.section > h2 { font-size: 15px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
.section > p { margin: 0 0 12px; color: var(--text-2); font-size: 13px; }

.kpi { padding: 14px 16px; }
.kpi .k { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.kpi .v { font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: -0.03em; margin-top: 6px; line-height: 1.1; }
.kpi .d { margin-top: 6px; font-size: 12px; font-family: var(--mono); }
.up { color: var(--good); }
.down { color: var(--bad); }
.flat { color: var(--text-3); }

/* tags: soft pills (the one place a pill belongs), a light wash of their tone with the tone's deep colour as text */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: var(--radius-tag); background: var(--surface); color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; max-width: 100%; }
.tag.good, .tag.ok { background: var(--good-bg); color: var(--good); }
.tag.bad { background: var(--bad-bg); color: var(--bad-text); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.info, .tag.blue { background: var(--accent-soft); color: var(--accent-deep); }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* bar list */
.bars { display: flex; flex-direction: column; gap: 3px; }
.bar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; height: 32px; padding: 0 10px; border-radius: 6px; font-size: 13px; overflow: hidden; }
.bar .f { position: absolute; inset: 3px auto 3px 0; border-radius: 6px; background: var(--accent-soft); }
.bar > span { position: relative; z-index: 1; }
.bar .n { font-family: var(--mono); color: var(--text-2); font-size: 12px; }
a.bar:hover { background: var(--surface); }

/* tables */
.tablewrap { overflow-x: auto; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { position: sticky; top: 0; text-align: left; font-weight: 500; font-size: 12px; color: var(--text-3); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2); white-space: nowrap; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.r, table.t th.r { text-align: right; }
table.t td.r { font-family: var(--mono); font-size: 12.5px; }
table.t tr.link { cursor: pointer; }
table.t tr.link:hover td { background: var(--surface); }
table.t td .trunc { display: block; max-width: 340px; }
table.t td .sub { font-size: 12px; color: var(--text-3); }

/* session list */
.slist { display: flex; flex-direction: column; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.slist .srow:first-child { border-radius: var(--radius-l) var(--radius-l) 0 0; }
.slist .srow:last-child { border-radius: 0 0 var(--radius-l) var(--radius-l); }
.srow { display: grid; grid-template-columns: 168px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.srow:last-child { border-bottom: 0; }
.srow:hover { background: var(--surface); }
.srow .when { display: flex; flex-direction: column; gap: 2px; }
.srow .when b { font-weight: 500; font-size: 13px; }
.srow .path { display: flex; align-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.srow .path .arrow { color: var(--text-3); flex: none; }
.srow .who { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.srow .tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 300px; }
.mini { display: flex; gap: 2px; height: 4px; margin-top: 7px; max-width: 220px; }
.mini span { flex: 1; border-radius: 2px; background: var(--line-strong); }
.mini span.p { background: var(--text-2); }
.mini span.c { background: var(--accent-2); }
.mini span.o { background: var(--accent); }

.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--text-2); font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.on { background: var(--surface-active); color: var(--text); border-color: transparent; }
.chip .c { font-family: var(--mono); font-size: 11px; opacity: 0.6; }
.chip i { width: 6px; height: 6px; border-radius: 50%; }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.toolbar .grow { flex: 1; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); margin-bottom: 12px; }

/* funnel */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fstep { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px; gap: 14px; align-items: center; }
.fstep .lab { font-size: 13px; }
.fstep .lab small { display: block; color: var(--text-3); font-size: 12px; }
.fstep .trk { position: relative; height: 34px; border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.fstep .trk .f { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: var(--radius); opacity: 0.9; }
.fstep .nums { text-align: right; font-family: var(--mono); font-size: 13px; }
.fdrop { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px; gap: 14px; font-size: 12px; color: var(--text-3); }
.fdrop a { color: var(--text-2); }
.fdrop a b { color: var(--bad); font-weight: 500; }
.fdrop a:hover { text-decoration: underline; }

/* chart */
.chart { position: relative; height: 200px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; padding: 8px 10px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-pop); font-size: 12px; white-space: nowrap; transform: translate(-50%, -100%); margin-top: -10px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 2px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* insights */
.insight { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); }
.insight:hover { border-color: var(--line-strong); }
.insight .ic { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; }
.insight .ic svg { width: 15px; height: 15px; }
.insight b { font-weight: 500; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.insight span { font-size: 12px; color: var(--text-2); }
.insight .sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }

/* empty / error */
.empty { padding: 40px 24px; text-align: center; color: var(--text-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-l); background: var(--panel-2); }
.empty b { display: block; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.empty p { margin: 0 auto; max-width: 440px; font-size: 13px; }
.errbox { padding: 12px 14px; border-radius: var(--radius); background: var(--bad-bg); color: var(--bad); font-size: 13px; overflow-wrap: anywhere; }
.skeleton { height: 120px; border-radius: var(--radius-l); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-hover) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* tooltip (data-tip) */
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 50; padding: 6px 9px; border-radius: 6px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 400; white-space: normal; width: max-content; max-width: 260px; line-height: 1.35; pointer-events: none; }

/* ---------- player ---------- */
.player { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.stagebox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 12px; box-shadow: var(--shadow); }
.screen { position: relative; display: grid; place-items: center; background: var(--surface); border-radius: var(--radius); overflow: hidden; height: min(64vh, 680px); }
.screen .scaler { position: absolute; transform-origin: 0 0; }
.screen .replayer-wrapper { position: relative; }
.screen iframe { border: 0; background: #fff; display: block; }
.screen .replayer-mouse { position: absolute; width: 20px; height: 20px; transition: left 0.05s linear, top 0.05s linear; background-size: contain; background-position: center center; background-repeat: no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 8-6 2-3 6z' fill='%23111' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E"); }
.screen .replayer-mouse.active::after { content: ""; position: absolute; left: -10px; top: -10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(46, 107, 255, 0.3); animation: clickpulse 0.4s ease-out; }
@keyframes clickpulse { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.screen canvas.replayer-mouse-tail { position: absolute; pointer-events: none; }
.screen .over { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--panel) 70%, transparent); cursor: pointer; }
.screen .over .bigplay { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; }

.ctrls { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.ctrls .time { font-family: var(--mono); font-size: 12px; color: var(--text-2); margin-right: auto; }

.journey { position: relative; margin-top: 18px; padding-top: 10px; }
.journey .track { position: relative; display: flex; gap: 3px; height: 40px; cursor: pointer; touch-action: none; user-select: none; }
.journey .sgm { position: relative; min-width: 6px; height: 100%; border-radius: var(--radius); background: var(--surface); overflow: hidden; display: flex; align-items: center; padding: 0 10px; }
.journey .sgm .fl { position: absolute; inset: 0 auto 0 0; background: var(--surface-active); }
.journey .sgm span { position: relative; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey .sgm.on span { color: var(--text); }
.journey .idle { position: absolute; bottom: 4px; height: 4px; border-radius: 2px; pointer-events: none; background: repeating-linear-gradient(90deg, var(--text-3) 0 5px, transparent 5px 9px); opacity: 0.7; }
.journey .hd { position: absolute; top: 18px; bottom: 8px; width: 3px; margin-left: -1.5px; border-radius: 99px; background: var(--text); pointer-events: none; z-index: 3; }
.journey .mk { position: absolute; top: 0; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; border: 2px solid var(--panel); z-index: 2; }
/* happened after the last recorded frame (checkout tapped as the page left, the checkout pixel): drawn at the bar's end */
.journey .mk.late { outline: 1.5px dashed var(--text-3); outline-offset: 1px; }
.journey .legend { margin-top: 10px; flex-wrap: wrap; }
.journey .legend i { width: 8px; height: 8px; border-radius: 50%; }

.sidepanel { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 76px; }
.feed { max-height: 56vh; overflow-y: auto; display: flex; flex-direction: column; }
.feed .it { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 9px 6px; border-radius: var(--radius); cursor: pointer; }
.feed .it:hover { background: var(--surface); }
.feed .it.now { background: var(--surface-active); }
.feed .it .t { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); padding-top: 1px; }
.feed .it b { font-weight: 500; font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .it .s { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; font-size: 13px; margin: 0; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
textarea.note { width: 100%; min-height: 64px; resize: vertical; border: 0; border-radius: var(--radius); background: var(--surface); padding: 10px 12px; font-size: 13px; outline: none; }

/* ---------- heatmap ---------- */
.content:has(> .hm) { max-width: none; } /* the map gets the whole width, a desktop page is wide */
/* controls | map | click list side by side; only below 1100 px (see responsive) the list moves under the map */
.hm { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.hm .ctl { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: contain; } /* scrolls on its own (ali: it waited for the page to scroll first) */
.hm .stagewrap { position: sticky; top: 76px; } /* the map stays in view while the click list scrolls */
.stagewrap { position: relative; min-width: 0; }
.hstage { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); overflow-x: hidden; overflow-y: auto; height: calc(100vh - 120px); box-shadow: var(--shadow); }
/* phone / tablet: the card is exactly as wide as the device (--devw, set by the page), no frame or margins */
.hm.framed { grid-template-columns: 260px fit-content(var(--devw, 420px)) minmax(300px, 1fr); }
.hm.framed .stagewrap { width: 100%; max-width: var(--devw, 100%); }
.hstage .scaler.dev-desktop { box-shadow: 0 0 0 1px var(--line-strong); }
.stagefull { display: none; position: absolute; top: 14px; right: 22px; z-index: 8; height: 30px; padding: 0 10px; gap: 6px; font-size: 12px; background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow-pop); }
.stagefull svg { width: 15px; height: 15px; }
/* full screen: the map covers the window */
.hm .stagewrap.full { position: fixed; inset: 0; z-index: 200; top: 0; width: auto; max-width: none; }
.stagewrap.full .hstage { height: 100vh; height: 100dvh; border: 0; border-radius: 0; }
.stagewrap.full .stagefull { display: inline-flex; }
html.hm-full, html.hm-full body { overflow: hidden; }
.hstage .scaler { position: relative; transform-origin: 0 0; margin: 0 auto; }
.hstage canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.hstage iframe { border: 0; background: #fff; display: block; }
.hstage .replayer-mouse, .hstage .replayer-mouse-tail { display: none !important; }
.hstage .fold { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(0, 0, 0, 0.6); pointer-events: none; }
.hstage .fold span { position: absolute; right: 8px; top: 4px; font: 500 11px var(--mono); background: rgba(0, 0, 0, 0.75); color: #fff; padding: 2px 6px; border-radius: 4px; }
.hstage .reach { position: absolute; right: 8px; font: 500 11px var(--mono); background: rgba(0, 0, 0, 0.75); color: #fff; padding: 2px 6px; border-radius: 4px; transform: translateY(-50%); pointer-events: none; }
.elist .el { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 6px; border-radius: var(--radius); font-size: 13px; cursor: pointer; }
.elist .el:hover { background: var(--surface); }
.elist .el .rk { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.elist .el .sh { position: relative; height: 3px; border-radius: 2px; background: var(--surface); margin-top: 5px; overflow: hidden; }
.elist .el .sh i { position: absolute; inset: 0 auto 0 0; background: var(--accent-2); border-radius: 2px; }
.elist .el.hl { background: var(--surface-active); }
.pagepick { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.pagepick button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; color: var(--text-2); }
.pagepick button:hover { background: var(--surface); color: var(--text); }
.pagepick button.on { background: var(--surface-active); color: var(--text); }
.pagepick button .n { font-family: var(--mono); font-size: 11px; color: var(--text-3); }

.pixelcode { position: relative; margin: 10px 0 0; padding: 12px; border-radius: var(--radius); background: var(--surface); font: 12px/1.5 var(--mono); white-space: pre; overflow: auto; max-height: 220px; }
ol.steps { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }
ol.steps li { margin: 4px 0; }
ol.steps b { color: var(--text); font-weight: 500; }

/* ---------- responsive ---------- */
/* only a narrow window moves the click list under the map; down to 1100 px it stays as the right-hand column */
@media (max-width: 1100px) {
  .hm, .hm.framed { grid-template-columns: 240px minmax(0, 1fr); }
  .hm .ctl { grid-row: 1 / span 2; }
  .hm .stagewrap { position: relative; top: auto; }
  .hm .elist-col { grid-column: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; align-items: start; }
  .hm .elist-col > * { margin: 0 !important; }
}
@media (max-width: 1180px) {
  .player { grid-template-columns: minmax(0, 1fr); }
  .sidepanel { position: static; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: 6px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .brand { padding: 0 6px 0 0; }
  .brand small, .navgroup h6, .side .foot, .navgroup a .count { display: none; }
  .sidetoggle { display: none; }
  .navgroup { flex-direction: row; gap: 2px; }
  .navgroup a { height: 32px; white-space: nowrap; }
  .topbar { position: static; padding: 12px 16px; }
  .content { padding: 16px 16px 40px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .hm, .hm.framed { grid-template-columns: minmax(0, 1fr); }
  .hm.framed .stagewrap { justify-self: center; }
  .hm .ctl, .hm .stagewrap { position: static; }
  .hm .ctl { max-height: none; overflow: visible; }
  .hm .ctl { grid-row: auto; }
  .hm .elist-col { grid-column: 1; }
  .hstage { height: 70vh; }
  .srow { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .srow .when { flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .kpi .v { font-size: 20px; }
  .srow .who { grid-column: 1 / -1; order: 3; }
  .srow .tags { max-width: none; justify-content: flex-start; grid-column: 1 / -1; order: 4; }
  .fstep { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
  .fstep .trk { grid-column: 1 / -1; order: 3; height: 26px; }
  .fdrop { grid-template-columns: minmax(0, 1fr); }
  .fdrop span:empty { display: none; }
  .screen { height: 56vh; }
}
.ov-top { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .ov-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- refinements after design review ---------- */
/* one row height, one quiet selection style */
.seg button { height: 32px; }
.btn, .chip { height: var(--row); }
.chip { border-radius: var(--radius); }
.chip.on { background: var(--surface-active); color: var(--text); border-color: transparent; }
.chip.on .c { opacity: 1; color: var(--text-2); }
.btn.on { background: var(--surface-active); color: var(--text); box-shadow: none; }
.panelbox .seg { display: flex; }
/* Core Web Vitals: p75 with Google's rating (good / needs improvement / poor) */
.vital { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); white-space: nowrap; }
.vital i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.vital.good i { background: #1f9d55; } .vital.ni i { background: #e0a100; } .vital.poor i { background: #d64541; }
.vitals-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 0; font-size: 13px; }
@media (max-width: 640px) { .vitals-grid { grid-template-columns: minmax(0, 1fr) repeat(3, minmax(58px, auto)); font-size: 12px; } .vitals-grid .vital { gap: 4px; } }
.vitals-grid > * { padding: 9px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.vitals-grid .h { color: var(--text-3); font-size: 12px; }
.panelbox .seg button { flex: 1; }

/* sliders: handle never sits on the edge; dimmed at "no limit" */
.slider.atmin .handle { opacity: 0.35; }

/* info icon + tooltips (hover on desktop, tap on touch) */
.infoic { display: inline-flex; width: 14px; height: 14px; color: var(--text-3); cursor: help; margin-left: 2px; }
.infoic svg { width: 14px; height: 14px; }
[data-tip].tip-open::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 50; padding: 6px 9px; border-radius: 6px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 400; white-space: normal; width: max-content; max-width: 240px; line-height: 1.35; pointer-events: none; }
.tags [data-tip]:hover::after, .tags [data-tip].tip-open::after, th [data-tip]:hover::after { left: auto; right: 0; transform: none; }
th [data-tip]:hover::after { bottom: auto; top: calc(100% + 6px); }
th .infoic { vertical-align: -3px; }

/* session list: aligned columns */
.srow { grid-template-columns: 168px minmax(0, 1.2fr) 300px 240px; }
.srow .who { flex-wrap: wrap; }
.srow .tags { max-width: none; }

/* funnel: quieter bars, explicit column header */
.fhead { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px; gap: 14px; font-size: 12px; color: var(--text-3); padding-bottom: 2px; }
.fhead span:last-child { text-align: right; }
.fstep .trk { height: 28px; }
.fstep .trk .f { background: var(--accent); opacity: 1; }
a.trk:hover .f { background: var(--accent-deep); }

/* tables: no wrapped numbers, first column stays visible while scrolling sideways */
table.t td.r, table.t td.mono { white-space: nowrap; }
table.t th:first-child, table.t td:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); }
table.t th:first-child { background: var(--panel-2); z-index: 2; }
table.t tr.link:hover td:first-child { background: color-mix(in srgb, var(--panel) 90%, var(--text) 4%); }
table.t td .sub { display: block; }
.dot-bad { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); margin-right: 5px; vertical-align: 1px; }

/* section headings match card headings */
.section > h2 { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.section > p { font-size: 12px; color: var(--text-3); }

/* filters as one DialKit-like panel */
.filters { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px; border-radius: var(--radius-l); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* heatmap */
.hstage.is-empty { height: auto; min-height: 320px; display: grid; place-items: center; }
.typegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.typegrid .btn { justify-content: flex-start; padding: 0 10px; height: 32px; font-weight: 400; color: var(--text-2); }
.typegrid .btn.on { color: var(--text); font-weight: 500; }

/* player without a video */
.feed .it.static { cursor: default; }
.feed .it .t { white-space: nowrap; }

/* scroll hints on horizontal strips (scrollbars are hidden) */
.chips, .seg.scrolls { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }

@media (max-width: 900px) {
  .side { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .srow { grid-template-columns: minmax(0, 1fr); }
  .srow .who { flex-wrap: wrap; }
  .filters { grid-template-columns: minmax(0, 1fr); }
  .fhead { grid-template-columns: minmax(0, 1fr) auto; }
  .fhead span:nth-child(2) { display: none; }
  .btn .lbl-wide { display: none; }
  .insight b { -webkit-line-clamp: 1; }
}

/* touch sessions: the finger stays visible as a translucent dot, darker while touching, with a ripple on each tap */
.screen .replayer-mouse.touch-device {
  background-image: none !important;
  width: 44px; height: 44px; margin-left: -22px; margin-top: -22px;
  border-radius: 50%;
  border: 2px solid rgba(46, 107, 255, 0.75) !important;
  background: rgba(46, 107, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 1;
  transition: left 0.08s linear, top 0.08s linear, background 0.15s ease, transform 0.15s ease;
}
.screen .replayer-mouse.touch-device.touch-active {
  background: rgba(46, 107, 255, 0.5);
  border-color: rgba(46, 107, 255, 1) !important;
  transform: scale(0.88);
}
.screen .replayer-mouse.touch-device.active::after {
  content: ""; position: absolute; left: -12px; top: -12px; width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid rgba(46, 107, 255, 0.6); background: none; animation: tapring 0.5s ease-out;
}
@keyframes tapring { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
/* touch replays: while the finger moves (scroll, touch move) it is a faint hollow dot with "kaydırıyor"; a real tap
   flashes solid with the ripple. Finger down without a tap is not darker (that read as pressing). */
.screen.touchrec .replayer-mouse.touch-device { background: rgba(46, 107, 255, 0.12); border-color: rgba(46, 107, 255, 0.75) !important; }
.screen.touchrec .replayer-mouse.touch-device.touch-active { background: rgba(46, 107, 255, 0.12); transform: none; }
.screen.touchrec .replayer-mouse.touch-device.active { background: rgba(46, 107, 255, 0.6); border-color: rgba(46, 107, 255, 1) !important; }
.screen.touchrec .replayer-mouse.touch-device.moving, .screen.touchrec .replayer-mouse.touch-device.moving.active { background: transparent; border-color: rgba(46, 107, 255, 0.4) !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6); }
.screen .replayer-mouse .fhint { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); padding: 2px 7px; border-radius: 99px; background: rgba(17, 17, 17, 0.72); color: #fff; font: 500 11px var(--font); white-space: nowrap; opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.screen .replayer-mouse.moving .fhint { opacity: 1; }
.legend .fleg i { width: 10px; height: 10px; border-radius: 50%; }
.legend .fleg i.tap { background: rgba(46, 107, 255, 0.85); }
.legend .fleg i.mv { background: none; border: 1.5px solid rgba(46, 107, 255, 0.6); box-sizing: border-box; }

/* collapsed menu (icon rail): the label right of the icon at once on hover or keyboard focus (desktop only) */
.railtip { position: fixed; z-index: 1000; transform: translateY(-50%); padding: 5px 9px; border-radius: 7px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 500; line-height: 1.2; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.railtip::before { content: ""; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; background: inherit; transform: translateY(-50%) rotate(45deg); border-radius: 1px; }

/* mid-size screens: session rows on two lines so tags never run off the edge */
@media (min-width: 901px) and (max-width: 1360px) {
  .srow { grid-template-columns: 150px minmax(0, 1fr) auto; row-gap: 8px; }
  .srow .when { grid-row: 1 / span 2; }
  .srow .tags { grid-column: 3; grid-row: 1; }
  .srow .who { grid-column: 2 / span 2; grid-row: 2; }
}

/* heatmap: gallery swipe strip */
.gstrip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gslide { flex: 0 0 76px; display: flex; flex-direction: column; gap: 5px; padding: 4px; border: 1px solid transparent; border-radius: var(--radius); background: none; cursor: pointer; text-align: left; color: var(--text); }
.gslide:hover { background: var(--surface); }
.gslide.on { border-color: transparent; background: var(--surface-active); }
.gslide .gimg { position: relative; display: block; width: 66px; height: 82px; border-radius: 6px; overflow: hidden; background: var(--surface-active); }
.gslide .gimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gslide .gno { position: absolute; left: 4px; top: 4px; font: 500 10px var(--mono); background: rgba(0, 0, 0, 0.6); color: #fff; padding: 1px 5px; border-radius: 4px; }
.gslide .gvid { position: absolute; right: 4px; bottom: 4px; font-size: 10px; background: rgba(0, 0, 0, 0.6); color: #fff; padding: 1px 4px; border-radius: 4px; }
.gslide .greach { display: block; height: 4px; border-radius: 2px; background: var(--surface-active); overflow: hidden; }
.gslide .greach i { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.gslide .gnum { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.gslide .gnum b { font: 500 11px var(--mono); color: var(--text); }

/* heatmap: controls on sideways strips inside the page view */
.hstage .strips { position: absolute; inset: 0; pointer-events: none; }
.hstage .stripbox { position: absolute; border: 0; pointer-events: none; }
.hstage .stripbox.on { border-color: transparent; } /* no outline on the page (ali) */
.hstage .stripcnt { position: absolute; z-index: 6; transform-origin: top center; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.9); color: #333; font: 500 11px var(--mono); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity 0.15s; }
.hstage .stripcnt.on { opacity: 1; }
.hstage .stripbox { pointer-events: auto; cursor: grab; touch-action: pan-y; }
/* gallery swipes on the map: one part per slide on the strip's bottom edge, filled by the share of views that saw it */
.hstage .swipebar { position: absolute; z-index: 5; transform-origin: top left; display: flex; height: 3px; pointer-events: none; }
.hstage .swipebar[hidden] { display: none; }
.hstage .swipebar i { flex: 1; min-width: 2px; background: rgba(17, 17, 17, 0.12); overflow: hidden; }
.hstage .swipebar i b { display: block; height: 100%; background: rgba(17, 17, 17, 0.55); }
.hstage .stripbox.drag { cursor: grabbing; }
.brand .logo { width: 28px; height: 28px; flex: none; display: block; }
/* selected row: raised like the selected segment of a segmented control, its bar in the accent colour; the list never moves */
.elist .el { grid-template-columns: 22px minmax(0, 1fr) auto 22px; }
.elist .el .lbl { display: flex; align-items: center; gap: 6px; min-width: 0; }
.elist .el .nd { display: none; color: var(--text-3); flex: none; }
.elist .el .nd svg { width: 14px; height: 14px; display: block; }
.elist .el.nodraw .nd { display: inline-flex; }
.elist .el .clr { visibility: hidden; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); font-size: 16px; line-height: 1; cursor: pointer; }
.elist .el .clr:hover { background: var(--surface-hover); color: var(--text); }
.elist .el.focus { background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--line-strong); }
.elist .el.focus .trunc { color: var(--text); font-weight: 500; }
.elist .el.focus .sh i { background: var(--accent); }
.elist .el.focus .clr { visibility: visible; }
#stat { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gallery:empty { display: none; }
/* touch screens have no hover: keep the arrows reachable there */

/* ---------- login page (served by the app; /app.css is public so this page can use the same tokens) ---------- */
.login-body { min-height: 100vh; min-height: 100dvh; }
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; padding: 28px 24px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); }
.login-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 6px; }
.login-logo { width: 48px; height: 48px; display: block; margin-bottom: 14px; }
.login-head h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.login-head p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.login-error { margin: 0; padding: 9px 12px; border-radius: var(--radius); background: var(--bad-bg); color: var(--bad); font-size: 13px; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-field > span { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.login-field input { height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--radius); background: var(--surface); outline: none; font-size: 14px; transition: background 0.12s, border-color 0.12s; }
.login-field input:hover { background: var(--surface-hover); }
.login-field input:focus { background: var(--panel); border-color: var(--line-strong); box-shadow: 0 0 0 3px var(--surface); }
.login-check { position: relative; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 28px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.login-check input { position: absolute; opacity: 0; width: 16px; height: 16px; margin: 0; }
.login-check .box { width: 16px; height: 16px; flex: none; display: grid; place-items: center; border-radius: 4px; border: 1.5px solid var(--line-strong); color: transparent; transition: background 0.12s, border-color 0.12s; }
.login-check .box svg { width: 12px; height: 12px; }
.login-check input:checked + .box { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.login-check input:focus-visible + .box { box-shadow: 0 0 0 3px var(--surface-active); }
.login-check:hover { color: var(--text); }
.login-btn { height: 40px; margin-top: 4px; border: 0; border-radius: var(--radius); background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 500; cursor: pointer; transition: opacity 0.12s; }
.login-btn:hover { opacity: 0.9; }
.login-btn:disabled { opacity: 0.6; cursor: default; }
.login-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 600px) {
  .login { align-items: start; padding-top: 12vh; }
  .login-card { padding: 24px 20px 20px; }
  .login-field input { height: 44px; font-size: 16px; } /* 16px keeps iOS from zooming in */
  .login-btn { height: 44px; }
}

/* sign-out at the bottom of the sidebar, a nav-style row right above the live indicator
   (on phones it sits at the end of the top strip, where the live indicator is hidden) */
.side .foot.has-logout { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 10px; padding: 0; }
.side .foot.has-logout .live { padding: 0 10px; }
.logout { margin: 0; }
.logout button { width: 100%; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border: 0; border-radius: var(--radius); background: transparent; color: var(--text-2); font-size: 14px; cursor: pointer; text-align: left; }
.logout button:hover { background: var(--surface); color: var(--text); }
.logout svg { width: 16px; height: 16px; flex: none; opacity: 0.8; }
@media (max-width: 900px) {
  .side .foot.has-logout { flex-direction: row; margin: 0 0 0 auto; padding: 0 22px 0 0; flex: none; } /* clear of the strip's fade-out edge */
  .side .foot.has-logout .live { display: none; }
  .logout button { width: auto; height: 32px; white-space: nowrap; }
}
.elist .el .caret { display: inline-flex; flex: none; color: var(--text-3); transition: transform 0.15s; }
.elist .el .caret svg { width: 12px; height: 12px; display: block; }
.elist .el.open .caret { transform: rotate(90deg); }
.elist .el.sub { padding-top: 5px; padding-bottom: 5px; font-size: 12.5px; }
.elist .el.sub .lbl { padding-left: 18px; }
.cj h4 { margin: 12px 0 6px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.cj h4:first-child { margin-top: 0; }
.cj .tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 4px 0; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.cj .tr:last-child { border-bottom: 0; }
.cj .tr .mono { color: var(--text-2); }
.hstage .pins { position: absolute; inset: 0; pointer-events: none; }
.cartstage { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); min-height: 200px; }
.cartstage .scaler { position: relative; transform-origin: 0 0; }
.cartstage iframe { border: 0; background: #fff; display: block; }
.elist a.el.drawer { color: var(--text-2); text-decoration: none; }
.elist a.el.drawer:hover { color: var(--text); }

/* attribution for the IP → place data (DB-IP, CC BY 4.0) */
a.dbip { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---- heatmap: design versions and the runnable page copy (heatmap-copy.js) ---- */
.vlist { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.vrow { display: flex; flex-direction: column; gap: 3px; text-align: left; border: 0; background: transparent; padding: 7px 8px; border-radius: 6px; cursor: pointer; color: var(--text-2); min-width: 0; }
.vrow:hover { background: var(--surface); color: var(--text); }
.vrow.on { background: var(--surface-active); color: var(--text); }
.vrow .vt { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.vrow .vt b { font-weight: 500; }
.vrow .vt .n { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.vrow .vs { display: flex; align-items: center; gap: 6px; min-width: 0; }
.vrow .tag { height: 20px; font-size: 11px; flex: none; }
.vhint { margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.vhint b { color: var(--text); font-weight: 500; }
.vhint .btn { align-self: flex-start; }
.hookgap { margin-bottom: 12px; border-color: var(--warn); background: var(--warn-bg); font-size: 12.5px; color: var(--text-2); }
.hookgap b { color: var(--warn); font-weight: 600; }
.hookgap code { font-size: 11.5px; }
.hstage.copy-mode { overflow: hidden; }
.hstage .cscaler { position: relative; overflow: hidden; }
.hstage .cscaler iframe { position: absolute; left: 0; top: 0; transform-origin: 0 0; border: 0; background: #fff; display: block; }

/* Trafik → Reklamlar: campaign → ad set → ad as an indented tree */
table.ads .adlvl { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 260px; }
table.ads .adlvl.l1 { padding-left: 14px; } table.ads .adlvl.l2 { padding-left: 28px; }
table.ads tr.l0 td { font-weight: 600; } table.ads tr.l0 td .faint { font-weight: 400; }
table.ads .adlvl .sub { display: inline; margin: 0; }
table.ads .adname { width: 22px; height: 22px; font-size: 12px; opacity: 0.5; } table.ads tr:hover .adname { opacity: 1; }
table.ads .adinput { height: 26px; width: 200px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel); color: var(--text); font: 13px var(--font); }
/* gallery card: a count that is partly estimated (old rows, gap after a fast swipe) */
.gest { margin-left: 2px; color: var(--warn, #b7791f); font-weight: 600; cursor: help; }
/* visitor's own clock: recording id in the player, id search in Kayıtlar, hour-of-day chart in Trafik */
.recid { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13px; }
.recid .btn { height: 28px; padding: 0 8px; font-size: 12px; }
.idfind input { height: 32px; width: 210px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); font: 13px var(--font); }
.srow .when .faint { display: block; }
.hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; }
.hours .hcol { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.hours .hbar { width: 100%; height: 120px; display: flex; align-items: flex-end; }
.hours .hbar i { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 100%; min-height: 1px; background: var(--surface-active); border-radius: 3px 3px 0 0; overflow: hidden; }
.hours .hbar i b { display: block; width: 100%; background: var(--accent); }
.hours .hcol span { font-size: 10px; color: var(--text-3); height: 12px; }
@media (max-width: 640px) { .idfind input { width: 100%; } .idfind { flex: 1 1 100%; } }

.subtabs { margin-bottom: 12px; }
/* heatmap controls: the two buttons under the groups sit side by side; the right column's tabs sit on top */
.ctlacts { display: flex; gap: 8px; margin-top: 12px; }
.ctlacts > .btn { flex: 1; justify-content: center; }
#rtabs .tabs { margin-bottom: 12px; }

/* ---------- one job, one component (see core.js) ---------- */
/* page section tabs: underlined, not a grey box */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 36px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.tabs button .c { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-left: 5px; }
.tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.toolbar .tabs { margin: 0; border-bottom: 0; }

/* top-bar filter: a quiet button with the value, a short list under it */
.dd { position: relative; flex: none; }
.ddb { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ddb:hover { background: var(--panel-2); }
.ddb .k { color: var(--text-3); }
.ddb::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 4px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg); }
.ddm { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 100%; display: flex; flex-direction: column; padding: 4px; border-radius: var(--radius-l); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.ddm button { height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; white-space: nowrap; cursor: pointer; }
.ddm button:hover, .ddm button:focus-visible { background: var(--surface); outline: none; }
.ddm button[aria-selected="true"] { background: var(--surface-active); }
.topbar .dd + .dd { margin-left: -4px; }

/* the small quiet choice inside a card header */
.seg.s { padding: 0; background: none; gap: 2px; }
.seg.s .pill { top: 0; bottom: 0; background: var(--surface-active); box-shadow: none; }
.seg.s button { height: 24px; padding: 0 8px; font-size: 12px; }

/* folding settings group (heatmap controls) */
.grp { border-top: 1px solid var(--line); }
.grp:first-child { border-top: 0; }
.grp > summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) 10px; gap: 8px; align-items: center; height: 34px; padding: 0 6px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; }
.grp > summary::-webkit-details-marker { display: none; }
.grp > summary:hover { background: var(--surface); }
.grp > summary .sum { color: var(--text-3); font-weight: 400; font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp > summary::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(-45deg); justify-self: center; }
.grp[open] > summary::after { transform: rotate(45deg); margin-top: -3px; }
.grp[open] > summary .sum { visibility: hidden; }
.grp > .gb { display: flex; flex-direction: column; gap: var(--gap); padding: 4px 0 12px; }
.panelbox.grouped { gap: 0; padding: 6px 10px; }

/* emphasis: the page's main number is bigger and framed; a small trend line under the numbers */
.kpi.hero { background: var(--hl); color: var(--on-hl); border-color: transparent; }
.kpi.hero .k, .kpi.hero .d, .kpi.hero .d .faint, .kpi.hero .infoic { color: color-mix(in srgb, var(--on-hl) 72%, transparent); }
.kpi.hero .d .up, .kpi.hero .d .down { color: var(--on-hl); font-weight: 600; }
.kpi.hero .v { font-size: 34px; font-weight: 600; }
.kpi .spark { display: block; width: 100%; height: 26px; margin-top: 8px; }
.kpi .spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.kpi.hero .spark polyline { stroke: var(--on-hl); }
.kpi .spark.bad polyline { stroke: var(--bad); }
@media (min-width: 1600px) { .kpis .kpi.hero { grid-column: span 2; } }
.kpi .v { white-space: nowrap; }
.toolbar .dd .ddm { right: auto; left: 0; }

/* Ürünler › boy ve renk */
.vsizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.vsz { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 12px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.vsz.main { background: color-mix(in srgb, var(--hl) 55%, var(--panel)); border-color: transparent; }
.vszh { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 2px; }
.vszh b { font-weight: 600; }
.vst { display: grid; grid-template-columns: 52px minmax(0, 1fr) 48px; gap: 8px; align-items: center; font-size: 12px; color: var(--text-2); }
.vst .tr { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.vst .tr i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.vst .tr i.l { background: var(--accent-2); }
.vst .n { text-align: right; font-family: var(--mono); color: var(--text); }
.variants .vh { margin: 18px 0 6px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.vcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.vcs { display: grid; grid-template-columns: 18px minmax(0, 1fr) 52px 52px 40px; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 6px; font-size: 13px; }
.vcs:not(.hd):hover { background: var(--surface); }
.vcs .mono { text-align: right; }
.vcs.hd { font-size: 11.5px; color: var(--text-3); padding-bottom: 2px; }
.vcs.hd span:nth-child(n+3) { text-align: right; }
.vcs .dot { width: 16px; height: 16px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.vmore > summary { list-style: none; margin-top: 6px; width: fit-content; }
.vmore > summary::-webkit-details-marker { display: none; }
.vmore[open] > summary { display: none; }
details.tbl > summary { list-style: none; width: fit-content; margin: 4px 0 10px; }
details.tbl > summary::-webkit-details-marker { display: none; }
@media (max-width: 900px) { .vcols { grid-template-columns: minmax(0, 1fr); } .vcs.hd2 { display: none; } }

/* Kaynaklar: one bar per source, its parts = how far the visits went */
.sbars { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.sbar { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) 48px 44px; gap: 12px; align-items: center; padding: 6px; border-radius: 6px; font-size: 13px; }
.sbar:hover { background: var(--surface); }
.sbar .mono { text-align: right; font-size: 12px; }
.strk { display: block; height: 14px; }
.sfill { display: flex; height: 100%; border-radius: 4px; overflow: hidden; min-width: 3px; }
.sfill i { display: block; height: 100%; }
.s4 { background: var(--accent-deep); } .s3 { background: var(--accent); } .s2 { background: var(--accent-2); } .s1 { background: var(--surface-active); }
.slegend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.slegend span { display: inline-flex; align-items: center; gap: 6px; }
.slegend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.card > details.tbl { margin-top: 10px; }

/* ---------- Günlük rapor (views/daily.js): the day's main number on lime, the rest in one card of rows ---------- */
.daypick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.daypick .seg button.on { background: var(--panel); box-shadow: 0 0 0 0.5px var(--line-strong), 0 1px 2px rgba(0, 0, 0, 0.06); }
.daypick .stepper { display: inline-flex; align-items: center; gap: 2px; height: 36px; padding: 0 2px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--panel); }
.daypick .stepper span { font-size: 13px; font-weight: 500; padding: 0 4px; white-space: nowrap; }
.daypick .stepper .btn { height: 30px; width: 30px; }
.daypick .stepper .btn:disabled { opacity: 0.3; cursor: default; }
.dr-lede { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow); }
.dr-hero { background: var(--hl); color: var(--on-hl); border-radius: var(--radius-l); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; align-self: start; }
.dr-hero .k { font-size: 12px; }
.dr-hero .v { font-family: var(--mono); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.dr-hero .s { font-family: var(--mono); font-size: 12px; }
.dr-say { display: grid; gap: 10px; align-content: start; min-width: 0; }
.dr-lede h2 { margin: 0; font-size: 13px; font-weight: 500; color: var(--text-2); }
.dr-lede ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.dr-lede li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.45; }
.dr-lede li b { font-weight: 600; }
.dr-lede li i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; margin-top: 3px; background: var(--surface-active); color: var(--text-2); }
.dr-lede li i.up { color: var(--good); }
.dr-lede li i.dn { background: var(--bad-bg); color: var(--bad); }
.dr-lede p { margin: 0; }
.dr-nums { margin-top: 12px; }
.dr-row { display: grid; grid-template-columns: 140px 84px 220px minmax(0, 1fr); gap: 16px; align-items: center; padding: 8px 10px; border-radius: var(--radius); }
.dr-row + .dr-row { border-top: 1px solid var(--line); }
.dr-row.hd { font-size: 11px; color: var(--text-3); padding-block: 0 4px; }
.dr-row.hl { background: color-mix(in srgb, var(--hl) 55%, transparent); border-color: transparent; }
.dr-row.hl + .dr-row { border-color: transparent; }
.dr-row .lab { font-size: 13px; }
.dr-row .val { font-family: var(--mono); font-size: 19px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.dr-bars { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; align-items: end; height: 30px; }
.dr-bars i { display: block; background: var(--surface-active); border-radius: 2px 2px 0 0; }
.dr-bars i.on { background: var(--accent); }
.dr-bars .avg { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--text-2); opacity: 0.7; pointer-events: none; }
.dr-dnames { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; text-align: center; white-space: nowrap; }
.dr-dnames span:last-child { color: var(--accent); }
.dr-row .verdict { font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dr-row .verdict b { font-weight: 500; color: var(--text); }
.dr-row .verdict .faint { font-size: 12px; }
.dr-lede .d, .dr-row .d, .dr-sp .d { font-family: var(--mono); font-size: 12px; }
.d.up { color: var(--good); } .d.dn { color: var(--bad); } .d.eq { color: var(--text-3); }
.dr-mini { display: block; }
.dr-fnote { margin: 10px 0 0; font-size: 13px; color: var(--text-2); }
.dr-fnote b { color: var(--text); font-weight: 600; }
.dr-bnote { margin: 0 0 10px; }
.dr-books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.dr-bcol { display: flex; flex-direction: column; gap: 6px; align-items: center; min-width: 0; text-align: center; }
.dr-bstack { display: flex; flex-wrap: wrap-reverse; gap: 4px; justify-content: center; align-items: flex-end; min-height: 52px; }
.dr-bk { position: relative; border-radius: 2px 4px 4px 2px; box-shadow: inset 3px 0 0 rgba(0, 0, 0, 0.18); }
.dr-bk.sold::after { content: ""; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--hl); box-shadow: 0 0 0 2px var(--panel); }
.dr-bcol b { font-size: 13px; font-weight: 500; }
.dr-bcol > span { font-size: 11px; color: var(--text-3); }
.dr-g2 { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.dr-g3 { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.dr-sec { margin-top: 12px; }
.dr-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.dr-size { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: grid; gap: 2px; align-content: start; }
.dr-size.top { background: color-mix(in srgb, var(--hl) 45%, var(--panel)); border-color: transparent; }
.dr-size .nm { font-size: 13px; font-weight: 500; }
.dr-size .mm { font-size: 11px; color: var(--text-3); }
.dr-size .c { font-family: var(--mono); font-size: 20px; margin-top: 4px; }
.dr-colours { display: grid; gap: 6px; margin-top: 12px; }
.dr-crow { display: grid; grid-template-columns: 14px minmax(0, 1fr) 56px 56px; gap: 8px; align-items: center; font-size: 13px; }
.dr-crow.hd { font-size: 11px; color: var(--text-3); }
.dr-crow .mono, .dr-crow.hd span:nth-child(n+3) { text-align: right; }
.dr-sw { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); flex: none; }
.dr-recs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dr-rec { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.dr-why { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dr-why .tag { font-weight: 500; }
.dr-rec .story { margin: 0; font-size: 14px; line-height: 1.5; }
.dr-rec .meta { font-size: 12px; color: var(--text-3); }
.dr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dr-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; height: 22px; padding: 0 8px 0 5px; border-radius: 6px; background: var(--surface); color: var(--text-2); }
.dr-chip .dr-sw { width: 12px; height: 12px; border-radius: 3px; }
.dr-open { justify-self: start; height: 30px; }
.dr-list { display: grid; }
.dr-li { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.dr-li:first-child { border-top: 0; padding-top: 0; }
.dr-li b { font-weight: 500; font-size: 13px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.dr-li b .tag { height: 18px; font-size: 11px; }
.dr-li > span { font-size: 12px; color: var(--text-2); }
.dr-li:hover b .trunc { text-decoration: underline; text-underline-offset: 3px; }
.dr-ads { display: grid; margin-bottom: 8px; }
.dr-adrow { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 52px); gap: 6px; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line); align-items: baseline; }
.dr-adrow.hd { border-top: 0; font-size: 11px; color: var(--text-3); padding-top: 0; }
.dr-adrow > span:nth-child(n+2) { text-align: right; }
.dr-speed { display: grid; gap: 10px; margin-bottom: 8px; }
.dr-sp { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
.dr-sp .v .vital { font-size: 17px; }
@media (max-width: 1180px) {
  .dr-g3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .dr-g2, .dr-g3, .dr-recs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .dr-lede { grid-template-columns: minmax(0, 1fr); }
  .dr-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .dr-row .dr-bars, .dr-row .verdict { grid-column: 1 / -1; }
  .dr-row.hd { display: none; }
}
@media (max-width: 600px) {
  .dr-sizes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .dr-lede li { font-size: 15px; }
}

/* ---------- Satın alma yolculuğu as dots (core.js dotJourney) ---------- */
.jscroll { overflow-x: auto; }
.jchart { display: block; width: 100%; height: auto; }
.jchart text { font-family: var(--font); fill: var(--text-2); font-size: 11px; }
.jchart .st { font-size: 12px; fill: var(--text); font-weight: 500; }
.jchart .n { font-family: var(--mono); fill: var(--text); font-size: 12px; }
.jchart .pc { font-family: var(--mono); fill: var(--text-3); font-size: 11px; }
.jchart .ln { font-family: var(--mono); fill: var(--text); font-size: 12px; font-weight: 600; }
.jchart .lv { font-family: var(--mono); fill: var(--bad); font-size: 11px; }
.jchart .side { fill: var(--text-3); }
.jchart .ax { stroke: var(--line-strong); }
.jchart .brk { stroke: var(--line-strong); fill: none; }
.jchart .grpline { stroke: var(--line); stroke-dasharray: 2 3; }
.jchart circle.go { fill: var(--accent); }
.jchart circle.lost { fill: none; stroke: var(--text-3); stroke-width: 1.2; }
.jchart .worst { fill: var(--hl); }
.jchart .worst ~ circle.lost { stroke: color-mix(in srgb, var(--on-hl) 45%, transparent); }
.jchart .worst ~ text, .jchart .worst ~ text tspan { fill: var(--on-hl); }
.jchart .outline { fill: transparent; stroke: none; }
.jchart g.hit { cursor: pointer; outline: none; }
.jchart g.hit:hover .outline { fill: var(--surface); }
.jchart g.sel .outline { fill: var(--surface-active); }
.jchart g .worst ~ .outline { fill: transparent !important; }
.jchart g.hit:focus-visible .outline { stroke: var(--accent); stroke-width: 1.5; }
.ctip { position: fixed; z-index: 300; pointer-events: none; max-width: 260px; padding: 6px 9px; border-radius: 8px; background: var(--ink); color: var(--on-ink); font-size: 12px; line-height: 1.4; }
.jfoot { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.jfoot span { display: inline-flex; gap: 6px; align-items: center; }
.jfoot i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: var(--accent); }
.jfoot i.o { background: none; border: 1.2px solid var(--text-3); }
.jfoot i.sq { border-radius: 3px; background: var(--hl); }
.jfoot .sizes { gap: 3px; }
.jhead { display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 10px; }
.jhead .big { display: flex; flex-direction: column; gap: 2px; }
.jhead .big .v { font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.jhead .big .v .mark { background: var(--hl); color: var(--on-hl); padding: 0 5px; border-radius: 4px; }
.jhead .big .v.neg { color: var(--bad); }
.jhead .big .s { font-size: 12.5px; color: var(--text-2); }
/* the visits behind a group of dots */
.fvisits { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fvisits .fh { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.fvisits .fh b { font-size: 13px; font-weight: 600; }
.fvisit { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; }
.fvisit:hover { background: var(--surface); }
.fvisit .t { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.fvisit .m { color: var(--text-2); font-size: 12px; min-width: 0; }
.fvisit .m b { color: var(--text); font-weight: 500; }
.fvisit .cart { display: flex; gap: 4px; align-items: center; font-family: var(--mono); font-size: 12px; }
.fvisit .cart i { width: 11px; border-radius: 1px 3px 3px 1px; box-shadow: inset 2px 0 0 rgba(0, 0, 0, 0.18); display: inline-block; }
.fvisits .all { align-self: flex-start; font-size: 13px; color: var(--accent); }
.fvisits .all:hover { text-decoration: underline; }
@media (max-width: 640px) { .fvisit { grid-template-columns: minmax(0, 1fr) auto; } .fvisit .t { grid-column: 1 / -1; } }
.ov-funnel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 24px; align-items: center; }
.ov-fsay { display: grid; gap: 10px; font-size: 14px; }
.ov-fsay p { margin: 0; }
.ov-fsay .mark { background: var(--hl); color: var(--on-hl); font-family: var(--mono); font-weight: 600; padding: 0 5px; border-radius: 4px; margin-right: 4px; }
.ov-fsay .neg { font-family: var(--mono); color: var(--bad); font-weight: 600; }
@media (max-width: 900px) { .ov-funnel { grid-template-columns: minmax(0, 1fr); } }

/* player: play button at the start of the timeline, time at its end; speed, skip and the legend on the row under it */
.pbar { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.pbar .pp { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; flex: none; cursor: pointer; }
.pbar .pp svg { width: 16px; height: 16px; }
.pbar .pp:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pbar .journey { flex: 1; min-width: 0; margin-top: 0; padding-top: 0; }
.pbar .time { flex: none; font-family: var(--mono); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.ctrls { margin-top: 10px; }
.ctrls .legend { flex: 1; flex-wrap: wrap; margin: 0; min-width: 0; }
.ctrls .legend i { width: 8px; height: 8px; border-radius: 50%; }
.journey .sgm .fl { background: var(--accent-soft); }
.journey .hd { background: var(--accent); }

/* colour choice (views/variants.js colourChoice): interest × add rate, rules, hesitation pairs */
.cchoice { display: flex; flex-direction: column; gap: 10px; }
/* colour tiles: the covers themselves; a tile lights its dot in the chart */
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; margin-bottom: 18px; }
.ctile { display: grid; gap: 2px; min-width: 0; padding: 4px 4px 8px; border: 0; border-radius: var(--radius-l); background: transparent; color: var(--text); font: inherit; text-align: left; cursor: default; transition: background-color .16s ease-out, scale .26s cubic-bezier(.34, 1.56, .64, 1); }
.ctile .cv { display: block; aspect-ratio: 5 / 3; margin-bottom: 6px; border-radius: calc(var(--radius-l) - 4px); background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.ctile .cv.speck { background-image: radial-gradient(circle at 20% 30%, rgb(255 255 255 / .55) 0 1px, transparent 1.4px), radial-gradient(circle at 70% 60%, rgb(0 0 0 / .35) 0 1px, transparent 1.4px), radial-gradient(circle at 45% 80%, rgb(255 255 255 / .4) 0 .8px, transparent 1.2px); background-size: 11px 9px, 13px 11px, 7px 8px; }
.ctile .cv.metal { background-image: linear-gradient(115deg, transparent 20%, rgb(255 255 255 / .38) 42%, transparent 60%); }
.ctile b { font-weight: 500; font-size: 12.5px; padding: 0 2px; }
.ctile span { font-size: 11.5px; padding: 0 2px; }
.ctile[data-on] { background: var(--surface); scale: .985; }
.ctile:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.vchoice svg g[data-k] .dot { transition: opacity .2s ease-out; }
.vchoice svg.hot g[data-k]:not(.on) { opacity: .22; }
.vchoice svg.hot g[data-k].on .dot { stroke: var(--text); stroke-width: 2; }
.cscatter { display: block; width: 100%; height: auto; max-width: 980px; }
.cscatter text { font-family: var(--font); font-size: 11px; fill: var(--text-2); }
.cscatter .q { font-size: 12px; font-weight: 600; fill: var(--text); }
.cscatter .qa { fill: var(--text-3); }
.cscatter .gl { stroke: var(--line); }
.cscatter .mid { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.cscatter .opp { fill: var(--hl); opacity: 0.35; }
.cscatter .dot { stroke: var(--panel); stroke-width: 2; }
.cscatter .hit { fill: transparent; }
.cscatter g.thin .dot { opacity: 0.45; }
.cscatter g:focus { outline: none; }
.cscatter g:focus-visible .dot { stroke: var(--accent); }
.cchoice h4 { margin: 0 0 6px; font-size: 12px; font-weight: 500; color: var(--text-2); }
.ctodo p { margin: 0 0 6px; font-size: 13px; color: var(--text-2); }
.ctodo b { color: var(--text); font-weight: 600; }
.ctodo .mark { background: var(--hl); color: var(--on-hl); padding: 0 4px; border-radius: 3px; font-weight: 600; }
.cpair { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; padding: 3px 0; }
.cpair .sw2 { display: inline-flex; }
.cpair .sw2 i { width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 2px var(--panel); }
.cpair .sw2 i + i { margin-left: -4px; }
.cpair .mono, .tr2 .mono { color: var(--text-2); font-size: 12px; text-align: right; }
.tr2 { display: grid; grid-template-columns: 56px minmax(0, 1fr) 32px; gap: 8px; align-items: center; font-size: 12px; padding: 2px 0; }
.tr2 .t { height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.tr2 .t i { display: block; height: 100%; background: var(--accent); }

/* heatmap: the map choices by question; the phone frame at the visitors' own screen height (heatmap-copy.js) */
.typegroups { display: flex; flex-direction: column; gap: 8px; }
.tgroup h6 { margin: 0 0 3px; padding: 0 4px; font-size: 11px; font-weight: 500; color: var(--text-3); }
.stagewrap:not(.full) .hstage.vh-fixed { height: var(--vhpx); }
.scrpick { display: flex; flex-direction: column; gap: 4px; }
.scrpick:empty { display: none; }
.cj .cjchart { margin-bottom: 4px; }
.cscatter text.nm { paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
.feed .mark { background: var(--hl); color: var(--on-hl); padding: 0 5px; border-radius: 4px; }

/* ---------- Reklam videoları (views/creatives.js): hook bars, one card per video, its copy sets inside ---------- */
.cr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cr-bars .sbar { grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) 48px 44px; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.cr-card { display: flex; flex-direction: column; gap: 10px; }
.cr-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.cr-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cr-name b { font-weight: 600; font-size: 14px; }
.cr-num { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.cr-num .mono { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.cr-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.cr-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.cr-sets { display: flex; flex-direction: column; gap: 1px; border-top: 1px solid var(--line); padding-top: 8px; }
.cr-set { display: grid; grid-template-columns: 24px minmax(0, 0.9fr) minmax(0, 1fr) 32px 36px; gap: 8px; align-items: center; padding: 4px 6px; border-radius: 6px; font-size: 12px; color: inherit; text-decoration: none; }
.cr-set .strk { height: 8px; }
.cr-set .mono { text-align: right; }
.cr-set .mono:first-child { text-align: left; color: var(--text-2); }
a.cr-set[href]:hover { background: var(--surface); }
.cr-set.none { color: var(--text-3); }
@media (max-width: 520px) { .cr-grid { grid-template-columns: minmax(0, 1fr); } .cr-bars .sbar { grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) 40px 40px; gap: 8px; } }
.cr-link { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.cr-link:hover { border-color: var(--line-strong); }
.cr-head { margin-bottom: 12px; }
.cr-head h2 { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; margin: 0 0 4px; }
.cr-head p { margin: 0; font-size: 12px; color: var(--text-3); }

/* Günlük rapor: Reklam ve satış (Shopify + Meta) */
.dr-ext { margin-top: 12px; }
.dr-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.dr-kpi { display: grid; gap: 2px; padding: 10px; border-radius: var(--radius); background: var(--surface-active); min-width: 0; }
.dr-kpi .k { font-size: 12px; color: var(--text-3); }
.dr-kpi .v { font-family: var(--mono); font-size: 19px; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-kpi .s { display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; font-size: 12px; }
.dr-kpi .s .d { font-family: var(--mono); font-size: 12px; }
.dr-recon { margin-top: 12px; display: grid; }
.dr-rc { display: grid; grid-template-columns: 70px 80px 80px 80px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.dr-rc.hd { border-top: 0; font-size: 11px; color: var(--text-3); padding-top: 0; }
.dr-rc > span:nth-child(n+2):nth-child(-n+4) { text-align: right; }
.dr-rc .ok { color: var(--good); } .dr-rc .miss { color: var(--bad); }
@media (max-width: 600px) { .dr-rc { grid-template-columns: 60px repeat(3, minmax(0, 1fr)); } .dr-rc > span:last-child { grid-column: 1 / -1; } }
.dr-xt-wrap { overflow-x: auto; margin-top: 8px; }
.dr-xt { border-collapse: collapse; font-size: 12px; width: 100%; }
.dr-xt th, .dr-xt td { padding: 5px 8px; text-align: right; white-space: nowrap; border-top: 1px solid var(--line); }
.dr-xt th { font-weight: 500; color: var(--text-3); border-top: 0; }
.dr-xt th:first-child, .dr-xt td:first-child { text-align: left; }
.dr-xt td { font-family: var(--mono); }
.dr-xt td:first-child { font-family: inherit; }
@media (max-width: 1100px) { .dr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dr-mode { margin: 12px 0 0; }
/* player bar = DialKit's slider row (ali, 28 Nov: "dial kitteki barı player için de çok işlevsel buluyorum"), the same row
   as Cut's: one 36 px bar, corner 8, the bar itself fills as it plays; pages are parts of it told apart by a 1 × 8 notch,
   their names inside; a 3 × 20 handle at the play head; markers stay on top. */
.pbar .journey .track { gap: 0; height: 36px; border-radius: var(--radius); background: var(--surface); }
.pbar .journey .sgm { border-radius: 0; background: none; padding: 0 10px; }
.pbar .journey .sgm:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.pbar .journey .sgm + .sgm::before { content: ""; position: absolute; left: 0; bottom: 0; width: 1px; height: 8px; background: var(--line-strong, rgba(0, 0, 0, .18)); }
.pbar .journey .sgm .fl { background: var(--surface-active); }
.pbar .journey .hd { top: 8px; bottom: 8px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.pbar .journey .mk { top: -3px; }
.pbar .pp { width: 36px; height: 36px; border-radius: var(--radius); }

/* ---------- data components (core.js ticks, dtable, stackChart) ---------- */
/* tick meter: ten short ticks, inked as far as the value fills its scale */
.ticks { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.ticks .tk { display: inline-flex; gap: 2px; flex: none; }
.ticks .tk i { width: 2.5px; height: 12px; border-radius: 1px; background: var(--surface-active); }
.ticks .tk i.on { background: var(--accent); }
.ticks .tv { font-size: 13px; color: var(--text); min-width: 4ch; }
/* status tag inside a table: a pill (pills are for tags only) */
.dt .tag { height: 24px; padding: 0 10px; font-size: 12.5px; }
/* data table: header on the grey frame, rows on a white card inside it, the pager under the card */
.dt { background: var(--surface); border-radius: var(--radius-l); padding: 0 4px 0; min-width: 0; }
.dt-head, .dt-row { display: grid; align-items: center; column-gap: 16px; padding: 0 16px; }
.dt-head { height: 44px; }
.dt-th { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0; border: 0; background: none; color: var(--text-2); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; min-width: 0; }
.dt-th.r { justify-content: flex-end; }
.dt-th:disabled { cursor: default; }
.dt-th:not(:disabled):hover, .dt-th.on { color: var(--text); }
.dt-sort { width: 14px; height: 14px; fill: none; stroke: var(--text-3); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dt-sort .on { stroke: var(--text); }
.dt-body { background: var(--panel); border-radius: calc(var(--radius-l) - 4px); box-shadow: 0 0 0 0.5px var(--line-strong), 0 1px 3px rgba(0, 0, 0, 0.05); overflow: hidden; }
.dt-row { min-height: 52px; font-size: 14px; color: var(--text); border-top: 1px solid var(--line); transition: background-color .12s ease-out; }
.dt-row:first-child { border-top: 0; }
a.dt-row:hover { background: var(--panel-2); }
a.dt-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.dt-td { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-td.r { text-align: right; font-size: 13.5px; }
.dt-td .sub { display: block; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; }
.dt-none { padding: 28px 16px; color: var(--text-2); font-size: 13px; text-align: center; }
.dt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 16px; font-size: 13px; }
.dt-foot b { font-weight: 500; color: var(--text); }
.dt-pager { display: inline-flex; align-items: center; gap: 8px; }
.dt-pager button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: var(--radius); background: none; color: var(--text-2); cursor: pointer; }
.dt-pager button:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }
.dt-pager button:disabled { opacity: .35; cursor: default; }
.dt-pager svg { width: 14px; height: 14px; }
.dt-pager .flip { transform: scaleX(-1); }
.dt-pg { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: var(--radius); background: var(--panel); box-shadow: 0 0 0 0.5px var(--line-strong); color: var(--text); }
@media (max-width: 720px) { .dt-head, .dt-row { column-gap: 10px; padding: 0 12px; } .dt { overflow-x: auto; } .dt-head, .dt-body, .dt-foot { min-width: 560px; } }

/* stacked bars over time: separate rounded parts per bar, under the baseline the one-page visits; the ring hugs the column
   under the pointer and glides to the next, the rest step back */
.stk { min-width: 0; }
.stk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; min-height: 30px; }
.stk-plot { --lift: 3px; position: relative; height: 220px; outline: none; cursor: crosshair; }
.stk-plot:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 6px; }
.stk-grid { position: absolute; inset: 0 0 calc(var(--dn) + var(--lift) * 2 + 1px) 0; pointer-events: none; }
.stk-grid span { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.stk-grid b { position: absolute; right: 0; top: -15px; font-size: 10.5px; font-weight: 400; color: var(--text-3); }
.stk-base { position: absolute; left: 0; right: 0; bottom: calc(var(--dn) + var(--lift)); height: 1px; background: var(--line-strong); }
.stk-bars { position: absolute; inset: 0; display: flex; gap: var(--gap, 6px); }
.stk-col { flex: 1 1 0; min-width: 3px; display: flex; flex-direction: column; }
.stk-up { flex: 1; display: flex; align-items: flex-end; padding-bottom: var(--lift); }
.stk-bar { width: 100%; display: flex; flex-direction: column-reverse; gap: 2px; transform-origin: bottom; }
.stk-bar i, .stk-dn i { display: block; min-height: 2px; border-radius: 2.5px; transition: opacity .16s ease-out; }
.stk-dn { height: var(--dn); margin-top: calc(var(--lift) + 1px); display: flex; align-items: flex-start; }
.stk-dn i { width: 100%; transform-origin: top; }
.stk-plot.hot .stk-col:not(.on) i { opacity: .32; }
.stk-ring { position: absolute; top: 0; left: 0; z-index: 2; border: 1.5px solid var(--text-2); border-radius: 5.5px; pointer-events: none; opacity: 0; transition: opacity .16s ease-out; }
.stk-ring.glide { transition: opacity .16s ease-out, transform .32s cubic-bezier(.34, 1.3, .64, 1), width .32s cubic-bezier(.34, 1.3, .64, 1), height .32s cubic-bezier(.34, 1.3, .64, 1); }
.stk-plot.hot .stk-ring { opacity: 1; }
.stk-bars.grow .stk-bar, .stk-bars.grow .stk-dn i { animation: stk-grow .6s cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--d, 0ms); }
@keyframes stk-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.stk-tip { position: absolute; top: 0; left: 0; z-index: 3; display: grid; gap: 4px; min-width: 176px; padding: 10px 12px; border-radius: 10px; background: var(--panel); box-shadow: 0 0 0 0.5px var(--line-strong), var(--shadow-pop); font-size: 12.5px; pointer-events: none; opacity: 0; transition: opacity .12s ease-out; }
.stk-tip.glide { transition: transform .32s cubic-bezier(.34, 1.3, .64, 1), opacity .12s ease-out; }
.stk-tip.on { opacity: 1; }
.stk-tip b { display: flex; font-weight: 600; margin-bottom: 2px; }
.stk-tip span { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.stk-tip span i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.stk-tip em { margin-left: auto; padding-left: 14px; font-style: normal; color: var(--text); }
.stk-axis { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); margin-top: 8px; font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.stk-axis span { overflow: visible; }
.stk .legend { flex-wrap: wrap; gap: 4px 12px; }
.stk .legend span { white-space: nowrap; }
.stk .legend i { width: 8px; height: 8px; margin-right: 6px; }
@media (prefers-reduced-motion: reduce) { .stk-tip, .stk-ring, .stk-bar i { transition: none; } }

/* share meter: the total, one thick bar cut into parts (round at its ends, nearly square where parts meet), chips under it */
.mtr-fig { display: flex; align-items: baseline; gap: 8px; min-width: 0; margin: 2px 0 14px; }
.mtr-num { display: inline-flex; font-size: 30px; line-height: 32px; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.mtr-num span { display: inline-block; }
.mtr-num .pop { animation: mtr-pop .5s cubic-bezier(.34, 1.45, .64, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
.mtr-num .pop.dn { animation-name: mtr-drop; }
@keyframes mtr-pop { from { opacity: 0; filter: blur(2px); transform: translateY(.18em); } to { opacity: 1; filter: none; transform: none; } }
@keyframes mtr-drop { from { opacity: 0; filter: blur(2px); transform: translateY(-.18em); } to { opacity: 1; filter: none; transform: none; } }
.mtr-of { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text-2); }
.mtr-bar { display: flex; gap: 3px; height: 36px; }
.mtr-bar i { flex: var(--g) 1 0; min-width: 4px; border-radius: 2px; transition: flex-grow .82s cubic-bezier(.65, 0, .2, 1) var(--w, 0ms), opacity .22s ease-out; }
.mtr-bar i:first-child { border-radius: 6px 2px 2px 6px; }
.mtr-bar i:last-child { border-radius: 2px 6px 6px 2px; }
.mtr-bar i:only-child { border-radius: 6px; }
.mtr-bar.pre i { flex-grow: 0; }
.mtr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mtr-chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border-radius: var(--radius-tag); background: var(--surface); color: var(--text); font-size: 13px; text-decoration: none; transition: background-color .16s ease-out, opacity .22s ease-out, scale .26s cubic-bezier(.34, 1.56, .64, 1); }
.mtr-chip i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.mtr-chip .faint { font-size: 12px; }
.mtr-chip[data-on] { background: var(--surface-active); scale: .975; }
.mtr-chip:active { scale: .96; }
.mtr-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mtr.hot .mtr-bar i:not([data-on]), .mtr.hot .mtr-chip:not([data-on]) { opacity: .32; }
@media (prefers-reduced-motion: reduce) { .mtr-num .pop { animation: none; } .mtr-bar i { transition: opacity .22s ease-out; } }
/* reach: how far visits went, one short bar split 100 % */
.reach { display: inline-flex; gap: 1.5px; width: 100%; max-width: 160px; height: 10px; border-radius: 3px; overflow: hidden; vertical-align: middle; }
.reach i { min-width: 2px; }
.reach .r4 { background: var(--cat-5); } .reach .r3 { background: var(--cat-2); } .reach .r2 { background: var(--cat-3); } .reach .r1, .reach-legend i.r1 { background: color-mix(in oklab, var(--cat-1) 26%, var(--paper)); }
.reach-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-2); margin: 0 0 10px; }
.reach-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Pano (views/overview.js): a 12-column board of blocks, bento-like (bencho.dev); each block says one thing. Düzenle shows
   a quiet tool row on each block (handle, width, remove) and a floating dock at the bottom (add, default, done). */
.bd { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; grid-auto-flow: row dense; align-items: stretch; }
.bd-b { grid-column: span var(--w, 6); min-width: 0; display: flex; flex-direction: column; position: relative; transition: transform 220ms cubic-bezier(.22, 1, .36, 1); }
.bd-in { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bd-in > .card { flex: 1; min-width: 0; }
.bd-card > header h3 { display: inline-flex; align-items: center; gap: 6px; }
.bd-card > header { margin-bottom: 14px; }
.bd-sk { height: 96px; }
.bd-insights { display: flex; flex-direction: column; gap: 8px; }
.bd-note { margin: 0 0 12px; }
.bd-sales { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px 12px; }
.bd-sales > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bd-sales .k { font-size: 12px; color: var(--text-2); }
.bd-sales b { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.bd-sales .d { font-size: 12px; font-family: var(--mono); }
.bd-spark { display: block; width: 100%; height: 40px; margin-top: 16px; }
.bd-spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* a block with nothing to show this period stays off the board (it is still there while editing) */
.bd-b[data-empty] { display: none; }
.bd-editing .bd-b[data-empty] { display: flex; }
/* tools: hidden until Düzenle; then a small floating pill on the block's top right (handle, width, remove) */
.bd-tools { display: none; position: absolute; top: 8px; right: 8px; z-index: 2; align-items: center; gap: 2px; height: 32px; padding: 2px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.bd-editing .bd-tools { display: flex; }
.bd-tools button { display: inline-flex; align-items: center; justify-content: center; height: 26px; min-width: 26px; padding: 0 8px; border: 0; border-radius: var(--radius-s); background: none; color: var(--text-2); font: 500 12px var(--font); cursor: pointer; }
.bd-tools button svg { width: 15px; height: 15px; }
.bd-tools .bd-grip { padding: 0; cursor: grab; touch-action: none; }
.bd-tools .bd-name { display: none; }
.bd-tools .bd-x { padding: 0; }
@media (hover: hover) and (pointer: fine) { .bd-tools button:hover { background: var(--surface-hover); color: var(--text); } }
.bd-tools button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bd-editing .bd-in { pointer-events: none; user-select: none; }
.bd-editing .bd-in > .card { box-shadow: none; outline: 1px dashed var(--line-strong); outline-offset: -1px; }
.bd-b.bd-drag { z-index: 3; transition: none; }
.bd-b.bd-drag .bd-in > .card { box-shadow: var(--shadow-pop); }
.bd-b.bd-drag .bd-grip { cursor: grabbing; }
.bd-edit.on { background: var(--surface-active); }
/* the dock: a floating bar at the bottom while editing */
.bd-dock { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.bd-dock[hidden] { display: none; }
.bd-editing { padding-bottom: 72px; }
.bd-add { position: relative; }
.bd-menu { position: absolute; bottom: calc(100% + 8px); left: 0; min-width: 200px; max-height: 320px; overflow: auto; display: flex; flex-direction: column; padding: 4px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.bd-menu[hidden] { display: none; }
.bd-menu button { height: 32px; padding: 0 10px; border: 0; border-radius: var(--radius-s); background: none; color: var(--text); font: 13px var(--font); text-align: left; cursor: pointer; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .bd-menu button:hover { background: var(--surface); } }
.bd-menu button:focus-visible { background: var(--surface); outline: none; }
.bd-menu-none { padding: 8px 10px; }
@media (prefers-reduced-motion: reduce) { .bd-b { transition: none; } }
/* narrower screens: 6 columns, then one block per row (two numbers side by side) */
@media (max-width: 1100px) {
  .bd { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bd-b { grid-column: span 6; }
  .bd-b:is([data-w="2"], [data-w="3"]) { grid-column: span 2; }
  .bd-b[data-w="4"] { grid-column: span 3; }
}
@media (max-width: 640px) {
  .bd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-b, .bd-b[data-w="4"] { grid-column: span 2; }
  .bd-b:is([data-w="2"], [data-w="3"]) { grid-column: span 1; }
  .bd-edit span { display: none; }
}

/* Shopify orders with their Replay visit (views/orders.js) */
.so-list { margin-top: 14px; border-top: 1px solid var(--line); }
.so-hd { padding: 10px 0 6px; color: var(--text-2); }
.so { border-bottom: 1px solid var(--line); }
.so > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 120px; gap: 12px; align-items: center; padding: 9px 0; font-size: 13px; }
.so > summary::-webkit-details-marker { display: none; }
.so > summary:hover { background: var(--surface); }
.so-who { min-width: 0; }
.so-who .sub { display: block; color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.so-amt { text-align: right; white-space: nowrap; }
.so-amt .tag { margin-left: 6px; }
.so-act { text-align: right; }
.so-act .btn { padding: 4px 10px; font-size: 12px; }
.so-none { font-size: 12px; color: var(--bad); }
.so-body { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 4px 0 14px 64px; line-height: 1.5; overflow-wrap: anywhere; }
.so-body .k { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
@media (max-width: 900px) { .so-body { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 0; } }
@media (max-width: 600px) {
  .so > summary { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .so-act { grid-column: 2 / -1; text-align: left; }
  .so-body { grid-template-columns: minmax(0, 1fr); }
}

/* Veri: raw tables (views/data.js) */
.dt-q { height: 32px; width: 260px; max-width: 100%; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); font: 13px var(--font); }
.datatable { max-height: calc(100vh - 260px); overflow: auto; }
.datatable table.t td { white-space: nowrap; }
.datatable table.t td .trunc { max-width: 260px; }
.datatable .sortbtn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.datatable .sortbtn:hover { color: var(--text); }
@media (max-width: 640px) { .dt-q { width: 100%; } }
