/* DataExportViewer — one stylesheet for every page, English and localized (design B, 25.09.2026; same system as ToolGale,
   teal accent, manila folder tabs on the lists).
   Rules it serves: site-ship SKILL §Вёрстка и UI — one main action per page ([data-primary]), one card size
   ([data-cards]), no clipped text, mobile-first from 360 px, tap targets >= 44 px, ad slots hidden until html.ads. */
@font-face { font-family:"Geist"; font-style:normal; font-weight:400 800; 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 800; 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+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:"Geist Mono"; font-style:normal; font-weight:400 700; font-display:swap; src:url(/fonts/geistmono-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 700; font-display:swap; src:url(/fonts/geistmono-latin-ext.woff2) format("woff2"); unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg:#F2F4F7; --surface:#fff; --fg:#0D1117; --muted:#556070; --line:#D5DCE4; --ink:#0D1117;
  --accent:#0B6E6A; --accent-hover:#085652; --accent-fg:#fff; --tint:#E6F3F2; --chip:#E7EBF0; --head:#EEF1F4; --tab:#F1E3B5; --tab-fg:#3A2F0B;
  --ok:#17804C; --warn:#A15C00; --shadow:0 8px 24px rgba(13,17,23,.07);
  --w:820px; --sans:"Geist",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; --mono:"Geist Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color-scheme:light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg:#0D1117; --surface:#161B22; --fg:#E6EAF0; --muted:#9AA4B2; --line:#2B333E; --ink:#E6EAF0;
  --accent:#4FCFC5; --accent-hover:#7DDCD5; --accent-fg:#0D1117; --tint:#0F2624; --chip:#1F262F; --head:#1C222A; --tab:#4A3F17; --tab-fg:#F3E6B8;
  --ok:#4CC38A; --warn:#F0A44B; --shadow:0 8px 24px rgba(0,0,0,.35); color-scheme:dark; } }
:root[data-theme="dark"] {
  --bg:#0D1117; --surface:#161B22; --fg:#E6EAF0; --muted:#9AA4B2; --line:#2B333E; --ink:#E6EAF0;
  --accent:#4FCFC5; --accent-hover:#7DDCD5; --accent-fg:#0D1117; --tint:#0F2624; --chip:#1F262F; --head:#1C222A; --tab:#4A3F17; --tab-fg:#F3E6B8;
  --ok:#4CC38A; --warn:#F0A44B; --shadow:0 8px 24px rgba(0,0,0,.35); color-scheme:dark; }

* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; min-height:100vh; display:flex; flex-direction:column; background:var(--bg); color:var(--fg); font:16px/1.55 var(--sans); }
body.wide { --w:1080px; }
a { color:var(--accent); text-underline-offset:2px; }
a:hover { color:var(--accent-hover); }
:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
h1, h2, h3 { overflow-wrap:anywhere; text-wrap:balance; }
p, li, dd, td, th, summary { overflow-wrap:anywhere; }
.wrap { width:100%; max-width:calc(var(--w) + 32px); margin:0 auto; padding:0 16px; }
main.wrap { flex:1; position:relative; }

/* header */
.top .wrap { display:flex; align-items:center; gap:8px; min-height:64px; }
.brand { display:inline-flex; align-items:center; gap:10px; min-height:44px; font:800 20px/1 var(--sans); letter-spacing:-.03em; color:var(--fg); text-decoration:none; }
.brand:hover { color:var(--fg); }
.brand i { position:relative; flex:none; width:26px; height:26px; border-radius:8px; background:var(--accent); }
.brand i::before { content:""; position:absolute; left:6px; top:6px; width:7px; height:4px; border:2px solid #fff; border-bottom:0; border-radius:2px 2px 0 0; }
.brand i::after { content:""; position:absolute; left:6px; right:6px; top:9px; bottom:6px; border:2px solid #fff; border-radius:0 2px 2px 2px; }
.nav { margin-left:auto; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:2px; }
.nav a { display:inline-flex; align-items:center; min-height:44px; min-width:44px; justify-content:center; padding:0 12px; border-radius:10px; color:var(--muted); font-weight:500; font-size:15px; text-decoration:none; }
.nav a:hover { color:var(--fg); background:var(--chip); }
/* phones: language codes live in the footer line (same links), so the header stays one row */
.nav a[hreflang] { display:none; }
@media (min-width:480px) { .nav a[hreflang] { display:inline-flex; } }

/* ad slots: in every template, closed until <html class="ads"> (site-ship §Вёрстка и UI, п. 7) */
.ad { display:none; }
html.ads .ad { display:block; }
html.ads .ad[data-slot="top"] { min-height:100px; margin:8px auto 0; }
html.ads .ad[data-slot="inline"] { min-height:280px; margin:48px 0; }
html.ads .ad[data-slot="rail"] { display:none; }
@media (min-width:768px) { html.ads .ad[data-slot="top"] { min-height:90px; } }
@media (min-width:1480px) {
  html.ads main > .ad[data-slot="rail"] { display:block; position:absolute; top:0; bottom:0; left:calc(100% + 8px); width:300px; }
  html.ads main > .ad[data-slot="rail"] > * { position:sticky; top:16px; }
}

/* page intro */
h1 { font:800 clamp(30px,5.4vw,50px)/1.06 var(--sans); letter-spacing:-.045em; margin:28px 0 10px; }
.lead { margin:0 0 22px; color:var(--muted); font-size:17px; max-width:50rem; }
.hero { text-align:center; padding:12px 0 8px; }
.hero h1 { margin-top:24px; }
.hero .lead { margin-left:auto; margin-right:auto; max-width:60ch; }

/* search + chips (home) */
.find { position:relative; max-width:640px; margin:0 auto; }
.find input { width:100%; min-height:56px; border-radius:16px; border:2px solid var(--ink); padding:0 16px 0 48px; font:500 17px var(--sans); background:var(--surface); color:var(--fg); box-shadow:var(--shadow); -webkit-appearance:none; appearance:none; }
.find input::placeholder { color:var(--muted); }
.find input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.find svg { position:absolute; left:17px; top:18px; pointer-events:none; }
.chips { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin:14px 0 0; padding:0; list-style:none; }
.chips button { min-height:44px; padding:0 16px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font:500 15px var(--sans); color:var(--fg); cursor:pointer; }
.chips button:hover { border-color:var(--ink); }
.chips button[aria-pressed="true"] { background:var(--ink); color:var(--bg); border-color:var(--ink); }
.empty { text-align:center; color:var(--muted); margin:24px 0 0; }

/* rows = the one card type of the site: spec badge · title + one line · Open */
.list { list-style:none; margin:24px 0 0; padding:0; display:grid; gap:10px; grid-template-columns:minmax(0,1fr); }
@media (min-width:900px) { .list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.list > li { display:flex; min-width:0; max-width:none; }
.list > li:only-child { grid-column:1 / -1; }
.card { flex:1; min-width:0; display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:8px; min-height:108px; padding:12px 10px;
  background:var(--surface); border:1px solid var(--line); border-radius:14px; color:var(--fg); text-decoration:none; position:relative;
  transition:border-color .12s ease, background-color .12s ease, transform .08s ease; }
.card::before { content:""; position:absolute; left:-1px; top:16px; bottom:16px; width:4px; border-radius:0 4px 4px 0; background:var(--accent); opacity:0; transition:opacity .12s ease; }
.card:hover { color:var(--fg); border-color:var(--accent); background:var(--tint); }
.card:hover::before, .card:focus-visible::before { opacity:1; }
.card:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.card:active { transform:scale(.985); }
.spec { width:44px; height:52px; border-radius:10px; background:var(--bg); border:1px solid var(--line); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; font:700 12px/1.1 var(--mono); letter-spacing:-.03em; color:var(--fg); }
.spec small { font:500 11px/1.1 var(--mono); color:var(--muted); }
.txt { min-width:0; }
.t { display:block; font-weight:650; font-size:15px; line-height:1.25; overflow-wrap:anywhere; }
.m { display:block; margin-top:4px; font:12px/1.4 var(--mono); color:var(--muted); overflow-wrap:anywhere; }
.go { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; padding:0 10px; border-radius:10px; font-weight:650; font-size:15px; background:var(--ink); color:var(--bg); }
.card:hover .go, .card:focus-visible .go { background:var(--accent); color:var(--accent-fg); }
@media (min-width:480px) { .card { grid-template-columns:60px minmax(0,1fr) auto; gap:14px; padding:12px; } .spec { width:60px; height:56px; font-size:13px; } .go { padding:0 18px; } .t { font-size:16px; } .m { font-size:13px; } }
/* one height for every row: 12+12 padding + title 2×20 + 4 + meta 2×17.5 = 103 -> 108; more than 2+2 lines fails ui_check */

/* the tool: an archive drawer — drop zone, the file label, manila folder tabs (one per list), the sheet.
   Ids are wired by /assets/export-viewer.js (see the page comment above #drop). */
.frame { position:relative; margin:4px 0 0; padding:0 0 16px; background:var(--surface); border:2px solid var(--ink); border-radius:18px; box-shadow:var(--shadow); }
.frame.drag { outline:3px dashed var(--accent); outline-offset:-10px; background:var(--tint); }
.vh { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
button, input, select, textarea { font:inherit; }
.dropzone { margin:16px; padding:22px 16px; border:2px dashed var(--line); border-radius:14px; text-align:center; color:var(--muted); }
.dropzone p { margin:12px auto 0; max-width:52ch; font-size:14px; }
.frame.has-data .dropzone { margin:12px 16px 0; padding:10px 12px; display:flex; flex-wrap:wrap; gap:4px 14px; align-items:center; justify-content:center; text-align:left; }
.frame.has-data .dropzone p { margin:0; }
.frame.has-data .dropzone .hint { display:none; }
.archlabel { display:none; max-width:100%; padding:4px 10px; border-radius:4px; background:var(--tab); color:var(--tab-fg); font:13px/1.4 var(--mono); overflow-wrap:anywhere; }
.frame.has-data .archlabel { display:inline-block; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:10px 18px; border:0; border-radius:12px; background:var(--accent); color:var(--accent-fg); font-weight:700; font-size:15px; line-height:1.25; text-align:center; cursor:pointer; transition:background-color .12s ease, transform .08s ease; }
.btn:hover:not(:disabled) { background:var(--accent-hover); }
.btn:active:not(:disabled) { transform:scale(.98); }
.btn:disabled { opacity:.45; cursor:default; }
.btn:focus-visible { outline:3px solid var(--ink); outline-offset:3px; }
.btn.alt { background:transparent; color:var(--fg); border:1.5px solid var(--ink); }
.btn.alt:hover:not(:disabled) { background:var(--chip); }
#pick { min-height:56px; width:100%; max-width:360px; font-size:18px; border-radius:14px; }
@media (min-width:640px) { #pick { width:auto; min-width:260px; } }
.frame.has-data #pick { min-height:44px; width:auto; min-width:0; font-size:15px; background:transparent; color:var(--fg); border:1.5px solid var(--ink); }
.link { display:inline-flex; align-items:center; min-height:44px; background:none; border:0; padding:0; color:var(--accent); font-weight:650; cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.link:disabled { opacity:.5; cursor:default; }
.status { margin:12px 16px 0; font-size:14px; color:var(--muted); min-height:1.4em; }
.status[data-kind="ok"] { color:var(--ok); }
.status[data-kind="warn"] { color:var(--warn); }
.tabs { display:flex; flex-wrap:wrap; gap:4px; padding:12px 16px 0; }
.tabs:empty { display:none; }
.tab { position:relative; top:1px; min-height:44px; padding:0 14px; border:1px solid var(--line); border-bottom:0; border-radius:10px 10px 0 0; background:var(--tab); color:var(--tab-fg); font-size:14px; font-weight:500; cursor:pointer; }
.tab:hover { filter:brightness(.96); }
.tab.on { background:var(--surface); color:var(--accent); font-weight:700; border-color:var(--accent); box-shadow:inset 0 3px 0 var(--accent); }
.findwrap { margin:0 16px; padding:8px 10px; border:1px solid var(--line); border-bottom:0; background:var(--head); display:flex; gap:8px; align-items:center; }
.tabs:not(:empty) + .findwrap { border-top-color:var(--accent); }
.findwrap input { flex:1; min-width:0; min-height:44px; border:1px solid var(--line); border-radius:8px; padding:0 12px; background:var(--surface); color:var(--fg); font-size:16px; }
.sheet { margin:0 16px; overflow:auto; max-height:460px; border:1px solid var(--line); border-radius:0 0 4px 4px; position:relative; background:var(--surface); }
.sheet:empty { display:none; }
.findwrap[hidden] + .sheet { border-radius:4px; }
/* cells show their whole text: long values wrap inside a capped width, the sheet scrolls sideways, nothing is cut */
.grid { border-collapse:collapse; font-size:14px; min-width:100%; }
.grid th, .grid td { border:1px solid var(--line); padding:5px 8px; text-align:left; vertical-align:top; white-space:normal; min-width:8ch; max-width:40ch; overflow-wrap:anywhere; }
.grid thead th { background:var(--head); position:sticky; top:0; z-index:2; font-weight:650; }
.grid th.rn, .grid td.rn { color:var(--muted); font:12px/1.5 var(--mono); background:var(--head); text-align:right; position:sticky; left:0; z-index:1; width:1%; min-width:0; box-shadow:inset -1px 0 var(--line); }
.grid thead th.rn { z-index:3; }
.grid td.num { text-align:right; font-variant-numeric:tabular-nums; }
.grid td a { color:var(--accent); }
.grid th .sortbtn { all:unset; display:inline-flex; align-items:center; min-height:44px; cursor:pointer; font:inherit; font-weight:650; color:inherit; }
.grid th .sortbtn:hover { color:var(--accent); }
.grid th .sortbtn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.grid th[aria-sort="ascending"] .sortbtn::after { content:"▲"; margin-left:4px; font-size:10px; color:var(--accent); }
.grid th[aria-sort="descending"] .sortbtn::after { content:"▼"; margin-left:4px; font-size:10px; color:var(--accent); }
.sum th .sortbtn { pointer-events:none; }
.sum { margin:0; }
.sumlead { margin:0; max-width:none; padding:10px 12px; font-size:14px; color:var(--muted); border-bottom:1px solid var(--line); background:var(--head); white-space:normal; }
.hist { margin:14px 12px 10px; }
.hist figcaption { font-size:13px; color:var(--muted); margin-bottom:6px; }
.bars { display:flex; gap:3px; align-items:flex-end; height:84px; }
.bar { flex:1; display:flex; flex-direction:column; justify-content:flex-end; height:100%; min-width:0; }
.bar .fill { background:var(--accent); border-radius:2px 2px 0 0; min-height:1px; }
.bar .lbl { font:10px/1.6 var(--mono); color:var(--muted); text-align:center; white-space:nowrap; letter-spacing:-.04em; }
.more { margin:6px 16px 0; font-size:13px; }
.more:empty { display:none; }
.actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:12px 16px 0; }
.frame:not(.has-data) .actions { display:none; }  /* Download / Copy appear with the first list: before that the drop zone is the only action */
@media (min-width:640px) { .actions { display:flex; flex-wrap:wrap; } }
@media (max-width:520px) { .sheet { max-height:380px; } .bars { height:64px; } .bar .lbl { font-size:8px; } }
.out { display:block; width:calc(100% - 32px); margin:10px 16px 0; font:13px/1.4 var(--mono); border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--fg); padding:8px; }
.note { margin:12px 16px 0; font-size:13px; color:var(--muted); }
.ticket { margin:16px 0 -16px; padding:12px 16px 14px; border-top:1px dashed var(--line); font:13px/1.45 var(--mono); color:var(--muted); overflow-wrap:anywhere; }
.ticket:empty { display:none; }

/* reference sections below the tool */
section { margin:44px 0; }
h2 { font:750 24px/1.2 var(--sans); letter-spacing:-.02em; margin:0 0 12px; }
p, li { max-width:68ch; }
ol, ul { padding-left:22px; }
ol li, main ul:not([class]) li { margin:4px 0; }
.checked { font-size:13px; color:var(--muted); }
.checked a { color:var(--muted); }
.tbl { overflow-x:auto; -webkit-overflow-scrolling:touch; margin:12px 0; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.tbl table { border-collapse:collapse; width:100%; min-width:520px; font-size:14px; }
.tbl th, .tbl td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.tbl tr:last-child td { border-bottom:0; }
.tbl th { font-weight:650; background:var(--bg); }
#faq details { border:1px solid var(--line); border-radius:12px; background:var(--surface); margin:8px 0; }
#faq summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:12px; min-height:52px; padding:12px 16px; font-weight:650; }
#faq summary::-webkit-details-marker { display:none; }
#faq summary::after { content:""; flex:none; margin-left:auto; width:9px; height:9px; margin-top:-4px; border:solid var(--muted); border-width:0 2px 2px 0; transform:rotate(45deg); transition:transform .15s ease; }
#faq details[open] summary::after { transform:rotate(-135deg); margin-top:4px; }
#faq summary:hover { color:var(--accent); }
#faq details > :not(summary) { margin:0; padding:0 16px 14px; max-width:none; }
.more h2 { margin-bottom:0; }

/* text pages (about, privacy, contact) */
.prose h2 { font-size:21px; margin-top:32px; }
.updated, .summary { color:var(--muted); }

/* footer */
.foot { margin-top:48px; border-top:1px solid var(--line); background:var(--surface); }
.foot .wrap { padding-top:16px; padding-bottom:24px; }
.fnav, .langs { display:flex; flex-wrap:wrap; align-items:center; gap:0 4px; margin:0; max-width:none; }
.fnav a, .langs a { display:inline-flex; align-items:center; min-height:44px; padding:0 8px; color:var(--fg); font-size:14px; }
.fnav a:first-child, .langs > a:first-child { margin-left:-8px; }
.langs { color:var(--muted); font-size:14px; }
.fine { margin:8px 0 0; color:var(--muted); font-size:13px; max-width:none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition:none !important; } }
.group { margin:40px 0 0; }
.also { border:1px solid var(--line); border-radius:14px; background:var(--surface); padding:14px 16px; max-width:none; }
.next { color:var(--muted); }
