/* Redesign Pilot · Optimum7 operator panel
   Layout: app shell = 248px sidebar + inset content pane; under 860px the sidebar becomes an off-canvas drawer
   and data tables turn into cards. Neutrals lean slightly navy; Optimum7 orange marks primary actions and selection only. */
:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --bg: #F4F4F7;
  --pane: #FFFFFF;
  --fill: #F1F1F5;
  --fill-2: #E9E9EF;
  --hover: rgba(28, 28, 36, .045);
  --border: #E4E4EA;
  --border-2: #C9C9D3;
  --text: #1C1C24;
  --text-2: #525261;
  --text-3: #6A6A7A;
  --accent: #F79803;
  --accent-hover: #EC8F00;
  --on-accent: #1C1C24;
  --accent-ink: #9A5800;
  --accent-tint: #FFF4E2;
  --pos: #14763D;
  --pos-tint: #E9F5EE;
  --pos-dot: #22A559;
  --neg: #C42B2B;
  --neg-tint: #FCEDED;
  --neg-dot: #E5484D;
  --info: #2459D9;
  --info-tint: #EAF0FD;
  --focus: #C46A00;
  --glass: rgba(255, 255, 255, .82);
  --shadow-1: 0 1px 2px rgba(20, 20, 40, .06);
  --shadow-pop: 0 18px 44px rgba(20, 20, 40, .16), 0 2px 8px rgba(20, 20, 40, .06);
  --scrim: rgba(12, 12, 22, .4);
  --toast-bg: #1C1C24;
  --toast-text: #FFFFFF;
  --thumb-dim: none;
  --logo-ink: #242435;
  --logo-mark: #FE9802;
  --g-bg: #FFFFFF;
  --g-border: #747775;
  --g-text: #1F1F1F;

  /* Content colours: site screenshots and concept previews look the same in both themes */
  --shot-paper: #FFFFFF;
  --shot-bar: #F0F0F3;
  --shot-line: #C9CAD3;
  --shot-line-2: #E0E1E7;
  --shot-block: #ECEDF1;
  --shot-night: #111114;
  --shot-night-bar: #1C1C21;
  --shot-night-line: #3A3A42;
  --shot-night-block: #222228;
  --cp-bg: #0A0A0B;
  --cp-ink: #F5F5F5;
  --cp-mid: #6B6B72;
  --cp-dim: #4A4A50;
  --cp-card: #18181C;
  --cp-img: #1D1D22;
  --cp-lime: #C6F432;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E15;
    --pane: #15151E;
    --fill: #1E1E29;
    --fill-2: #262632;
    --hover: rgba(255, 255, 255, .045);
    --border: #262631;
    --border-2: #3A3A48;
    --text: #EDEDF3;
    --text-2: #B3B3C2;
    --text-3: #90909F;
    --accent-hover: #FFA524;
    --on-accent: #17110A;
    --accent-ink: #FFB547;
    --accent-tint: #2E2213;
    --pos: #4CC47F;
    --pos-tint: #16291F;
    --pos-dot: #3FB873;
    --neg: #FF7B72;
    --neg-tint: #331B1D;
    --neg-dot: #F0625A;
    --info: #7FA8FF;
    --info-tint: #18223A;
    --focus: #FFB547;
    --glass: rgba(21, 21, 30, .8);
    --shadow-1: 0 0 0 1px rgba(255, 255, 255, .02);
    --shadow-pop: 0 22px 56px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07);
    --scrim: rgba(0, 0, 0, .55);
    --toast-bg: #EDEDF3;
    --toast-text: #15151E;
    --thumb-dim: brightness(.84);
    --logo-ink: #FFFFFF;
    --g-bg: #131314;
    --g-border: #8E918F;
    --g-text: #E3E3E3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E15;
  --pane: #15151E;
  --fill: #1E1E29;
  --fill-2: #262632;
  --hover: rgba(255, 255, 255, .045);
  --border: #262631;
  --border-2: #3A3A48;
  --text: #EDEDF3;
  --text-2: #B3B3C2;
  --text-3: #90909F;
  --accent-hover: #FFA524;
  --on-accent: #17110A;
  --accent-ink: #FFB547;
  --accent-tint: #2E2213;
  --pos: #4CC47F;
  --pos-tint: #16291F;
  --pos-dot: #3FB873;
  --neg: #FF7B72;
  --neg-tint: #331B1D;
  --neg-dot: #F0625A;
  --info: #7FA8FF;
  --info-tint: #18223A;
  --focus: #FFB547;
  --glass: rgba(21, 21, 30, .8);
  --shadow-1: 0 0 0 1px rgba(255, 255, 255, .02);
  --shadow-pop: 0 22px 56px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .07);
  --scrim: rgba(0, 0, 0, .55);
  --toast-bg: #EDEDF3;
  --toast-text: #15151E;
  --thumb-dim: brightness(.84);
  --logo-ink: #FFFFFF;
  --g-bg: #131314;
  --g-border: #8E918F;
  --g-text: #E3E3E3;
  color-scheme: dark;
}

/* Increased contrast */
@media (prefers-contrast: more) {
  :root { --border: #B8B8C4; --border-2: #8E8E9C; --text-2: #3E3E4C; --text-3: #50505F; }
  :root[data-theme="dark"] { --border: #4A4A5A; --border-2: #6E6E80; --text-2: #D0D0DC; --text-3: #B4B4C2; }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --border: #4A4A5A; --border-2: #6E6E80; --text-2: #D0D0DC; --text-3: #B4B4C2; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 20px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
p, h1, h2, h3, figure { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
img, svg { max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; flex: none; }
html:has(dialog[open]) { overflow: hidden; }
.skip { position: fixed; left: 8px; top: -60px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--toast-bg); color: var(--toast-text); font-weight: 600; }
.skip:focus { top: calc(8px + env(safe-area-inset-top, 0px)); }

.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-dots { stroke-width: 2.6; }
.ic-fill { fill: currentColor; stroke: none; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.strong { font-weight: 600; }
.small { font-size: 13px; line-height: 18px; }
.xs { font-size: 12px; line-height: 16px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.r { text-align: right; justify-content: flex-end; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.between { justify-content: space-between; }
.gap-4 { gap: 4px; }
.gap-12 { gap: 12px; }
.stack-8, .stack-12, .stack-16, .stack-20 { display: flex; flex-direction: column; min-width: 0; }
.stack-8 { gap: 8px; }
.stack-12 { gap: 12px; }
.stack-16 { gap: 16px; }
.stack-20 { gap: 20px; }
.hr { height: 1px; background: var(--border); border: 0; margin: 0; }
.link { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.link:hover { text-decoration-color: currentColor; }
.ext { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.ext:hover { color: var(--text); }
.ext .ic { width: 13px; height: 13px; }
.bad-text { color: var(--neg); }

/* ---------- Logo ---------- */
.logo { display: block; width: 128px; height: auto; color: var(--logo-ink); }
.logo .mark { fill: var(--logo-mark); }
/* Product name under the Optimum7 wordmark, in the brand's geometric face */
.product { font-family: Poppins, var(--font); font-size: 13px; line-height: 14px; text-align: right; font-weight: 500; letter-spacing: -.01em; color: var(--text-2); margin-top: 3px; }

/* ---------- Sign in ---------- */
.auth {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding-block: 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.auth-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 28px; }
.auth-brand { display: flex; flex-direction: column; align-self: center; align-items: flex-end; gap: 0; }
.auth-brand .logo { width: 168px; }
.auth-brand .product { font-size: 15px; line-height: 17px; margin-top: 4px; }
.auth-panel { display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 16px; background: var(--pane); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.auth-title { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.auth-sub { font-size: 14px; line-height: 20px; color: var(--text-2); margin-top: 4px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--g-border); background: var(--g-bg); color: var(--g-text); font-size: 15px; font-weight: 500; transition: filter .12s ease; }
.gbtn:hover { filter: brightness(.97); }
.gbtn svg { width: 18px; height: 18px; flex: none; }
.gbtn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rp-spin .7s linear infinite; }
.auth-note { display: flex; gap: 10px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.auth-note .ic { margin-top: 1px; color: var(--text-3); }
.auth-error { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--neg-tint); color: var(--neg); font-size: 13px; line-height: 18px; }
.auth-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; line-height: 16px; color: var(--text-3); }

/* ---------- App shell ---------- */
.app { display: flex; height: 100%; min-height: 560px; background: var(--bg); }
.side { width: 248px; flex: none; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px 12px max(10px, env(safe-area-inset-left, 0px)); overflow-y: auto; background: var(--bg); }
.app.side-hidden .side { display: none; }
.side-scrim { display: none; }
.pane { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; margin: 8px max(8px, env(safe-area-inset-right, 0px)) 8px 0; background: var(--pane); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; position: relative; }
.app.side-hidden .pane { margin-left: max(8px, env(safe-area-inset-left, 0px)); }
.scroll { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; position: relative; }
.toolbar { position: sticky; top: 0; z-index: 10; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px 0 10px; background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--border); }
.btn.menu-btn { display: none; }
.content { max-width: 1240px; margin: 0 auto; padding: 28px 32px 56px; }
.content.wide { max-width: 1400px; }

.brand { display: flex; flex-direction: column; align-self: flex-start; align-items: flex-end; gap: 0; padding: 8px 10px 18px; border-radius: 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-3); padding: 16px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500; text-align: left; white-space: nowrap; }
.nav-item .ic { width: 18px; height: 18px; color: var(--text-3); }
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.on { background: var(--pane); color: var(--text); box-shadow: var(--shadow-1), 0 0 0 1px var(--border); }
.nav-item.on .ic { color: var(--accent); }
.nav-item .count { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--text-3); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.budget { padding: 10px 12px 12px; border-radius: 10px; background: var(--pane); border: 1px solid var(--border); }
.budget-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 16px; color: var(--text-3); }
.budget-top .num { color: var(--text); font-weight: 500; }
.meter { height: 4px; border-radius: 4px; background: var(--fill-2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.me { display: flex; align-items: center; gap: 10px; padding: 2px 2px 2px 6px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--fill-2); color: var(--text-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.me-name { font-size: 13px; line-height: 16px; font-weight: 600; }
.me-role { font-size: 12px; line-height: 16px; color: var(--text-3); }
.appearance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 2px; border-radius: 9px; background: var(--fill); }
.appearance button { height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.appearance button .ic { width: 14px; height: 14px; }
.appearance button:hover { color: var(--text); }
.appearance button[aria-pressed="true"] { background: var(--pane); color: var(--text); box-shadow: var(--shadow-1), 0 0 0 1px var(--border); }

.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: var(--text-3); }
.crumbs a { white-space: nowrap; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--border-2); }
.crumbs .cur { color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 32px; width: 300px; max-width: 42%; padding: 0 6px 0 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--fill); color: var(--text-3); font-size: 13px; text-align: left; }
.cmdk:hover { border-color: var(--border-2); color: var(--text-2); }
.cmdk-text { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbd { font-family: var(--font); font-size: 11px; line-height: 16px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--border-2); background: var(--pane); color: var(--text-3); }

/* ---------- Type + page structure ---------- */
.title { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.022em; text-wrap: balance; }
.subtitle { font-size: 14px; line-height: 20px; color: var(--text-2); margin-top: 4px; max-width: 680px; }
.h2 { font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.h3 { font-size: 13px; line-height: 18px; font-weight: 600; }
.label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-3); }
.phead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.phead-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.meta-line .sep { color: var(--border-2); }
.section { margin-top: 36px; }
.section-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.split.wide-side { grid-template-columns: minmax(0, 1fr) 360px; }
.card { background: var(--pane); border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 52px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.card-b { padding: 16px; }
.card-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--pane); color: var(--text); font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
.btn:hover { background: var(--fill); }
.btn:active { background: var(--fill-2); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 600; }
.btn-primary:hover, .btn-primary:active { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-danger { color: var(--neg); }
.btn-lg { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-icon { width: 32px; padding: 0; }
.btn-sm.btn-icon { width: 28px; }
.btn .price { font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text); }
.field-hint { font-size: 12px; line-height: 16px; color: var(--text-3); }
.input { width: 100%; min-width: 0; height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--pane); font-size: 14px; transition: border-color .12s ease, box-shadow .12s ease; }
.input::placeholder { color: var(--text-3); opacity: 1; }
.input:hover { border-color: var(--text-3); }
.input:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.textarea { height: auto; padding: 10px 12px; line-height: 20px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer; }
.select-sm { height: 32px; font-size: 13px; width: 184px; }
.selwrap { position: relative; display: flex; align-items: center; min-width: 0; }
.selwrap > .ic { position: absolute; right: 10px; pointer-events: none; color: var(--text-3); }
.combo { position: relative; display: flex; align-items: center; }
.combo .input { padding-right: 62px; }
.combo-chev { position: absolute; right: 10px; pointer-events: none; color: var(--text-3); }
.combo-clear { position: absolute; right: 30px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); display: grid; place-items: center; }
.combo-clear:hover { background: var(--hover); color: var(--text); }
.combo-clear .ic { width: 14px; height: 14px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.grid-form.more { margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--fill); }
.grid-form.more .input { background: var(--pane); }
.disclosure { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 6px; margin-left: -6px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 500; color: var(--text); text-align: left; }
.disclosure:hover { background: var(--hover); }
.disclosure .ic { transition: transform .15s ease; color: var(--text-3); }
.disclosure[aria-expanded="true"] .ic { transform: rotate(90deg); }
.search-field { position: relative; display: flex; align-items: center; min-width: 200px; }
.search-field > .ic { position: absolute; left: 10px; color: var(--text-3); pointer-events: none; }
.search-field .input { height: 32px; padding-left: 32px; font-size: 13px; }

.seg { display: inline-flex; flex-wrap: wrap; padding: 2px; gap: 2px; border-radius: 9px; background: var(--fill); }
.seg button { height: 28px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--pane); color: var(--text); box-shadow: var(--shadow-1), 0 0 0 1px var(--border); }
.seg .n { color: var(--text-3); font-variant-numeric: tabular-nums; }

.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 8px; }
.source { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px; align-items: center; padding: 12px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--pane); text-align: left; transition: border-color .12s ease, box-shadow .12s ease; }
.source:hover { border-color: var(--text-3); }
.source[aria-selected="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.source-ic { grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 8px; background: var(--fill); color: var(--text-2); display: grid; place-items: center; }
.source[aria-selected="true"] .source-ic { background: var(--accent-tint); color: var(--accent-ink); }
.source-t { font-size: 14px; line-height: 18px; font-weight: 600; }
.source-d { font-size: 12px; line-height: 16px; color: var(--text-3); }

.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px; }
.opt { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--pane); text-align: left; transition: border-color .12s ease, box-shadow .12s ease; }
.opt:hover { border-color: var(--text-3); }
.opt[aria-pressed="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.opt-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 600; }
.opt-d { font-size: 12px; line-height: 16px; color: var(--text-2); }
.opt-p { font-size: 12px; line-height: 16px; color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.swatches { display: flex; gap: 4px; margin-bottom: 4px; }
.swatches i { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }

.switch { position: relative; width: 34px; height: 20px; flex: none; padding: 0; border: 0; border-radius: 999px; background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--border-2); transition: background-color .15s ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--pane); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s ease; }
.switch[aria-checked="true"] { background: var(--accent); box-shadow: none; }
.switch[aria-checked="true"]::after { transform: translateX(14px); background: #FFFFFF; }
.toggle-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.toggle-row:first-child { border-top: 0; padding-top: 0; }
.toggle-row .grow > div:first-child { font-size: 13px; font-weight: 500; }

/* ---------- Chips, tags, status ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--pane); color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
.chip:hover { border-color: var(--text-3); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--pane); }
.chip .n { opacity: .72; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--fill); color: var(--text-2); font-size: 12px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.tag .ic { width: 12px; height: 12px; }
.tag-pos { background: var(--pos-tint); color: var(--pos); }
.tag-neg { background: var(--neg-tint); color: var(--neg); }
.tag-acc { background: var(--accent-tint); color: var(--accent-ink); }
.tag-info { background: var(--info-tint); color: var(--info); }
.tag-line { background: transparent; box-shadow: inset 0 0 0 1px var(--border-2); }
a.tag:hover { filter: brightness(.97); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; flex: none; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.status.pos .dot { background: var(--pos-dot); }
.status.neg .dot { background: var(--neg-dot); }
.status.acc .dot { background: var(--accent); }
.status.info .dot { background: var(--info); }
.status.off .dot { background: var(--border-2); }

.views { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.views::-webkit-scrollbar { display: none; }
.views button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.views button:hover { color: var(--text); }
.views [aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.views .n { color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 500; }

.filterbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 0; }
.fpill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px dashed var(--border-2); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.fpill:hover { color: var(--text); border-color: var(--text-3); }
.fpill .ic { width: 14px; height: 14px; }
.fpill .v { color: var(--text); }
.fpill.set { border-style: solid; background: var(--fill); }

/* ---------- Data tables (div grid; cards under 760px) ---------- */
.dt { border: 1px solid var(--border); border-radius: 12px; background: var(--pane); overflow: hidden; }
.dt-scroll { overflow-x: auto; }
.dt-row { display: grid; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 18px; }
.dt-body > .dt-row:last-child, .dt-body > .dt-row.last-visible { border-bottom: 0; }
.dt-body .dt-row { transition: background-color .1s ease; }
.dt-body .dt-row:hover { background: var(--hover); }
.dt-body .dt-row.sel { background: var(--accent-tint); }
.dt-head { padding-top: 0; padding-bottom: 0; height: 38px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-3); }
.dt-row > * { min-width: 0; }
.dt-row .r { display: flex; justify-content: flex-end; }
.cols-searches { grid-template-columns: minmax(300px, 2.6fr) minmax(170px, 1.1fr) 56px minmax(110px, .8fr) 64px 96px 28px; min-width: 980px; }
.cols-prospects { grid-template-columns: 20px minmax(190px, 1.3fr) minmax(150px, 1fr) minmax(270px, 1.7fr) 76px 156px minmax(90px, .6fr); gap: 14px; align-items: start; }
.cols-prospects.dt-head { align-items: center; }
/* Tags inside table cells wrap instead of spilling into the next column */
.dt-row .cell-stack .tag { max-width: 100%; height: auto; min-height: 22px; padding-block: 3px; white-space: normal; }
.cols-redesigns { grid-template-columns: minmax(220px, 1.8fr) 76px minmax(110px, .8fr) minmax(130px, 1fr) 64px 56px minmax(110px, .8fr) 88px 76px; min-width: 1080px; }
.cols-tools { grid-template-columns: minmax(200px, 1fr) minmax(320px, 2.4fr) 130px; min-width: 720px; }
.cols-llm { grid-template-columns: 116px 96px minmax(200px, 1fr) 76px 76px 60px 56px; min-width: 760px; }
.tfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 2px 0; }
.fineprint { margin-top: 16px; max-width: 820px; }

.srch { display: flex; align-items: flex-start; gap: 12px; }
.srch-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--fill); color: var(--text-2); display: grid; place-items: center; flex: none; }
.srch-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.srch-title { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text); }
.srch-title:hover { text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.srch-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.res { display: flex; flex-direction: column; gap: 5px; }
.res-top { display: flex; align-items: baseline; gap: 8px; }
/* Recent searches: results count, progress and what was done, readable at a glance */
.res { gap: 7px; }
.res-n { font-size: 18px; line-height: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.res .bar { height: 6px; max-width: 200px; }
.res .bar i { background: var(--accent); }
.res .bar.full i { background: var(--pos-dot); }
.res-stats { display: flex; flex-wrap: wrap; gap: 4px; }
.res-stats > span { display: inline-flex; align-items: baseline; gap: 3px; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--border); font-size: 12px; line-height: 22px; color: var(--text-2); white-space: nowrap; }
.res-stats b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.bar { position: relative; display: block; height: 4px; border-radius: 4px; background: var(--fill-2); overflow: hidden; max-width: 160px; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--text-2); }
.bar.indet i { width: 36% !important; background: var(--accent); animation: rp-indet 1.3s ease-in-out infinite; }
.shortl { display: flex; flex-direction: column; gap: 2px; }

.summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 14px 14px 16px; border-radius: 12px; background: var(--fill); }
.summary-text { font-size: 13px; line-height: 18px; color: var(--text-2); flex: 1 1 320px; min-width: 0; }
.summary-text .strong { color: var(--text); }
.howto { display: flex; flex-direction: column; gap: 14px; }
.howto li { display: flex; gap: 12px; }
.howto-n { width: 22px; height: 22px; border-radius: 50%; background: var(--fill); color: var(--text-2); font-size: 12px; font-weight: 600; display: grid; place-items: center; flex: none; font-variant-numeric: tabular-nums; }
.howto-t { font-size: 13px; line-height: 18px; font-weight: 600; }
.howto-d { font-size: 13px; line-height: 18px; color: var(--text-2); margin-top: 2px; }
.srclist li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; }
.srclist li:first-child { border-top: 0; }
.src-name { font-weight: 600; }
.src-meta { flex: 1 1 auto; color: var(--text-3); font-size: 12px; text-align: right; }

/* ---------- Metrics, pipeline ---------- */
.kpis, .funnel, .stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.kpi { background: var(--pane); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .k { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-3); }
.kpi .v { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; line-height: 16px; color: var(--text-3); }
.fstep { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; border: 0; background: var(--pane); text-align: left; min-width: 0; transition: background-color .12s ease; }
.fstep:hover, .fstep[aria-pressed="true"] { background: var(--fill); }
.fstep[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--text); }
.fstep .k { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-3); }
.fstep .k .ic { width: 14px; height: 14px; }
.fstep .v { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.fstep .p { font-size: 12px; line-height: 16px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.fstep .bar { max-width: none; margin-top: 2px; }
.fstep .bar i { background: var(--accent); }
.rail { display: inline-flex; align-items: center; gap: 3px; }
.rail i { width: 16px; height: 4px; border-radius: 2px; background: var(--fill-2); }
.rail i.done { background: var(--text-2); }
.rail i.now { background: var(--accent); }
.step { background: var(--pane); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.step-k { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 600; }
.step-s { font-size: 12px; line-height: 16px; color: var(--text-3); padding-left: 28px; }
.step-mark { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border-2); display: grid; place-items: center; flex: none; color: var(--text-3); font-size: 11px; font-weight: 600; }
.step-mark .ic { width: 12px; height: 12px; stroke-width: 2.2; }
.step.done .step-mark { background: var(--text); border-color: var(--text); color: var(--pane); }
.step.now { background: var(--accent-tint); }
.step.now .step-mark { border-color: var(--accent-ink); color: var(--accent-ink); }
.step.now .step-s { color: var(--text-2); }
.insight { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px 10px 14px; border-radius: 10px; background: var(--accent-tint); font-size: 13px; line-height: 18px; color: var(--text); }
.insight .ic { color: var(--accent-ink); }
.playbook .stepper { border: 0; border-radius: 0; border-top: 1px solid var(--border); }
.playbook .step { padding: 14px 16px; }
.playbook .step-s { padding-left: 0; color: var(--text-2); }
.playbook-f { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-3); }

/* ---------- Search result rows ---------- */
.plist { border: 1px solid var(--border); border-radius: 12px; background: var(--pane); overflow: hidden; }
.plist-head { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.prow { display: grid; grid-template-columns: 18px 132px minmax(0, 1fr) 340px; gap: 16px; padding: 16px; border-bottom: 1px solid var(--border); align-items: start; transition: background-color .1s ease; }
.prow:hover { background: var(--hover); }
.prow.last-visible { border-bottom: 0; }
.prow.sel { background: var(--accent-tint); }
.prow .chk { padding-top: 2px; }
.pmain { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pname-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pname { padding: 0; border: 0; background: none; font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--text); text-align: left; }
.pname:hover { text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.pmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; font-size: 13px; line-height: 18px; color: var(--text-2); }
.pmeta .sep { color: var(--border-2); }
.star { display: inline-flex; align-items: center; gap: 3px; }
.star .ic { width: 12px; height: 12px; color: var(--accent); }
.ptags { display: flex; flex-wrap: wrap; gap: 4px; }
.pdesc { font-size: 13px; line-height: 18px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 640px; }
.pside { display: flex; flex-direction: column; gap: 10px; }
.pact { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pact .pick { flex: 1 1 150px; }
.pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 2px; border-radius: 8px; background: var(--fill); }
.pick button { height: 26px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.pick button:hover { color: var(--text); }
.pick button[aria-pressed="true"] { background: var(--pane); color: var(--text); box-shadow: var(--shadow-1), 0 0 0 1px var(--border); }
.pick button.likely[aria-pressed="true"] { background: var(--pos-tint); color: var(--pos); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pos) 35%, transparent); }
.pick button.no[aria-pressed="true"] { background: var(--neg-tint); color: var(--neg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neg) 35%, transparent); }
.scores { display: flex; flex-wrap: wrap; gap: 4px; }
.sc { flex: 1 0 auto; display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 8px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--border); }
.sc .k { font-size: 11px; line-height: 14px; font-weight: 500; color: var(--text-3); }
.sc .v { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.sc.bad .v { color: var(--neg); }
.sc.bad .v::before { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.sc.na .v { color: var(--text-3); font-weight: 500; }
/* Compact score tiles for table rows: label on top, value below, weak spots in red with ▼ */
.mini-scores { display: flex; flex-wrap: wrap; gap: 4px; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--text-3); }
.mini-scores > span { flex: 1 0 auto; display: flex; flex-direction: column; gap: 1px; padding: 4px 7px; border-radius: 7px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--border); }
.mini-scores .good, .sc.good { background: var(--pos-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pos) 30%, transparent); }
.mini-scores .good b, .sc.good .v { color: var(--pos); }
.mini-scores .good b::before, .sc.good .v::before { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; }
.sc.bad { background: var(--neg-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neg) 30%, transparent); }
.mini-scores b { display: flex; align-items: center; gap: 3px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mini-scores .bad { background: var(--neg-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neg) 30%, transparent); }
.mini-scores .bad b { color: var(--neg); }
.mini-scores .bad b::before { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.plist-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.inline-btn { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px dashed var(--border-2); background: transparent; color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.inline-btn:hover { color: var(--text); border-color: var(--text-3); }
.inline-btn .ic { width: 12px; height: 12px; }

/* Site screenshot placeholders */
.thumb { position: relative; width: 132px; max-width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--shot-paper); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); flex: none; filter: var(--thumb-dim); }
.thumb.lg { width: 100%; border-radius: 10px; }
.thumb.sm { width: 64px; border-radius: 6px; }
.thumb.phone { width: 132px; aspect-ratio: 9 / 19; margin: 0 auto; }
.thumb .t-bar { position: absolute; left: 0; right: 0; top: 0; height: 10%; background: var(--shot-bar); }
.thumb .t-nav { position: absolute; left: 7%; right: 7%; top: 16%; height: 5%; display: flex; justify-content: space-between; }
.thumb .t-nav i { display: block; width: 20%; height: 100%; border-radius: 2px; background: var(--shot-line); }
.thumb .t-nav i:last-child { width: 34%; background: var(--shot-line-2); }
.thumb .t-hero { position: absolute; left: 7%; right: 7%; top: 28%; height: 36%; border-radius: 3px; background: var(--th, var(--shot-line-2)); }
.thumb .t-h1 { position: absolute; left: 12%; top: 36%; width: 40%; height: 7%; border-radius: 2px; background: rgba(255, 255, 255, .85); }
.thumb .t-h2 { position: absolute; left: 12%; top: 47%; width: 28%; height: 5%; border-radius: 2px; background: rgba(255, 255, 255, .6); }
.thumb .t-cta { position: absolute; left: 12%; top: 55%; width: 16%; height: 6%; border-radius: 2px; background: var(--shot-paper); }
.thumb .t-row { position: absolute; left: 7%; right: 7%; top: 70%; height: 22%; display: flex; gap: 4%; }
.thumb .t-row i { flex: 1; border-radius: 2px; background: var(--shot-block); }
.thumb.night { background: var(--shot-night); }
.thumb.night .t-bar { background: var(--shot-night-bar); }
.thumb.night .t-nav i { background: var(--shot-night-line); }
.thumb.night .t-row i { background: var(--shot-night-block); }
.thumb.none { background: var(--fill); box-shadow: inset 0 0 0 1px var(--border); filter: none; }
.thumb.none > * { display: none; }
.thumb.none::after { content: "No preview"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 500; color: var(--text-3); }
.th-blue { --th: #5B7DB1; }
.th-red { --th: #B5524A; }
.th-green { --th: #5F8F6A; }
.th-navy { --th: #2E3B55; }
.th-sky { --th: #7FA7C9; }
.th-sand { --th: #B9A27C; }
.th-slate { --th: #646B7A; }
.th-teal { --th: #3F8C8C; }
.th-street { --th: #3B3B40; }

.cprev { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--cp-bg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.cprev .cp-top { position: absolute; left: 6%; right: 6%; top: 6%; height: 4%; display: flex; align-items: center; justify-content: space-between; }
.cprev .cp-logo { width: 14%; height: 100%; border-radius: 2px; background: var(--cp-ink); }
.cprev .cp-links { display: flex; gap: 6%; width: 40%; height: 60%; justify-content: flex-end; }
.cprev .cp-links i { display: block; width: 16%; height: 100%; border-radius: 2px; background: var(--cp-dim); }
.cprev .cp-h1 { position: absolute; left: 6%; top: 24%; width: 52%; height: 9%; border-radius: 3px; background: var(--cp-ink); }
.cprev .cp-h1b { position: absolute; left: 6%; top: 35%; width: 38%; height: 9%; border-radius: 3px; background: var(--cp-ink); }
.cprev .cp-sub { position: absolute; left: 6%; top: 49%; width: 34%; height: 4%; border-radius: 2px; background: var(--cp-mid); }
.cprev .cp-btn { position: absolute; left: 6%; top: 58%; width: 15%; height: 7%; border-radius: 3px; background: var(--cp-lime); }
.cprev .cp-btn2 { position: absolute; left: 23%; top: 58%; width: 13%; height: 7%; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--cp-mid); }
.cprev .cp-img { position: absolute; right: 6%; top: 20%; width: 32%; height: 50%; border-radius: 4px; background: var(--cp-img); }
.cprev .cp-tiles { position: absolute; left: 6%; right: 6%; top: 76%; height: 18%; display: flex; gap: 2%; }
.cprev .cp-tiles i { flex: 1; border-radius: 3px; background: var(--cp-card); }
.cprev .cp-tiles i:first-child { background: var(--cp-lime); opacity: .9; }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.compare figure { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.compare figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 16px; color: var(--text-3); font-weight: 500; }

/* ---------- Detail blocks ---------- */
.kv { display: grid; grid-template-columns: minmax(96px, auto) minmax(0, 1fr); gap: 10px 16px; font-size: 13px; line-height: 18px; }
.kv dt { color: var(--text-3); }
.kv dd { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--fill); color: var(--text-2); font-size: 13px; line-height: 18px; }
.note > .ic { flex: none; margin-top: 1px; color: var(--text-3); }
.note.acc { background: var(--accent-tint); color: var(--text); }
.note.acc > .ic { color: var(--accent-ink); }
.note strong { color: var(--text); font-weight: 600; }
.code { margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 20px; padding: 12px 14px; border-radius: 10px; background: var(--fill); border: 1px solid var(--border); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: auto; }
.copyrow { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 4px 4px 12px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--fill); font-family: var(--mono); font-size: 12.5px; min-width: 0; }
.copyrow > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copyrow.multi > span { white-space: pre-wrap; overflow-wrap: anywhere; padding: 6px 0; }
.list-plain li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 13px; line-height: 18px; color: var(--text-2); }
.list-plain li .ic { margin-top: 1px; color: var(--text-3); }
.score-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13px; }
.score-list li:first-child { border-top: 0; }
.score-list .k { color: var(--text-2); font-weight: 500; }
.score-list .v { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 76px; padding: 3px 8px; border-radius: 7px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--border); font-size: 15px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-list .bar { max-width: none; height: 6px; }
.score-list .bad .v { color: var(--neg); background: var(--neg-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neg) 30%, transparent); }
.score-list .bad .v::before { content: ""; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.score-list .bad .bar i { background: var(--neg-dot); }
.score-list .good .v { color: var(--pos); background: var(--pos-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pos) 30%, transparent); }
.score-list .good .v::before { content: ""; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 5px solid currentColor; }
.score-list .good .bar i { background: var(--pos-dot); }
.good-text { color: var(--pos); }
.audit li { display: grid; grid-template-columns: minmax(0, 1fr) 80px 80px 64px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; line-height: 18px; }
.audit li:first-child { border-top: 0; padding-top: 0; font-size: 12px; color: var(--text-3); font-weight: 500; }
.audit .num { text-align: right; }
.delta { font-size: 12px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--pos); }
.delta.down { color: var(--neg); }
.delta.flat { color: var(--text-3); }
.vmeta { font-family: var(--mono); font-size: 11.5px; line-height: 16px; color: var(--text-3); overflow-wrap: anywhere; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.photo { aspect-ratio: 1; border-radius: 8px; background: var(--fill-2); filter: var(--thumb-dim); }
.photo.p1 { background: #2B2B31; }
.photo.p2 { background: #C6F432; }
.photo.p3 { background: #3F3F47; }
.photo.p4 { background: #18181C; }
.photo.p5 { background: #5A5A63; }
.photo.more { display: grid; place-items: center; background: var(--fill); color: var(--text-2); font-size: 13px; font-weight: 600; filter: none; }
.gaps li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; line-height: 18px; color: var(--text); }
.gaps li:first-child { border-top: 0; padding-top: 0; }
.gaps li .ic { color: var(--accent-ink); margin-top: 1px; }
.running-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; flex-wrap: wrap; }
.running-card .bar { flex: 1 1 120px; max-width: none; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 8px; }
.check-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-2); font-size: 13px; font-weight: 500; cursor: pointer; }
.check-opt:hover { border-color: var(--text-3); }
.ver { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--border-2); font-size: 12px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
a.ver:hover { background: var(--fill); }
.cost-cell { display: flex; flex-direction: column; gap: 2px; }
.site-cell { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.favicon { width: 30px; height: 30px; border-radius: 8px; background: var(--fill); color: var(--text-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; text-transform: uppercase; }
.cell-stack { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.site-domain { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text); }
a.site-domain:hover { text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.site-title { font-size: 12.5px; line-height: 16px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out { position: relative; display: inline-flex; align-items: center; }
.out-dot { position: absolute; left: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--border-2); pointer-events: none; }
.out-dot.contacted, .out-dot.replied { background: var(--info); }
.out-dot.meeting { background: var(--accent); }
.out-dot.won { background: var(--pos-dot); }
.out-dot.lost { background: var(--neg-dot); }
.out .ic { position: absolute; right: 8px; width: 14px; height: 14px; color: var(--text-3); pointer-events: none; }
.out-sel { appearance: none; -webkit-appearance: none; height: 28px; padding: 0 26px 0 23px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--pane); font-size: 12.5px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.out-sel:hover { border-color: var(--text-3); color: var(--text); }

/* ---------- Leads inbox ---------- */
.inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--pane); min-height: 520px; }
.inbox-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.inbox-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.lead { display: flex; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; }
.lead:hover { background: var(--hover); }
.lead[aria-current="true"] { background: var(--fill); }
.lead-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lead-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lead-name { font-size: 14px; line-height: 18px; font-weight: 600; }
.lead-when { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.lead-sub { font-size: 13px; line-height: 18px; color: var(--text-2); }
.lead-msg { font-size: 13px; line-height: 18px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
.unread.off { background: transparent; box-shadow: inset 0 0 0 1px var(--border-2); }
.inbox-detail { display: flex; flex-direction: column; min-width: 0; }
.inbox-detail-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.inbox-detail-b { padding: 20px 24px; display: flex; flex-direction: column; gap: 20px; }
.quote { padding: 14px 16px; border-radius: 12px; background: var(--fill); font-size: 15px; line-height: 22px; color: var(--text); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 48px 24px; text-align: center; color: var(--text-2); }
.empty-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--fill); color: var(--text-3); display: grid; place-items: center; margin-bottom: 4px; }
.empty-ic .ic { width: 20px; height: 20px; }
.empty-t { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--text); }
.empty-d { font-size: 13px; line-height: 18px; max-width: 360px; }

/* ---------- Menus, popovers ---------- */
.rel { position: relative; }
.menu { position: absolute; right: 0; top: 38px; z-index: 30; min-width: 220px; padding: 4px; border-radius: 10px; background: var(--pane); border: 1px solid var(--border); box-shadow: var(--shadow-pop); animation: rp-fade .12s ease; }
.menu.left { left: 0; right: auto; }
.menu-item { display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; font-size: 13px; color: var(--text); text-align: left; white-space: nowrap; }
.menu-item .ic { color: var(--text-3); }
.menu-item:hover, .menu-item:focus-visible { background: var(--fill); outline: none; }
.menu-item.danger, .menu-item.danger .ic { color: var(--neg); }
.menu-item .mn { margin-left: auto; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.menu-item .check { margin-left: 8px; color: var(--text); visibility: hidden; }
.menu-item[aria-checked="true"] .check { visibility: visible; }
.menu-sep { height: 1px; background: var(--border); margin: 4px 6px; }
.pop { position: absolute; z-index: 30; right: 0; top: 38px; width: min(400px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; padding: 16px; border-radius: 12px; background: var(--pane); border: 1px solid var(--border); box-shadow: var(--shadow-pop); font-size: 13px; line-height: 18px; color: var(--text-2); animation: rp-fade .14s ease; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.pop strong { color: var(--text); font-weight: 600; }
.pop h3 { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.pop ol { display: flex; flex-direction: column; gap: 8px; }
.pop ol li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; }
.pop ol li > span:first-child { width: 20px; height: 20px; border-radius: 50%; background: var(--fill); color: var(--text-2); font-size: 11px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }

/* ---------- Dialogs (native <dialog>) ---------- */
dialog { color: var(--text); }
dialog::backdrop { background: rgba(10, 10, 20, .45); }
.dialog { width: min(720px, calc(100vw - 32px)); max-width: none; max-height: calc(100% - 48px); padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--pane); box-shadow: var(--shadow-pop); }
.dialog[open] { display: flex; flex-direction: column; animation: rp-pop .18s ease; }
.dialog.sm { width: min(440px, calc(100vw - 32px)); }
.dialog-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.dialog-b { flex: 1 1 auto; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 22px; }
.dialog-f { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.drawer { margin: 8px 8px 8px auto; width: min(460px, calc(100vw - 16px)); max-width: none; height: calc(100% - 16px); max-height: none; padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--pane); box-shadow: var(--shadow-pop); }
.drawer[open] { display: flex; flex-direction: column; animation: rp-slide .2s cubic-bezier(.2, .8, .2, 1); }
.drawer::backdrop { background: rgba(10, 10, 20, .32); }
.drawer-h { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); }
.drawer-b { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 22px; }
.drawer-f { display: flex; align-items: center; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); flex-wrap: wrap; }
.palette { margin: 12vh auto auto; width: min(620px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--pane); box-shadow: var(--shadow-pop); overflow: hidden; }
.palette[open] { animation: rp-fade .14s ease; }
.palette::backdrop { background: rgba(10, 10, 20, .32); }
.pal-in { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--border); color: var(--text-3); }
.pal-in input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 16px; color: var(--text); }
.pal-in input::placeholder { color: var(--text-3); }
.pal-in input:focus-visible { outline: none; }
.pal-list { max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; }
.pal-group + .pal-group { margin-top: 4px; }
.pal-gl { padding: 8px 10px 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-3); }
.pal-it { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 8px; font-size: 14px; color: var(--text); }
.pal-it .ic { color: var(--text-3); }
.pal-it:hover, .pal-it.act, .pal-it:focus-visible { background: var(--fill); outline: none; }
.pal-empty { padding: 28px 12px; text-align: center; color: var(--text-3); font-size: 13px; }

.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: var(--toast-bg); color: var(--toast-text); font-size: 13px; line-height: 18px; font-weight: 500; box-shadow: var(--shadow-pop); animation: rp-rise .2s ease; pointer-events: auto; }
.toast .ic { color: var(--pos-dot); }
.toast-btn { margin-left: 4px; height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: color-mix(in srgb, var(--toast-text) 16%, transparent); color: var(--toast-text); font-size: 12.5px; font-weight: 600; }
.toast-btn:hover { background: color-mix(in srgb, var(--toast-text) 26%, transparent); }
.bulk { position: sticky; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 20; display: flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100% - 16px); margin: 16px auto 0; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--toast-bg); color: var(--toast-text); box-shadow: var(--shadow-pop); flex-wrap: wrap; animation: rp-fade .18s ease; }
.bulk-n { font-size: 13px; font-weight: 600; padding-right: 8px; margin-right: 2px; border-right: 1px solid color-mix(in srgb, var(--toast-text) 22%, transparent); }
.bulk .btn { background: transparent; border-color: transparent; color: var(--toast-text); }
.bulk .btn:hover { background: color-mix(in srgb, var(--toast-text) 14%, transparent); }
.bulk .btn-primary { background: var(--accent); color: var(--on-accent); }
.bulk .btn-primary:hover { background: var(--accent-hover); }

/* ---------- Motion ---------- */
@keyframes rp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rp-pop { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rp-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rp-slide { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes rp-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rp-indet { 0% { transform: translateX(-110%); } 100% { transform: translateX(300%); } }
@keyframes rp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .toolbar { background: var(--pane); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Responsive ---------- */
/* Prospects on laptop widths: two lines per row instead of seven squeezed columns */
@media (max-width: 1360px) and (min-width: 1001px) {
  .cols-prospects { grid-template-columns: 20px minmax(0, 1.5fr) minmax(0, 1fr) 170px; grid-template-areas: "c s w o" "c r k f"; row-gap: 12px; }
  .cols-prospects.dt-head { display: none; }
  .cols-prospects > :nth-child(1) { grid-area: c; padding-top: 2px; }
  .cols-prospects > :nth-child(2) { grid-area: s; }
  .cols-prospects > :nth-child(3) { grid-area: w; }
  .cols-prospects > :nth-child(4) { grid-area: r; }
  .cols-prospects > :nth-child(5) { grid-area: k; }
  .cols-prospects > :nth-child(6) { grid-area: o; }
  .cols-prospects > :nth-child(7) { grid-area: f; }
  .cols-prospects > [data-label]:not(:nth-child(3)):not(:nth-child(6))::before { content: attr(data-label); display: block; flex-basis: 100%; margin-bottom: 4px; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--text-3); }
}
@media (max-width: 1180px) {
  .split, .split.wide-side { grid-template-columns: minmax(0, 1fr); }
  .prow { grid-template-columns: 18px minmax(0, 1fr); }
  .prow .thumb { display: none; }
  .prow .pside { grid-column: 2; }
}
@media (max-width: 1000px) {
  .kpis, .funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); background: transparent; gap: 0; }
  .kpis .kpi, .funnel .fstep { box-shadow: 0 0 0 .5px var(--border); }
  .stepper { grid-template-columns: minmax(0, 1fr); }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox-list { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 860px) {
  .app { display: block; height: auto; min-height: 100%; }
  .side { position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; width: min(300px, 86vw); padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-104%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-pop); visibility: hidden; }
  .app.side-hidden .side { display: flex; }
  .app.nav-open .side { transform: none; visibility: visible; }
  .app.nav-open .side-scrim { display: block; position: fixed; inset: 0; z-index: 69; background: var(--scrim); }
  .pane, .app.side-hidden .pane { margin: 0; border: 0; border-radius: 0; overflow: visible; min-height: 100%; }
  .scroll { overflow: visible; }
  .toolbar { top: env(safe-area-inset-top, 0px); padding-left: max(8px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--pane); }
  .btn.menu-btn { display: inline-flex; }
  .side-toggle, .hide-sm { display: none !important; }
  .cmdk { width: auto; max-width: none; flex: 1 1 auto; }
  .content, .content.wide { padding-block: 20px 40px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .title { font-size: 22px; line-height: 28px; }
  .kpis, .funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > :last-child:nth-child(odd), .funnel > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .drawer { margin: auto 0 0; width: 100%; height: auto; max-height: 88%; border-radius: 16px 16px 0 0; border-bottom: 0; }
  .drawer[open] { animation: rp-up .22s cubic-bezier(.2, .8, .2, 1); }
  .palette { margin-top: calc(8vh + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 1000px) {
  .dt-scroll { overflow: visible; }
  .dt-head { display: none; }
  .dt-row, .cols-searches, .cols-prospects, .cols-redesigns, .cols-tools, .cols-llm { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; gap: 12px 16px; align-items: start; padding: 14px 16px; }
  .dt-row > .span { grid-column: 1 / -1; }
  .dt-row > .m-hide { display: none; }
  .dt-row > [data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: 11px; line-height: 14px; font-weight: 500; color: var(--text-3); }
  .dt-row .r { justify-content: flex-start; text-align: left; }
  .dt-row .r.num { display: block; }
  .audit li { grid-template-columns: minmax(0, 1fr) 56px 56px 48px; gap: 8px; }
  .inbox-detail-h, .inbox-detail-b { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 560px) {
  .scores { gap: 3px; }
  .sc { padding: 6px; }
  .sc .v { font-size: 13px; }
  .phead-actions { width: 100%; }
  .summary .btn-lg { width: 100%; }
  .filterbar .selwrap, .filterbar .search-field { flex: 1 1 100%; }
  .filterbar .select-sm { width: 100%; }
  .auth-panel { padding: 22px; }
}

/* ==========================================================================
   App additions: pieces the live panel needs that the prototype did not draw
   ========================================================================== */
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--fill); color: var(--text-2); font-size: 13px; line-height: 18px; }
.notice > .ic { margin-top: 1px; flex: none; }
.notice.neg { background: var(--neg-tint); color: var(--neg); }
.notice.pos { background: var(--pos-tint); color: var(--pos); }
.notice.acc { background: var(--accent-tint); color: var(--accent-ink); }
.notice.info { background: var(--info-tint); color: var(--info); }
.notice a { text-decoration: underline; text-underline-offset: 3px; }
.content.flash-wrap { padding-bottom: 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 2px 0; }
.pager .btn.on { background: var(--fill-2); }
.pager [aria-disabled="true"] { opacity: .45; pointer-events: none; }
/* Laravel's default pager in the panel (resources/views/vendor/pagination/panel.blade.php, set in AppServiceProvider):
   its own class names, drawn like the panel's pager and small ghost buttons */
.pg { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 2px 0; }
.pg-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pg-links .ghost { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 10px; border-radius: 7px; color: var(--text-2); font-size: 12.5px; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color .12s ease, color .12s ease; }
.pg-links a.ghost:hover { background: var(--hover); color: var(--text); }
.pg-links .ghost.on { background: var(--fill-2); color: var(--text); }
.pg-links [aria-disabled="true"] { opacity: .45; pointer-events: none; }
.pg-gap { padding: 0 4px; color: var(--text-3); font-size: 12px; }
.pg-info { margin: 0; font-size: 12px; line-height: 16px; color: var(--text-3); }
.side form { margin: 0; }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rp-spin .7s linear infinite; vertical-align: -2px; flex: none; }
.spin.xs { width: 11px; height: 11px; border-width: 1.5px; }
/* plain tables (billing, score breakdowns, call logs): the .dt look on a real <table> */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 18px; }
.tbl th { height: 38px; padding: 0 12px; text-align: left; font-size: 12px; font-weight: 500; color: var(--text-3); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--hover); }
.tbl .r, .tbl td.num, .tbl th.num { text-align: right; }
.tbl td small, .tbl td .sub { display: block; font-size: 12px; line-height: 16px; color: var(--text-3); }
.dt > .tbl th:first-child, .dt > .tbl td:first-child { padding-left: 16px; }
.dt > .tbl th:last-child, .dt > .tbl td:last-child { padding-right: 16px; }
.score-table tr.on td { color: var(--neg); }
.score-table tr.ok td { color: var(--pos); }
.score-table tr.head td { font-weight: 600; color: var(--text); background: var(--fill); }
.score-table td.hit { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.score-big { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; }
.score-btn { padding: 0; border: 0; background: none; text-align: left; border-radius: 6px; }
.score-btn:hover .strong { text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.thumb.shot-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: var(--thumb-dim); }
.nowrap { white-space: nowrap; }
/* sign-in pages */
.hide { display: none !important; }
.auth-error > .ic { flex: none; margin-top: 1px; }
.or-line { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.code-input { height: 48px; font-size: 22px; letter-spacing: 6px; text-align: center; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.link-btn:disabled { text-decoration: none; opacity: .6; }
#clerkBox:empty { display: none; }
/* searchable pick-lists (public/panel/combo.js builds the input, the hidden value, × and the list) */
.field.combo { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.field.combo .combo-in { width: 100%; min-width: 0; height: 36px; padding: 0 34px 0 12px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--pane); font-size: 14px; transition: border-color .12s ease, box-shadow .12s ease; }
.field.combo .combo-in::placeholder { color: var(--text-3); opacity: 1; }
.field.combo .combo-in:hover { border-color: var(--text-3); }
.field.combo .combo-in:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.field.combo .combo-x { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); font-size: 18px; line-height: 1; display: none; place-items: center; }
.field.combo.has .combo-x { display: grid; }
.field.combo .combo-x:hover { background: var(--hover); color: var(--text); }
.field.combo.bad .combo-in { border-color: var(--neg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--neg) 18%, transparent); }
.combo-list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 40; padding: 4px; max-height: 280px; overflow: auto; background: var(--pane); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-pop); }
.combo-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; line-height: 18px; color: var(--text); }
.combo-list li:hover, .combo-list li.hi { background: var(--fill); }
.combo-list li small { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.combo-list li.empty { display: block; padding: 7px 10px; color: var(--text-3); cursor: default; text-align: left; }
/* min–max ranges: two thumbs on one track */
.field.dual { gap: 8px; }
.field.dual .dual-wrap { position: relative; height: 24px; }
.field.dual .track { position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 4px; background: var(--fill-2); }
.field.dual .fill { position: absolute; top: 10px; height: 4px; border-radius: 4px; background: var(--accent); }
.field.dual input[type=range] { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 24px; margin: 0; padding: 0; background: none; appearance: none; -webkit-appearance: none; pointer-events: none; }
.field.dual input[type=range]::-webkit-slider-runnable-track { height: 24px; background: transparent; }
.field.dual input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--pane); border: 2px solid var(--accent); box-shadow: var(--shadow-1); cursor: grab; }
.field.dual input[type=range]::-moz-range-track { height: 24px; background: transparent; }
.field.dual input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--pane); border: 2px solid var(--accent); cursor: grab; }
.field.dual input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field.dual output { color: var(--text); }
/* Find clients */
.opt[aria-checked="true"] { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.opt:disabled { opacity: .5; }
.quota { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--fill); }
.quota .meter { margin-top: 0; }
.quota.low .meter i { background: var(--accent); }
.quota.out .meter i { background: var(--neg-dot); }
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; }
.src-form.sending { opacity: .6; pointer-events: none; }
.summary-text + .summary-text { flex-basis: auto; }
.dt-row.clickable { cursor: pointer; }
.dt-row.dim .srch-title, .dt-row.dim .res-n { color: var(--text-3); }
.shortl a:hover .strong { text-decoration: underline; text-underline-offset: 3px; }
.srch-main form { margin: 0; }
/* search results (admin/prospects/show): the live rows keep the class names their script uses */
.views a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.views a:hover { color: var(--text); }
.views a[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.seg a { height: 28px; min-width: 44px; padding: 0 12px; border-radius: 7px; color: var(--text-2); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.seg a:hover { color: var(--text); }
.seg a[aria-pressed="true"], .seg button.on { background: var(--pane); color: var(--text); box-shadow: var(--shadow-1), 0 0 0 1px var(--border); }
.plist { position: relative; }
.plist-head label { cursor: pointer; }
.runs:empty { display: none; }
.run { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--accent-tint); font-size: 13px; }
.run:not(.running) { background: var(--fill); }
.run:not(.running) .spin { display: none; }
.listbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--fill); }
.prow { position: relative; grid-template-columns: 18px 132px minmax(0, 1fr) 340px; }
.prow .chk { padding-top: 2px; }
.prow.selected { background: var(--accent-tint); }
.prow.picked-no { opacity: .62; }
.prow.picked-no:hover { opacity: 1; }
.prow:last-of-type { border-bottom: 0; }
.p-shot .pshot { position: relative; display: block; width: 132px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--fill); box-shadow: inset 0 0 0 1px var(--border); }
.p-shot .pshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: var(--thumb-dim); }
.p-shot .pshot img.m { left: auto; right: 4px; top: auto; bottom: 4px; width: 26%; height: auto; aspect-ratio: 9 / 16; border-radius: 4px; box-shadow: 0 0 0 1.5px var(--pane), var(--shadow-pop); }
.p-shot .pshot.none, .p-shot .pshot.wait { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; color: var(--text-3); font-size: 12px; text-align: center; }
.p-shot button.pshot.none:hover { background: var(--fill-2); color: var(--text); }
.p-shot .pshot .ic { width: 18px; height: 18px; margin-bottom: 2px; }
.p-shot .pshot small { font-size: 11.5px; line-height: 14px; }
.pname-row b.pname { cursor: default; }
.pname-row b.pname:hover { text-decoration: none; }
.p-contact .ic { width: 14px; height: 14px; color: var(--text-3); }
.pside .scores { gap: 4px; }
.sc.m { border: 0; font: inherit; text-align: left; cursor: default; }
button.sc.m { cursor: pointer; }
button.sc.m:hover { box-shadow: inset 0 0 0 1px var(--border-2); }
.sc.run .v { font-size: 12px; color: var(--text-3); font-weight: 500; }
button.sc.run:hover .v { color: var(--text); }
.pick button.on { background: var(--pane); color: var(--text); box-shadow: var(--shadow-1), 0 0 0 1px var(--border); }
.pick button.likely.on { background: var(--pos-tint); color: var(--pos); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pos) 35%, transparent); }
.pick button.no.on { background: var(--neg-tint); color: var(--neg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neg) 35%, transparent); }
.pick { flex: 1 1 auto; }
.p-acts { justify-content: space-between; }
.p-design { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.btn-split { display: inline-flex; }
.btn-split > .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-split > .btn + .btn { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.prow .seg.util { display: inline-flex; align-items: center; gap: 2px; padding: 0; background: none; }
.prow .seg.util .danger { color: var(--text-3); }
.prow .seg.util .danger:hover { color: var(--neg); background: var(--neg-tint); }
.details-btn .ic { width: 14px; height: 14px; transition: transform .15s ease; }
.prow.open .details-btn .ic { transform: rotate(180deg); }
.p-busy { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 16px; background: color-mix(in srgb, var(--pane) 84%, transparent); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); font-size: 13px; }
.p-busy .step { font-weight: 600; }
.p-busy .bar { width: 160px; max-width: 40%; height: 6px; display: block; border-radius: 6px; background: var(--fill-2); overflow: hidden; }
.p-busy .bar s { display: block; height: 100%; background: var(--accent); border-radius: 6px; text-decoration: none; transition: width .4s ease; }
.p-busy small { color: var(--text-3); font-variant-numeric: tabular-nums; }
.p-details { display: none; grid-column: 1 / -1; flex-direction: column; gap: 16px; margin-top: 4px; padding: 16px; border-radius: 10px; background: var(--fill); }
.prow.open .p-details { display: flex; }
.d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.d-box { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 10px; background: var(--pane); border: 1px solid var(--border); }
.d-box h4 { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 0; }
.iss { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; list-style: disc; font-size: 13px; color: var(--text-2); }
.perf-strip .sc { flex: 0 1 auto; background: var(--pane); }
.p-details .checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.ck { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 10px; background: var(--pane); border: 1px solid var(--border); }
.ck h4 { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ck ul { display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 18px; }
.ck li { position: relative; padding-left: 18px; }
.ck li.bad::before, .ck li.ok::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.ck li.bad::before { content: "✕"; color: var(--neg); }
.ck li.ok::before { content: "✓"; color: var(--pos); }
.ck li.none { padding-left: 0; }
.ck-ok summary { cursor: pointer; font-size: 12.5px; color: var(--text-3); }
.ck-ok summary:hover { color: var(--text); }
.ck-ok ul { margin-top: 6px; }
.d-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.d-acts form { margin: 0; }
.bulk.hide { display: none !important; }
.bulk .notify input { height: 28px; width: 200px; padding: 0 10px; border-radius: 7px; border: 1px solid color-mix(in srgb, var(--toast-text) 22%, transparent); background: transparent; color: var(--toast-text); font-size: 12.5px; }
.bulk .notify input::placeholder { color: color-mix(in srgb, var(--toast-text) 55%, transparent); }
.bulk .price { opacity: .7; }
.insight.widen form { margin: 0; }
#rankline:empty { display: none; }
.phead-actions form, .menu form { margin: 0; }
/* overlays driven by a .hide class (screenshot lightbox, cost confirmation) */
.lb { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px 16px; background: var(--scrim); animation: rp-fade .14s ease; }
.lb-box { display: flex; flex-direction: column; width: min(560px, 100%); max-height: calc(100% - 24px); border: 1px solid var(--border); border-radius: 16px; background: var(--pane); box-shadow: var(--shadow-pop); overflow: hidden; animation: rp-pop .18s ease; }
.lb-box.shot-box { width: min(1100px, 100%); }
.lb-box .dialog-h { align-items: center; }
.lb-img { flex: 1 1 auto; overflow: auto; background: var(--fill); padding: 16px; text-align: center; }
.lb-img img { max-width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow-pop); }
.lb-img img.phone { max-width: 390px; }
.confirm-figs { display: flex; gap: 24px; flex-wrap: wrap; }
.confirm-cost b, .confirm-time b { display: block; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.confirm-parts { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.confirm-parts[hidden] { display: none; }
.confirm-parts li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--border); font-size: 13px; }
.confirm-parts li:first-child { border-top: 0; }
.confirm-parts li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.confirm-parts li small { color: var(--text-3); font-variant-numeric: tabular-nums; }
.opt.on { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
@media (max-width: 1180px) {
  .prow { grid-template-columns: 18px 112px minmax(0, 1fr); }
  .prow .pside { grid-column: 2 / -1; }
  .p-shot .pshot { width: 112px; }
}
@media (max-width: 560px) {
  .prow { grid-template-columns: 18px minmax(0, 1fr); }
  .prow .p-shot { grid-column: 2; }
  .prow .pmain, .prow .pside { grid-column: 1 / -1; }
}
.pside .scores { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pside .scores .sc { min-width: 0; padding: 6px 7px; }
.pside .scores .sc .v { font-size: 13.5px; }
.pside .scores .ai-run { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding: 4px 8px; }
/* Prospects (admin/all) */
.menu-scroll { max-height: 320px; overflow-y: auto; }
a.menu-item { text-decoration: none; }
.pick-dot { display: block; width: 8px; height: 8px; margin: 6px 0 0 4px; border-radius: 50%; background: var(--border-2); }
.pick-dot.yes { background: var(--pos-dot); }
.pick-dot.maybe { background: var(--accent); }
.pick-dot.no { background: var(--neg-dot); }
.arow-contact { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.arow-contact .ic { width: 12px; height: 12px; }
.site-cell .ext .ic { width: 12px; height: 12px; }
.out-dot.not { background: var(--border-2); }
.funnel > a.fstep, .funnel > div.fstep { color: inherit; }
.filterbar form { margin: 0; }
/* Project (admin/show): the version cards keep .ver for the polling script; .vcard undoes the small version pill */
.ver.vcard { display: block; height: auto; padding: 0; border-radius: 12px; box-shadow: none; font-size: inherit; font-weight: 400; color: inherit; }
.ver.vcard.inactive .card-h { background: var(--fill); }
.cap { text-transform: capitalize; }
.running-card.plain { padding: 0; }
.inline-more { display: inline; }
.inline-more summary { display: inline; cursor: pointer; color: var(--text-3); }
.inline-more span { display: block; margin-top: 6px; white-space: pre-wrap; }
form.toggle-row { margin: 0; }
.fb { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); }
.fb.new { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: var(--accent-tint); }
.fb-marks { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; list-style: decimal; font-size: 13px; line-height: 18px; }
.fb form { margin: 0; }
.set-pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.set-pages form { margin: 0; }
.set-pages .tag .ic { width: 12px; height: 12px; }
.ver-foot form { margin: 0; }
.meta b { color: var(--text); }
.radio-opt { cursor: pointer; position: relative; }
.radio-opt:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.radio-opt:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.radio-opt.off { opacity: .5; cursor: not-allowed; }
.opts.styles { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.opts.tiers .opt-d { line-height: 17px; }
.mchip .opt-d:empty { display: none; }
.shots { position: relative; display: block; }
.shots .shot { display: block; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); background: var(--fill); }
.shots .shot.desk img { display: block; width: 100%; height: auto; filter: var(--thumb-dim); }
.shots .shot.mob { position: absolute; right: 10px; bottom: -10px; width: 26%; border: 2px solid var(--pane); border-radius: 10px; box-shadow: var(--shadow-pop); }
.shots .shot.mob img { display: block; width: 100%; height: auto; }
.shots:has(.mob) { margin-bottom: 14px; }
.dated .score-btn.v { cursor: pointer; border: 0; font: inherit; }
.lead-list li { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-top: 1px solid var(--border); }
.lead-list li:first-child { border-top: 0; }
.lead-list li.unseen { background: var(--accent-tint); }
.photos { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.photo-img { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--fill); box-shadow: inset 0 0 0 1px var(--border); }
.photo-img img { width: 100%; height: 100%; object-fit: cover; filter: var(--thumb-dim); }
.photo-img.logo img { object-fit: contain; padding: 6px; }
.ph-tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 5px; background: var(--toast-bg); color: var(--toast-text); font-size: 10.5px; font-weight: 600; }
.input.file { height: auto; padding: 6px 8px; font-size: 13px; }
.json-edit textarea { font-size: 12px; line-height: 18px; }
.tbl.calls td { white-space: nowrap; }
.tbl.calls td:last-child { white-space: normal; }
.modal-box { width: min(1280px, 100%); height: calc(100% - 24px); }
.frame-wrap { flex: 1 1 auto; display: flex; justify-content: center; background: var(--fill); padding: 12px; overflow: auto; }
.frame-wrap iframe { width: 100%; height: 100%; border: 1px solid var(--border); border-radius: 8px; background: #fff; transition: width .2s ease; }
.progress-card.hide { display: none; }
/* Leads, AI agents, Users, Billing */
.lead-pane { display: flex; flex-direction: column; }
.inbox-detail-h form { margin: 0; }
.lead[hidden] { display: none; }
.examples { display: flex; flex-direction: column; }
.example { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-top: 1px solid var(--border); }
.example:first-child { border-top: 0; }
.tok-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--fill); }
.tok-row.dim { opacity: .55; }
.tok-row form { margin: 0; }
.dim { opacity: .62; }
.invite-form { display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(140px, 1fr) minmax(140px, .8fr) minmax(120px, .7fr) auto; gap: 12px; align-items: end; }
.invite-form .btn { height: 36px; }
.cols-users { grid-template-columns: minmax(240px, 1.6fr) 110px minmax(150px, 1fr) minmax(130px, .9fr) minmax(120px, .8fr) 80px; min-width: 900px; }
.user-block { border-bottom: 1px solid var(--border); }
.user-block:last-child { border-bottom: 0; }
.user-block > .dt-row { border-bottom: 0; }
.user-edit { padding: 4px 16px 16px; }
.user-edit form { margin: 0; }
.pw-input, .tok-input { height: 28px; width: 220px; font-size: 13px; }
.kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bill-section { margin-top: 28px; }
.bill-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 0 24px; }
@media (max-width: 1000px) { .kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } .invite-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } .invite-form { grid-template-columns: 1fr; } }
.quota b { font-variant-numeric: tabular-nums; }
.crumbs > span { white-space: nowrap; }
/* the brand line on the sign-in cards (icon · Redesign Pilot · one small line) and the Clerk widget inside them */
.auth-brandrow { display: flex; align-items: center; gap: 12px; }
.auth-mark { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.auth-brandrow b { display: block; font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: -.01em; }
.auth-brandrow small { display: block; font-size: 13px; line-height: 18px; color: var(--text-3); }
.auth-panel .auth-sub { margin-top: 0; }
.clerk-login #clerkBox { display: flex; justify-content: center; }
.clerk-login #clerkBox > * { width: 100%; }

/* audit profile: a checkbox in the form grid sits at the top of its row instead of stretching to the neighbour's height */
.grid-form > .check-opt { align-self: start; }

/* audit detail: the summary strip, finding cards, lane bars, verdicts */
.aud-strip { margin-bottom: 20px; }
.aud-open-report { white-space: nowrap; }
.aud-kit { display: block; width: 100%; height: 1400px; border: 0; border-radius: 10px; margin-bottom: 20px; background: transparent; color-scheme: normal; }   /* the kit report, embedded; its height follows its content */
.aud-tech { margin-top: 8px; }
.aud-tech > .aud-tech-h { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; padding: 16px 20px; cursor: pointer; list-style: none; }
.aud-tech > .aud-tech-h::-webkit-details-marker { display: none; }
.aud-tech > .aud-tech-h::before { content: "▸"; color: var(--ink-3, #888); }
.aud-tech[open] > .aud-tech-h::before { content: "▾"; }
.aud-tech-b { padding: 0 20px 20px; }   /* the audit page's first action: the store owner's report */
.aud-headline { font-size: 17px; line-height: 24px; font-weight: 600; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.aud-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.aud-stat { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--fill); min-width: 0; }
.aud-stat-l { font-size: 11px; line-height: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.aud-stat-v { font-size: 22px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.aud-stat-s { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.aud-downloads .link, .aud-downloads .link-btn { display: inline-flex; align-items: center; gap: 4px; }
.aud-card { position: relative; padding: 14px 16px 14px 18px; border-radius: 10px; background: var(--pane); box-shadow: inset 0 0 0 1px var(--border); }
.aud-card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--border-2); }
.aud-card.sev-P0::before { background: var(--neg); } .aud-card.sev-P1::before { background: #D9541E; } .aud-card.sev-P2::before { background: var(--accent); } .aud-card.sev-P3::before { background: var(--border-2); }
.aud-card-top { margin-bottom: 8px; } .aud-card-top .r { text-align: right; }
.aud-card-title { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 4px; }
.aud-cant { margin: 0 0 10px; font-size: 14px; line-height: 20px; }
.aud-kv { margin-bottom: 10px; }
.aud-steps { margin: 0; padding-left: 18px; }
.aud-fix { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; padding: 10px 12px; border-radius: 8px; background: var(--fill); font-size: 13px; line-height: 18px; margin-bottom: 10px; }
.aud-fix-l { font-size: 11px; line-height: 18px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 600; }
.aud-verdict { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.aud-verdict .selwrap { width: 180px; }
.aud-repro { height: 18px; padding: 0 6px; font-size: 11px; vertical-align: middle; }
.aud-lane { display: grid; grid-template-columns: 110px 1fr 44px; gap: 8px; align-items: center; }
.aud-lane-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aud-lane-bar { height: 6px; border-radius: 4px; background: var(--fill-2); overflow: hidden; } .aud-lane-bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.aud-lane.bad .aud-lane-bar i { background: var(--neg-dot); }
.aud-lane-s { text-align: right; } .aud-lane-e { grid-column: 1 / -1; }
.cols-coverage { grid-template-columns: minmax(160px, 1.4fr) 120px 50px minmax(160px, 2fr); }

/* audit detail: evidence screenshots (the gallery at the bottom and the thumbnails under a finding) */
.aud-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.aud-gallery a { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-decoration: none; color: inherit; }
.aud-gallery span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aud-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--border); background: var(--fill); filter: var(--thumb-dim); }
.aud-gallery a:hover .aud-thumb, .row .aud-thumb:hover { filter: none; }
.row > a > .aud-thumb { width: 150px; }
