/* Kéreg console — the one stylesheet (K-C11, founder 2026-09-25: "profi felület"). The values of
   design/tokens.css (light paper, dark), Geist self-hosted from static/fonts (OFL, the app's own
   @fontsource files). Links and focus are ink, never the dark green (#672). Rule: nothing is
   clipped and nothing scrolls sideways — long text wraps, tables turn into cards below 720 px,
   the sidebar is a column from 900 px and a wrapping row below it. Over 300 lines: one file on
   purpose (docs/STACK.md §6b), sectioned below. */

@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url(fonts/geist-latin-400-normal.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-weight: 400; font-display: swap; src: url(fonts/geist-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url(fonts/geist-latin-500-normal.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-weight: 500; font-display: swap; src: url(fonts/geist-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url(fonts/geist-latin-600-normal.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-weight: 600; font-display: swap; src: url(fonts/geist-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url(fonts/geist-mono-latin-400-normal.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-weight: 400; font-display: swap; src: url(fonts/geist-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url(fonts/geist-mono-latin-500-normal.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-weight: 500; font-display: swap; src: url(fonts/geist-mono-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f1efe9; --panel: #f6f4ee; --card: #ffffff; --hover: rgba(28, 31, 27, 0.035);
  --ink: #1c1f1b; --ink2: #6a6d66; --ink3: #93968f;
  --line: rgba(28, 31, 27, 0.08); --edge: rgba(28, 31, 27, 0.16); --chip: rgba(28, 31, 27, 0.06);
  --acc: #b9e4c9; --on-acc: #0f1411; --acc-ring: #7fae93;
  --ok-bg: #ddf1e4; --ok-ink: #1f5a42; --warn-bg: #fbefc8; --warn-ink: #6b4f00;
  --error-bg: #fbe0de; --error-ink: #8f1d1d; --off-bg: #eceae4; --off-ink: #55584f;
  --prod: #b3261e; --stag: #f5c542;
  --sh: 0 1px 0 rgba(28, 31, 27, 0.06);
  --ui: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px;
  --radius: var(--r-sm);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1411; --panel: #141915; --card: #1a201c; --hover: rgba(255, 255, 255, 0.04);
    --ink: #f2f1ec; --ink2: #9da39c; --ink3: #737970;
    --line: rgba(255, 255, 255, 0.08); --edge: rgba(255, 255, 255, 0.13); --chip: rgba(255, 255, 255, 0.08);
    --acc-ring: #6f9a82;
    --ok-bg: rgba(46, 139, 87, 0.2); --ok-ink: #a6ddbd; --warn-bg: rgba(212, 160, 23, 0.18); --warn-ink: #f0d37f;
    --error-bg: rgba(200, 55, 45, 0.22); --error-ink: #f4a9a1; --off-bg: rgba(255, 255, 255, 0.07); --off-ink: #b5b8b0;
    --sh: 0 1px 0 rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--ui); overflow-wrap: anywhere; }
a { color: var(--ink); text-underline-offset: 2px; }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0; min-width: 0; }
h2 { font-size: 15px; font-weight: 600; margin: 28px 0 10px; }
h3 { font-size: 13px; font-weight: 600; margin: 20px 0 8px; color: var(--ink2); text-transform: none; letter-spacing: normal; }
p { margin: 0 0 8px; }
.muted { color: var(--ink2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code, .id, pre, time, .mono { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
pre { background: #151916; color: #dde3dc; border-radius: var(--r-sm); padding: 12px 14px; overflow-x: auto; line-height: 1.6; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* environment banner — on every page, sign-in included; the confirm step's PRODUCTION line */
.env { padding: 5px 16px; text-align: center; font: 600 11.5px/1.3 var(--ui); letter-spacing: 0.12em; }
.env-staging { background: var(--stag); color: #1c1f1b; }
.env-production { background: var(--prod); color: #ffffff; }
.env-development { background: #55584f; color: #ffffff; }
.envtag { padding: 4px 10px; border-radius: var(--r-xs); font: 600 11.5px/1.3 var(--ui); letter-spacing: 0.12em; }
.release { margin: 0; color: var(--ink2); font-size: 12px; white-space: nowrap; }
.release b { color: var(--ink); font-weight: 600; }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--ok-bg); color: var(--ok-ink); font-weight: 500; }
.notice a, .linkbtn { color: inherit; }
form.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.back { display: inline-block; margin: 0 0 12px; color: var(--ink2); text-decoration: none; }
.back:hover { color: var(--ink); text-decoration: underline; }
.prodmark { background: var(--prod); color: #ffffff; font-weight: 600; letter-spacing: 0.1em; padding: 6px 10px; border-radius: var(--r-xs); margin: 0 0 10px; }

/* shell: sidebar from 900 px, a wrapping block above the page below it */
.shell { display: grid; min-height: calc(100vh - 26px); }
.shell > * { min-width: 0; }
.side { background: var(--panel); border-bottom: 1px solid var(--line); padding: 12px 16px; display: grid; gap: 10px; align-content: start; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); text-decoration: none; min-height: 32px; }
.brand .mark { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.navbox { min-width: 0; min-height: 0; }
.navbox > summary { list-style: none; }
.navbox > summary::-webkit-details-marker { display: none; }
.navtoggle { margin-bottom: 8px; }
.nav { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px; }
.navgroup { display: block; margin: 16px 8px 4px; font: 600 12px/1.3 var(--ui); color: var(--ink2); }
.nav a, .tabs a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.nav a:hover, .tabs a:hover { background: var(--hover); }
.nav a[aria-current="page"] { background: var(--card); box-shadow: 0 0 0 1px var(--edge), var(--sh); font-weight: 500; }
.sidefoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sidefoot form { margin: 0; }
.email { color: var(--ink2); font-size: 13px; min-width: 0; }
.envswitch { display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--r-sm); background: var(--chip); }
.envswitch .btn { border: 0; box-shadow: none; background: transparent; color: var(--ink2); }
.envswitch .btn[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--edge), var(--sh); font-weight: 500; }
.main { display: grid; align-content: start; min-width: 0; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.envcontrols { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.envcontrols > span { color: var(--ink2); font-size: 12px; }
.top h1 { flex: 1 1 12rem; }
.gsearch { flex: 1 1 16rem; max-width: 380px; margin: 0; }
.gsearch input { max-width: none; min-height: 40px; }
main { padding: 16px 16px 64px; min-width: 0; max-width: 1400px; }
.shell.bare .main { max-width: 560px; margin: 0 auto; }
@media (max-width: 899.98px) {
  .nav { max-height: 260px; overflow-y: auto; }
}
@media (min-width: 900px) {
  .shell { grid-template-columns: 236px minmax(0, 1fr); }
  .shell.bare { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; top: 0; height: calc(100vh - 26px); border-bottom: 0; border-right: 1px solid var(--line); grid-template-rows: auto minmax(0, 1fr) auto; padding: 14px 10px; }
  .brand { padding: 0 8px; }
  .navbox { overflow-y: auto; }
  .nav { overflow-y: visible; min-height: 0; margin: 0 -4px; padding: 0 4px; }
  .navtoggle { display: none; }
  .navgroup { display: block; }
  .sidefoot { border-top: 1px solid var(--line); padding: 12px 6px 0; }
  .top { padding: 14px 24px; }
  main { padding: 20px 24px 64px; }
}

/* controls: every target at least 40 px, 44 px on touch */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; min-width: 36px; padding: 8px 16px; border: 1px solid var(--edge); border-radius: var(--r-sm); background: var(--card); color: var(--ink); font: inherit; text-decoration: none; cursor: pointer; box-shadow: var(--sh); }
.btn:hover { border-color: var(--ink3); }
.btn.primary { background: var(--acc); border-color: var(--acc-ring); color: var(--on-acc); font-weight: 600; }
.btn.danger { border-color: color-mix(in oklab, var(--error-ink) 50%, transparent); color: var(--error-ink); }
.btn.dangerfill { background: var(--prod); border-color: var(--prod); color: #ffffff; font-weight: 500; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn:disabled { background: var(--chip); color: var(--ink2); opacity: 1; cursor: not-allowed; }
@media (pointer: coarse) { .btn, .nav a, .tabs a { min-height: 44px; } }
.field { display: grid; gap: 8px; margin: 0 0 16px; }
.field span { font-size: 13px; font-weight: 500; color: var(--ink2); }
input, select, textarea { width: 100%; max-width: 480px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--edge); border-radius: var(--r-xs); background: var(--card); color: var(--ink); font: inherit; }
@media (pointer: coarse) { input, select, textarea { font-size: 16px; min-height: 44px; } } /* no iOS zoom */
.stack { display: grid; gap: 12px; justify-items: start; }
.bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 12px; }
.tablewrap + .bar, .tablewrap + .action { margin-top: 12px; }
.action { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 0 0 8px; }
.search { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; align-items: center; }
.search label { flex: 1 1 16rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chips a { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 12px; border-radius: 999px; background: var(--chip); color: var(--ink2); text-decoration: none; font-size: 13px; }
.chips a:hover { color: var(--ink); }
.chips a[aria-current="true"] { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--edge), var(--sh); }
.field.inline { margin: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; margin: 12px 0; }
details.confirm { display: inline-block; }
/* a destructive action is a quiet text button until it is opened (#2137) */
details.confirm:not([open]) > summary.btn.danger { border-color: transparent; background: transparent; box-shadow: none; min-height: 32px; padding: 4px 8px; text-decoration: underline; text-underline-offset: 3px; }
.danger-zone { margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); }
details.confirm summary { list-style: none; }
details.confirm summary::-webkit-details-marker { display: none; }
details.confirm[open] { display: block; margin: 8px 0; padding: 16px; border: 1px solid var(--edge); border-radius: var(--r-md); background: var(--panel); }
details.confirm[open] > summary { margin-bottom: 10px; }
details.confirm[open] p { margin: 0 0 10px; }
details.confirm .field input, details.confirm .field textarea { max-width: none; }

/* the switch (K-C11): a real switch, a POST form; on production data it opens the confirm step */
.switch { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.sw { position: relative; width: 38px; height: 22px; padding: 0; border-radius: 999px; border: 1px solid var(--edge); background: var(--off-bg); cursor: pointer; flex: none; transition: background 0.15s, border-color 0.15s; }
.sw::before { content: ""; position: absolute; inset: -11px -6px; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 1px var(--edge), 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.16s ease; }
.sw[aria-checked="true"] { background: var(--acc); border-color: var(--acc-ring); }
.sw[aria-checked="true"]::after { transform: translateX(16px); box-shadow: 0 0 0 1px var(--acc-ring), 0 1px 2px rgba(0, 0, 0, 0.2); }
.switch .state { min-width: 2ch; }
details.confirm > summary.sw { display: inline-block; }
details.confirm[open] > summary.sw { margin: 0 0 10px; }

/* segmented choice: radios that look like one control (audience, Alap / Be / Ki) */
.seg { display: inline-flex; flex-wrap: wrap; padding: 2px; gap: 2px; border-radius: var(--r-sm); background: var(--chip); border: 0; margin: 0; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { position: relative; display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border-radius: 8px; color: var(--ink2); cursor: pointer; font-size: 13px; white-space: nowrap; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg label:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--edge), var(--sh); font-weight: 500; }
.seg label:has(input[value="on"]:checked) { background: var(--acc); color: var(--on-acc); box-shadow: 0 0 0 1px var(--acc-ring); }
.seg label:has(input[value="off"]:checked) { background: var(--error-bg); color: var(--error-ink); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 1px; }
.choices { display: grid; gap: 8px; max-width: 560px; }
.choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 2px 10px; padding: 12px; border: 1px solid var(--edge); border-radius: var(--r-sm); background: var(--card); cursor: pointer; }
.choice input { width: 16px; height: 16px; min-height: 0; margin: 2px 0 0; accent-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice b { font-weight: 500; }
.choice span { grid-column: 2; color: var(--ink2); font-size: 13px; }

/* cards, panels, tags */
.card { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md); padding: 16px; box-shadow: var(--sh); }
.panel { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md); box-shadow: var(--sh); margin: 0 0 16px; }
.panel > .head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.panel > .head h2 { margin: 0; }
.panel > .head p { margin: 0; color: var(--ink2); font-size: 13px; }
.panel > .body { padding: 16px; }
.panel table.grid { border: 0; border-radius: 0 0 var(--r-md) var(--r-md); }
.tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 6px; border-radius: var(--r-xs); background: var(--chip); color: var(--ink2); font: 500 11.5px/1.4 var(--mono); white-space: nowrap; }
.login { max-width: 460px; margin: 32px auto; }
.login .btn { width: 100%; }
.alert { margin: 0 0 12px; }
.empty { color: var(--ink2); padding: 16px 0; }

/* status pills: always a word, never colour alone; a dot before the word */
.pill { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; white-space: normal; overflow-wrap: anywhere; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; line-height: 1.6; background: var(--off-bg); color: var(--off-ink); }
.pill::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill b { font-weight: 600; }
.pill-ok { background: var(--ok-bg); color: var(--ok-ink); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill-error { background: var(--error-bg); color: var(--error-ink); }

/* overview tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.tile { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md); box-shadow: var(--sh); padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.tile-head { font-weight: 500; }
.tile .pill { justify-self: start; }
.tile-head a { color: var(--ink); }
.tile p { margin: 0; color: var(--ink2); font-size: 13px; }

/* key/value blocks */
.kv { display: grid; gap: 10px 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 0 0 16px; }
.kv dt { color: var(--ink2); font-size: 12.5px; }
.kv dd { margin: 0; }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.tabs a { border-radius: 0; min-height: 40px; color: var(--ink2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { background: none; color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }

/* tables: a real table from 720 px, one card per row below */
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md); font-size: 13.5px; }
.grid th, .grid td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid th { position: sticky; top: 0; z-index: 1; background: var(--card); font: 500 12px/1.3 var(--ui); color: var(--ink2); border-bottom-color: var(--edge); }
.grid thead th:first-child { border-top-left-radius: var(--r-md); }
.grid thead th:last-child { border-top-right-radius: var(--r-md); }
.grid th a { color: inherit; display: inline-flex; min-height: 28px; align-items: center; text-decoration: none; }
.grid th a:hover { color: var(--ink); }
/* `anywhere` lowers a cell's min-content, so auto layout would squeeze short words apart;
   headers and the compact kinds keep whole words, free text and ids still break anywhere. */
.grid th, .grid .k-pill, .grid .k-num, .grid .k-money, .grid .k-time, .grid .k-link { overflow-wrap: normal; }
.grid .k-num, .grid .k-money { text-align: right; font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.grid td.go { width: 1%; white-space: nowrap; }
.grid tbody tr:hover td { background: var(--hover); }
.grid tr[data-href] { cursor: pointer; }
.person { display: grid; }
.person b { font-weight: 500; }
.person .muted { font-size: 12.5px; }
.grid td.k-pills .pill { margin: 0 4px 4px 0; }
/* K-C9, from 720 px: a word never breaks inside itself (an e-mail only after its @ and dots,
   `ui.email_html`); columns keep a floor by kind; a table still wider than its box scrolls
   inside the box, with a shadow on the side that has more. console.js marks `.fits` (nothing
   to scroll: overflow visible again, so the sticky header keeps working) and the shadows. */
@media (min-width: 720px) {
  .grid { table-layout: auto; }
  .grid th, .grid td, .grid td .pill { overflow-wrap: break-word; }
  .grid th.k-text, .grid th.k-link, .grid th.k-time { min-width: 12ch; }
  .grid th.k-person { min-width: 18ch; }
  .tablewrap { position: relative; }
  .tablescroll { overflow-x: auto; }
  .tablescroll.fits { overflow: visible; }
  .tablewrap::before, .tablewrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18px; pointer-events: none; opacity: 0; z-index: 2; }
  .tablewrap::before { left: 0; background: linear-gradient(to right, rgba(28, 31, 27, 0.2), transparent); }
  .tablewrap::after { right: 0; background: linear-gradient(to left, rgba(28, 31, 27, 0.2), transparent); }
  .tablewrap.more-left::before, .tablewrap.more-right::after { opacity: 1; }
}
.grid td.k-image { width: 88px; }
.preview { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: var(--r-sm); background: var(--off-bg); }
@media (max-width: 719.98px) { .preview { max-height: 50vh; } }
/* manual blur (#2477): the picture is the drawing surface; its box is the picture, so the
   rectangles' fractions are the picture's */
.mark { position: relative; display: inline-block; max-width: 100%; touch-action: none; cursor: crosshair; user-select: none; }
.mark img, .mark video { display: block; max-width: 100%; max-height: 60vh; width: auto; height: auto; border-radius: var(--r-sm); background: var(--off-bg); }
.mark .rect { position: absolute; box-sizing: border-box; border: 2px solid #ffffff; box-shadow: 0 0 0 1px #000000; background: rgba(255, 255, 255, 0.25); }
.action[hidden] { display: none; }
/* bulk forms (K-C5b): the action bar stays in reach while the rows scroll */
.bulkbar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; background: var(--bg); border-top: 1px solid var(--line); }
.pickall { display: inline-flex; gap: 8px; align-items: center; min-height: 38px; margin: 0; }
input.pick, .pickall input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--ink); }
/* Körlevél send: the groups, always visible at the top of the form (#2171). */
fieldset.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0 16px; margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
fieldset.groups legend { padding: 0 6px; font-weight: 600; }
.bulkbar select { width: auto; flex: 0 1 14rem; }
.thumb { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-xs); background: var(--off-bg); }
.copy { min-height: 28px; min-width: 28px; margin-left: 4px; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--r-xs); background: var(--card); color: var(--ink2); font: inherit; font-size: 12px; cursor: pointer; }
.copy.done { background: var(--ok-bg); color: var(--ok-ink); }

@media (max-width: 719.98px) {
  table.grid, .grid tbody, .grid tr, .grid td { display: block; width: 100%; }
  table.grid { border: 0; background: transparent; }
  .grid thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .grid tr { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md); margin: 0 0 12px; padding: 4px 0; }
  .grid td { display: grid; grid-template-columns: minmax(6rem, 38%) minmax(0, 1fr); gap: 8px; border-bottom: 0; padding: 6px 12px; }
  .grid td::before { content: attr(data-label); color: var(--ink2); font-size: 13px; font-weight: 500; }
  .grid .k-num, .grid .k-money { text-align: left; }
  /* one card per row: the value column is fixed, so every kind may break rather than clip */
  .grid td[class^="k-"] { overflow-wrap: anywhere; }
  .grid td > .pill { justify-self: start; }
  .grid td.go { display: block; width: 100%; white-space: normal; }
  .grid td.go::before { content: none; }
  .grid td.go .btn { width: 100%; }
  .panel table.grid { padding: 8px; }
}
/* Referenciaminta (#1684): before/after of one 30 m block, the after image clipped by the
   slider; the 51 px chips have the block's 3 px in the middle. */
.swipe { position: relative; width: min(100%, 720px); aspect-ratio: 1; margin: 0 0 16px; }
.swipe img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; border-radius: var(--r-sm); }
.swipe .after { clip-path: inset(0 0 0 50%); }
.swipe .block { position: absolute; left: 47.06%; top: 47.06%; width: 5.88%; height: 5.88%; box-shadow: 0 0 0 1px var(--ink), 0 0 0 2px var(--card); pointer-events: none; }
.swipe input { position: absolute; left: 0; right: 0; bottom: 8px; width: 100%; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photos img { height: 120px; border-radius: var(--r-sm); }
.eventlabel { display: grid; gap: 16px; max-width: 1100px; }
.eventlabel progress { width: 240px; vertical-align: middle; }
.eventlabel .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eventlabel figure { margin: 0; }
.eventlabel .frame { position: relative; }
.eventlabel .frame img { display: block; width: 100%; border-radius: var(--r-sm); }
.eventlabel .frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.eventlabel .frame path { fill: none; stroke: var(--card); stroke-width: 2; vector-effect: non-scaling-stroke; }
.eventlabel .answers { display: flex; gap: 12px; }
.eventlabel .btn.big { flex: 1; padding: 20px; font-size: 1.25rem; }
.labelform { display: grid; gap: 12px; justify-items: start; }
.matrix td { text-align: right; }

/* Körlevél's template editor (#1917): Quill 2's core sheet, restyled to the console. */
.korlevel-editor { display: grid; gap: 24px; }
@media (min-width: 1200px) { .korlevel-editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.korlevel-editor .stack { justify-items: stretch; }
.korlevel-editor .action .field { margin: 0; }
.korlevel-editor h3 { margin-top: 0; text-transform: none; letter-spacing: normal; }
.korlevel-editor .field input[type="text"] { width: 100%; max-width: none; }
.korlevel-editor > .stack { gap: 16px; }
.mail-preview-panel { padding: 16px; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-md); }
.mail-preview-shell { width: 100%; }
.mail-preview-shell.mobile { width: min(100%, 375px); margin-inline: auto; }
.mail-preview-shell iframe { display: block; border: 1px solid var(--edge); border-radius: var(--r-sm); height: 640px; }
.mail-preview-panel .action { gap: 12px; }
.mail-send-layout { display: grid; gap: 24px; align-items: start; }
.mail-send-layout > * { min-width: 0; }
.mail-send-layout h3 { margin: 0; text-transform: none; letter-spacing: normal; }
.mail-send-controls { gap: 16px; justify-items: stretch; }
.mail-send-summary { padding: 16px; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-md); }
.mail-send-summary h3 { margin-bottom: 12px; }
.mail-send-confirm[open] { display: grid; gap: 12px; padding: 16px; background: var(--panel); border: 1px solid var(--edge); border-radius: var(--r-md); }
.mail-send-confirm[open] > summary { display: none; }
[data-reviewed-send][hidden], [data-audience-stale][hidden] { display: none; }
@media (min-width: 1200px) { .mail-send-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.mail-extra { align-self: center; font-size: 13px; }
.mail-extra summary { cursor: pointer; padding: 4px 8px; }
.korlevel-editor [data-mail-password][hidden] { display: none; }
@media (min-width: 1200px) { .mail-preview-panel { position: sticky; top: 88px; } }
.rich { background: var(--card); border: 1px solid var(--edge); border-radius: var(--r-md); }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.rich-toolbar button { min-height: 30px; padding: 2px 10px; border: 1px solid transparent; border-radius: var(--r-xs); background: none; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.rich-toolbar button:hover { border-color: var(--edge); }
.rich-toolbar button.ql-active { background: var(--chip); border-color: var(--edge); }
.rich-toolbar button.chip { font-family: var(--mono); font-size: 12px; background: var(--chip); border-radius: 999px; }
.rich .ql-container { font: inherit; font-size: 15px; }
.rich .ql-editor { min-height: 320px; padding: 16px; line-height: 1.6; }
.rich .ql-editor p { margin: 0 0 8px; }
.rich .ql-editor h2 { margin: 12px 0 6px; font-size: 18px; font-weight: 500; }
.rich .ql-editor blockquote { margin: 4px 0 12px; padding: 8px 16px; background: var(--chip); border-radius: var(--r-sm); font-family: var(--mono); font-size: 20px; letter-spacing: 0.08em; }
.rich .ql-editor hr { margin: 12px 0; border: 0; border-top: 1px solid var(--line); }
.rich .ql-editor img { max-width: 100%; border: 1px solid var(--ink); border-radius: var(--r-sm); }
.rich .ql-editor a { color: var(--ink); text-decoration: underline; }
.rich .ql-mail-button { display: inline-block; margin: 4px 0 12px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: var(--r-sm); font-weight: 600; }
.rich .ql-ph { padding: 0 6px; border-radius: 999px; background: var(--chip); font-family: var(--mono); font-size: 12.5px; }

/* Körlevél's recipient chips (#1922): Tagify's sheet, restyled to the console. */
.recipients-form { justify-items: stretch; max-width: 760px; }
.recipients-form > .btn { justify-self: start; }
.recipients .tagify { --tags-border-color: var(--edge); --tags-hover-border-color: var(--ink3); --tags-focus-border-color: var(--ink); --tag-bg: var(--chip); --tag-hover: var(--chip); --tag-text-color: var(--ink); --tag-remove-btn-color: var(--ink2); --tag-remove-bg: var(--chip); --tag-remove-btn-bg--hover: var(--ink3); --tag-invalid-bg: var(--error-bg); --tag-invalid-color: var(--error-ink); --tag-pad: 3px 8px; --placeholder-color: var(--ink3); width: 100%; min-height: 40px; background: var(--card); border-radius: var(--r-sm); font: inherit; font-size: 14px; }
.tagify__dropdown { --tagify-dd-color-primary: var(--ink); --tagify-dd-bg-color: var(--card); --tagify-dd-item-pad: 6px 10px; font: inherit; font-size: 14px; }
.tagify__dropdown__wrapper { border-color: var(--edge); border-radius: var(--r-sm); box-shadow: var(--sh); }

.korlevel-editor > *, [data-language-panel] { min-width: 0; }
[data-language-panel][hidden], [data-after-save][hidden] { display: none; }
@media (pointer: coarse) {
  .korlevel-editor .ql-editor { font-size: 16px; }
  .korlevel-editor .rich-toolbar button { min-width: 44px; min-height: 44px; }
  .korlevel-editor [data-editor-language] { min-height: 44px; }
}

/* progress bars (Motor): a plain track and fill, same tokens as the pills */
.meter { display: grid; gap: 4px; min-width: 160px; }
.meter .track { height: 8px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.meter .fill { height: 100%; border-radius: inherit; background: var(--acc-ring); }
.meter-error .fill { background: var(--error-ink); }
.meter-text { font-size: 12.5px; color: var(--ink2); }
.poolrow { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; margin-top: 8px; }

/* --- Ügyek: Legutóbbi feltöltések (#2478): cards per uploader, the lightbox (feed.js) ------ */
.feed { margin-top: 32px; }
.fgroup { margin: 16px 0 24px; }
.fwho { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 0 0 8px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-items: start; }
.fcard { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--edge); border-radius: var(--r-md); background: var(--card); box-shadow: var(--sh); }
.fcard.gone { opacity: 0.55; }
.fthumb { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-xs); background: var(--off-bg); overflow: hidden; }
.fthumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fmeta { display: flex; flex-direction: column; gap: 2px; font-size: 0.9em; }
.factions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.factions .btn { min-height: 32px; padding: 4px 10px; }
.factions form.action { margin: 0; }
.fcard details.confirm[open] { flex-basis: 100%; }
.ferror { margin: 0; color: var(--error-ink); }
dialog.lightbox { max-width: 96vw; max-height: 96vh; padding: 12px; border: 1px solid var(--edge); border-radius: var(--r-md); background: var(--panel); color: var(--ink); }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, 0.7); }
dialog.lightbox img { display: block; max-width: calc(96vw - 48px); max-height: calc(96vh - 110px); margin: 0 auto; }
dialog.lightbox .lbbar { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; }

/* Támogatás → Fal / Partnerek (#2792): the logo as uploaded beside the normalised box, and the
   entry on the landing wall in frames (1440 px shown at half size, 375 px as it is) */
.wall-logo h3 { margin: 24px 0 8px; font-size: 14px; font-weight: 600; }
.wall-pair { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 16px; }
.wall-pair figure, .wall-logo > figure { margin: 0; }
.wall-pair img, .wall-legacy { display: block; max-width: 240px; max-height: 240px; border: 1px solid var(--edge); border-radius: var(--r-sm); background: var(--card); }
.wall-pair .wall-chess img { width: 240px; height: 120px; background: repeating-conic-gradient(var(--hover) 0 25%, var(--card) 0 50%) 0 0 / 16px 16px; }
.wall-pair figcaption, .wall-scheme { margin: 4px 0 0; font-size: 12px; color: var(--ink2); }
.wall-frames { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin: 4px 0 12px; }
.wall-f1440 { position: relative; width: 720px; max-width: 100%; height: 140px; overflow: hidden; border: 1px solid var(--edge); border-radius: var(--r-sm); }
.wall-f1440 iframe { width: 1440px; height: 280px; border: 0; transform: scale(0.5); transform-origin: 0 0; }
.wall-f375 { width: 375px; max-width: 100%; border: 1px solid var(--edge); border-radius: var(--r-sm); overflow: hidden; }
.wall-f375 iframe { display: block; width: 375px; height: 190px; border: 0; }

/* Támogatás → Támogatók (#3032): the wall's quick settings on a row, one line that wraps. */
.wallquick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.wallquick .thumb { width: 32px; height: 32px; }
