/* Tracking Setup UI. Direction "Calm Pro": white surfaces, crisp 1px lines, Geist type,
   accent and status colours taken from the Google / GTM palette. No framework. */
@font-face { font-family: "Geist"; src: url("/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --panel: #f3f6fa;
  --ink: #0e1726;
  --ink-2: #3b4658;
  --muted: #667388;
  --line: #e3e8ef;
  --line-2: #cbd3de;
  --accent: #1a73e8;      /* Google blue */
  --accent-2: #1557b0;
  --accent-soft: #e8f0fe;
  --accent-tint: #f4f8ff;
  --ok: #188038;  --ok-soft: #e6f4ea;
  --warn: #b06000; --warn-soft: #fef7e0;
  --danger: #c5221f; --danger-soft: #fce8e6;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(14, 23, 38, .06);
  --shadow: 0 1px 2px rgba(14, 23, 38, .05), 0 8px 24px rgba(14, 23, 38, .06);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 500 .86em var(--mono); background: var(--panel); padding: 1px 6px; border-radius: 6px; color: var(--ink-2); border: 1px solid var(--line); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 650; }
h2 { font-size: 20px; font-weight: 650; }
h3 { font-size: 15.5px; font-weight: 600; }
.sub { color: var(--muted); margin: 6px 0 24px; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.row.end { justify-content: flex-end; }
.gap { gap: 10px; }
.stack { display: grid; gap: 16px; }
.boot { padding: 80px 24px; text-align: center; color: var(--muted); }
.boot.error { color: var(--danger); }
[hidden] { display: none !important; }
.i { flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 14.5px var(--font); cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm), inset 0 -1px 0 rgba(0,0,0,.12); }
.btn.primary:hover:not(:disabled) { background: var(--accent-2); }
.btn.ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn.ghost:hover:not(:disabled) { border-color: var(--ink-2); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.link { background: none; color: var(--ink-2); padding: 0 10px; }
.btn.link:hover { color: var(--accent); }
.btn.small { height: 34px; padding: 0 12px; font-size: 13.5px; gap: 6px; }
.btn.big { height: 48px; padding: 0 24px; font-size: 15.5px; }
.btn.wide { width: 100%; }
button.link { background: none; border: 0; color: var(--accent); font: 600 13.5px var(--font); cursor: pointer; padding: 0; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--danger-soft); color: var(--danger); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; min-width: 0; }
.label { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.label code { font-weight: 500; margin-left: 4px; font-size: 11.5px; }
.help { font-size: 13px; color: var(--muted); }
.err, .form-error { color: var(--danger); font-size: 13px; font-weight: 500; margin: 0; }
.err:empty, .form-error:empty { display: none; }
input:not([type=checkbox]):not([type=radio]), select {
  width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: 15px var(--font); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
input.mono { font-family: var(--mono); font-size: 14px; letter-spacing: -.01em; }
input::placeholder { color: #98a3b3; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
select { appearance: none; cursor: pointer; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667388' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; padding-right: 36px; }

/* switch */
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 999px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; background: var(--surface); cursor: pointer; }
.toggle-row .switch { margin-top: 1px; }
.toggle-label { display: block; font-weight: 600; font-size: 14.5px; }

/* radio option cards */
.opts { display: grid; gap: 10px; margin-bottom: 8px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .15s, background .15s, box-shadow .15s; }
.opt input { position: absolute; opacity: 0; }
.opt:hover:not(.disabled) { border-color: var(--ink-2); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; margin-top: 2px; background: #fff; transition: border .15s; }
.opt:has(input:checked) .opt-dot { border: 5.5px solid var(--accent); }
.opt-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--panel); color: var(--ink-2); display: grid; place-items: center; flex: none; margin-top: -4px; }
.opt:has(input:checked) .opt-ic { background: var(--accent-soft); color: var(--accent); }
.opt-text { display: grid; gap: 3px; flex: 1; min-width: 0; }
.opt-title { font-weight: 600; }
.opt-desc { color: var(--muted); font-size: 13.5px; }
.opt.disabled, .logo-card.disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* logo cards */
.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.logo-card { position: relative; display: flex; align-items: center; gap: 11px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow-sm); transition: border-color .15s, background .15s, box-shadow .15s; }
.logo-card input { position: absolute; opacity: 0; }
.logo-card > span:not(.logo):not(.badge):not(.tick) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-card:hover:not(.disabled) { border-color: var(--ink-2); }
.logo-card:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent); }
.logo-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.logo-card.locked { cursor: default; }
.logo-card .badge.soon { position: absolute; top: -9px; right: 10px; height: 18px; padding: 0 7px; font-size: 10.5px; }
.tick { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); flex: none; background: #fff; }
.logo-card:has(input:checked) .tick { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--accent); }
h4.group { font-size: 12px; font-weight: 600; margin: 22px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
h4.group .muted { font-weight: 400; margin-left: 6px; text-transform: none; letter-spacing: 0; }

.logo { display: inline-block; width: var(--s, 24px); height: var(--s, 24px); flex: none; object-fit: contain; }
.logo.letter { background: var(--ink-2); color: #fff; border-radius: 6px; display: inline-grid; place-items: center; font: 700 calc(var(--s) * .55) var(--font); }
.disabled .logo { filter: grayscale(1); }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--panel); color: var(--ink-2); flex: none; border: 1px solid var(--line); }
.badge.soon { background: var(--surface); color: var(--muted); }
.badge.rec { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel); color: var(--ink-2); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.off { background: #f1f3f4; color: #80868b; }
.chip.brand { background: var(--accent-soft); color: var(--accent); }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; background: var(--accent-tint); border: 1px solid var(--accent-soft); color: var(--ink-2); border-radius: var(--radius-sm); font-size: 13.5px; margin: 6px 0 4px; }
.note .i { color: var(--accent); margin-top: 2px; }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; color: var(--ink); letter-spacing: -.015em; text-decoration: none !important; }
.mark svg { width: 30px; height: 30px; display: block; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.auth-form { padding: 40px clamp(20px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; max-width: 600px; width: 100%; margin: 0 auto; }
.auth-form .brand { margin-bottom: 48px; }
.auth-form h1 { margin-bottom: 4px; }
.auth-form > .muted { margin-top: 22px; }
.auth-side { background: linear-gradient(160deg, #f4f8ff 0%, #e8f0fe 55%, #dfeafd 100%); border-left: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 48px; }
.auth-pitch { max-width: 440px; }
.auth-pitch h2 { font-size: 30px; line-height: 1.15; margin-bottom: 12px; font-weight: 650; letter-spacing: -.03em; }
.auth-pitch p { color: var(--ink-2); margin: 0 0 22px; }
.pending-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); display: grid; place-items: center; margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23188038' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* flow diagram */
.flow { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 8px; }
.flow .flow-line { flex: 1; max-width: 44px; min-width: 10px; height: 0; border-top: 1.5px dashed var(--accent); opacity: .55; }
.flow .fan { display: flex; gap: 8px; }
.flow.mini .node, .empty .flow .node { width: 46px; height: 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.flow.big { justify-content: flex-start; margin: 16px 0 14px; }
.flow.big .node { display: grid; justify-items: center; gap: 6px; padding: 10px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); min-width: 72px; }
.flow .fan.col { flex-direction: column; gap: 6px; }
.fan-item { display: flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 5px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* ---------- app shell ---------- */
.topbar { height: 60px; display: flex; align-items: center; gap: 28px; padding: 0 24px; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 550; font-size: 14px; text-decoration: none; display: inline-flex; gap: 7px; align-items: center; }
.nav a:hover { background: var(--panel); }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.count { background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 13px; }
.who-name { font-weight: 550; font-size: 14px; }
.page { max-width: 1120px; margin: 0 auto; padding: 36px 24px 80px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.page-head .sub { margin-bottom: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card.project { position: relative; transition: border-color .15s, box-shadow .15s; }
.card.project:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card-main { display: block; padding: 18px; color: inherit; text-decoration: none !important; }
.card-top { display: flex; align-items: center; gap: 10px; padding-right: 32px; min-width: 0; }
.card-top h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.card-main > .muted { margin: 6px 0 16px; font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.card .icon-btn { position: absolute; top: 12px; right: 12px; }
.empty { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty h2 { margin-top: 10px; }
.empty p { margin: 6px auto 22px; max-width: 46ch; }

.tabs { display: flex; gap: 4px; margin-bottom: 14px; padding: 4px; background: var(--panel); border-radius: 10px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { border: 0; background: none; padding: 7px 12px; border-radius: 7px; font: 550 13.5px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fafbfd; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { text-align: right; }
.table .actions > div { display: inline-flex; gap: 6px; }

/* ---------- modal + toast ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(14, 23, 38, .4); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s ease; }
.modal { width: 100%; max-width: 460px; background: var(--surface); border-radius: 16px; padding: 26px; box-shadow: 0 24px 64px rgba(14, 23, 38, .22); border: 1px solid var(--line); }
.modal h2 { margin-bottom: 4px; }
.modal .sub { margin-bottom: 20px; }
.welcome-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
@keyframes fade { from { opacity: 0; } }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); transition: opacity .4s, transform .4s; }
.toast.ok { background: var(--ok); }
.toast.error { background: var(--danger); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- wizard ---------- */
.wz { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); }
.wz-top { height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); z-index: 5; }
.stepper { list-style: none; display: flex; align-items: center; margin: 0 auto; padding: 0; }
.stepper li.line { width: 32px; height: 1px; background: var(--line-2); margin: 0 8px; }
.stepper li.done + li.line { background: var(--accent); }
.stepper button { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 4px; font: 500 13.5px var(--font); color: var(--muted); cursor: pointer; border-radius: 8px; }
.stepper button:disabled { cursor: default; }
.stepper .dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: #fff; background: var(--surface); }
.stepper .dot .i { stroke-width: 3.2; }
.stepper li.current button { color: var(--ink); font-weight: 600; }
.stepper li.current .dot { border: 5.5px solid var(--accent); }
.stepper li.done button { color: var(--ink-2); }
.stepper li.done .dot { background: var(--accent); border-color: var(--accent); }
.stepper button:not(:disabled):hover .stage-name { color: var(--accent); }
.close { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); text-decoration: none !important; }
.close:hover { background: var(--panel); color: var(--ink); }
.wz-body { flex: 1; display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
.wz-left { padding: 44px clamp(20px, 5vw, 72px) 64px; }
.wz-inner { max-width: 620px; margin-left: auto; }
.wz-inner h1 { font-size: 26px; letter-spacing: -.03em; font-weight: 650; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.dest-head { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; margin: 0 0 14px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; }
.wz-inner h1 + .sub { margin-bottom: 26px; }
.wz-inner h1 + form { margin-top: 26px; }
.wz-nav { display: flex; align-items: center; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.wz-nav .spacer { flex: 1; }
.wz-right { background: var(--panel); border-left: 1px solid var(--line); }
.wz-panel { position: sticky; top: 64px; padding: 44px clamp(20px, 4vw, 52px); max-width: 580px; }
.pill-guide { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 13px; margin-bottom: 16px; }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.panel-card h3 { margin-bottom: 8px; }
.panel-card p { margin: 0 0 8px; font-size: 14px; }
.panel-card .ticks li { font-size: 14px; }
.panel-empty { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; color: var(--muted); font-size: 14px; }
.panel-empty p { margin: 0; }
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.guide h3 { margin-bottom: 14px; }
.guide ol { list-style: none; counter-reset: g; padding: 0; margin: 0; display: grid; gap: 12px; }
.guide li { counter-increment: g; position: relative; padding-left: 36px; font-size: 14px; color: var(--ink-2); min-height: 24px; }
.guide li::before { content: counter(g); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 12px var(--mono); display: grid; place-items: center; }
.guide-note { margin: 16px 0 0; padding: 11px 13px; background: var(--warn-soft); border-radius: 9px; font-size: 13px; color: #6d4100; }
.panel-card .guide-note { margin-top: 12px; }
.compare { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 0 8px 8px 0; }
.compare td { padding: 7px 8px 7px 0; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.compare td:first-child { color: var(--ink); font-weight: 550; }

.files { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 12px; }
.files li { display: flex; gap: 12px; align-items: flex-start; }
.files b { display: block; font: 600 13px var(--mono); }
.files span:not(.file-ic) { font-size: 13px; color: var(--muted); }
.file-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }

/* google ads labels */
.label-row { display: flex; gap: 8px; align-items: flex-start; }
.label-row .field { flex: 1; }
.label-row .icon-btn { margin-top: 29px; }
.add-label { margin: -4px 0 18px; }
.add-label select { height: 40px; color: var(--accent); font-weight: 600; border-style: dashed; box-shadow: none; }

/* events picker */
.ev-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
.ev-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.ev { border-bottom: 1px solid var(--line); background: #fbfcfd; }
.ev:last-child { border-bottom: 0; }
.ev.on { background: var(--surface); }
.ev-head { display: flex; align-items: center; gap: 14px; padding: 11px 12px 11px 16px; }
.ev-title { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; font-size: 14.5px; }
.ev-title b { font-weight: 600; }
.ev:not(.on) .ev-title b { color: var(--muted); }
.ev-title code { font-size: 11.5px; }
.ev-more { display: inline-flex; align-items: center; gap: 4px; background: none; border: 1px solid var(--line); border-radius: 8px; height: 30px; padding: 0 10px; font: 550 12.5px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.ev-more:hover { border-color: var(--line-2); }
.chev { display: inline-grid; transition: transform .15s; }
.chev.up { transform: rotate(180deg); }
.ev-params { padding: 0 16px 16px 68px; }
.ev-params p { margin: 0 0 10px; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchips.indent { margin: -4px 0 16px 4px; }
.pchip { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: 8px; font: 500 12.5px var(--mono); color: var(--ink-2); background: var(--surface); cursor: pointer; user-select: none; transition: background .15s, border-color .15s; }
.pchip input { position: absolute; opacity: 0; }
.pchip:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); }
.pchip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pchip.locked { cursor: default; background: var(--panel); border-color: var(--line); color: var(--ink-2); }
.lock, .star { display: inline-grid; }
.lock { color: var(--muted); }
.star { color: #f9ab00; }
.star .i { fill: currentColor; }
.legend { margin-top: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* review */
.sum { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.sum header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sum h4 { font-size: 14.5px; }
.sum dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 7px 14px; margin: 0; font-size: 14px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; overflow-wrap: anywhere; }
.later { color: var(--warn); font-weight: 600; font-size: 13px; }
.alert { border-radius: 10px; padding: 13px 15px; font-size: 14px; margin-bottom: 14px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert.error { background: var(--danger-soft); color: #8a1c1a; }
.alert.warn { background: var(--warn-soft); color: #6d4100; margin: 14px 0 0; }
.generate { margin: 24px 0 8px; }
.result { margin-top: 18px; border: 1px solid #b7dfc3; border-radius: var(--radius); padding: 16px 18px; background: var(--ok-soft); }
.result-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-head > div { flex: 1; min-width: 160px; }
.result p { margin: 10px 0 0; }
.ok-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.ok-dot .i { stroke-width: 3; }
.versions { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.versions li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.versions li:last-child { border-bottom: 0; }
.versions .v { font: 600 12.5px var(--mono); background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 2px 8px; }
.versions .muted { flex: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .stage-name { display: none; }
  .stepper li.current .stage-name { display: inline; }
  .stepper li.line { width: 18px; margin: 0 5px; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .wz-body { grid-template-columns: 1fr; }
  .wz-right { border-left: 0; border-top: 1px solid var(--line); }
  .wz-panel { position: static; padding: 28px 16px 48px; }
  .wz-left { padding: 28px 16px 36px; }
  .wz-inner { margin: 0 auto; }
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-text, .who-name, .hide-sm { display: none; }
  .topbar, .wz-top { padding: 0 16px; gap: 12px; }
  .page { padding: 24px 16px 64px; }
  .page-head { flex-direction: column; align-items: stretch; }
}
@media (max-width: 560px) {
  .grid-cards, .opts.two { grid-template-columns: 1fr; }
  .stepper li.current .stage-name { display: none; }
  .sum dl { grid-template-columns: 1fr; gap: 2px; }
  .sum dd { margin-bottom: 8px; }
  .ev-params { padding-left: 16px; }
  .wz-inner h1 { font-size: 22px; }
  h1 { font-size: 24px; }
  .flow.big { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
