:root {
  --frame: #f3f2ef;
  --surface: #ffffff;
  --raised: #faf9f7;
  --active: #e7e5e0;
  --border: #e6e4df;
  --rule: #f0eee9;
  --control: #d3d0c9;
  --text: #141414;
  --muted: #5a5853;
  --faint: #67655f;
  --primary: #141414;
  --on-primary: #ffffff;
  --brand: #c93c32;
  --logo-red: #d92d33;
  --logo-dark: #2b2b2b;
  --brand-deep: #a8302a;
  --brand-track: #f1e4e1;
  --dot: #2d2d2d;
  --navy: #1f2a8a;
  --positive: #247b50;
  --sev-k: #c93c32;  --pill-k-bg: #fbe9e7;  --pill-k-ink: #8a231c;
  --sev-u: #b5730f;  --pill-u-bg: #fdf1dc;  --pill-u-ink: #6f4205;
  --sev-p: #8a8780;  --pill-p-bg: #efede9;  --pill-p-ink: #46443f;
  --notice-bg: #fffbeb; --notice-edge: #fde68a; --notice-ink: #92400e;
  --grid: #e8e6e1;

  --font: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --fs-title: 24px; --fs-section: 16px; --fs-kpi: 24px; --fs-body: 14px; --fs-small: 12px;
  --radius-sheet: 16px; --radius-card: 10px; --radius-control: 8px; --radius-chip: 4px;
  --gap: 16px; --card-pad: 20px; --pad: 28px;
  --control-height: 34px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 20px;
  color: var(--text);
  background: var(--frame);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand); color: #fff; }
svg.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-height); padding: 0 14px; border-radius: var(--radius-control);
  border: 1px solid var(--control); background: var(--surface); color: var(--text);
  font-weight: 500; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease);
}
.btn:hover { background: var(--raised); border-color: #bdb9b0; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn-text { border-color: transparent; background: transparent; padding: 0 8px; }
.btn-text:hover { background: var(--active); border-color: transparent; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.field-label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 8px; }
.input {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--radius-control);
  border: 1px solid var(--control); background: var(--surface); font-size: 15px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(20,20,20,.08); }
.hint { color: var(--muted); font-size: 13px; line-height: 18px; margin: 8px 0 0; }

.mark { display: block; }
.mark .arc { fill: none; stroke: var(--logo-red); stroke-linecap: butt; }
.mark .track { fill: none; stroke: var(--brand-track); }
.mark .core { fill: var(--logo-dark); }

.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark-name { font-weight: 600; font-size: 15px; letter-spacing: .06em; }
.wordmark-name b { color: var(--brand); font-weight: 600; }
.wordmark-tool { font-weight: 500; font-size: 15px; color: var(--muted); letter-spacing: 0; }

.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); background: var(--surface); }
.login-art { position: relative; overflow: hidden; background: #141414; color: #f3f2ef; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art .wordmark-name { color: #f3f2ef; }
.login-art .wordmark-tool { color: #b4b1aa; }
.login-art .giant { position: absolute; right: -10%; top: 50%; transform: translateY(-50%); width: 78%; max-width: 640px; }
.login-art .wm .core { fill: #f3f2ef; }
.login-art .giant .core { fill: #f3f2ef; }
.login-art-copy { position: relative; max-width: 420px; }
.login-art-copy h2 { font-size: 40px; line-height: 44px; letter-spacing: -.02em; font-weight: 600; margin: 0 0 16px; }
.login-art-copy p { margin: 0; font-size: 16px; line-height: 24px; color: #c9c6bf; max-width: 360px; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 7vw, 120px); }
.login-form { width: 100%; max-width: 380px; }
.login-form h1 { font-size: 28px; line-height: 34px; letter-spacing: -.015em; font-weight: 600; margin: 0 0 28px; }
.login-form .lede { color: var(--muted); margin: 0 0 32px; font-size: 15px; line-height: 22px; }
.login-form .stack > * + * { margin-top: 16px; }
.login-form .btn-lg { width: 100%; margin-top: 24px; }
.login-foot { margin-top: 24px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.login-foot a, .login-foot button { color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--control); font-size: 13px; }
.steps-dots { display: flex; gap: 6px; margin-bottom: 28px; }
.steps-dots i { width: 22px; height: 3px; border-radius: 2px; background: var(--active); }
.steps-dots i.on { background: var(--text); }

.otp { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp-cell { height: 56px; border: 1px solid var(--control); border-radius: 10px; display: grid; place-items: center; font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; background: var(--surface); transition: border-color .16s var(--ease), transform .16s var(--ease); }
.otp-cell.cur { border-color: var(--text); box-shadow: 0 0 0 3px rgba(20,20,20,.08); }
.otp-cell:nth-child(3) { margin-right: 10px; }
.otp input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; letter-spacing: 1em; cursor: text; }
.otp.err .otp-cell { border-color: var(--brand); }
.otp.shake { animation: shake .32s var(--ease); }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.otp-meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.otp-meta svg { width: 18px; height: 18px; transform: rotate(-90deg); }
.otp-meta .t-track { fill: none; stroke: var(--active); stroke-width: 3; }
.otp-meta .t-arc { fill: none; stroke: var(--text); stroke-width: 3; transition: stroke-dashoffset 1s linear; }
.otp-error { color: var(--pill-k-ink); font-size: 13px; margin-top: 10px; min-height: 18px; }

.setup { display: grid; grid-template-columns: 168px 1fr; gap: 24px; align-items: start; margin-bottom: 24px; }
.qr { width: 168px; height: 168px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.qr svg { width: 100%; height: 100%; display: block; }
.secret { font-variant-numeric: tabular-nums; font-size: 13px; letter-spacing: .02em; white-space: nowrap; background: var(--raised); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; word-break: break-all; }
.secret button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; display: grid; }
.secret button:hover { background: var(--active); color: var(--text); }
.setup ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 19px; }
.setup ol li + li { margin-top: 6px; }
.setup ol b { color: var(--text); font-weight: 500; }

.app { display: grid; grid-template-columns: 244px minmax(0, 1fr); grid-template-rows: 48px minmax(0, 1fr); min-height: 100vh; }
.side { grid-row: 1 / -1; display: flex; flex-direction: column; padding: 14px 10px 12px; position: sticky; top: 0; height: 100vh; }
.side .wordmark { padding: 2px 8px 0; height: 22px; margin-bottom: 26px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { font-size: 12px; color: var(--faint); padding: 0 10px; margin: 24px 0 8px; }
.nav a { white-space: nowrap; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 14px; transition: background-color .14s var(--ease), color .14s var(--ease); }
.nav a:hover { background: rgba(20,20,20,.04); color: var(--text); }
.nav a[aria-current="page"] { background: var(--active); color: var(--text); }
.nav a .soon { margin-left: auto; font-size: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.av-jm { background: #f6dedb; color: #7d2620; }
.av-vk { background: #dbe6f3; color: #1f3c63; }
.side-foot .who { min-width: 0; line-height: 16px; }
.side-foot .who b { display: block; font-weight: 500; font-size: 13px; }
.side-foot .who span { font-size: 12px; color: var(--faint); }
.side-foot .btn-text { margin-left: auto; height: 28px; padding: 0 6px; color: var(--muted); }

.top { grid-column: 2; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 8px; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; min-width: 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--control); }
.crumbs .here { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { margin: 0 auto; width: min(460px, 40vw); height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--faint); font-size: 13px; cursor: text; }
.search kbd { margin-left: auto; font-family: inherit; font-size: 11px; border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; line-height: 16px; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: 0; background: none; display: grid; place-items: center; color: var(--muted); cursor: pointer; transition: background-color .14s var(--ease), color .14s var(--ease); }
.icon-btn:hover { background: rgba(20,20,20,.05); color: var(--text); }
.menu-btn { display: none; }

.sheet { grid-column: 2; margin: 0 8px 8px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sheet); min-width: 0; }
.canvas { padding: 28px var(--pad) 48px; max-width: 1240px; }

.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.title-row h1 { font-size: var(--fs-title); line-height: 30px; letter-spacing: -.01em; font-weight: 600; margin: 0; }
.title-row .sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.title-row .actions { display: flex; gap: 8px; flex: none; }

.card { border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--card-pad) 0; }
.card-head h2 { font-size: var(--fs-section); line-height: 22px; font-weight: 600; margin: 0; }
.card-head .meta { color: var(--muted); font-size: 13px; }
.card-head a.more { color: var(--text); font-weight: 500; font-size: 13px; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.card-head a.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-body { padding: 16px var(--card-pad) var(--card-pad); }

.grid6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: 1 / -1; }

.new-audit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.url-card { padding: 24px; }
.url-row { display: flex; gap: 10px; }
.url-input { position: relative; flex: 1; }
.url-input .ic { position: absolute; left: 16px; top: 16px; color: var(--faint); }
.url-input input { height: 48px; padding-left: 42px; font-size: 16px; border-radius: 10px; }
.url-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.url-opts .input, .url-opts select { height: 36px; font-size: 14px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235a5853' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--text); margin: 0; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-weight: 400; font-size: 12px; color: var(--muted); text-align: left; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 0 12px; height: 52px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: var(--card-pad); }
.tbl th:last-child, .tbl td:last-child { padding-right: var(--card-pad); }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl tbody tr { transition: background-color .12s var(--ease); }
.tbl tbody tr.clickable { cursor: pointer; }
.tbl tbody tr.clickable:hover { background: var(--raised); }
.cell-2 b { display: block; font-weight: 500; }
.cell-2 > span { display: block; color: var(--muted); font-size: 12px; line-height: 16px; margin-top: 2px; }
.dash { color: var(--faint); }

.score-chip { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.score-chip svg { width: 18px; height: 18px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; flex: none; }
.pill-k { background: var(--pill-k-bg); color: var(--pill-k-ink); }
.pill-u { background: var(--pill-u-bg); color: var(--pill-u-ink); }
.pill-p { background: var(--pill-p-bg); color: var(--pill-p-ink); }
.pill-ok { background: #e3f3e9; color: #134b2c; }
.sev { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.sev-k { background: var(--sev-k); }
.sev-u { background: var(--sev-u); }
.sev-p { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sev-p); }

.checks-list { list-style: none; margin: 0; padding: 0; }
.checks-list li { display: flex; align-items: center; gap: 10px; height: 30px; font-size: 13px; color: var(--muted); }
.checks-list li .ic { color: var(--faint); width: 14px; height: 14px; }
.soon-card { margin-top: 14px; padding: 18px 20px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-card); }
.soon-card h2 { font-size: 15px; margin: 0 0 6px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.soon-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 19px; }
.soon-card .q { margin-top: 12px; display: block; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text); }

.run { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; align-items: start; }
.run-mark { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.run-mark .mark { width: 232px; height: 232px; margin: 8px 0 24px; }
.run-mark .arc { transition: stroke-dashoffset .5s var(--ease); }
.run-mark .core { transform-origin: 50px 50px; animation: breathe 1.6s var(--ease) infinite; }
.run-mark.done .core { animation: none; }
@keyframes breathe { 50% { transform: scale(.82); } }
.run-pct { font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -.02em; }
.run-now { margin-top: 6px; color: var(--muted); font-size: 14px; min-height: 20px; }
.run-facts { width: 100%; margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.run-facts div { padding: 14px 0 0; }
.run-facts div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.run-facts span { display: block; color: var(--muted); font-size: 12px; }
.run-facts b { display: block; font-size: 20px; line-height: 26px; font-weight: 500; font-variant-numeric: tabular-nums; }
.run-steps { list-style: none; margin: 0; padding: 6px 0; }
.run-steps li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 35px; padding: 0 var(--card-pad); color: var(--faint); transition: color .2s var(--ease); }
.run-steps li + li { border-top: 1px solid var(--rule); }
.run-steps .st { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--control); display: grid; place-items: center; }
.run-steps li.active { color: var(--text); }
.run-steps li.active .st { box-shadow: none; border: 2px solid var(--active); border-top-color: var(--text); animation: spin .8s linear infinite; }
.run-steps li.done { color: var(--text); }
.run-steps li.done .st { box-shadow: none; background: var(--text); color: #fff; }
.run-steps li.done .st svg { width: 10px; height: 10px; stroke-width: 2.4; }
.run-steps li.done.flag .st { background: var(--brand); }
.run-steps .res { font-size: 13px; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity .25s var(--ease), transform .25s var(--ease); white-space: nowrap; }
.run-steps li.done .res { opacity: 1; transform: none; }
.run-steps li.flag .res { color: var(--pill-k-ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.run-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--card-pad); border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

.obj { display: flex; align-items: center; gap: 16px; padding: 14px; }
.obj-thumb { width: 104px; height: 65px; border-radius: 6px; overflow: hidden; flex: none; border: 1px solid var(--border); background: var(--frame); }
.obj-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.obj-main { min-width: 0; flex: 1; }
.obj-main h1 { font-size: 20px; line-height: 26px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 6px; }
.obj-main h1 a { color: var(--muted); display: grid; padding: 4px; border-radius: 6px; }
.obj-main h1 a:hover { background: var(--active); color: var(--text); }
.obj-main p { margin: 2px 0 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.obj .actions { display: flex; gap: 8px; flex: none; }

.notice { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 12px; margin-top: 14px; background: var(--notice-bg); border: 1px solid var(--notice-edge); border-radius: 8px; color: var(--notice-ink); font-size: 12px; line-height: 16px; }

.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin: 20px 0 18px; overflow-x: auto; scrollbar-width: none; }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; transition: color .14s var(--ease); }
.tabs a:hover { color: var(--text); }
.tabs a[aria-selected="true"] { color: var(--text); font-weight: 500; }
.tabs a[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand); }
.tabs .count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tabs .soon { font-size: 11px; border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; line-height: 16px; color: var(--muted); }

.score { padding: 18px var(--card-pad) 0; display: flex; flex-direction: column; height: 100%; }
.score h2 { font-size: var(--fs-section); line-height: 22px; font-weight: 600; margin: 0; }
.score-figure { display: flex; align-items: center; gap: 20px; margin: 18px 0 16px; }
.score-figure .mark { width: 120px; height: 120px; flex: none; }
.score-num { font-size: 36px; line-height: 38px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.score-num small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.score-word { color: var(--muted); font-size: 13px; margin-top: 4px; }
.score-finding { margin: 0; font-size: 15px; line-height: 22px; }
.score-strip { margin: auto calc(-1 * var(--card-pad)) 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
.score-strip a { padding: 12px 0 14px var(--card-pad); text-decoration: none; transition: background-color .14s var(--ease); }
.score-strip a + a { border-left: 1px solid var(--border); padding-left: 16px; }
.score-strip a:hover { background: var(--raised); }
.score-strip span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.score-strip b { display: block; font-size: 22px; line-height: 28px; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 2px; }

.prio { list-style: none; margin: 0; padding: 6px 0 0; }
.prio li { display: grid; grid-template-columns: 8px minmax(0, 1fr) 64px 20px; gap: 14px; align-items: center; padding: 11px var(--card-pad); border-top: 1px solid var(--rule); cursor: pointer; transition: background-color .12s var(--ease); }
.prio li:first-child { border-top: 0; }
.prio li:hover { background: var(--raised); }
.prio li b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prio li span.m { display: block; color: var(--muted); font-size: 13px; line-height: 18px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prio .pg { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.prio .ic { color: var(--faint); }

.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li { display: grid; grid-template-columns: 168px minmax(0, 1fr) 32px; gap: 14px; align-items: center; height: 40px; }
.bullets .lbl { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bullets .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.bar { position: relative; height: 8px; border-radius: 999px; background: var(--rule); }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--text); }
.bar i.low { background: var(--brand); }
.bar .tick { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--muted); }
.legend-line { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 12px; }
.legend-line span { display: inline-flex; align-items: center; gap: 6px; }
.legend-line .sw { width: 14px; height: 6px; border-radius: 999px; background: var(--text); }
.legend-line .sw.low { background: var(--brand); }
.legend-line .sw.tk { width: 1px; height: 12px; border-radius: 0; background: var(--muted); }

.vitals { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 20px; align-items: start; }
.vital + .vital { margin-top: 16px; }
.vital-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.vital-top span { font-size: 13px; }
.vital-top b { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.vital-top b small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 2px; }
.vital-top b.poor { color: var(--brand-deep); }
.zones { position: relative; display: grid; height: 8px; gap: 2px; }
.zones span { border-radius: 2px; }
.zones .z1 { background: #dcebe2; } .zones .z2 { background: #f3e6cf; } .zones .z3 { background: #f4d8d4; }
.zones .pin { position: absolute; top: -4px; width: 3px; height: 16px; border-radius: 2px; background: var(--text); transform: translateX(-1px); }
.zone-labels { display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.phone-shot { width: 92px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--frame); }
.phone-shot img { width: 100%; display: block; }
.phone-shot + span { display: block; margin-top: 6px; font-size: 11px; color: var(--faint); text-align: center; }

.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px var(--card-pad) 6px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--frame); }
.seg button { height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background-color .14s var(--ease), color .14s var(--ease); }
.seg button b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.filters .right { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.issues td { height: auto; padding-top: 12px; padding-bottom: 12px; }
.issues td.c-sev { width: 120px; }
.issues td.c-cat { width: 190px; color: var(--muted); font-size: 13px; }
.issues td.c-pg { width: 90px; }
.issues td.c-pdf { width: 90px; text-align: center; }
.issues th.c-pdf { text-align: center; }
.issues .cell-2 b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.issues .cell-2 > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 640px; }
.issues .chk { justify-content: center; }
.empty-row td { color: var(--muted); text-align: left; height: 52px; }

.drawer-bg { position: fixed; inset: 0; background: rgba(20,20,20,.28); opacity: 0; transition: opacity .2s var(--ease); z-index: 40; }
.drawer { position: fixed; top: 8px; right: 8px; bottom: 8px; width: min(460px, calc(100vw - 16px)); background: var(--surface); border-radius: 14px; box-shadow: 0 24px 64px rgba(20,20,20,.18); z-index: 41; transform: translateX(24px); opacity: 0; transition: transform .26s var(--ease), opacity .2s var(--ease); display: flex; flex-direction: column; }
.drawer.open { transform: none; opacity: 1; }
.drawer-bg.open { opacity: 1; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 0 24px; }
.drawer-body { padding: 12px 24px 24px; overflow: auto; }
.drawer-body h2 { font-size: 20px; line-height: 26px; font-weight: 600; margin: 8px 0 16px; letter-spacing: -.01em; }
.drawer-body h3 { font-size: 13px; font-weight: 500; color: var(--muted); margin: 20px 0 6px; }
.drawer-body p { margin: 0; font-size: 15px; line-height: 23px; }
.drawer-body .kv { display: grid; grid-template-columns: 1fr 1fr; background: var(--raised); border-radius: 8px; padding: 4px 14px; margin-top: 16px; }
.drawer-body .kv div { padding: 8px 0; }
.drawer-body .kv span { display: block; font-size: 12px; color: var(--muted); }
.drawer-body .kv b { font-weight: 500; }

.viewer { min-height: 100vh; background: #e4e2dd; }
.viewer-bar { position: sticky; top: 0; z-index: 5; height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--frame); border-bottom: 1px solid var(--border); }
.viewer-bar .title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-bar .title span { color: var(--muted); font-weight: 400; }
.viewer-bar .actions { margin-left: auto; display: flex; gap: 8px; }
.pages { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 32px 16px 64px; }

.a4 { position: relative; width: 210mm; height: 297mm; background: #fff; color: #2b2b2b; overflow: hidden; font-family: var(--font); flex: none; line-height: 1.35; }
.a4 .deco.sm { top: -104mm; right: -76mm; }
.a4 .deco { position: absolute; top: -66mm; right: -58mm; width: 150mm; height: 150mm; border-radius: 50%; background: #f9e4e3; }
.a4 .deco::after { content: ""; position: absolute; left: 30mm; top: 54mm; width: 60mm; height: 60mm; border-radius: 50%; background: #ececec; }
.a4 .pg-no { position: absolute; top: 12mm; left: 12mm; font-size: 9pt; font-weight: 600; color: #141414; }
.a4 .pg-foot { position: absolute; bottom: 9mm; left: 0; right: 0; text-align: center; font-size: 10pt; color: var(--brand); }
.a4 .inner { position: relative; padding: 38mm 16mm 22mm; }
.a4 h2.cap { font-weight: 400; font-size: 19pt; line-height: 1.2; letter-spacing: .01em; margin: 0 0 6mm; color: #2b2b2b; text-transform: none; }
.a4 p { font-size: 10.5pt; line-height: 1.55; margin: 0; }
.a4 .cover-logo { position: absolute; top: 22mm; left: 13mm; display: flex; align-items: center; gap: 4mm; }
.a4 .cover-logo .mark { width: 30mm; height: 30mm; }
.a4 .cover-logo .name { font-size: 30pt; font-weight: 500; letter-spacing: .08em; color: #333; }
.a4 .cover-logo .name b { color: var(--brand); font-weight: 500; }
.a4 .cover-no { position: absolute; top: 96mm; left: 14mm; }
.a4 .cover-no > div { line-height: 1.15; }
.a4 .cover-no .lbl { font-size: 22pt; font-weight: 300; color: #333; }
.a4 .cover-no .big { font-size: 46pt; font-weight: 300; letter-spacing: .14em; margin: 4mm 0 0 13mm; color: #2b2b2b; font-variant-numeric: tabular-nums; }
.a4 .cover-no .date { font-size: 15pt; font-weight: 300; margin: 3mm 0 0 13mm; color: #444; }
.a4 .cover-subj { position: absolute; top: 166mm; left: 13mm; right: 16mm; }
.a4 .cover-subj > div { line-height: 1.2; }
.a4 .cover-subj .lbl { font-size: 15pt; font-weight: 300; color: #444; }
.a4 .cover-subj .what { font-size: 21pt; font-weight: 600; letter-spacing: .04em; margin-top: 4mm; color: #141414; }
.a4 .cover-subj .dom { font-size: 21pt; font-weight: 600; letter-spacing: .04em; margin-top: 2mm; color: var(--navy); }
.a4 .cover-parties { position: absolute; top: 236mm; left: 13mm; right: 16mm; display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; font-size: 11pt; line-height: 1.6; color: #555; font-weight: 300; }
.a4 .cover-parties b { color: #444; font-weight: 600; display: block; }
.a4 .cover-parties .lbl2 { color: #222; font-size: 13pt; font-weight: 400; display: block; letter-spacing: -.02em; }
.a4 .cover-legal { position: absolute; bottom: 9mm; left: 0; right: 0; text-align: center; font-size: 8.5pt; line-height: 1.5; color: #222; }
.a4 .cover-legal a { color: var(--brand); }
.a4 .sum { display: grid; grid-template-columns: 58mm 1fr; gap: 10mm; align-items: center; margin: 2mm 0 10mm; }
.a4 .sum .mark { width: 50mm; height: 50mm; }
.a4 .sum .n { font-size: 34pt; font-weight: 600; letter-spacing: -.02em; color: #141414; }
.a4 .sum .n small { font-size: 13pt; font-weight: 400; color: #666; letter-spacing: 0; }
.a4 .sum p.v { font-size: 13pt; line-height: 1.45; margin-top: 2mm; color: #222; }
.a4 .sum .counts { display: flex; gap: 8mm; margin-top: 5mm; font-size: 10pt; color: #555; }
.a4 .sum .counts b { display: block; font-size: 17pt; font-weight: 500; color: #141414; }
.a4 table { width: 100%; border-collapse: collapse; font-size: 10pt; line-height: 1.45; }
.a4 th { text-align: left; font-weight: 400; background: #f6f6f6; border: 0.25mm solid #d8d8d8; padding: 2.4mm 3mm; font-size: 10pt; }
.a4 td { border: 0.25mm solid #d8d8d8; padding: 2.6mm 3mm; vertical-align: top; }
.a4 td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.a4 td b { font-weight: 600; color: #141414; }
.a4 .areas { margin-bottom: 9mm; }
.a4 .areas .row { display: grid; grid-template-columns: 58mm 1fr 12mm; gap: 4mm; align-items: center; height: 8.5mm; font-size: 10.5pt; }
.a4 .areas .bar { height: 2.4mm; background: #efefef; }
.a4 .areas .bar .tick { background: #888; }
.a4 .areas .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.a4 .tag { display: inline-block; font-size: 8.5pt; font-weight: 600; padding: .6mm 2.2mm; border-radius: 3mm; white-space: nowrap; }
.a4 .tag-k { background: var(--pill-k-bg); color: var(--pill-k-ink); }
.a4 .tag-u { background: var(--pill-u-bg); color: var(--pill-u-ink); }
.a4 .tag-p { background: var(--pill-p-bg); color: var(--pill-p-ink); }
.a4 .next { margin-top: 9mm; padding: 7mm 8mm; background: #141414; color: #f3f2ef; border-radius: 3mm; display: grid; grid-template-columns: 1fr auto; gap: 8mm; align-items: center; }
.a4 .next h3 { font-size: 15pt; font-weight: 600; margin: 0 0 2mm; letter-spacing: -.01em; }
.a4 .next p { color: #cfccc5; font-size: 10.5pt; }
.a4 .next .who { font-size: 10.5pt; line-height: 1.6; text-align: right; white-space: nowrap; }
.a4 .next .who b { display: block; font-size: 12pt; color: #fff; }
.a4 .note { font-size: 9pt; color: #666; margin-top: 6mm; line-height: 1.5; }
.a4 .ul { margin: 0; padding-left: 5mm; font-size: 10.5pt; line-height: 1.6; }
.a4 .ul li + li { margin-top: 1.5mm; }
.a4 .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
.a4 .k { font-size: 9.5pt; color: #666; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); opacity: 0; background: var(--text); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px; transition: opacity .2s var(--ease), transform .2s var(--ease); z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.mnav-bg { display: none; }

@media (max-width: 1100px) {
  .grid6 .s2, .grid6 .s4, .grid6 .s3 { grid-column: 1 / -1; }
  .new-audit { grid-template-columns: 1fr; }
  .run { grid-template-columns: 1fr; }
  .issues td.c-cat, .issues th.c-cat { display: none; }
}

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; grid-template-rows: 48px 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); background: var(--frame); z-index: 50; transform: translateX(-100%); transition: transform .26s var(--ease); height: 100%; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(20,20,20,.3); }
  .top { grid-column: 1; padding: 0 12px 0 8px; }
  .menu-btn { display: grid; }
  .search { display: none; }
  .crumbs .p { display: none; }
  .crumbs .sep { display: none; }
  .sheet { grid-column: 1; margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
  .canvas { padding: 20px 16px 40px; }
  .title-row { flex-direction: column; }
  .title-row h1 { font-size: 22px; }
  .obj { flex-wrap: wrap; }
  .obj .actions { width: 100%; }
  .obj .actions .btn { flex: 1; }
  .url-row { flex-direction: column; }
  .url-row .btn { width: 100%; }
  .url-opts { grid-template-columns: 1fr; }
  .hist .c-by, .hist .c-pdf, .hist .c-total { display: none; }
  .issues td.c-sev, .issues th.c-sev, .issues td.c-pg, .issues th.c-pg { display: none; }
  .issues .cell-2 b, .issues .cell-2 > span { white-space: normal; }
  .filters .right { margin-left: 0; width: 100%; }
  .seg { max-width: 100%; overflow-x: auto; }
  .prio li { grid-template-columns: 8px minmax(0, 1fr) 20px; }
  .prio li .pg { display: none; }
  .bullets li { grid-template-columns: 120px minmax(0, 1fr) 28px; }
  .vitals { grid-template-columns: 1fr; }
  .phone-shot, .phone-shot + span { display: none; }
  .login { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-panel { min-width: 0; }
  .secret { white-space: normal; }
  .qr { width: 148px; height: 148px; }
  .otp { gap: 6px; }
  .otp-cell:nth-child(3) { margin-right: 4px; }
  .login-art { padding: 20px 16px; min-height: 0; }
  .login-art-copy, .login-art .giant { display: none; }
  .login-panel { justify-content: flex-start; padding: 32px 16px; }
  .setup { grid-template-columns: 1fr; }
  .tabs { gap: 18px; }
  .viewer .pages { align-items: flex-start; overflow-x: auto; }
  .viewer-bar .title span { display: none; }
  .viewer-bar .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff; }
  .viewer { background: #fff; }
  .viewer-bar, .toast { display: none !important; }
  .pages { padding: 0; gap: 0; display: block; }
  .a4 { page-break-after: always; break-after: page; }
  .a4:last-child { page-break-after: auto; break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.hint:empty { display: none; }

.a4 .deco-img { position: absolute; top: 0; right: 0; width: 84mm; height: auto; pointer-events: none; }
.a4 .cover-logo-img { position: absolute; top: 19mm; left: 10mm; width: 101mm; height: auto; }
.a4 .refs-img { display: block; width: 100%; margin-top: 12mm; }
.a4 .inner > * { position: relative; }

.kv-list { display: grid; gap: 0; padding-top: 6px; }
.kv-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 14px; line-height: 20px; }
.kv-row:first-child { border-top: 0; }
.kv-row span { color: var(--muted); font-size: 13px; }
.kv-row b { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.tool-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px 24px; }
.tool-group { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 12px; align-items: start; }
.tool-group > span { color: var(--muted); font-size: 13px; line-height: 26px; }
.tool-group > div { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--frame); font-size: 13px; white-space: nowrap; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 170px auto; gap: 12px; align-items: end; }
.tabs .tab-lock { width: 13px; height: 13px; color: var(--faint); }
.notice .ic { width: 14px; height: 14px; }

@media (max-width: 860px) {
  .form-row { grid-template-columns: 1fr !important; }
  .tool-group { grid-template-columns: 1fr; gap: 6px; }
}

.a4.doc { --pdf-text: "Avenir Next", "Avenir", "Switzer", sans-serif; --pdf-light: "Helvetica Neue", "Avenir Next", "Switzer", sans-serif; font-family: var(--pdf-text); color: #262626; }
.a4.doc .deco-img { width: 86mm; }
.a4.doc .pg-no { top: 13mm; left: 11mm; font-family: Helvetica, Arial, sans-serif; font-weight: 700; font-size: 9pt; }
.a4.doc .pg-foot { position: absolute; bottom: 10mm; left: 0; right: 0; text-align: center; font-family: Helvetica, Arial, sans-serif; font-size: 11pt; color: #d0312d; text-decoration: underline; text-underline-offset: 2px; }
.a4.doc .inner { padding: 40mm 13mm 24mm 13mm; }
.a4.doc h2 { font-family: var(--pdf-light); font-weight: 300; font-size: 19pt; line-height: 1.2; letter-spacing: 0; color: #2b2b2b; margin: 8mm 0 5mm; }
.a4.doc h2:first-child { margin-top: 0; }
.a4.doc p { font-size: 11pt; line-height: 1.5; margin: 0 0 4mm; color: #262626; }
.a4.doc p.small { font-size: 9.5pt; color: #555; margin-top: 3mm; }
.a4.doc a { color: #d0312d; }
.a4.doc ol.svc { margin: 4mm 0 1.5mm; padding-left: 9mm; font-family: var(--pdf-light); font-weight: 300; font-size: 11.5pt; }
.a4.doc ol.plain { margin: 0; padding-left: 6mm; font-size: 11pt; line-height: 1.5; }
.a4.doc ol.plain li { margin-bottom: 3mm; padding-left: 1mm; }
.a4.doc ol.plain b, .a4.doc .t td b { font-weight: 600; color: #1d1d1d; }
.a4.doc .t { width: 100%; border-collapse: collapse; margin: 2mm 0 4mm; font-size: 10.5pt; line-height: 1.45; background: #fff; }
.a4.doc .t th { font-family: var(--pdf-light); font-weight: 300; font-size: 11pt; text-align: left; background: #f7f7f7; border: .3mm solid #cfcfcf; padding: 2.4mm 3mm; color: #2b2b2b; }
.a4.doc .t td { border: .3mm solid #cfcfcf; padding: 2.6mm 3mm; vertical-align: top; }
.a4.doc .t .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.a4.doc .t tr.total td { background: #f7f7f7; font-weight: 700; }
.a4.doc .t td.crit { color: #b3261e; }
.a4.doc .t .muted { color: #6a6a6a; font-size: 9.5pt; }
.a4.doc .t.kv td { background: #fbfbfb; }
.a4.doc .refs-img { margin-top: 18mm; }
.a4.doc .cover-no .lbl, .a4.doc .cover-subj .lbl { font-family: var(--pdf-light); font-weight: 300; }
.a4.doc .cover-no .big { font-family: var(--pdf-light); font-weight: 300; letter-spacing: .16em; }
.a4.doc .cover-no .date { font-family: var(--pdf-text); font-weight: 400; color: #555; }
.a4.doc .cover-subj .what { font-family: var(--pdf-text); font-weight: 700; letter-spacing: .06em; }
.a4.doc .cover-subj .dom { font-family: var(--pdf-text); font-weight: 700; letter-spacing: .06em; color: #1f2a8a; }
.a4.doc .cover-parties { font-family: var(--pdf-text); font-weight: 400; color: #666; }
.a4.doc .cover-parties .lbl2 { font-family: var(--pdf-light); font-weight: 400; color: #222; }
.a4.doc .cover-legal { font-family: Helvetica, Arial, sans-serif; color: #111; }
.a4.doc .cover-legal a { color: #d0312d; }

.radar { width: 100%; height: auto; display: block; overflow: visible; }
.radar .rg { fill: none; stroke: var(--border); stroke-width: .6; }
.radar .sweep { transform-origin: 50px 50px; }
.radar .sweep circle { fill: none; stroke: var(--logo-red); stroke-width: 10; opacity: .14; }
.radar.on .sweep { animation: sweep 2.4s linear infinite; }
.radar .core-dot { fill: var(--logo-dark); }
.radar.on .core-dot { animation: breathe 1.6s var(--ease) infinite; transform-origin: 50px 50px; }
.radar .blip { fill: var(--text); animation: blip-in .5s var(--ease) both; }
.radar .blip.hot { fill: var(--logo-red); }
.radar .blip.err { fill: var(--faint); }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes blip-in { from { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; } to { opacity: 1; transform: scale(1); transform-box: fill-box; transform-origin: center; } }

.hunt { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 28px; align-items: start; padding: 24px; margin-bottom: 14px; }
.hunt-radar { width: 180px; }
.hunt-main h2 { margin: 4px 0 6px; font-size: 18px; font-weight: 600; }
.hunt-main p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.hunt-main p b { color: var(--text); font-weight: 500; }
.hunt-bar { height: 6px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.hunt-bar i { display: block; height: 100%; background: var(--text); border-radius: 999px; transition: width .6s var(--ease); }
.hunt-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hunt-list li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 6px; border-radius: 999px; background: var(--frame); font-size: 13px; color: var(--faint); transition: background-color .3s var(--ease), color .3s var(--ease); }
.hunt-list li .st { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--control); display: grid; place-items: center; }
.hunt-list li .st svg { width: 10px; height: 10px; stroke-width: 2.4; }
.hunt-list li.radi { color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.hunt-list li.radi .st { box-shadow: none; border: 2px solid var(--active); border-top-color: var(--text); animation: spin .8s linear infinite; }
.hunt-list li.gotovo { color: var(--text); }
.hunt-list li.gotovo .st { box-shadow: none; background: var(--text); color: #fff; }
.hunt-list li.greska .st { box-shadow: none; background: var(--pill-k-bg); color: var(--pill-k-ink); }

.lead-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-card); margin-bottom: 14px; background: var(--surface); overflow: hidden; }
.lead-stats > * { text-align: left; padding: 14px 20px; border: 0; background: none; font: inherit; color: inherit; border-left: 1px solid var(--border); }
.lead-stats > *:first-child { border-left: 0; }
.lead-stats button { cursor: pointer; position: relative; transition: background-color .14s var(--ease); }
.lead-stats button:hover { background: var(--raised); }
.lead-stats button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--logo-red); }
.lead-stats span { display: block; color: var(--muted); font-size: 13px; }
.lead-stats b { display: block; font-size: 24px; line-height: 30px; font-weight: 500; margin-top: 2px; }
.lead-stats .ls-note b { color: var(--muted); }
.leads td { height: 56px; }
.web-cell { display: flex; align-items: center; gap: 6px; min-width: 210px; }
.web-in { height: 32px; font-size: 13px; max-width: 200px; }
.tag-auto { font-size: 11px; color: var(--pill-u-ink); background: var(--pill-u-bg); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.prio-bar { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.prio-bar i { display: block; height: 6px; border-radius: 999px; background: var(--logo-red); min-width: 4px; max-width: 80px; flex: none; }
.prio-bar span { font-size: 13px; color: var(--text); }
@media (max-width: 860px) {
  .hunt { grid-template-columns: 1fr; }
  .hunt-radar { width: 140px; }
  .lead-stats { grid-template-columns: 1fr 1fr; }
  .lead-stats > *:nth-child(3) { border-left: 0; }
}

.ps-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.neg { display: inline-block; width: 56px; height: 6px; border-radius: 999px; background: var(--rule); overflow: hidden; flex: none; }
.neg i { display: block; height: 100%; background: var(--logo-red); border-radius: 999px; }
.pros td { vertical-align: top; padding-top: 12px; padding-bottom: 12px; }
.pros a { color: inherit; text-decoration: none; }
.pros a:hover { text-decoration: underline; text-underline-offset: 3px; }
.osm-note { color: var(--faint); font-size: 12px; margin: 14px 0 0; }
@media (max-width: 860px) { .ps-row { grid-template-columns: 1fr; } }

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); margin-bottom: 14px; }
.kpis > div { padding: 16px 20px; border-left: 1px solid var(--border); min-width: 0; }
.kpis > div:first-child { border-left: 0; }
.kpis span { display: block; color: var(--muted); font-size: 13px; }
.kpis b { display: block; font-size: 24px; line-height: 30px; font-weight: 500; margin: 2px 0; white-space: nowrap; }
.dl { font-size: 12px; color: var(--muted); }
.dl.up { color: var(--positive); }
.dl.down { color: var(--brand-deep); }
.lc { width: 100%; height: auto; display: block; }
.lc .g { stroke: var(--grid); stroke-width: 1; }
.lc text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.lc .ln { fill: none; stroke: var(--logo-red); stroke-width: 2; stroke-linejoin: round; }
.lc .od { fill: var(--text); }
.bl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bl-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.bl-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bl-top b { font-weight: 500; }
.bl-bar { height: 4px; border-radius: 999px; background: var(--rule); margin-top: 4px; }
.bl-bar i { display: block; height: 100%; border-radius: 999px; background: var(--text); }
.bl li:first-child .bl-bar i { background: var(--logo-red); }
.bl-sub { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.empty-p { margin: 0; color: var(--muted); font-size: 13px; }
.live { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; color: var(--positive); font-size: 13px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); animation: breathe 1.6s var(--ease) infinite; }
.insight { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-card); background: var(--pill-k-bg); color: var(--pill-k-ink); margin-bottom: 14px; font-size: 14px; line-height: 21px; }
.insight .ic { margin-top: 2px; }
.funnel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
.fs { display: flex; flex-direction: column; gap: 2px; }
.fs-bar { height: 150px; display: flex; align-items: flex-end; background: var(--raised); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.fs-bar i { display: block; width: 100%; background: #cfcbc2; border-radius: 8px 8px 0 0; transition: height .6s var(--ease); }
.fs:last-child:not(.worst) .fs-bar i { background: var(--text); }
.fs.worst .fs-bar i { background: var(--logo-red); }
.fs b { font-size: 22px; font-weight: 500; line-height: 28px; }
.fs span { font-size: 13px; }
.fs em { font-style: normal; color: var(--muted); font-size: 12px; }
.fs small { font-size: 12px; color: var(--muted); }
.fs small.drop { color: var(--brand-deep); font-weight: 600; }
.replay { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.rp-main { padding: 12px; overflow: hidden; }
.rp-side { max-height: 80vh; display: flex; flex-direction: column; }
.rp-ev { list-style: none; margin: 8px 0 0; padding: 0 0 8px; overflow: auto; }
.rp-ev li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 8px 20px; cursor: pointer; border-top: 1px solid var(--rule); font-size: 13px; }
.rp-ev li:hover { background: var(--raised); }
.rp-ev li span { color: var(--muted); }
.rp-ev li b { display: block; font-weight: 500; }
.rp-ev li small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-ev li.t-add_to_cart b, .rp-ev li.t-begin_checkout b { color: var(--pill-u-ink); }
.rp-ev li.t-purchase b { color: var(--positive); }
.steps-ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } .kpis > div:nth-child(4) { border-left: 0; } .kpis > div:nth-child(n+4) { border-top: 1px solid var(--border); } .replay { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis > div { border-left: 0 !important; border-top: 1px solid var(--border); } .funnel { grid-template-columns: repeat(5, minmax(56px, 1fr)); overflow-x: auto; } .fs-bar { height: 120px; } }

.subnav { display: flex; gap: 4px; margin: -4px 0 16px; flex-wrap: wrap; }
.subnav a { height: 30px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; border: 1px solid transparent; transition: background-color .14s var(--ease), color .14s var(--ease); }
.subnav a:hover { color: var(--text); background: var(--raised); }
.subnav a[aria-current="page"] { color: var(--text); background: var(--surface); border-color: var(--border); font-weight: 500; }
.subnav .cnt { font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: 999px; background: var(--pill-k-bg); color: var(--pill-k-ink); font-variant-numeric: tabular-nums; }
.kpis.kpis4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.c-err { margin: 6px 0 0; display: flex; gap: 6px; align-items: flex-start; color: var(--pill-k-ink); font-size: 13px; }
.c-note { margin: 4px 0 0; color: var(--sev-u); font-size: 13px; }
.c-try { display: flex; flex-direction: column; }
.ct-wrap { flex: 1; min-height: 260px; max-height: 340px; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--raised); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ct-wrap.ct-full { max-height: none; border: 1px solid var(--border); border-radius: var(--radius-card); }
.ct { max-width: 86%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; }
.ct-b { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ct-u { align-self: flex-end; background: var(--logo-dark); color: #fff; border-bottom-right-radius: 4px; }
.ct-miss { border-color: var(--pill-k-bg); box-shadow: inset 3px 0 0 var(--sev-k); }
.ct small { display: block; margin-top: 6px; color: var(--faint); font-size: 12px; white-space: normal; }
.ct-sys { align-self: center; font-size: 12px; color: var(--positive); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.ct-items { display: grid; gap: 6px; margin-top: 8px; white-space: normal; }
.ct-items a { display: grid; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: var(--text); background: var(--raised); }
.ct-items a:hover { border-color: var(--control); }
.ct-items b { font-weight: 500; font-size: 13px; }
.ct-items span { font-size: 12px; color: var(--muted); }
.ct-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; white-space: normal; }
.ct-links a { font-size: 12px; color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; text-decoration: none; background: var(--raised); }
.ct-form { display: flex; gap: 8px; padding: 12px 16px; }
.ct-form .input { flex: 1; min-width: 0; height: 36px; }
.secret.code { white-space: normal; align-items: flex-start; }
.secret.code code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; line-height: 18px; word-break: break-all; }
.qlist { list-style: none; margin: 0; padding: 4px 0; }
.qlist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--rule); }
.qlist li:first-child { border-top: 0; }
.qlist li > div { min-width: 0; display: grid; gap: 2px; }
.qlist b { font-weight: 500; font-size: 14px; }
.qlist span { font-size: 12px; color: var(--muted); }
.qlist .qa { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qlist .empty-li { color: var(--muted); font-size: 13px; justify-content: flex-start; }
.swatch { width: 52px; height: 36px; padding: 3px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); cursor: pointer; }
.c-prev { position: relative; height: 300px; border-radius: var(--radius-card); background: repeating-linear-gradient(135deg, var(--raised) 0 10px, var(--surface) 10px 20px); border: 1px solid var(--border); overflow: hidden; }
.cp-panel { position: absolute; bottom: 70px; width: 240px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 44px rgba(20,20,20,.16); overflow: hidden; font-size: 12px; line-height: 16px; }
.cp-h { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-bottom: 1px solid var(--rule); }
.cp-h b { display: block; font-size: 12.5px; font-weight: 600; }
.cp-h small { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); }
.cp-h small i { width: 5px; height: 5px; border-radius: 50%; background: var(--positive); }
.cp-av { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.cp-av .ic { width: 13px; height: 13px; }
.cp-m { padding: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--raised); }
.cp-b { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 6px 9px; max-width: 88%; }
.cp-u { align-self: flex-end; border-radius: 8px; padding: 6px 9px; }
.cp-f { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--rule); }
.cp-f span { flex: 1; height: 26px; border: 1px solid var(--control); border-radius: 6px; padding: 0 8px; display: flex; align-items: center; color: var(--faint); font-size: 11px; }
.cp-f i { width: 26px; height: 26px; border-radius: 6px; }
.cp-l { position: absolute; bottom: 14px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(20,20,20,.18); }
.cp-l .ic { width: 18px; height: 18px; }
@media (max-width: 720px) { .kpis.kpis4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis.kpis4 > div:nth-child(3) { border-left: 0; } .kpis.kpis4 > div:nth-child(n+3) { border-top: 1px solid var(--border); } }
textarea.input { height: auto; min-height: 72px; padding: 9px 12px; line-height: 1.45; resize: vertical; font: inherit; }
.btn[hidden] { display: none; }
.swatch[hidden] { display: none; }

.ell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub-line { display: block; font-size: 12px; color: var(--muted); font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.badges { white-space: nowrap; }
.badges .pill { margin-right: 2px; }
.chipbar { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.chipbar a { height: 28px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; color: var(--muted); text-decoration: none; background: var(--raised); border: 1px solid transparent; transition: background-color .14s var(--ease), color .14s var(--ease); }
.chipbar a:hover { color: var(--text); background: var(--active); }
.chipbar a[aria-current="true"] { background: var(--text); color: #fff; }
.vt { font-variant-numeric: tabular-nums; font-weight: 500; }
.vt0 { color: var(--positive); }
.vt1 { color: var(--sev-u); }
.vt2 { color: var(--sev-k); }
.vtx { color: var(--faint); }
.kpis .vt { font-size: inherit; }
.kpis .dl { display: block; }
.hg { display: grid; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; font-size: 11px; color: var(--faint); }
.hg i { display: block; aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--logo-red) calc(var(--a) * 100%), var(--frame)); }
.hg-h { text-align: center; font-variant-numeric: tabular-nums; }
.hg-d { padding-right: 4px; }
.live-list { list-style: none; margin: 0; padding: 4px 0 8px; }
.live-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 20px; border-top: 1px solid var(--rule); animation: rowIn .26s var(--ease) both; }
.live-list li:first-child { border-top: 0; }
.live-list .ell { display: grid; max-width: 200px; }
.live-list b { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.live-list small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.live-list .empty-li { color: var(--muted); font-size: 13px; }
@keyframes rowIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.export-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.export-row .btn { height: 30px; }
.hm { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.hm-side { position: sticky; top: 12px; }
.hm-pages { list-style: none; margin: 0; padding: 0 0 8px; max-height: 70vh; overflow-y: auto; }
.hm-pages a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 20px; text-decoration: none; color: var(--muted); font-size: 13px; border-left: 2px solid transparent; transition: background-color .14s var(--ease), color .14s var(--ease); }
.hm-pages a:hover { background: var(--raised); color: var(--text); }
.hm-pages a[aria-current="true"] { color: var(--text); background: var(--raised); border-left-color: var(--brand); font-weight: 500; }
.hm-pages .ell { max-width: 180px; }
.hm-pages small { color: var(--faint); }
.hm-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0 20px 12px; font-size: 13px; color: var(--muted); }
.hm-meta b { color: var(--text); font-weight: 500; }
.hm-top { flex-basis: 100%; }
.hm-stage { position: relative; margin: 0 20px 20px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--raised); overflow-y: auto; overflow-x: hidden; min-height: 240px; }
.hm-inner { position: relative; }
.hm-scale { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.hm-frame, .hm-frame .replayer-wrapper { position: absolute; top: 0; left: 0; }
.hm-frame iframe { border: 0; pointer-events: none; background: #fff; display: block; }
.hm-frame .replayer-mouse, .hm-frame .replayer-mouse-tail { display: none; }
#hm-canvas { position: absolute; top: 0; left: 0; pointer-events: none; }
.hm-empty { padding: 40px 24px; text-align: center; color: var(--muted); font-size: 14px; }
.hm-float { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.7); }
@media (max-width: 900px) { .hm { grid-template-columns: 1fr; } .hm-side { position: static; } .hm-pages { max-height: 200px; } }
.rp-forget { padding: 8px 14px 14px; border-top: 1px solid var(--rule); }
.rp-forget .btn { height: 30px; font-size: 13px; }
.rp-ev li.t-rage b, .rp-ev li.t-dead b, .rp-ev li.t-error b, .rp-ev li.t-notice b, .rp-ev li.t-remove_from_cart b { color: var(--sev-k); }
.rp-ev li.t-goal b, .rp-ev li.t-purchase b { color: var(--positive); }

.dz-sum { display: grid; gap: 8px; margin-bottom: 14px; }
.dz-sum a, .dz-sum div { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-card); font-size: 14px; line-height: 21px; color: inherit; text-decoration: none; background: var(--pill-p-bg); transition: transform .16s var(--ease), box-shadow .16s var(--ease); }
.dz-sum a:hover { box-shadow: 0 0 0 1px var(--control); }
.dz-sum a:active { transform: scale(.995); }
.dz-sum .bad { background: var(--pill-k-bg); color: var(--pill-k-ink); }
.dz-sum .warn { background: var(--pill-u-bg); color: var(--pill-u-ink); }
.dz-sum .ok { background: #e3f3e9; color: #134b2c; }
.dz-sum .ic { margin-top: 2px; flex: none; }
.dz-sum span { flex: 1; }
.dz-sum em { font-style: normal; font-size: 12px; opacity: .75; white-space: nowrap; margin-top: 1px; }
.dz-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dz-stage { padding: 16px; border-radius: var(--radius-card); background: var(--raised); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.dz-stage.worst { box-shadow: inset 0 0 0 1.5px var(--sev-k); }
.dz-stage h3 { margin: 0; font-size: 13px; font-weight: 600; line-height: 18px; }
.dz-stage .big { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.dz-stage ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12.5px; line-height: 20px; color: var(--muted); }
.dz-stage ul b { color: var(--text); font-weight: 600; }
.dz-stage .ell { display: block; }
.dz-stage a { margin-top: auto; padding-top: 8px; font-size: 13px; }
.cmp { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.cmp .bar { width: 64px; height: 6px; border-radius: 3px; background: var(--active); position: relative; overflow: hidden; display: inline-block; }
.cmp .bar i { position: absolute; inset: 0 auto 0 0; background: currentColor; border-radius: 3px; }
.conf { font-size: 11.5px; color: var(--muted); }
.conf.c2 { color: var(--sev-k); }
.tag-list { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 3px; }
.tag-list .pill { font-size: 11px; padding: 1px 7px; }
.seg-low { color: var(--sev-k); font-weight: 600; }
.dz-kv { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 14px; font-size: 13.5px; align-items: baseline; }
.dz-kv .h { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 900px) { .dz-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .dz-stages { grid-template-columns: 1fr; } }

.rp-main .rr-player { box-shadow: none !important; background: var(--surface) !important; font-family: var(--font) !important; border-radius: 10px; float: none !important; }
.rp-main .rr-player__frame { border-radius: 10px; overflow: hidden; background: var(--frame) !important; }
.rp-main .rr-controller { background: var(--surface) !important; border-radius: 0 0 10px 10px; padding-top: 6px; height: auto !important; min-height: 80px; }
.rp-main .rr-timeline { width: 100% !important; }
.rp-main .rr-timeline__time { color: var(--muted) !important; font-variant-numeric: tabular-nums; font-size: 12.5px; width: 64px !important; }
.rp-main .rr-progress { background: var(--active) !important; border-top-color: var(--surface) !important; border-bottom-color: var(--surface) !important; height: 14px !important; border-radius: 4px !important; }
.rp-main .rr-progress__step { background: var(--brand-track) !important; border-radius: 3px; }
.rp-main .rr-progress__handler { background: var(--brand) !important; width: 14px !important; height: 14px !important; top: 3px !important; box-shadow: 0 0 0 3px var(--surface); z-index: 3; }
.rp-main .rr-progress__slider:focus-visible, .rp-main .rr-custom-event:focus-visible { outline-color: var(--brand) !important; }
.rp-main .rr-controller__btns button { color: var(--text) !important; border-radius: 8px !important; font-family: var(--font) !important; transition: background .16s var(--ease), transform .16s var(--ease); }
.rp-main .rr-controller__btns button:hover { background: var(--raised) !important; }
.rp-main .rr-controller__btns button:active { background: var(--active) !important; transform: scale(.96); }
.rp-main .rr-controller__btns button.active { background: var(--primary) !important; color: var(--on-primary) !important; }
.rp-main .rr-controller__btns button svg { fill: currentColor; }
.rp-main .switch label:before { background: var(--control) !important; }
.rp-main .switch input[type='checkbox']:checked + label:before { background: var(--brand) !important; }
.rp-main .switch label:after { background: var(--surface) !important; }
.rp-main .switch { color: var(--muted); font-size: 12.5px; }
.rp-marks { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.rp-mk { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; padding: 0; border-radius: 50%; border: 2px solid var(--surface); background: var(--sev-p); cursor: pointer; pointer-events: auto; transition: transform .16s var(--ease); }
.rp-mk:hover, .rp-mk:focus-visible { transform: scale(1.35); z-index: 4; outline: none; }
.rp-mk-pv { width: 2px; height: 14px; margin: -7px 0 0 -1px; border: 0; border-radius: 1px; background: var(--control); }
.rp-mk-pv:hover { transform: scaleX(2); }
.rp-mk-u { background: var(--sev-u); } .rp-mk-k { background: var(--sev-k); } .rp-mk-ok { background: var(--positive); } .rp-mk-p { background: var(--text); }
.rp-tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px); background: var(--primary); color: var(--on-primary); font-size: 12px; line-height: 16px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .16s var(--ease), transform .16s var(--ease); text-align: left; }
.rp-tip small { display: block; opacity: .75; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.rp-mk:hover .rp-tip, .rp-mk:focus-visible .rp-tip { opacity: 1; transform: translate(-50%, 0); }
.rp-lane { display: flex; gap: 6px; overflow-x: auto; padding: 10px 2px 4px; scrollbar-width: thin; }
.rp-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 500 12.5px var(--font); cursor: pointer; transition: background .16s var(--ease), border-color .16s var(--ease), transform .16s var(--ease); background-image: none; }
.rp-chip:hover { background: var(--raised); }
.rp-chip:active { transform: scale(.96); }
.rp-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--sev-p); }
.rp-chip.rp-mk-u i { background: var(--sev-u); } .rp-chip.rp-mk-k i { background: var(--sev-k); } .rp-chip.rp-mk-ok i { background: var(--positive); } .rp-chip.rp-mk-p i { background: var(--text); }
.rp-chip span { color: var(--muted); font-weight: 400; }
.rp-chip b { font-weight: 600; }
.rp-chip small { color: var(--muted); font-weight: 400; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-chip.on { border-color: var(--text); background: var(--raised); }
.rp-ev li.on { background: var(--raised); box-shadow: inset 3px 0 0 var(--brand); }
@media (prefers-reduced-motion: reduce) { .rp-mk, .rp-tip, .rp-chip { transition: none; } }
.replay > * { min-width: 0; }
.rp-main .rr-player, .rp-main .rr-controller { max-width: 100%; }
.rp-main .rr-controller__btns { flex-wrap: wrap; row-gap: 4px; }
.dz-stage ul b { white-space: nowrap; }
@media (max-width: 640px) {
  .title-row .actions { flex-wrap: wrap; max-width: 100%; min-width: 0; }
  .title-row .actions .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .title-row .actions .seg button { white-space: nowrap; flex: none; }
  .tabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .tabs a { flex: none; white-space: nowrap; }
}
