/* Media Extractor — site styles (navy + lime, light & dark) */
:root {
  --navy: #233f89; --navy-2: #2d4ea6; --navy-deep: #16234d; --hero: #1d3577;
  --lime: #cbdb31; --lime-dark: #b5c41f; --lime-soft: #f3f7d0; --lime-ink: #4d5a06;
  --ink: #111a33; --ink-2: #2a3352; --muted: #5f6987; --line: #e4e8f2; --line-2: #d3daee;
  --bg: #f7f8fc; --bg-2: #eef1f8; --card: #ffffff; --chip: #ffffff; --code: #eef1f8;
  --danger: #c2410c; --danger-soft: #fdeee6; --ok: #2f7a3a;
  --footer: #0f1838; --footer-text: #b8c1dd;
  --shadow-sm: 0 1px 2px rgba(17, 26, 51, .06);
  --shadow: 0 10px 30px -14px rgba(17, 26, 51, .22);
  --shadow-lg: 0 30px 60px -24px rgba(17, 26, 51, .45);
  --head: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 16px; --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #8ea6ff; --navy-2: #a9bbff; --navy-deep: #0b1230; --hero: #101a3f;
    --lime-soft: #2a3010; --lime-ink: #dbe86a;
    --ink: #e8ecf8; --ink-2: #c9d0e6; --muted: #98a2c0; --line: #232d4d; --line-2: #2f3a60;
    --bg: #0b1024; --bg-2: #10173a; --card: #141c3d; --chip: #18214a; --code: #1b2550;
    --danger: #ff9a6b; --danger-soft: #3a1a10;
    --footer: #070b1c; --footer-text: #9aa4c4;
    --shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy: #8ea6ff; --navy-2: #a9bbff; --navy-deep: #0b1230; --hero: #101a3f;
  --lime-soft: #2a3010; --lime-ink: #dbe86a;
  --ink: #e8ecf8; --ink-2: #c9d0e6; --muted: #98a2c0; --line: #232d4d; --line-2: #2f3a60;
  --bg: #0b1024; --bg-2: #10173a; --card: #141c3d; --chip: #18214a; --code: #1b2550;
  --danger: #ff9a6b; --danger-soft: #3a1a10;
  --footer: #070b1c; --footer-text: #9aa4c4;
  --shadow: 0 10px 30px -14px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ── base ── */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
code { font-family: var(--mono); font-size: .88em; background: var(--code); padding: .12em .4em; border-radius: 6px; overflow-wrap: anywhere; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
.i { width: 18px; height: 18px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--lime); color: #111a33; padding: 10px 14px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 6px; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink);
  border-radius: 12px; padding: 10px 16px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s, border-color .15s, background .15s; }
.btn:hover { border-color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn-lime { background: var(--lime); border-color: var(--lime); color: #1a2a5c; }
.btn-lime:hover { background: var(--lime-dark); border-color: var(--lime-dark); }
.btn-navy { background: #233f89; border-color: #233f89; color: #fff; }
.btn-navy:hover { background: #2d4ea6; border-color: #2d4ea6; }
.btn-big { padding: 14px 24px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.14); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ── pills ── */
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; padding: 5px 12px; border-radius: 999px;
  background: rgba(203, 219, 49, .16); color: var(--lime); border: 1px solid rgba(203, 219, 49, .35); }
.pill.soft { background: var(--lime-soft); color: var(--lime-ink); border-color: transparent; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(203,219,49,.25); }
.hl { color: var(--lime); }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(29, 53, 119, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08); }
:root[data-theme="dark"] .site-header { background: rgba(11, 16, 36, .88); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header { background: rgba(11, 16, 36, .88); } }
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; margin-right: auto; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--lime); color: #1d3577; display: grid; place-items: center; flex: none; box-shadow: 0 6px 16px -6px rgba(203,219,49,.6); }
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { display: block; font: 800 18px/1.1 var(--head); letter-spacing: -.02em; }
.brand-tag { display: block; font-size: 11.5px; color: #b8c1dd; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: #dfe5f6; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:not(.btn):hover, .nav a.on { color: #fff; background: rgba(255,255,255,.1); }
.nav .btn { margin-left: 8px; }
.theme-btn .i:last-child { display: none; }
:root[data-theme="dark"] .theme-btn .i:first-child { display: none; }
:root[data-theme="dark"] .theme-btn .i:last-child { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i:first-child { display: none; }
  :root:not([data-theme="light"]) .theme-btn .i:last-child { display: block; }
}
.menu-btn { display: none; }

/* ── hero + tool ── */
.hero { background: radial-gradient(900px 420px at 50% -10%, rgba(203,219,49,.18), transparent 65%),
                    radial-gradient(700px 400px at 100% 100%, rgba(120,150,255,.18), transparent 60%), var(--hero);
  color: #fff; padding: 64px 0 0; position: relative; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: var(--bg); }
.hero-inner { text-align: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.6vw, 62px); font-weight: 800; letter-spacing: -.035em; margin: 18px auto 0; max-width: 880px; }
.hero-sub { color: #c6cee8; font-size: clamp(16px, 2vw, 20px); max-width: 680px; margin: 16px auto 0; }
.tool { max-width: 860px; margin: 38px auto 0; padding: 0 20px; position: relative; z-index: 2; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  background: rgba(255,255,255,.12); color: #e4e9f8; padding: 11px 18px; border-radius: 13px 13px 0 0; transition: background .15s; }
.tabs button:hover { background: rgba(255,255,255,.2); }
.tabs button.on { background: var(--card); color: var(--ink); }
.tabs .new { font-size: 10px; font-weight: 800; letter-spacing: .05em; color: #4d5a06; background: var(--lime); padding: 1px 6px; border-radius: 5px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.tool-card { border-radius: 0 18px 18px 18px; padding: 22px; box-shadow: var(--shadow-lg); border: 0; }
.row { display: flex; gap: 12px; }
.field { flex: 1; display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 0 16px; background: var(--card); color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(35, 63, 137, .12); }
.field input { flex: 1; border: 0; outline: 0; padding: 15px 0; color: var(--ink); min-width: 0; background: transparent; font-size: 16px; }
textarea { width: 100%; min-height: 170px; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 12px 14px; font: 13px/1.5 var(--mono); resize: vertical; outline: 0; background: var(--card); color: var(--ink); }
textarea:focus { border-color: var(--navy); }
.hint { color: var(--muted); font-size: 14px; margin: 12px 2px 0; }
.status { margin-top: 14px; font-size: 14.5px; padding: 11px 14px; border-radius: 11px; background: var(--bg-2); color: var(--ink); }
.status.err { background: var(--danger-soft); color: var(--danger); }
.status.ok { background: var(--lime-soft); color: var(--lime-ink); }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; vertical-align: -2px; margin-right: 8px; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.bm-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 22px; align-items: center; }
.bm { display: inline-flex; align-items: center; gap: 9px; background: var(--lime); color: #1a2a5c; padding: 13px 22px; border-radius: 13px; font-weight: 800; text-decoration: none; cursor: grab; border: 2px dashed #233f89; }
.steps { margin: 0; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); }
.steps li { margin: 6px 0; }
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 0; margin: 18px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .i { color: var(--ok); width: 16px; height: 16px; }
:root[data-theme="dark"] .trust .i { color: var(--lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .trust .i { color: var(--lime); } }

/* ── results ── */
.results { margin-top: 40px; margin-bottom: 20px; }
.rbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.rbar h2 { margin: 0 auto 0 0; font-size: 26px; }
.rbar-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { border: 1.5px solid var(--line-2); background: var(--chip); border-radius: 999px; padding: 7px 15px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--navy); }
.chip.on { background: #233f89; border-color: #233f89; color: #fff; }
.chip small { opacity: .7; margin-left: 5px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; }
.filters .field { max-width: 340px; }
.filters .field input { padding: 10px 0; font-size: 15px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.check input { accent-color: #233f89; width: 17px; height: 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.item { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; position: relative; transition: box-shadow .15s, transform .15s; }
.item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.item.sel { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; }
.thumb { aspect-ratio: 4/3; background: var(--bg-2) repeating-conic-gradient(rgba(127,140,180,.12) 0 25%, transparent 0 50%) 0 0/18px 18px; display: grid; place-items: center; cursor: zoom-in; overflow: hidden; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: contain; }
.ph { font: 800 12.5px var(--head); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; text-align: center; padding: 8px; }
.tag { position: absolute; top: 8px; left: 8px; background: rgba(17,26,51,.8); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; z-index: 1; }
.ck { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; accent-color: #233f89; z-index: 1; cursor: pointer; }
.item .meta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.name { font-size: 13px; font-weight: 600; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sub { font-size: 12px; color: var(--muted); }
.acts { display: flex; gap: 6px; margin-top: auto; }
.ib { flex: 1; display: grid; place-items: center; height: 34px; border: 1.5px solid var(--line-2); border-radius: 9px; background: var(--card); cursor: pointer; color: var(--ink); text-decoration: none; }
.ib:hover { border-color: var(--navy); color: var(--navy); }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* modal + toast */
.modal { position: fixed; inset: 0; background: rgba(6, 10, 26, .82); display: grid; place-items: center; z-index: 60; padding: 16px; }
.mbox { background: var(--card); border-radius: 18px; max-width: 920px; width: 100%; max-height: 92vh; overflow: auto; padding: 16px; }
.mview { background: var(--bg-2); border-radius: 12px; display: grid; place-items: center; min-height: 200px; }
.mview img, .mview video { max-width: 100%; max-height: 64vh; display: block; }
.mview audio { width: 100%; margin: 40px 16px; }
.mview iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; }
.mi { padding: 24px; color: var(--muted); text-align: center; }
.murl { font: 12.5px var(--mono); word-break: break-all; color: var(--muted); margin: 12px 0; }
.mbox .acts { flex-wrap: wrap; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #111a33; color: #fff; padding: 11px 18px; border-radius: 11px; font-size: 14px; z-index: 70; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* ── sections ── */
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 14px 0 10px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat, .use { padding: 26px; transition: box-shadow .2s, transform .2s; }
.feat:hover, .use:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feat h3, .use h3 { font-size: 19px; margin: 16px 0 8px; }
.use h3 { margin-top: 0; }
.feat p, .use p { color: var(--muted); margin: 0; font-size: 15.5px; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.ico svg { width: 24px; height: 24px; }
.ico-a { background: #e7ecff; color: #233f89; } .ico-b { background: #fde8e1; color: #c2410c; } .ico-c { background: #efe7ff; color: #6b3fd1; }
.ico-d { background: #e2f5ea; color: #217a45; } .ico-e { background: #fff3d6; color: #a06400; } .ico-f { background: var(--lime-soft); color: #5a6907; }
:root[data-theme="dark"] .ico { filter: saturate(1.2) brightness(.9); background: var(--code); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico { background: var(--code); } }
.steps-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps-row li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; position: relative; }
.steps-row h3 { margin: 16px 0 8px; font-size: 19px; }
.steps-row p { margin: 0; color: var(--muted); }
.num { width: 44px; height: 44px; border-radius: 50%; background: #233f89; color: var(--lime); display: grid; place-items: center; font: 800 19px var(--head); }
.modes { margin-top: 22px; }
.modes .card { padding: 24px; overflow-x: auto; }
.modes h3 { margin: 0 0 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.two-col .section-head { margin-bottom: 0; }
.two-col .section-head p { margin-bottom: 22px; }
.format-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 22px; box-shadow: var(--shadow); }
.fmt-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.fmt-row:last-child { border-bottom: 0; }
.fmt-k { font-weight: 700; }
.fmt-v { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fmt-v b { font-size: 13px; font-weight: 600; background: var(--bg-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 7px; }
.fmt-v em { font-size: 13px; color: var(--muted); }
.callout { background: var(--lime-soft); border-left: 4px solid var(--lime); padding: 14px 18px; border-radius: 10px; margin: 20px 0; color: var(--ink); }
.callout.navy { background: rgba(35, 63, 137, .08); border-left-color: var(--navy); }
.center-callout { margin: 28px auto 0; max-width: 820px; }

/* guide cards */
.gcard { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; height: 100%; transition: box-shadow .2s, transform .2s; }
.gcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.gthumb { height: 120px; display: grid; place-items: center; position: relative; overflow: hidden; }
.gthumb svg { width: 46px; height: 46px; position: relative; }
.gthumb::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -40px; top: -70px; background: rgba(255,255,255,.14); }
.t1 { background: linear-gradient(135deg, #233f89, #3d5fc4); color: var(--lime); }
.t2 { background: linear-gradient(135deg, #5b3fc9, #8b6cf0); color: #fff; }
.t3 { background: linear-gradient(135deg, #1f7a5a, #34b28a); color: #fff; }
.t4 { background: linear-gradient(135deg, #b1450f, #ec7a3c); color: #fff; }
.gbody { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gtag { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gtitle { font: 700 18.5px/1.3 var(--head); letter-spacing: -.01em; }
.gdesc { color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gmore { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--navy); font-size: 14.5px; }
.guide-chips { margin-bottom: 26px; }

/* faq */
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq-list details[open] { box-shadow: var(--shadow); }
.faq-list summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; padding: 18px 30px 18px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 18px; color: var(--ink-2); }

.cta-band { background: radial-gradient(500px 240px at 90% 0%, rgba(203,219,49,.25), transparent 70%), #233f89; color: #fff; border-radius: 24px; padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin: 0; color: #c6cee8; }

/* ── inner pages ── */
.page-hero { background: radial-gradient(700px 300px at 85% -20%, rgba(203,219,49,.16), transparent 70%), var(--hero); color: #fff; padding: 52px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 48px); margin: 14px 0 12px; max-width: 900px; letter-spacing: -.03em; }
.page-hero p { color: #c6cee8; font-size: 18px; max-width: 760px; margin: 0; }
.page-hero .meta { margin-top: 16px; color: #b8c1dd; font-size: 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: #b8c1dd; margin-bottom: 4px; }
.crumbs a { color: #e3e8f7; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 14.5px; color: #e3e8f7; line-height: 1.4; }
.byline a { color: #fff; }
.byline small { color: #b8c1dd; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--lime); color: #1d3577; display: grid; place-items: center; font: 800 18px var(--head); }
.nf { text-align: center; padding: 110px 0; }
.nf h1, .nf p { margin-left: auto; margin-right: auto; }
.nf-acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.nf .btn:not(.btn-lime) { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
.prose { font-size: 17.5px; line-height: 1.75; color: var(--ink-2); min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 28px; margin: 44px 0 14px; }
.prose h3 { font-size: 21px; margin: 30px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--navy); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0 26px; font-size: 15.5px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-2); color: var(--ink); }
.prose pre { background: #0f1838; color: #e3e8f7; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.prose img { border-radius: 12px; }
.toc { position: sticky; top: 92px; display: grid; gap: 16px; }
.toc .card { padding: 22px; }
.toc h2, .toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; font-family: var(--body); }
.toc ol { margin: 0; padding-left: 20px; font-size: 14.5px; }
.toc li { margin: 7px 0; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--navy); }
.toc .cta { background: #233f89; border: 0; color: #fff; }
.toc .cta h3 { color: #fff; margin: 0 0 6px; }
.toc .cta p { color: #c6cee8; margin: 0 0 16px; font-size: 15px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; }
.share span { font-weight: 700; color: var(--ink); margin-right: 4px; }
.share a, .share button { border: 1.5px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--ink); font-weight: 600; cursor: pointer; font-size: 14px; }
.share a:hover, .share button:hover { border-color: var(--navy); }
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.prevnext a { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px 18px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15.5px; line-height: 1.35; }
.prevnext a:hover { border-color: var(--navy); }
.prevnext small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.prevnext .nx { text-align: right; }
.form-grid { display: grid; gap: 14px; margin: 20px 0 30px; }
.form-grid label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.form-grid input, .form-grid select, .form-grid textarea { border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; background: var(--card); font: 16px var(--body); color: var(--ink); outline: 0; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--navy); }

/* ── footer ── */
.site-footer { background: var(--footer); color: var(--footer-text); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 36px; }
.site-footer h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; margin: 6px 0 14px; font-family: var(--body); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 9px 0; }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin: 16px 0; max-width: 340px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badges span { font-size: 12.5px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 4px 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; font-size: 14px; }

/* ── responsive ── */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 860px) {
  .steps-row { grid-template-columns: 1fr; }
  .bm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap, .tool { padding: 0 16px; }
  .hero { padding-top: 40px; }
  .row { flex-direction: column; }
  .tool-card { padding: 16px; border-radius: 0 16px 16px 16px; }
  .tabs button { padding: 10px 12px; font-size: 13.5px; }
  .tabs button .i, .tabs .new { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .rbar h2 { width: 100%; font-size: 22px; }
  .rbar-acts .btn { padding: 9px 12px; font-size: 14px; }
  .cta-band { padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 24px; }
  .prevnext { grid-template-columns: 1fr; }
  .prevnext .nx { text-align: left; }
  .brand-tag { display: none; }
  .fmt-row { grid-template-columns: 1fr; gap: 8px; }
  .modes .table, .modes .table tbody, .modes .table tr, .modes .table td { display: block; width: 100%; }
  .modes .table tr:first-child { display: none; }
  .modes .table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .modes .table td { border: 0; padding: 2px 0; }
  .modes .table td:nth-child(3) { color: var(--muted); font-size: 14px; }
  .filters .field { max-width: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .toc, .share, .prevnext, .tool { display: none !important; } }

/* ── simple landing page ── */
.s-wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.s-hero { position: relative; text-align: center; padding: 76px 0 0; color: #fff;
  background: radial-gradient(560px 260px at 50% 42%, rgba(203,219,49,.16), transparent 70%),
              radial-gradient(500px 320px at 100% 90%, rgba(130,160,255,.22), transparent 70%), var(--hero); }
.s-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(transparent, #000 25%, transparent 85%); mask-image: linear-gradient(transparent, #000 25%, transparent 85%); }
.s-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; background: var(--bg); }
.s-hero .s-wrap { position: relative; z-index: 1; }
.s-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #e6ebfa; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.s-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(203,219,49,.22); }
.s-hero h1 { color: #fff; font-size: clamp(32px, 5.4vw, 56px); font-weight: 800; letter-spacing: -.035em; margin: 20px 0 0; text-wrap: balance; }
.s-sub { color: #c6cee8; font-size: clamp(16px, 2vw, 19px); margin: 14px 0 34px; }
.s-tool { text-align: left; background: var(--card); color: var(--ink); border-radius: 20px; padding: 18px; box-shadow: 0 30px 70px -24px rgba(8, 14, 40, .55), 0 0 0 1px rgba(255,255,255,.06); }
.s-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.s-tabs button { border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 14.5px; padding: 7px 13px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.s-tabs button:hover { color: var(--ink); }
.s-tabs button.on { background: var(--bg-2); color: var(--ink); }
.s-row { display: flex; gap: 10px; }
.s-input { flex: 1; min-width: 0; border: 1.5px solid var(--line-2); border-radius: 13px; padding: 15px 16px; font-size: 16px; background: var(--card); color: var(--ink); outline: 0; transition: border-color .15s, box-shadow .15s; }
.s-input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(35,63,137,.12); }
.s-go { padding: 15px 28px; font-size: 16px; font-weight: 700; border-radius: 13px; box-shadow: 0 8px 20px -8px rgba(181,196,31,.8); }
.s-bm-text { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.s-formats { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 0; padding-bottom: 8px; }
.s-formats span { font: 600 12px var(--mono); color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 4px 9px; border-radius: 7px; }
.s-block { padding: 64px 0; }
.s-block + .s-block { border-top: 1px solid var(--line); }
.s-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lime-ink); background: var(--lime-soft); padding: 4px 10px; border-radius: 999px; }
.s-block h2 { font-size: clamp(24px, 3vw, 30px); margin: 12px 0 26px; }
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.s-steps li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 4px; }
.s-steps .n { width: 34px; height: 34px; border-radius: 50%; background: #233f89; color: var(--lime); display: grid; place-items: center; font: 800 15px var(--head); margin-bottom: 10px; }
.s-steps b { font-size: 16.5px; color: var(--ink); }
.s-steps li > span:last-child { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.s-note { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.s-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-links a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 14px 16px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.35;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, transform .15s; }
.s-links a:hover { border-color: var(--navy); transform: translateY(-2px); }
.s-links small { grid-column: 1; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.s-links .arr { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--navy); transition: transform .15s; }
.s-links a:hover .arr { transform: translateX(3px); }
.s-more { display: inline-block; margin-top: 18px; font-weight: 700; text-decoration: none; }
.s-faq { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.s-faq details + details { border-top: 1px solid var(--line); }
.s-faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 17px 30px 17px 0; position: relative; }
.s-faq summary::-webkit-details-marker { display: none; }
.s-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; font-size: 16px; color: var(--ink); line-height: 24px; text-align: center; }
.s-faq details[open] summary::after { content: "−"; background: var(--lime); color: #1a2a5c; }
.s-faq p { margin: 0 0 18px; color: var(--ink-2); }
.f-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.f-copy { text-align: center; margin: 18px 0 0; font-size: 13.5px; }
.site-footer { padding: 36px 0; }

@media (max-width: 640px) {
  .s-hero { padding: 44px 0 0; }
  .s-steps, .s-links { grid-template-columns: 1fr; }
  .s-block { padding: 48px 0; }
  .s-row { flex-direction: column; }
  .s-tool { padding: 14px; }
}

/* ── neat header ── */
.site-header { background: var(--hero); border-bottom: 1px solid transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: box-shadow .2s, border-color .2s; }
:root[data-theme="dark"] .site-header { background: var(--hero); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header { background: var(--hero); } }
.site-header.scrolled { border-bottom-color: rgba(255,255,255,.08); box-shadow: 0 8px 24px -12px rgba(5,10,30,.5); }
.site-header .wrap { height: 64px; gap: 8px; }
.brand { gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: none; }
.brand-mark svg { width: 19px; height: 19px; }
.brand-name { font-size: 17.5px; white-space: nowrap; }
.nav { gap: 2px; margin-right: 6px; }
.nav a:not(.btn) { position: relative; color: #c9d1ec; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s; }
.nav a:not(.btn):hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.on { color: #fff; background: rgba(255,255,255,.1); }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; border: 0; background: rgba(255,255,255,.08); color: #e6ebfa; transition: background .15s; }
.icon-btn:hover { background: rgba(255,255,255,.16); }
.menu-btn { display: none; }
@media (max-width: 640px) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; top: 64px; left: 12px; right: 12px; margin: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { color: var(--ink); border-radius: 10px; padding: 12px 14px; }
  .nav a:not(.btn):hover, .nav a.on { color: var(--ink); background: var(--bg-2); }
}

/* ═════ v2: floating pill header + refreshed landing ═════ */
.site-header, .site-header.scrolled { position: fixed; top: 12px; left: 0; right: 0; background: none !important; border: 0; box-shadow: none; z-index: 50; pointer-events: none; }
.site-header .wrap { pointer-events: auto; max-width: 1080px; height: 60px; margin: 0 auto; padding: 0 10px 0 14px; gap: 6px; position: relative;
  background: rgba(17, 28, 72, .62); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; box-shadow: 0 14px 40px -18px rgba(5,10,35,.6); transition: background .2s; }
.site-header.scrolled .wrap { background: rgba(14, 22, 58, .86); }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; }
.nav { margin: 0 4px 0 auto; }
.nav a:not(.btn) { padding: 8px 14px; font-size: 14.5px; }
.h-cta { padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 700; }
.icon-btn { width: 38px; height: 38px; }
.brand { margin-right: 0; }
.s-hero { padding-top: 150px; }
.page-hero { padding-top: 128px; }
.nf { padding-top: 170px; }
.results { margin-top: 40px; }
[id] { scroll-margin-top: 90px; }

/* hero refresh */
.s-hero { padding-bottom: 0; overflow: hidden; }
.s-hero::after { height: 120px; }
.s-hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.05; }
.s-hero .hl { background: linear-gradient(90deg, #cbdb31, #e6f06e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-sub { font-size: clamp(16px, 2vw, 20px); }
.s-tool { padding: 14px; border-radius: 22px; }
.s-tabs { background: var(--bg-2); padding: 4px; border-radius: 12px; width: fit-content; margin-bottom: 12px; }
.s-tabs button { padding: 7px 14px; border-radius: 9px; font-size: 14px; }
.s-tabs button.on { background: var(--card); box-shadow: 0 1px 3px rgba(17,26,51,.12); }
.s-input { border-radius: 14px; padding: 16px 18px; background: var(--bg); }
.s-go { border-radius: 14px; padding: 16px 30px; }

/* sample result tiles */
.s-sample { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 28px auto 0; max-width: 760px; padding-bottom: 40px; }
.tile { aspect-ratio: 1; border-radius: 16px; position: relative; overflow: hidden; box-shadow: 0 16px 30px -16px rgba(17,26,51,.45); border: 3px solid var(--card); animation: rise .7s ease both; }
.tile:nth-child(2) { animation-delay: .06s; transform: translateY(10px); } .tile:nth-child(3) { animation-delay: .12s; }
.tile:nth-child(4) { animation-delay: .18s; transform: translateY(10px); } .tile:nth-child(5) { animation-delay: .24s; }
.tile:nth-child(6) { animation-delay: .3s; transform: translateY(10px); }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
.tile span { position: absolute; left: 7px; top: 7px; font: 700 10px var(--mono); color: #fff; background: rgba(10,16,40,.7); padding: 2px 6px; border-radius: 5px; z-index: 1; }
.t-img1 { background: radial-gradient(circle at 72% 28%, #ffe27a 0 14%, transparent 15%), linear-gradient(160deg, #ff9a62, #e0566b 55%, #5b2a86); }
.t-img1::after, .t-img2::after, .t-img3::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -2px; height: 46%; background: rgba(20,24,60,.55); clip-path: polygon(0 100%, 0 55%, 28% 10%, 48% 52%, 68% 22%, 100% 70%, 100% 100%); }
.t-img2 { background: radial-gradient(circle at 30% 30%, #fff 0 10%, transparent 11%), linear-gradient(160deg, #6fd3c1, #2a8f8a 60%, #154a5a); }
.t-img3 { background: radial-gradient(circle at 65% 35%, #f6f0c0 0 12%, transparent 13%), linear-gradient(160deg, #a8b8ff, #5d6fe0 55%, #2a2f7a); }
.t-vid { background: linear-gradient(160deg, #2b3a7a, #121a3d); display: grid; place-items: center; }
.play { width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--lime); position: relative; }
.play::after { content: ""; position: absolute; left: 40%; top: 30%; border-left: 12px solid #1a2a5c; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.t-aud { background: linear-gradient(160deg, #7a4fe0, #3f2a91); display: grid; place-items: center; }
.wave { display: flex; align-items: center; gap: 3px; height: 34%; }
.wave b { width: 4px; border-radius: 2px; background: #fff; opacity: .9; height: 40%; }
.wave b:nth-child(2) { height: 80%; } .wave b:nth-child(3) { height: 55%; } .wave b:nth-child(4) { height: 100%; } .wave b:nth-child(5) { height: 65%; } .wave b:nth-child(6) { height: 85%; } .wave b:nth-child(7) { height: 45%; }
.t-str { background: repeating-linear-gradient(90deg, #233f89 0 18%, #2d4ea6 18% 20%); display: grid; place-items: center; }
.t-str em { font: 700 11px var(--body); font-style: normal; color: var(--lime); text-align: center; }

/* sections refresh */
.s-block { padding: 80px 0; }
.s-block + .s-block { border-top: 0; }
#guides { background: var(--bg-2); }
.s-head { text-align: center; margin-bottom: 34px; }
.s-head h2 { margin: 12px 0 0; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; }
.s-center { text-align: center; }
.s-more { margin-top: 26px; border-radius: 999px; padding: 11px 22px; }
.s-steps { position: relative; gap: 22px; }
.s-steps::before { content: ""; position: absolute; top: 25px; left: 16%; right: 16%; border-top: 2px dashed var(--line-2); }
.s-steps li { background: none; border: 0; padding: 0 8px; text-align: center; justify-items: center; position: relative; }
.s-steps .n { width: 52px; height: 52px; font-size: 20px; background: var(--lime); color: #1a2a5c; margin-bottom: 14px; box-shadow: 0 0 0 8px var(--bg); }
.s-steps b { font-size: 18px; }
.s-note { text-align: center; margin-top: 34px; }
.s-links a { padding: 18px 20px; border-radius: 16px; }
.s-faq { border-radius: 20px; padding: 4px 24px; }

@media (max-width: 860px) { .h-cta { display: none; } }
@media (max-width: 640px) {
  .site-header { top: 8px; }
  .site-header .wrap { margin: 0 10px; height: 56px; padding: 0 8px 0 10px; }
  .nav { top: 64px; left: 0; right: 0; }
  .brand-name { font-size: 16.5px; }
  .s-hero { padding-top: 112px; }
  .page-hero { padding-top: 104px; }
  .s-sample { grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 28px; }
  .tile:nth-child(n) { transform: none; }
  .s-steps::before { display: none; }
  .s-block { padding: 60px 0; }
  .s-tabs { width: 100%; }
  .s-tabs button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } }

.site-header .wrap { max-width: calc(var(--wrap) - 40px); }
.s-tabs button { white-space: nowrap; }
@media (max-width: 640px) {
  .theme-btn { margin-left: auto; }
  .site-header .wrap { max-width: none; }
  .s-tabs button { padding: 8px 6px; font-size: 13.5px; }
}

/* html sitemap */
.sm-wrap { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
.sm-wrap h2 { font-size: 20px; margin: 0 0 14px; }
.sm-wrap h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 8px; font-family: var(--body); }
.sm-wrap h3:first-of-type { margin-top: 0; }
.sm-list { list-style: none; padding: 0; margin: 0; }
.sm-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.sm-list a { text-decoration: none; font-weight: 600; color: var(--ink); }
.sm-list a:hover { color: var(--navy); }
.sm-list small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 900px) { .sm-wrap { grid-template-columns: 1fr; gap: 28px; } }

.err-fix { margin: 8px 0 0; padding-left: 20px; }
.err-fix li { margin: 4px 0; }
.status.err .linkbtn { color: inherit; }

.s-deep { display: flex; align-items: center; gap: 9px; margin: 12px 2px 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.s-deep input { width: 17px; height: 17px; accent-color: #233f89; }
.s-deep b { color: var(--ink); }

/* results v2: specs + filters */
.filters { gap: 10px 12px; }
.f-search { flex: 1 1 220px; max-width: none !important; }
.f-sel { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.f-sel select { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--line-2); border-radius: 11px; padding: 9px 34px 9px 12px; font: 600 14px var(--body); text-transform: none; letter-spacing: 0; color: var(--ink); cursor: pointer;
  background: var(--card) 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='%235f6987' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.f-sel select:focus { outline: 0; border-color: var(--navy); }
.filters .check { align-self: flex-end; padding-bottom: 9px; }
.selbar { position: sticky; top: 84px; z-index: 5; display: flex; align-items: center; gap: 14px; background: #233f89; color: #fff; padding: 10px 16px; border-radius: 12px; margin-bottom: 14px; font-size: 14.5px; box-shadow: var(--shadow); }
.selbar .linkbtn { color: var(--lime); }
.specs { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.specs b { color: var(--ink); font-weight: 700; }
.specs .dim { color: var(--muted); }
.ib-dl { flex: 1.6; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 700; background: var(--lime-soft); border-color: transparent; color: var(--lime-ink); }
.ib-dl:hover { background: var(--lime); color: #1a2a5c; border-color: var(--lime); }
.ib-dl .i { width: 15px; height: 15px; }
.mspecs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.mspecs span { font-size: 13px; font-weight: 600; background: var(--bg-2); border-radius: 7px; padding: 4px 9px; }
@media (max-width: 640px) { .f-sel { flex: 1 1 45%; } .f-sel select { width: 100%; } .filters .check { padding-bottom: 0; } .selbar { top: 72px; } }
.ib-dl span { white-space: nowrap; }
@media (max-width: 640px) {
  .rbar-acts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .rbar-acts .btn { width: 100%; padding: 10px 8px; }
  .item .acts { gap: 4px; }
  .ib-dl { flex: 2; font-size: 11.5px; gap: 3px; }
  .ib-dl .i { width: 13px; height: 13px; }
  .specs { font-size: 12px; }
}
