@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Inter:wght@400;500;600;700&display=swap');

/* =====================================================================
   ImportSure design system
   Dark sidebar shell · light canvas · lime accent · Inter
   ===================================================================== */

:root {
  --bg: #f5f6f3; --surface: #fff; --surface-2: #fafaf8; --surface-3: #f0f2ed;
  --ink: #0f1713; --ink-2: #26332b; --muted: #65716a; --faint: #939d97;
  --line: #e6e9e3; --line-2: #d6dbd4;
  --side: #0c120e;
  --brand: #c6f24a; --brand-2: #b3de34; --brand-soft: #eef8cc; --brand-ink: #1c2a05;
  --create: #2a62b8; --create-bg: #e8f0fc;
  --update: #2f7a3b; --update-bg: #e6f4e8;
  --review: #9a6208; --review-bg: #fdf1d9;
  --blocked: #b0352b; --blocked-bg: #fbe7e4;
  --skip: #65716a; --skip-bg: #eceee9;
  --hs: #ff7a59; --hs-dark: #e8603f;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
  --shadow-1: 0 1px 2px rgba(15, 23, 19, .04), 0 1px 1px rgba(15, 23, 19, .03);
  --shadow-2: 0 2px 4px rgba(15, 23, 19, .04), 0 14px 36px rgba(15, 23, 19, .12);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --side-w: 264px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--font); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
button, input, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
svg.i { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.16em; }
::selection { background: var(--brand); color: var(--brand-ink); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.boot { min-height: 100vh; display: grid; place-items: center; }

/* ============ Buttons & controls ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-1); font-weight: 600; font-size: 13px; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, box-shadow .15s, transform .08s; }
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #1c2b22, #0f1713); border-color: #0f1713; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(0, 0, 0, .25); }
.btn.primary:hover { background: linear-gradient(180deg, #25392c, #16221b); }
.btn.hs { background: var(--hs); border-color: var(--hs-dark); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.hs:hover { background: #f2643f; }
.btn.lime { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 8px 24px -8px rgba(198, 242, 74, .6); }
.btn.lime:hover { background: #d3f76a; border-color: #d3f76a; }
.btn.dark-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; }
.btn.dark-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:hover { background: rgba(15, 23, 19, .06); border-color: transparent; }
.btn.danger { color: var(--blocked); }
.btn.danger:hover { border-color: var(--blocked); background: var(--blocked-bg); }
.btn.danger.solid { background: var(--blocked); border-color: var(--blocked); color: #fff; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 14px; border-radius: 12px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; pointer-events: none; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; font-size: 17px; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.link { background: none; border: 0; padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field.inline { min-width: 190px; }
.input, .select { height: 38px; width: 100%; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 0 12px; font-size: 13.5px; min-width: 0; box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s; }
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2365716a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; text-overflow: ellipsis; }
.input:hover, .select:hover { border-color: var(--faint); }
.input:focus, .select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(198, 242, 74, .6); }
.select.sm, .input.sm { height: 34px; font-size: 12.5px; border-radius: 8px; }
.input::placeholder { color: var(--faint); }

.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; }
.switch .track { flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; margin-top: 1px; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { outline: 2px solid var(--ink); outline-offset: 2px; }
.switch b { display: block; font-size: 13.5px; font-weight: 600; }
.switch small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.segmented { display: inline-flex; padding: 3px; background: #e8ebe5; border-radius: 11px; gap: 2px; }
.segmented button { border: 0; background: transparent; height: 32px; padding: 0 16px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); transition: all .15s; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 19, .12); }

.chips { display: flex; gap: 6px; }
.chip { height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-link { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-1); }
.chip-link span { color: var(--muted); font-weight: 500; border-left: 1px solid var(--line); padding: 0 8px 0 10px; }
.chip-link:hover { border-color: var(--ink); }

/* ============ Cards, pills, alerts ============ */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card.pad { padding: 24px; }
.card.flush { overflow: hidden; }
.card-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.card-bar.tight { padding: 0 0 16px; border: 0; }
.card-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.card-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--skip-bg); color: var(--skip); }
.pill.create { background: var(--create-bg); color: var(--create); }
.pill.update, .pill.safe { background: var(--update-bg); color: var(--update); }
.pill.review { background: var(--review-bg); color: var(--review); }
.pill.blocked { background: var(--blocked-bg); color: var(--blocked); }
.pill.sm { height: 24px; font-size: 11.5px; padding: 0 9px 0 7px; }
.badge { display: inline-block; font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; border-radius: 5px; background: var(--skip-bg); color: var(--muted); vertical-align: middle; }
.badge.ro { background: var(--review-bg); color: var(--review); }
.tag { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--surface); }
.d { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.d.create { background: var(--create); } .d.update { background: var(--update); } .d.review { background: #d99a1c; } .d.blocked { background: var(--blocked); } .d.skip { background: var(--faint); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 13px; background: #eef3fb; color: #1f4a8a; }
.alert.warn { background: var(--review-bg); color: #6e4505; }
.alert.error { background: var(--blocked-bg); color: #7d2119; }
.alert.success { background: var(--update-bg); color: #1f5a2a; }
.alert .i { margin-top: 3px; font-size: 15px; }
.alert b { font-weight: 600; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(15, 23, 19, .2); border-top-color: var(--ink); animation: spin .7s linear infinite; display: inline-block; }
.btn.primary .spinner { border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .25s; }
.skeletons { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.skeleton { height: 54px; border-radius: 12px; background: linear-gradient(90deg, #eef0ec 25%, #f8f9f6 37%, #eef0ec 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
.skeletons.wide-skel { flex-direction: row; padding: 0; margin-bottom: 20px; }
.skeletons.wide-skel .skeleton { flex: 1; height: 120px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.toasts { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 90; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-2); animation: rise .2s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty .ic { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 22px; }
.empty h3 { color: var(--ink); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.empty p { max-width: 46ch; margin: 0 auto; }
.empty .btn { margin-top: 18px; }

/* ============ App shell ============ */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.content { width: 100%; max-width: 1260px; margin: 0 auto; padding: 36px clamp(20px, 3.6vw, 56px) 72px; flex: 1; animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; } }

.side { position: sticky; top: 0; height: 100vh; background: radial-gradient(500px 280px at 0% 0%, rgba(198, 242, 74, .09), transparent 70%), var(--side); color: #9fada5; padding: 20px 14px 16px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 11px; color: #fff; background: none; border: 0; padding: 4px 8px; text-align: left; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); border: 1.5px solid var(--ink); color: var(--ink); display: grid; place-items: center; font-size: 16px; flex: none; }
.side .brand-mark { border-color: rgba(255, 255, 255, .2); }
.brand-name small { display: block; font: 500 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #6f7d75; margin-top: 4px; }
.btn-new { height: 42px; border-radius: 12px; border: 0; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 28px -10px rgba(198, 242, 74, .7); transition: background .15s, transform .08s; }
.btn-new:hover { background: #d3f76a; }
.btn-new:active { transform: translateY(1px); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-radius: 10px; color: #9fada5; text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
.nav-item .i { font-size: 18px; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item[aria-current='page'] { background: rgba(198, 242, 74, .12); color: #fff; }
.nav-item[aria-current='page']::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav-item[aria-current='page'] .i { color: var(--brand); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(198, 242, 74, .25); margin-left: auto; flex: none; }
.side-foot { margin-top: auto; }
.acct-card { display: flex; align-items: center; gap: 6px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.acct-main { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1; text-decoration: none; color: #fff; padding: 2px; border-radius: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; flex: none; }
.acct-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.acct-text strong { font-size: 13px; font-weight: 600; }
.acct-text small { font-size: 11.5px; color: #81908a; }
.signin-card { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); color: #aab8b0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.signin-card strong { color: #fff; font-size: 13.5px; }
.signin-card p { font-size: 12.5px; margin-bottom: 6px; }
.scrim { display: none; }
.mbar { display: none; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.eyebrow { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.page-head h1 { font-size: clamp(26px, 3vw, 32px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.page-head .sub { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 62ch; }
.head-actions { display: flex; gap: 8px; }

/* ============ Landing (signed out) ============ */
.landing { min-height: 100vh; background: radial-gradient(900px 520px at 88% -8%, rgba(198, 242, 74, .28), transparent 62%), radial-gradient(700px 400px at -5% 30%, rgba(198, 242, 74, .12), transparent 60%), var(--bg); }
.land-bar { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(20px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.land-brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.land-brand small { display: block; font: 500 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 4px; }
.land-actions { display: flex; gap: 8px; align-items: center; }
.land-main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.welcome { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(36px, 8vh, 88px) 0 64px; }
.pill-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 22px; box-shadow: var(--shadow-1); }
.pill-eyebrow .i { color: var(--update); }
.welcome h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; font-weight: 700; letter-spacing: -.05em; }
.welcome h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--brand) 62%); }
.welcome .lede { font-size: 18px; color: var(--muted); margin: 20px 0 30px; max-width: 46ch; line-height: 1.55; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.alt { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 96px; }
.feature { padding: 24px; }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 19px; margin-bottom: 14px; }
.feature h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: 13.5px; color: var(--muted); }
.preview-card { padding: 18px; transform: rotate(1.2deg); box-shadow: var(--shadow-2); border-radius: var(--r-xl); }
.pv-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 12px; font-weight: 700; font-size: 13.5px; }
.pv-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 6px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pv-row span:first-child { min-width: 0; }
.pv-row small { display: block; color: var(--muted); font-size: 12px; }

/* ============ Overview ============ */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 30px 34px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: #fff; margin-bottom: 20px; background: radial-gradient(700px 300px at 92% -30%, rgba(198, 242, 74, .42), transparent 60%), radial-gradient(500px 260px at 0% 120%, rgba(198, 242, 74, .14), transparent 60%), linear-gradient(135deg, #13201a, #0b110d); border: 1px solid #0b110d; box-shadow: var(--shadow-2); transition: box-shadow .2s, outline-color .2s; outline: 2px solid transparent; outline-offset: 3px; }
.hero.over { outline-color: var(--brand); }
.hero h2 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 6px; }
.hero p { color: #b3c0b8; max-width: 54ch; font-size: 14.5px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 18px 20px 0; display: flex; flex-direction: column; overflow: hidden; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; font-weight: 500; }
.kic { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; color: var(--ink-2); }
.kpi strong { font-size: 32px; font-weight: 700; letter-spacing: -.04em; line-height: 1.15; margin: 8px 0 4px; }
.spark { display: block; width: calc(100% + 40px); margin: 4px -20px 0; height: 46px; }
.spark-gap { height: 50px; }
.spark-area { fill: rgba(198, 242, 74, .35); }
.spark-line { fill: none; stroke: #355a14; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.split { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.glance { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 16px; }
.glance li { display: flex; gap: 12px; align-items: flex-start; }
.gi { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; flex: none; font-size: 17px; }
.glance b { display: block; font-size: 14px; font-weight: 600; }
.glance small { color: var(--muted); font-size: 12.5px; }

/* ============ History table ============ */
.toolbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { position: relative; width: min(320px, 100%); }
.search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 34px; }
.chead, .crow { display: grid; grid-template-columns: minmax(0, 2.2fr) 100px 90px minmax(190px, 1.6fr) 20px; gap: 16px; align-items: center; padding: 0 24px; }
.chead { height: 42px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.crow { min-height: 70px; padding-block: 12px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); transition: background .12s; }
.crow:last-child { border-bottom: 0; }
.crow:hover { background: var(--surface-2); }
.cname { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ficon { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 17px; flex: none; }
.ctext { min-width: 0; display: flex; flex-direction: column; }
.ctext strong { font-size: 14px; font-weight: 600; }
.ctext small { color: var(--muted); font-size: 12.5px; }
.cdate, .crows { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.cresult { display: flex; align-items: center; gap: 12px; }
.rbar { flex: 1; height: 8px; border-radius: 99px; display: flex; overflow: hidden; background: var(--surface-3); min-width: 60px; }
.rbar i { display: block; height: 100%; }
.rbar i.create { background: var(--create); } .rbar i.update { background: #4caf60; } .rbar i.review { background: #e0a528; } .rbar i.blocked { background: var(--blocked); } .rbar i.skip { background: var(--faint); }
.chev { color: var(--faint); }

/* ============ Rules ============ */
.ptabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.ptabs a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s; }
.ptabs a:hover { color: var(--ink); }
.ptabs a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--ink); }
.ptabs .count { font: 500 11px var(--mono); padding: 3px 7px; border-radius: 99px; background: var(--skip-bg); color: var(--muted); }
.rules-intro { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: #eef4e8; border: 1px solid #dde8d3; color: var(--ink-2); font-size: 13.5px; margin-bottom: 18px; }
.rules-intro .i { margin-top: 3px; color: var(--update); font-size: 16px; }
.rules-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.rules-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.phead, .prow { display: grid; grid-template-columns: minmax(0, 1.5fr) 84px minmax(0, 1.2fr) 52px; gap: 14px; align-items: center; padding: 0 22px; }
.phead { height: 42px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.prow { min-height: 62px; border-bottom: 1px solid var(--line); padding-block: 10px; transition: background .12s; }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: var(--surface-2); }
.prow.custom { background: linear-gradient(90deg, var(--brand-soft), transparent 55%); box-shadow: inset 3px 0 0 var(--brand-2); }
.pname strong { display: block; font-size: 13.5px; font-weight: 600; }
.pname small { display: block; color: var(--muted); font-size: 11.5px; }
.pact { text-align: right; }
.rule-select { position: relative; }
.rule-select .select { padding-left: 30px; }
.rule-select .rdot { position: absolute; left: 12px; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); background: var(--update); pointer-events: none; z-index: 1; }
.rule-select.fill .rdot { background: var(--create); }
.rule-select.review .rdot { background: #d99a1c; }
.rule-select.never .rdot { background: var(--blocked); }
.locked-note { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
.more-note { padding: 16px 20px; text-align: center; font-size: 12.5px; color: var(--muted); background: var(--surface-2); display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 18px; }
.duo div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.duo strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }
.duo span { font-size: 12px; color: var(--muted); }
.legend-list { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 11px; }
.legend-list li { display: flex; gap: 10px; align-items: flex-start; }
.legend-list .d { margin-top: 6px; width: 10px; height: 10px; }
.legend-list b { display: block; font-size: 13px; font-weight: 600; }
.legend-list small { display: block; color: var(--muted); font-size: 12px; }
.opts-col { display: flex; flex-direction: column; gap: 18px; }
.unsaved { display: flex; align-items: center; gap: 10px; font-size: 13.5px; min-width: 0; flex-wrap: wrap; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.mcard { padding: 20px; text-align: left; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .15s, box-shadow .15s; font: inherit; }
.mcard:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.mcard strong { font-size: 15px; font-weight: 700; }
.mcard small { color: var(--ink-2); font-size: 12.5px; }
.mcard small.muted { color: var(--muted); }
.mc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

/* ============ Settings ============ */
.settings { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; font-size: 13px; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv.spaced { grid-template-columns: 140px 1fr; gap: 12px 16px; margin: 4px 0 20px; font-size: 14px; }
.actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ticks { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 11px; }
.ticks li { position: relative; padding-left: 28px; font-size: 14px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand) center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c2a05' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.danger-zone { border-color: #efcbc6; }

/* ============ The check wizard ============ */
.wiz { max-width: 1080px; margin: 0 auto; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.stepper-wrap { flex: 1; max-width: 700px; }
.wiz-body { max-width: 900px; margin: 0 auto; }
.wiz-body.is-wide { max-width: 1080px; }
.wiz-title { margin-bottom: 24px; }
.wiz-title h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.wiz-title p { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 64ch; }

.stepper { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.step { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.step:last-child { flex: 0 0 auto; }
.step-btn { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 13px; }
.step-btn[disabled] { cursor: default; }
.step .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; transition: all .2s; flex: none; }
.step .bar { flex: 1; height: 2px; background: var(--line-2); margin: 0 14px; border-radius: 2px; min-width: 14px; }
.step.done .dot { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.step.done .bar { background: var(--ink); }
.step.done .step-btn { color: var(--ink-2); }
.step.done .step-btn:hover .dot { box-shadow: 0 0 0 4px rgba(198, 242, 74, .5); }
.step.current .dot { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(198, 242, 74, .65); }
.step.current .step-btn { color: var(--ink); }
.step-count { display: none; font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 10px; }

.actionbar { position: sticky; bottom: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.actionbar-in { max-width: 1260px; margin: 0 auto; padding: 14px clamp(20px, 3.6vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.actionbar .hint { font-size: 13px; color: var(--muted); flex: 1; min-width: 0; text-align: right; }
.actionbar .hint b { color: var(--ink); font-weight: 600; }
.actionbar .right { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; justify-content: flex-end; }
.busy { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; min-width: 0; }
.busy .progress { width: 160px; }

/* Step 1 */
.stack { display: flex; flex-direction: column; gap: 16px; }
.source { padding: 22px 24px; }
.source-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.source-head .num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.source-head .num.ok { background: var(--brand); color: var(--brand-ink); }
.source-head h2 { font-size: 15px; font-weight: 700; }
.source-head p { font-size: 12.5px; color: var(--muted); }
.source-head .grow { flex: 1; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 38px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2); cursor: pointer; transition: all .15s; position: relative; }
.dropzone:hover, .dropzone.over { border-color: var(--ink); background: var(--brand-soft); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.dropzone .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; margin-bottom: 4px; box-shadow: var(--shadow-1); }
.dropzone strong { font-size: 14.5px; }
.dropzone small { color: var(--muted); font-size: 12.5px; }
.file-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.fi { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 18px; flex: none; }
.file-card .meta { flex: 1; min-width: 0; }
.file-card strong { display: block; font-size: 14px; }
.file-card small { color: var(--muted); font-size: 12.5px; }
.preview { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); overflow: auto; max-height: 230px; }
.preview table { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.preview th { position: sticky; top: 0; background: #f0f2ed; text-align: left; font-weight: 600; padding: 9px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.preview td { padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.preview tr:last-child td { border-bottom: 0; }
.preview-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tile { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); text-align: left; font-weight: 600; font-size: 13px; box-shadow: var(--shadow-1); }
.tile:hover { border-color: var(--ink); }
.tile[aria-pressed='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface-2); }
.tile .logo { width: 30px; height: 30px; border-radius: 8px; background: #eceee9; display: grid; place-items: center; font: 600 11px var(--mono); flex: none; }
.tile .logo.hubspot { background: #ffe6d8; color: #b33d1c; }
.tile .logo.salesforce { background: #dcf3ff; color: #0b6a93; }
.tile .logo.zoho { background: #fff0c8; color: #8a6200; }
.live-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--update-bg); }
.live-card .lc { width: 38px; height: 38px; border-radius: 10px; background: #fff; color: var(--hs); display: grid; place-items: center; font-weight: 700; flex: none; }
.live-card strong { display: block; font-size: 14px; color: #1f5a2a; }
.live-card small { color: #2f6d3a; font-size: 12.5px; }

/* Step 2 */
.wide { display: flex; flex-direction: column; gap: 16px; }
.match-card { padding: 22px 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: center; }
.match-card .mi { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 20px; }
.match-card h2 { font-size: 15px; font-weight: 700; }
.match-card p { font-size: 13.5px; color: var(--muted); }
.match-pick { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 10px; align-items: end; }
.match-pick .arrow { height: 38px; display: grid; place-items: center; color: var(--muted); }
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toolbar .left, .toolbar .right { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.rules-bar { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.rules-bar .field { min-width: 200px; }
.behavior { padding: 0; overflow: hidden; }
.behavior > .btn { box-shadow: none; }
.behavior .opts { padding: 20px 24px 22px; display: grid; gap: 18px; border-top: 1px solid var(--line); }
.group { overflow: hidden; }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.group-head h3 { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.group-head .n { font: 500 11px var(--mono); background: var(--skip-bg); color: var(--muted); padding: 3px 7px; border-radius: 99px; }
.group-head.attn { background: var(--review-bg); }
.group-head.attn h3 { color: #6e4505; }
.mhead, .mrow { display: grid; grid-template-columns: minmax(0, 1.05fr) 20px minmax(0, 1.35fr) minmax(0, .95fr); gap: 14px; align-items: center; padding: 12px 20px; }
.mhead { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-block: 10px; border-bottom: 1px solid var(--line); }
.mrow { border-bottom: 1px solid var(--line); transition: background .12s; }
.mrow:hover { background: var(--surface-2); }
.mrow:last-child { border-bottom: 0; }
.mrow .src strong { display: block; font-size: 13.5px; font-weight: 600; }
.mrow .src small { display: block; font: 400 12px var(--mono); color: var(--muted); }
.mrow .arrow { color: var(--faint); text-align: center; }
.mrow .tgt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mrow .tgt .meta { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); }
.mrow.skipped .src { opacity: .55; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i.d { width: 9px; height: 9px; }

/* Step 3 */
.verdict { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-radius: var(--r-lg); border: 1px solid; }
.verdict.ok { background: var(--update-bg); border-color: #c4e3c9; }
.verdict.attn { background: var(--review-bg); border-color: #f1d9a3; }
.verdict .vi { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 22px; flex: none; box-shadow: var(--shadow-1); }
.verdict.ok .vi { color: var(--update); }
.verdict.attn .vi { color: var(--review); }
.verdict h2 { font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.verdict p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.verdict .vstats { margin-left: auto; display: flex; gap: 24px; }
.verdict .vstats div { text-align: right; }
.verdict .vstats strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.verdict .vstats span { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--ink); }
.tab .count { font: 500 11px var(--mono); padding: 3px 7px; border-radius: 99px; background: var(--skip-bg); color: var(--muted); }
.tab[aria-selected='true'] .count { background: var(--ink); color: #fff; }
.review-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.issue-strip { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.issue-strip .lbl { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.issue-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 500; box-shadow: var(--shadow-1); }
.issue-chip:hover { border-color: var(--ink); }
.issue-chip[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.issue-chip .n { font: 500 11px var(--mono); background: var(--blocked-bg); color: var(--blocked); border-radius: 99px; padding: 2px 7px; }
.issue-chip.warning .n { background: var(--review-bg); color: var(--review); }
.issue-chip[aria-pressed='true'] .n { background: rgba(255, 255, 255, .2); color: #fff; }
.results { overflow: hidden; }
.rhead, .rrow { display: grid; grid-template-columns: 56px minmax(0, 1.5fr) 140px minmax(0, 2fr) 24px; gap: 14px; align-items: center; padding: 0 20px; }
.rhead { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); height: 42px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.rrow { min-height: 64px; padding-block: 10px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; transition: background .12s; }
.rrow:hover { background: var(--surface-2); }
.rrow:last-child { border-bottom: 0; }
.rrow .rn { font: 500 12px var(--mono); color: var(--faint); }
.rrow .who strong { display: block; font-size: 13.5px; font-weight: 600; }
.rrow .who small { display: block; color: var(--muted); font-size: 12px; }
.rrow .what { font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.rrow .what .chg { display: inline-flex; gap: 6px; align-items: center; background: var(--surface-3); border-radius: 6px; padding: 3px 8px; margin: 2px 6px 2px 0; max-width: 100%; }
.rrow .what .chg b { font-weight: 600; }
.rrow .what .chg s { color: var(--faint); }

/* Step 4 */
.outputs { display: flex; flex-direction: column; gap: 12px; }
.out-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; }
.oi { width: 46px; height: 46px; border-radius: 13px; background: var(--skip-bg); display: grid; place-items: center; font-size: 20px; }
.out-card h3 { font-size: 15px; font-weight: 700; }
.out-card p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.out-card.main { background: linear-gradient(135deg, var(--brand-soft), #f7fbe6); border-color: #d7e8a0; padding: 24px; }
.out-card.main .oi { background: var(--brand); color: var(--brand-ink); }
.out-card.main h3 { font-size: 17px; }
.next-steps { margin: 10px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.next-steps li { margin: 3px 0; }
.report-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; grid-column: 1 / -1; align-items: end; }
.saved-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--update); }

/* ============ Overlays ============ */
.backdrop { position: fixed; inset: 0; background: rgba(12, 18, 14, .5); backdrop-filter: blur(2px); z-index: 80; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--surface); z-index: 81; display: flex; flex-direction: column; box-shadow: var(--shadow-2); animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.drawer-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.drawer-head .btn.ghost { color: var(--ink); }
.drawer-body { padding: 22px 24px 28px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 24px; }
.drawer-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; background: var(--surface-2); }
.modal { position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(470px, calc(100vw - 32px)); background: var(--surface); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-2); animation: rise .18s ease-out; }
.modal h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.section-label { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.issue-list { display: flex; flex-direction: column; gap: 8px; }
.stats { display: grid; gap: 10px; }
.stat { padding: 14px 16px; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.diff { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.diff th { text-align: left; font: 500 10.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0 8px 8px 0; }
.diff td { padding: 10px 8px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.diff td:first-child { font-weight: 600; }
.diff .before { color: var(--muted); font-family: var(--mono); }
.diff .after { font-family: var(--mono); font-weight: 500; }
.diff small { display: block; color: var(--muted); margin-top: 4px; font-size: 11.5px; }
details.raw summary { cursor: pointer; font-weight: 600; font-size: 13px; }
details.raw .kv { margin-top: 12px; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .rules-layout { grid-template-columns: 1fr; }
  .rules-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .rules-side > * { flex: 1 1 300px; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100%; transform: translateX(-102%); transition: transform .25s ease; z-index: 70; box-shadow: var(--shadow-2); }
  .app.nav-open .side { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(12, 18, 14, .5); z-index: 65; }
  .mbar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .mbar .icon-btn { color: var(--ink); }
  .mbar .icon-btn:hover { background: rgba(15, 23, 19, .06); }
  .content { padding-top: 24px; }
  .welcome { grid-template-columns: 1fr; }
  .preview-card { transform: none; }
  .features { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; padding: 24px; }
  .verdict { flex-wrap: wrap; }
  .verdict .vstats { margin-left: 0; width: 100%; justify-content: space-between; }
  .verdict .vstats div { text-align: left; }
}
@media (max-width: 720px) {
  .land-actions .btn.ghost { display: none; }
  .step-btn .lbl { display: none; }
  .step-count { display: block; }
  .step .bar { margin: 0 6px; }
  .wiz-top { flex-direction: column; align-items: stretch; gap: 8px; }
  .match-pick { grid-template-columns: 1fr; }
  .match-pick .arrow { display: none; }
  .mhead, .rhead, .chead, .phead { display: none; }
  .mrow { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
  .mrow .arrow { display: none; }
  .rrow { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 16px; }
  .rrow .rn, .rrow .chev, .crow .chev { display: none; }
  .rrow .what { grid-column: 1 / -1; grid-row: 2; }
  .crow { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; }
  .crow .cdate { grid-column: 2; grid-row: 1; }
  .crow .crows { display: none; }
  .crow .cresult { grid-column: 1 / -1; }
  .prow { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 14px 16px; }
  .prow .ptype { display: none; }
  .prow .prule { grid-column: 1 / -1; grid-row: 2; }
  .out-card { grid-template-columns: 46px minmax(0, 1fr); }
  .out-card .btn { grid-column: 1 / -1; }
  .report-fields { grid-template-columns: 1fr; }
  .actionbar-in { flex-wrap: wrap; }
  .actionbar .hint { display: none; }
  .busy .progress { width: 90px; }
  .drawer { width: 100vw; }
  .card.pad, .source { padding: 18px; }
  .card-bar { padding: 16px 18px; }
  .kpis { gap: 10px; }
  .kpi strong { font-size: 26px; }
  .kv.spaced { grid-template-columns: 1fr; gap: 2px 0; }
  .kv.spaced dd { margin-bottom: 10px; }
  .toasts { bottom: 84px; }
}

/* ============ Legal and help pages ============ */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(24px, 6vh, 56px) clamp(20px, 4vw, 32px) 56px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.doc .meta { color: var(--muted); font-size: 13.5px; margin: 8px 0 28px; }
.doc h2 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 34px 0 8px; }
.doc h3 { font-size: 15px; font-weight: 700; margin: 20px 0 4px; }
.doc p, .doc li { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.doc p { margin-bottom: 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin: 6px 0; }
.doc a { text-decoration-color: var(--brand-2); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.doc a:hover { background: var(--brand-soft); }
.steps-list { counter-reset: s; list-style: none; padding: 0; }
.steps-list li { counter-increment: s; position: relative; padding-left: 40px; margin: 12px 0; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.site-footer { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: center; padding: 28px 24px 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); max-width: 1240px; margin: 0 auto; }
.site-footer a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
.side-links { display: flex; gap: 14px; padding: 12px 8px 0; font-size: 12px; }
.side-links a { color: #6f7d75; text-decoration: none; }
.side-links a:hover { color: #fff; }
