@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #f8f8fb;
  --surface: #ffffff;
  --surface-2: #f1f1f6;
  --ink: #12131a;
  --ink-2: #4a4d5c;
  --ink-3: #7c8091;
  --line: #e4e4ec;
  --accent: #5b45f0;
  --accent-2: #a046e8;
  --accent-ink: #ffffff;
  --accent-soft: #efecff;
  --grad: linear-gradient(120deg, #5b45f0 0%, #8b46ea 55%, #c147d6 100%);
  --good: #12804a;
  --good-soft: #e5f6ec;
  --warn: #b45309;
  --bad: #c0262d;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18, 19, 40, .04), 0 8px 30px rgba(18, 19, 40, .07);
  --shadow-lg: 0 2px 4px rgba(18, 19, 40, .05), 0 22px 60px rgba(60, 40, 160, .14);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --glow-1: rgba(91, 69, 240, .16);
  --glow-2: rgba(193, 71, 214, .12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0e14; --surface: #161722; --surface-2: #1f2030; --ink: #eeeef4; --ink-2: #b3b5c6; --ink-3: #868aa0;
    --line: #2a2c3d; --accent: #8f7dff; --accent-2: #c58af9; --accent-ink: #0d0e14; --accent-soft: #241f4a;
    --grad: linear-gradient(120deg, #7c68ff 0%, #a76cf5 55%, #dd78e6 100%);
    --good: #4ade80; --good-soft: #13291d; --warn: #fbbf24; --bad: #f87171;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 30px rgba(0,0,0,.3); --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 22px 60px rgba(0,0,0,.45);
    --glow-1: rgba(124, 104, 255, .18); --glow-2: rgba(221, 120, 230, .10); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0e14; --surface: #161722; --surface-2: #1f2030; --ink: #eeeef4; --ink-2: #b3b5c6; --ink-3: #868aa0;
  --line: #2a2c3d; --accent: #8f7dff; --accent-2: #c58af9; --accent-ink: #0d0e14; --accent-soft: #241f4a;
  --grad: linear-gradient(120deg, #7c68ff 0%, #a76cf5 55%, #dd78e6 100%);
  --good: #4ade80; --good-soft: #13291d; --warn: #fbbf24; --bad: #f87171;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 30px rgba(0,0,0,.3); --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 22px 60px rgba(0,0,0,.45);
  --glow-1: rgba(124, 104, 255, .18); --glow-2: rgba(221, 120, 230, .10); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 16px/1.6 var(--font); font-feature-settings: "cv11", "ss01";
  background:
    radial-gradient(900px 480px at 12% -120px, var(--glow-1), transparent 70%),
    radial-gradient(800px 420px at 92% -80px, var(--glow-2), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
img, canvas { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: 1.5rem; margin-top: 1.8em; }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 550; padding: 7px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.icon-btn { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); width: 38px; height: 38px; border-radius: 999px; cursor: pointer; display: grid; place-items: center; margin-left: 6px; }
.icon-btn:hover { color: var(--ink); }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: grid; margin-left: auto; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 10px; }
  .nav .icon-btn { align-self: flex-start; margin: 6px 0 0; }
}

/* ---------- Buttons & inputs ---------- */
.btn { font: inherit; font-weight: 650; font-size: .94rem; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .12s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { filter: brightness(1.06); box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.small { padding: 7px 13px; font-size: .85rem; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
select, input[type="number"] { font: inherit; font-size: .94rem; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); min-height: 42px; }
input[type="number"] { width: 110px; }
input[type="range"] { accent-color: var(--accent); width: 100%; height: 26px; }
.check { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { accent-color: var(--accent); width: 17px; height: 17px; }

/* ---------- Hero ---------- */
.hero { padding: 26px 0 8px; }
.hero.home { padding: 56px 0 10px; text-align: center; }
.hero.home h1 { font-size: clamp(2.3rem, 6vw, 4rem); max-width: 860px; margin: 0 auto .35em; }
.hero p.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 700px; }
.hero.home p.lead { margin: 0 auto 1.4em; font-size: 1.18rem; }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 650; color: var(--good); background: var(--good-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.badge svg { width: 15px; height: 15px; }
.breadcrumbs { font-size: .84rem; color: var(--ink-3); padding-top: 20px; }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.tool-switch { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; margin-top: 4px; }
.tool-switch::-webkit-scrollbar { display: none; }
.tool-switch a { flex: none; font-size: .86rem; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.tool-switch a:hover { border-color: var(--accent); color: var(--accent); }
.tool-switch a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Panel / dropzone ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 18px; margin: 18px 0 8px; }
.dropzone { position: relative; border: 2px dashed color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 18px; padding: 44px 18px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 55%, transparent), transparent); }
.dropzone:hover { border-color: var(--accent); }
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.01); }
.dropzone .dz-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.dropzone .dz-icon svg { width: 30px; height: 30px; }
.dropzone strong { display: block; font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: 4px; }
.dropzone small { color: var(--ink-3); font-size: .88rem; }
.dropzone .btn { margin: 16px auto 0; pointer-events: none; }
.dropzone.compact { padding: 14px; display: flex; align-items: center; gap: 12px; justify-content: center; text-align: left; }
.dropzone.compact .dz-icon { width: 36px; height: 36px; border-radius: 11px; margin: 0; box-shadow: none; }
.dropzone.compact .dz-icon svg { width: 18px; height: 18px; }
.dropzone.compact strong { font-size: .98rem; margin: 0; }
.dropzone.compact small, .dropzone.compact .btn { display: none; }
.privacy-note { display: flex; gap: 7px; align-items: center; justify-content: center; color: var(--ink-3); font-size: .84rem; margin: 10px 0 0; }
.privacy-note svg { width: 14px; height: 14px; color: var(--good); flex: none; }

.controls { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; margin: 18px 0 4px; padding: 14px; border-radius: 16px; background: var(--surface-2); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; }
.field label, .field .lbl { font-size: .8rem; font-weight: 650; color: var(--ink-2); }
.field output { font-family: var(--mono); font-size: .8rem; color: var(--accent); margin-left: 6px; font-weight: 600; }
.inline { display: flex; gap: 8px; align-items: center; }

/* ---------- File list ---------- */
.files { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.file { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.file .thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2); border: 0; padding: 0; cursor: zoom-in; overflow: hidden; }
.file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file .meta { min-width: 0; }
.file .name { font-weight: 650; font-size: .93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .sizes { font-size: .83rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: .76rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.pill.good { color: var(--good); background: var(--good-soft); }
.pill.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.file .err { color: var(--bad); font-size: .85rem; }
.file .bar { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 7px; }
.file .bar i { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 4px; animation: slide 1.1s infinite ease-in-out; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (max-width: 560px) { .file { grid-template-columns: 48px 1fr; } .file .thumb { width: 48px; height: 48px; } .file .actions { grid-column: 1 / -1; } .file .actions .btn { flex: 1; } }
.summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.summary .total { font-size: .93rem; color: var(--ink-2); }
.summary .total b { color: var(--good); }
@media (max-width: 640px) {
  .summary.sticky { position: sticky; bottom: 10px; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
  .summary .btn-row { width: 100%; } .summary .btn-row .btn { flex: 1; }
}
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: center; margin: 12px 0 0; padding: 12px; border-radius: 14px; border: 1px dashed var(--line); font-size: .9rem; color: var(--ink-2); animation: pop .3s ease-out; }

/* ---------- Compare dialog ---------- */
dialog.compare { border: 0; padding: 0; border-radius: 20px; background: var(--surface); color: var(--ink); width: min(1000px, calc(100% - 24px)); box-shadow: var(--shadow-lg); }
dialog.compare::backdrop { background: rgba(8, 8, 16, .65); backdrop-filter: blur(4px); }
.compare-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; font-size: .9rem; }
.compare-stage { position: relative; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 18px 18px; user-select: none; touch-action: none; overflow: hidden; }
.compare-stage img { width: 100%; max-height: 74vh; object-fit: contain; display: block; }
.compare-stage .after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.compare-stage .after img { height: 100%; }
.compare-stage .handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.compare-stage .handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #222; display: grid; place-items: center; font-size: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.compare-stage .tag { position: absolute; top: 10px; font-size: .75rem; font-weight: 700; background: rgba(0,0,0,.6); color: #fff; padding: 3px 9px; border-radius: 999px; }
.compare-stage .tag.l { left: 10px; } .compare-stage .tag.r { right: 10px; }

/* ---------- Home: universal drop + picker ---------- */
.home-drop { max-width: 760px; margin: 0 auto; }
.home-drop .panel { margin-top: 6px; }
.picker { margin-top: 14px; }
.picker p { font-weight: 650; margin-bottom: 10px; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.picker-grid button { font: inherit; text-align: left; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .15s, transform .15s; }
.picker-grid button:hover { border-color: var(--accent); transform: translateY(-2px); }
.picker-grid button strong { font-size: .95rem; }
.picker-grid button span { font-size: .8rem; color: var(--ink-3); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; color: var(--ink-3); font-size: .88rem; margin: 18px 0 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 6px; }
.trust svg { width: 15px; height: 15px; color: var(--good); }

.section-title { text-align: center; margin: 56px 0 6px; }
.section-sub { text-align: center; color: var(--ink-2); margin: 0 auto 22px; max-width: 600px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tool-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; display: flex; flex-direction: column; gap: 6px; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tool-card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 8px; }
.tool-card .ic svg { width: 23px; height: 23px; }
.tool-card strong { font-size: 1.06rem; letter-spacing: -.01em; }
.tool-card span { color: var(--ink-2); font-size: .92rem; }
.tool-card .new { position: absolute; top: 16px; right: 16px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--grad); padding: 3px 8px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.chips.center { justify-content: center; }
.chips a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 550; transition: border-color .15s, color .15s; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Negative tool ---------- */
.neg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; margin-top: 16px; scroll-margin-top: 80px; }
@media (max-width: 900px) { .neg-layout { grid-template-columns: 1fr; } }
.stage { background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 20px 20px; border-radius: 16px; border: 1px solid var(--line); display: grid; place-items: center; min-height: 300px; overflow: hidden; position: relative; }
.stage canvas { max-height: 70vh; width: auto; }
.stage.picking canvas { cursor: crosshair; }
.stage .compare-label { position: absolute; top: 10px; left: 10px; font-size: .76rem; font-weight: 700; background: rgba(0,0,0,.6); color: #fff; padding: 3px 10px; border-radius: 999px; }
.side { display: flex; flex-direction: column; gap: 14px; }
.side .field { min-width: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; gap: 4px; border-radius: 14px; background: var(--surface-2); }
.seg button { font: inherit; font-size: .85rem; font-weight: 600; padding: 8px 4px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line); vertical-align: middle; margin-right: 6px; }
.hint { font-size: .84rem; color: var(--ink-3); margin: 0; }
.group-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 750; margin: 6px 0 -4px; }

/* ---------- EXIF tool ---------- */
.exif-card { border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; overflow: hidden; background: var(--surface); animation: pop .25s ease-out; }
.exif-head { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 12px; background: var(--surface-2); }
.exif-head img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--surface); }
@media (max-width: 560px) { .exif-head { grid-template-columns: 56px 1fr; } .exif-head img { width: 56px; height: 56px; } .exif-head > .btn-row { grid-column: 1 / -1; } .exif-head > .btn-row .btn { flex: 1; } }
.alert { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.alert.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.alert.ok { color: var(--good); background: var(--good-soft); }
.exif-body { padding: 4px 14px 12px; }
.exif-body details { border-top: 1px solid var(--line); padding: 9px 0; }
.exif-body details:first-child { border-top: 0; }
.exif-body summary { cursor: pointer; font-weight: 650; font-size: .92rem; }
table.kv { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 6px; table-layout: fixed; }
table.kv td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
table.kv td:first-child { color: var(--ink-3); width: 38%; }

/* ---------- Content ---------- */
.content { padding-block: 10px 30px; }
.content p, .content li { color: var(--ink-2); }
.content strong { color: var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 10px; font-size: .9rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 8px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 14px 0; }
.features div { padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.features h3 { margin-bottom: .3em; }
.features p { font-size: .94rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 26px 0 0; }
.stats div { text-align: center; padding: 18px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.stats b { display: block; font-size: 1.6rem; letter-spacing: -.03em; }
.stats span { font-size: .85rem; color: var(--ink-3); }

/* Article (guides) */
.article { padding-block: 10px 30px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.article p, .article li { font-size: 1.04rem; line-height: 1.75; color: var(--ink-2); }
.article .meta { color: var(--ink-3); font-size: .88rem; margin-bottom: 26px; }
.article .callout { padding: 16px 18px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); margin: 20px 0; }
.article .callout a { font-weight: 650; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.article th, .article td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.article th { color: var(--ink); }
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* ---------- Ads ---------- */
.ad-slot { margin: 26px auto; text-align: center; min-height: 280px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; }
.ad-slot::before { content: "Advertisement"; display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.ad-slot ins { display: block; min-height: 250px; }
@media (max-width: 640px) { .ad-slot { min-height: 300px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 36px 0 44px; color: var(--ink-3); font-size: .9rem; background: color-mix(in srgb, var(--surface) 50%, transparent); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 22px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--ink); margin: 0 0 10px; font-size: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--ink-3); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-size: .92rem; font-weight: 550; z-index: 40; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); animation: pop .2s ease-out; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.picker-grid button > span:first-child { display: flex; }
.picker-grid button svg { width: 22px; height: 22px; }
.dropzone .btn { display: flex; width: max-content; }
