/* ==========================================================================
   convertcsvtovcf.com — Modern theme
   One stylesheet, no framework. Tokens → base → layout → components → pages.
   ========================================================================== */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/geist-mono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(fonts/geist-mono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  /* Brand */
  --brand-1: #667eea;
  --brand-2: #764ba2;
  --brand-3: #f093fb;
  --teal: #0ea5a4; --teal-soft: #e0f5f4;
  --amber: #e08a0b; --amber-soft: #fdf1dc;
  --rose: #e24b7a; --rose-soft: #fde8ef;
  --violet: #7c3aed; --violet-soft: #efe9fe;
  --blue: #2f6bff; --blue-soft: #e8efff;

  --bg: #f6f6f9;
  --surface: #ffffff;
  --surface-2: #fafafc;
  --surface-sunk: #eeeef4;
  --line: #e4e4ec;
  --line-strong: #cfcfdd;
  --ink: #15152a;
  --ink-2: #3b3b58;
  --muted: #6b6b85;
  --faint: #a2a2b8;
  --accent: #4f46c8;
  --accent-hover: #4038ad;
  --accent-ink: #ffffff;
  --accent-soft: #eeedfa;
  --accent-line: #c9c6ef;
  --success: #15803d;
  --success-soft: #e8f5ec;
  --success-line: #bfe3ca;
  --danger: #c2334f;
  --danger-soft: #fbeaee;
  --danger-line: #f6c3d2;
  --warn: #9a5b00;
  --warn-soft: #fdf1dc;
  --warn-line: #f3d9a8;
  --mark: #fde68a;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-xs: 6px; --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px;
  --shadow-xs: 0 1px 0 rgba(21, 21, 42, .04);
  --shadow-sm: 0 1px 2px rgba(21, 21, 42, .06), 0 1px 0 rgba(21, 21, 42, .03);
  --shadow: 0 1px 2px rgba(21, 21, 42, .05), 0 10px 30px -10px rgba(21, 21, 42, .14);
  --shadow-lg: 0 2px 4px rgba(21, 21, 42, .06), 0 28px 70px -14px rgba(21, 21, 42, .28);
  --shadow-brand: 0 6px 16px -6px rgba(79, 70, 200, .45);
  --ring: 0 0 0 3px rgba(79, 70, 200, .22);

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --teal: #2dd4bf; --teal-soft: #0f2f2d;
    --amber: #fbbf24; --amber-soft: #2f2410;
    --rose: #fb7185; --rose-soft: #331520;
    --violet: #a78bfa; --violet-soft: #241b45;
    --blue: #7aa2ff; --blue-soft: #15203d;
    --bg: #0f0f16;
    --surface: #171723;
    --surface-2: #1c1c2a;
    --surface-sunk: #13131d;
    --line: #292938;
    --line-strong: #393950;
    --ink: #ececf3;
    --ink-2: #c8c8d8;
    --muted: #9898b0;
    --faint: #696982;
    --accent: #8a84f0;
    --accent-hover: #a29dff;
    --accent-ink: #0f0f16;
    --accent-soft: #23233c;
    --accent-line: #3b3b66;
    --success: #4ade9a;
    --success-soft: #11291f;
    --success-line: #1f4d3a;
    --danger: #ff7a9a;
    --danger-soft: #331622;
    --danger-line: #5c2639;
    --warn: #f0b64a;
    --warn-soft: #2d2310;
    --warn-line: #574217;
    --mark: #6b5a12;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 28px 70px -14px rgba(0, 0, 0, .7);
    --shadow-brand: 0 6px 16px -6px rgba(0, 0, 0, .6);
    --ring: 0 0 0 3px rgba(143, 130, 255, .35);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.55; letter-spacing: -0.006em;
  font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
::selection { background: var(--accent-soft); color: var(--ink); }
code, kbd, .mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px; background: var(--ink); color: var(--bg); border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(760px + var(--gutter) * 2); }
.stack > * + * { margin-top: var(--stack, 16px); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.h1 { font-size: clamp(2.05rem, 1.35rem + 2.9vw, 3.35rem); letter-spacing: -0.035em; line-height: 1.05; font-weight: 650; }
.h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.15rem); letter-spacing: -0.03em; }
.h3 { font-size: 1.06rem; letter-spacing: -0.015em; font-weight: 600; }
.lead { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- Icons ---------- */
.i { width: 18px; height: 18px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 22px; height: 22px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; letter-spacing: -0.02em; font-size: 15px; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.brand-mark svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand small { font-family: var(--mono); font-weight: 500; font-size: 11px; color: var(--muted); padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; letter-spacing: 0; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); font-size: 14px; padding: 8px 12px; border-radius: var(--r-sm); transition: background .15s, color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-sunk); }
.header-cta { margin-left: 8px; }
.site-header .menu-btn { display: none; margin-left: auto; }
@media (max-width: 860px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 4px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { background: transparent; }
  .header-cta { margin: 16px 0 0; }
  .nav a.btn { border-radius: var(--r-sm); border-bottom: 0; padding: 0 16px; height: 46px; font-size: 15px; }
  .site-header .menu-btn { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn { --btn-h: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--btn-h); padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent; font-size: 14px; font-weight: 550; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; cursor: pointer; user-select: none; text-decoration: none; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .08s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); border-color: var(--faint); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-sunk); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: var(--danger-line); }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); color: var(--danger); }
.btn-lg { --btn-h: 48px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn-sm { --btn-h: 32px; padding: 0 11px; font-size: 13px; }
.btn-icon { width: var(--btn-h); padding: 0; }
.btn-block { width: 100%; }
.btn .spinner { width: 15px; height: 15px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.label .req { color: var(--danger); }
.hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--ink); font-size: 14.5px; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 132px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236e6e78' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.is-invalid { border-color: var(--danger) !important; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

/* Choice cards (radio groups) */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.choice:hover { border-color: var(--faint); }
.choice input { margin: 3px 0 0; accent-color: var(--accent); width: 16px; height: 16px; flex: 0 0 auto; }
.choice-title { font-weight: 600; font-size: 14px; }
.choice-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: clamp(18px, 3vw, 28px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px clamp(18px, 3vw, 24px); border-bottom: 1px solid var(--line); }
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--surface-sunk); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge-accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.badge-success { background: var(--success-soft); color: var(--success); border-color: var(--success-line); }
.kbd { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; color: var(--ink-2); background: var(--surface); }

/* Notices */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; color: var(--ink-2); }
.notice .i { margin-top: 2px; }
.notice-error { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.notice-success { background: var(--success-soft); border-color: var(--success-line); color: var(--success); }
.notice-warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.notice-info { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.notice b { font-weight: 600; }

/* Progress */
.progress { position: relative; height: 6px; border-radius: 999px; background: var(--surface-sunk); overflow: hidden; }
.progress-bar { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: inherit; transition: width .2s var(--ease); }
.progress.is-indeterminate .progress-bar { width: 35% !important; animation: indeterminate 1.1s var(--ease) infinite; }
@keyframes indeterminate { from { left: -35%; } to { left: 100%; } }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Segmented tabs ---------- */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--surface-sunk); border: 1px solid var(--line); border-radius: 12px; }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 550; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; text-align: center; line-height: 1.2; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.tab .i { width: 16px; height: 16px; }
@media (max-width: 520px) {
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Dropzone ---------- */
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 196px; padding: 28px 20px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover { border-color: var(--faint); }
.drop.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink-2); }
.drop-title { font-weight: 600; font-size: 15px; }
.drop-title u { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; color: var(--accent); }
.drop-meta { font-size: 12.5px; color: var(--muted); }
.drop-meta .mono { font-size: 12px; }
.drop:focus-within { border-color: var(--accent); box-shadow: var(--ring); }

/* Selected file(s) */
.files { display: flex; flex-direction: column; gap: 8px; }
.file { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.file-ico { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); background: var(--surface-sunk); border: 1px solid var(--line); flex: 0 0 auto; text-transform: uppercase; }
.file-ico.is-csv { color: var(--success); background: var(--success-soft); border-color: var(--success-line); }
.file-ico.is-xls { color: #1d6f42; background: #e6f2ea; border-color: #bcdcc8; }
.file-ico.is-vcf { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.file-body { min-width: 0; flex: 1 1 auto; }
.file-name { font-weight: 550; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.file-meta b { color: var(--ink-2); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.steps li { display: inline-flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; width: 20px; height: 1px; background: var(--line-strong); margin-right: 0; }
.step-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); }
.steps .is-done .step-dot { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.steps .is-current { color: var(--ink); font-weight: 550; }
.steps .is-current .step-dot { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 3px var(--surface-sunk); }

/* ---------- Tables ---------- */
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 550; letter-spacing: .01em; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .mono { font-size: 13px; color: var(--ink-2); }

/* ---------- Dialog (native <dialog>) ---------- */
dialog.modal { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: auto; }
dialog.modal::backdrop { background: rgba(15, 15, 18, .45); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.modal-body { padding: 4px 18px 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 560px) {
  dialog.modal { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92dvh; }
  dialog.modal[open] { animation: sheet .22s var(--ease); }
  @keyframes sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-size: 14px; box-shadow: var(--shadow-lg); animation: pop .2s var(--ease); }

/* ---------- Accordion (FAQ) ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 550; font-size: 15.5px; letter-spacing: -0.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s var(--ease); color: var(--muted); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); max-width: 68ch; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 48px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-grid h4 { font-size: 12px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom button { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 13px; }
.footer-bottom button:hover { color: var(--ink); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Cookie consent ---------- */
.consent { position: fixed; z-index: 80; left: 16px; bottom: 16px; width: min(380px, calc(100vw - 32px)); padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); font-size: 13.5px; color: var(--ink-2); animation: pop .25s var(--ease); }
.consent strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.consent .actions { display: flex; gap: 8px; margin-top: 12px; }
.consent .actions .btn { flex: 1; }

/* ---------- Utility ---------- */
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.grow { flex: 1 1 auto; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- Share dialog ---------- */
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.share-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 550; text-align: left; transition: background .15s, border-color .15s; }
.share-item:hover { background: var(--surface-2); border-color: var(--line-strong); }
.share-ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-sunk); border: 1px solid var(--line); flex: 0 0 auto; }
.share-ico img { width: 18px; height: 18px; object-fit: contain; }

/* ==========================================================================
   Homepage
   ========================================================================== */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.hero-copy { padding-top: clamp(4px, 2vw, 28px); }
.hero-copy .h1 { margin: 16px 0 18px; }
.hero-copy .lead { max-width: 46ch; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.checks .i { width: 18px; height: 18px; margin-top: 2px; color: var(--success); }
.formats { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.formats span { font-family: var(--mono); font-size: 11.5px; padding: 3px 7px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .hero-copy .lead { max-width: 60ch; }
  .checks { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 640px) {
  .hero-copy .checks, .hero-copy .formats { display: none; }
  .hero-copy .h1 { margin: 12px 0 12px; }
}

/* Tool card */
.tool { position: relative; scroll-margin-top: calc(var(--header-h) + 12px); }
.tool-card { padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tool-pane { padding: clamp(14px, 2.4vw, 22px) clamp(6px, 1.4vw, 12px) clamp(8px, 1.4vw, 12px); display: flex; flex-direction: column; gap: 14px; }
.tool-pane[hidden] { display: none; }
.tool-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tool-head h2 { font-size: 17px; letter-spacing: -0.02em; }
.tool-head p { font-size: 13.5px; color: var(--muted); }
.tool-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 2px; }
.tool-foot .hint { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 520px) { .tool-foot .btn { width: 100%; } .tool-foot .hint { display: none; } }
.upload-status { display: flex; flex-direction: column; gap: 8px; }
.upload-status .row { font-size: 13px; color: var(--ink-2); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-sunk); }

/* Strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.strip .container { display: flex; align-items: center; gap: 10px 28px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.strip .label { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500; }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; font-size: 14px; font-weight: 550; color: var(--ink-2); }

/* How it works */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.how-step { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.how-step .num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.how-step h3 { font-size: 16px; }
.how-step p { font-size: 14px; color: var(--muted); }
.how-art { margin-top: auto; padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; min-height: 118px; align-content: center; }
.art-file { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.art-file .file-ico { width: 30px; height: 30px; font-size: 9.5px; border-radius: 7px; }
.art-map { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.art-map > span:first-child { font-family: var(--mono); font-size: 12px; color: var(--ink-2); padding: 6px 8px; border: 1px dashed var(--line-strong); border-radius: 6px; background: var(--surface); }
.art-map > span:last-child { padding: 6px 8px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-strong); font-weight: 550; display: flex; justify-content: space-between; align-items: center; }
.art-map .i { width: 14px; height: 14px; color: var(--faint); }
.art-card { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: 13px; flex: 0 0 auto; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } .how-art { min-height: 0; } }

/* Tools list */
.tool-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.tool-item { display: flex; gap: 14px; padding: 22px; border-bottom: 1px solid var(--line); color: var(--ink); transition: background .15s; }
.tool-item:nth-child(odd) { border-right: 1px solid var(--line); }
.tool-item:nth-last-child(-n+2) { border-bottom: 0; }
.tool-item:hover { background: var(--surface-2); color: var(--ink); }
.tool-item .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); flex: 0 0 auto; }
.tool-item h3 { font-size: 15.5px; margin-bottom: 4px; }
.tool-item p { font-size: 14px; color: var(--muted); }
.tool-item .go { margin-top: 10px; font-size: 13.5px; font-weight: 550; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 760px) {
  .tool-list { grid-template-columns: 1fr; }
  .tool-item:nth-child(odd) { border-right: 0; }
  .tool-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tool-item:last-child { border-bottom: 0; }
}

/* Privacy details */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 600; font-size: 14px; }
.facts dd { margin: 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: 4px; } }

/* Closing CTA */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: var(--ink); color: var(--bg); }
.cta h2 { color: var(--bg); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.cta p { color: color-mix(in srgb, var(--bg) 70%, transparent); margin-top: 6px; }
.cta .btn { background: var(--bg); color: var(--ink); }
.cta .btn:hover { background: color-mix(in srgb, var(--bg) 88%, var(--ink)); color: var(--ink); }

/* ==========================================================================
   Tool pages (mapping, viewer, card scan)
   ========================================================================== */
.page-head { padding: clamp(24px, 4vw, 44px) 0 clamp(18px, 3vw, 28px); }
.page-head .steps { margin-bottom: 18px; }
.page-head h1 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.3rem); letter-spacing: -0.03em; }
.page-head p { margin-top: 8px; color: var(--muted); max-width: 64ch; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-body { padding-bottom: clamp(48px, 7vw, 96px); }

/* Mapping */
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.map-aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
@media (max-width: 1000px) { .map-layout { grid-template-columns: 1fr; } .map-aside { position: static; } }
.reqbox { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--warn-line); background: var(--warn-soft); color: var(--warn); font-size: 13.5px; }
.reqbox.is-ok { border-color: var(--success-line); background: var(--success-soft); color: var(--success); }
.reqbox .chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, currentColor 10%, transparent); font-weight: 550; font-size: 12.5px; }
.reqbox .chip.is-on { background: var(--success); color: var(--surface); }
.maps { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.maps-head { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 14px; padding: 10px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 550; color: var(--muted); }
.map-row { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background .15s; }
.map-row:last-child { border-bottom: 0; }
.map-row.is-skipped .map-col { opacity: .55; }
.map-col-name { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); word-break: break-word; }
.map-col-sample { margin-top: 3px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-arrow { color: var(--faint); display: grid; place-items: center; }
.map-row .select.is-set { border-color: var(--line-strong); }
.map-row .select.is-ai { border-color: var(--accent-line); background-color: color-mix(in srgb, var(--accent-soft) 50%, var(--surface)); }
@media (max-width: 640px) {
  .maps-head { display: none; }
  .map-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 16px; }
  .map-arrow { display: none; }
}
.preview-card { padding: 18px; }
.preview-top { display: flex; gap: 12px; align-items: center; }
.preview-top .avatar { width: 44px; height: 44px; font-size: 15px; }
.preview-name { font-weight: 600; font-size: 16px; letter-spacing: -0.015em; }
.preview-sub { font-size: 13px; color: var(--muted); }
.preview-lines { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 13.5px; }
.preview-lines li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--ink-2); word-break: break-word; }
.preview-lines .i { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; }
.preview-empty { color: var(--faint); font-style: italic; }
.preview-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.action-bar { position: sticky; bottom: 0; z-index: 20; margin-top: 20px; padding: 14px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.action-bar .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 640px) { .action-bar .btn { width: 100%; } .action-bar .hint { display: none; } }
.run { display: grid; gap: 10px; }
.run-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.run-count { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.choice-title, .choice-desc { display: block; }

/* ---------- Contact viewer ---------- */
.vtoolbar { position: sticky; top: var(--header-h); z-index: 30; margin: 0 calc(var(--gutter) * -1); padding: 12px var(--gutter); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vsearch { position: relative; flex: 1 1 260px; max-width: 420px; }
.vsearch .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; pointer-events: none; }
.vsearch .input { padding-left: 36px; }
.vsel { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.vsel b { color: var(--ink); font-weight: 600; }
.vtoolbar .spacer { flex: 1 1 auto; }
@media (max-width: 720px) { .vtoolbar .spacer { display: none; } .vsearch { max-width: none; flex-basis: 100%; } }

.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 240px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); display: grid; gap: 2px; }
.menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: none; text-align: left; font-size: 14px; color: var(--ink); cursor: pointer; }
.menu-list button:hover:not(:disabled) { background: var(--surface-sunk); }
.menu-list button:disabled { color: var(--faint); cursor: not-allowed; }
.menu-list small { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.menu-list hr { border: 0; height: 1px; background: var(--line); margin: 4px 2px; }
@media (max-width: 520px) { .menu-list { right: auto; left: 0; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 20px; }
.ccard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s; }
.ccard:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.ccard.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ccard-top { display: flex; gap: 12px; align-items: flex-start; padding: 16px 16px 12px; }
.ccard .avatar { width: 46px; height: 46px; font-size: 15px; }
.ccard-id { min-width: 0; flex: 1 1 auto; }
.ccard-name { font-weight: 600; font-size: 15px; letter-spacing: -0.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard-check { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex: 0 0 auto; }
.ccard-lines { list-style: none; margin: 0; padding: 0 16px 14px; display: grid; gap: 7px; font-size: 13.5px; color: var(--ink-2); flex: 1 1 auto; }
.ccard-lines li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: center; }
.ccard-lines li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard-lines .i { width: 15px; height: 15px; color: var(--faint); }
.ccard-lines .mono { font-size: 12.5px; }
.ccard-foot { display: flex; gap: 4px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.ccard-foot .btn { flex: 1 1 0; }
.ccard-name .badge { height: 20px; font-size: 11px; vertical-align: 1px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; margin-top: 28px; }
.pager button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 550; cursor: pointer; }
.pager button:hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface-2); }
.pager button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .gap { color: var(--muted); padding: 0 4px; }
.pager-info { text-align: center; margin-top: 10px; font-size: 13px; color: var(--muted); }

.empty { display: grid; place-items: center; text-align: center; gap: 10px; padding: clamp(48px, 8vw, 96px) 20px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface-2); margin-top: 20px; }
.empty .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }

.qr-box { display: grid; place-items: center; padding: 16px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); }
.qr-box svg { width: min(280px, 70vw); height: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.photo-edit { display: flex; align-items: center; gap: 14px; }
.photo-edit .avatar { width: 64px; height: 64px; font-size: 20px; }
dialog.modal .modal-head { position: sticky; top: 0; z-index: 2; background: var(--surface); }
dialog.modal .modal-foot { position: sticky; bottom: 0; z-index: 2; }

/* ---------- Legal / prose ---------- */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 20px); font-size: 13.5px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); }
.legal-toc a:hover { color: var(--ink); border-left-color: var(--ink); }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; gap: 20px; } .legal-toc { position: static; } .legal-toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-left: 0; } .legal-toc a { padding-left: 0; border-left: 0; } }
.prose { max-width: 760px; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.3rem; margin: 2.2em 0 .6em; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h3 { font-size: 1.02rem; margin: 1.6em 0 .4em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin: .3em 0; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose section + section, .prose div + div { margin-top: 0; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* Mobile fixes */
.map-row > *, .map-col { min-width: 0; }
@media (max-width: 640px) {
  .action-bar { padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
  .action-bar .card-pad { padding: 10px; box-shadow: var(--shadow-lg); }
  #actionIdle { display: none; }
  .steps li + li::before { width: 10px; }
  .steps { gap: 6px; font-size: 12.5px; }
}


/* ==========================================================================
   Brand layer: one accent, solid surfaces, colour where it carries meaning
   ========================================================================== */
html, body { overflow-x: clip; }
.brand-mark { background: var(--accent); color: #fff; }
.eyebrow::before { background: var(--accent); }
.btn-primary { background: var(--accent); color: #fff; border: 0; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); color: #fff; }
.btn-primary .i { stroke: #fff; }
.btn-accent { background: var(--accent); color: #fff; border: 0; }
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); color: #fff; }
.btn-secondary:hover:not(:disabled) { border-color: var(--accent-line); color: var(--accent); background: var(--surface); }
.btn-ghost:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.header-cta { background: var(--accent) !important; color: #fff !important; border: 0; }
.header-cta .i { stroke: #fff; }
.checks .i { color: var(--success); }
.formats span { color: var(--muted); }
.tool-card { box-shadow: var(--shadow-lg); }
.tab[aria-selected="true"] { color: var(--accent); }
.tab[aria-selected="true"] .i { stroke: var(--accent); }
.drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.drop.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.drop-icon { background: var(--accent-soft); color: var(--accent); border: 0; box-shadow: none; }
.drop-icon .i { stroke: var(--accent); }
.file-ico.is-vcf { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.progress { background: var(--accent-soft); }
.progress-bar { background: var(--accent); }
.steps .is-done .step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps .is-current .step-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.steps .is-current { color: var(--ink); }
.how-step .num { color: var(--accent); font-weight: 600; }
.art-map > span:last-child { border-color: var(--accent-line); color: var(--accent); }
.tool-item .ico { border: 0; background: var(--accent-soft); color: var(--accent); }
.tool-item .ico .i { stroke: var(--accent); }
.tool-item:hover { background: var(--surface-2); }
.faq summary .i { color: var(--accent); }
.cta { background: #1a1a30; color: #fff; }
.cta h2 { color: #fff; } .cta p { color: rgba(255, 255, 255, .72); }
.cta .btn { background: #fff; color: #1a1a30; }
.cta .btn:hover { background: #f1f1f6; color: #1a1a30; }
.site-footer { background: var(--surface); }
.avatar { background: var(--accent-soft); color: var(--accent); }
.notice-info { color: var(--accent); }
.map-row .select.is-ai { background-color: var(--accent-soft); border-color: var(--accent-line); }
.map-arrow { color: var(--faint); }
.ccard.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ccard-foot .btn:hover { color: var(--accent); background: var(--accent-soft); }
.pager button[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.menu-list button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.empty .ico { color: var(--accent); background: var(--accent-soft); border: 0; }
.legal-toc a:hover { border-left-color: var(--accent); color: var(--accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-accent, :root:not([data-theme="light"]) .header-cta { color: var(--accent-ink) !important; }
  :root:not([data-theme="light"]) .btn-primary .i, :root:not([data-theme="light"]) .header-cta .i { stroke: var(--accent-ink); }
  :root:not([data-theme="light"]) .cta { background: var(--surface-sunk); border: 1px solid var(--line); }
}

/* ---------- Tool landing pages ---------- */
.crumbs { display: flex; gap: 8px; align-items: center; padding: 18px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--ink-2); }
.tool-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 56px); align-items: start; padding: clamp(16px, 3vw, 36px) 0 clamp(36px, 6vw, 64px); }
@media (max-width: 1000px) { .tool-hero { grid-template-columns: 1fr; } }
.how-list { list-style: none; margin: 0; padding: 0; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 0; }
.facts-grid > div { grid-template-columns: 130px 1fr; border-top: 1px solid var(--line); border-bottom: 0; }
@media (max-width: 760px) { .facts-grid { grid-template-columns: 1fr; } }
.prose-wide h2 { margin-top: 1.6em; } .prose-wide h2:first-child { margin-top: 0; } .prose-wide p { margin-top: .5em; }
