/* Naimex Creator-Bereich – same visual language as naimex.de:
   light #F6F6FA / anthracite night mode, Sora headings, Instrument Sans text, JetBrains Mono labels,
   navy pill buttons, purple only for the logo and small accents, wave edges on header and footer. */

@font-face { font-family: 'Sora'; src: url('../fonts/sora-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; 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: 'Sora'; src: url('../fonts/sora-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; 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: 'Instrument Sans'; src: url('../fonts/instrument-sans-latin-wght-normal.woff2') format('woff2'); font-weight: 400 700; font-display: swap; 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: 'Instrument Sans'; src: url('../fonts/instrument-sans-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 400 700; font-display: swap; 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: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --navy: #1E2347;
  --slate: #4E5689;
  --lilac: #9379B4;
  --bg: #F6F6FA;
  --surface: #FFFFFF;
  --surface-2: #F0F0F6;
  --text: #1B2040;
  --heading: #1E2347;
  --muted: #5B6080;
  --border: #E1E3F0;
  --border-strong: #CDD0E2;
  --btn-bg: #1E2347;
  --btn-text: #FFFFFF;
  --btn-hover: #2A3061;
  --ghost-hover: #ECEDF5;
  --head-bg: #F6F6FA;
  --footer-bg: #15193A;
  --footer-text: #C9CCE0;
  --input-bg: #FFFFFF;
  --focus: rgba(147, 121, 180, 0.45);
  --focus-ring: #6E5394;          /* solid ring, 5.9:1 on the page background */
  --input-border: #80849F;        /* field edges 3.2:1 or more on every background (WCAG 1.4.11) */
  --px: 0.0625rem;                /* 1px at the default text size; grows with the reader's text size setting */
  --lilac-soft: #F1ECF8;
  --lilac-text: #6E5394;
  --ok: #23704F; --ok-bg: #E3F3EB;
  --warn: #8A5A00; --warn-bg: #FBF0D9;
  --danger: #B3261E; --danger-bg: #FBE5E3;
  --info: #3F477A; --info-bg: #E9EBF6;
  --art-navy: #1E2347;
  --art-slate: #4E5689;
  --art-lilac: #9379B4;
  --shadow: 0 1px 2px rgba(27, 32, 64, 0.04), 0 8px 24px rgba(27, 32, 64, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --pl-snap: #2B2D31; --pl-kick: #1C8C0A;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #ECEEF0; --slate: #A0A5AB; --bg: #222528; --surface: #2D3135; --surface-2: #282B2F;
    --text: #ECEEF0; --heading: #F4F5F6; --muted: #A0A5AB; --border: #383C41; --border-strong: #4A4F55;
    --btn-bg: #ECEEF0; --btn-text: #222528; --btn-hover: #FFFFFF; --ghost-hover: #30343A;
    --head-bg: #222528; --footer-bg: #1A1C1F; --footer-text: #A0A5AB; --input-bg: #25282C;
    --lilac-soft: #383241; --lilac-text: #C3B0DD;
    --ok: #7FD1A8; --ok-bg: #233A30; --warn: #F0C46A; --warn-bg: #3D3423; --danger: #FF9B91; --danger-bg: #432826; --info: #B9C0EC; --info-bg: #2E3243;
    --art-navy: #ECEEF0; --art-slate: #A0A5AB;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 28px rgba(0, 0, 0, 0.22);
    --focus-ring: #C3B0DD; --input-border: #7E8398;
    --pl-snap: #FFFC00; --pl-kick: #53FC19;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --navy: #ECEEF0; --slate: #A0A5AB; --bg: #222528; --surface: #2D3135; --surface-2: #282B2F;
  --text: #ECEEF0; --heading: #F4F5F6; --muted: #A0A5AB; --border: #383C41; --border-strong: #4A4F55;
  --btn-bg: #ECEEF0; --btn-text: #222528; --btn-hover: #FFFFFF; --ghost-hover: #30343A;
  --head-bg: #222528; --footer-bg: #1A1C1F; --footer-text: #A0A5AB; --input-bg: #25282C;
  --lilac-soft: #383241; --lilac-text: #C3B0DD;
  --ok: #7FD1A8; --ok-bg: #233A30; --warn: #F0C46A; --warn-bg: #3D3423; --danger: #FF9B91; --danger-bg: #432826; --info: #B9C0EC; --info-bg: #2E3243;
  --art-navy: #ECEEF0; --art-slate: #A0A5AB;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 28px rgba(0, 0, 0, 0.22);
  --focus-ring: #C3B0DD; --input-border: #7E8398;
  --pl-snap: #FFFC00; --pl-kick: #53FC19;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: calc(15.5 * var(--px)); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--lilac); }
h1, h2, h3, h4 { font-family: 'Sora', 'Instrument Sans', sans-serif; color: var(--heading); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(calc(26 * var(--px)), 3.2vw, calc(36 * var(--px))); font-weight: 700; }
h2 { font-size: calc(20 * var(--px)); font-weight: 700; }
h3 { font-size: calc(16 * var(--px)); font-weight: 650; }
p { margin: 0 0 10px; }
small, .small { font-size: calc(13 * var(--px)); }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
::selection { background: var(--lilac); color: #fff; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 6px; }
.mono, code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: calc(12.5 * var(--px)); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 18px; height: 18px; flex: none; vertical-align: -3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ------------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 40; }
/* Opaque bar without backdrop blur: cheaper while scrolling, and the bar with its menus stays above the wave. */
.site-head .bar { position: relative; z-index: 2; background: var(--head-bg); }
.head-in { display: flex; align-items: center; gap: 22px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--heading); flex: none; }
.brand-mark { width: 30px; height: 30px; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font-family: 'Sora', sans-serif; font-weight: 700; font-size: calc(17 * var(--px)); letter-spacing: 0.06em; }
.brand-word span { font-family: 'JetBrains Mono', monospace; font-size: calc(9.5 * var(--px)); letter-spacing: 0.22em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; min-width: 0; }
.nav a { text-decoration: none; color: var(--muted); font-size: calc(14.5 * var(--px)); padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--heading); background: var(--ghost-hover); }
.nav a.on { color: var(--heading); font-weight: 600; }
.nav a.on::after { content: ''; display: block; height: 2px; margin: 3px auto -5px; width: 14px; border-radius: 2px; background: var(--lilac); }
/* seven entries (creator area with Anfragen): a little closer together; between tablet and laptop width the word
   mark gives way to the logo, so nothing overlaps. The Verwaltung groups its pages (below) and stays short. */
@media (min-width: 60.0625em) { .head-in.dense .nav a { padding-left: 10px; padding-right: 10px; } }
@media (min-width: 60.0625em) and (max-width: 68.75em) { .head-in.dense .nav a { padding-left: 8px; padding-right: 8px; } .head-in.dense .brand-word { display: none; } }
/* menu bar in groups (Verwaltung): related pages sit in a drop-down; the phone menu lists them under a heading.
   Where room is tight, a group shows its short name („Verträge“) and the word mark gives way to the logo. */
.nav-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
@media (min-width: 60.0625em) and (max-width: 75em) { .head-in .nav-more { display: none; } }
@media (min-width: 60.0625em) and (max-width: 68.75em) { .head-in.grouped .brand-word { display: none; } }
.nav-list { display: none; }
.nav-group { position: relative; }
.nav-group > summary { list-style: none; display: flex; align-items: center; gap: 3px; cursor: pointer; color: var(--muted); font-size: calc(14.5 * var(--px)); padding: 8px 9px 8px 12px; border-radius: 999px; white-space: nowrap; position: relative; transition: color .15s, background-color .15s; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover, .nav-group[open] > summary { color: var(--heading); background: var(--ghost-hover); }
.nav-group > summary .ico { width: 15px; height: 15px; transition: transform .15s; }
.nav-group[open] > summary .ico { transform: rotate(180deg); }
.nav-group > summary.on { color: var(--heading); font-weight: 600; }
.nav-group > summary.on::after { content: ''; position: absolute; left: calc(50% - 10px); bottom: 2px; width: 14px; height: 2px; border-radius: 2px; background: var(--lilac); }
.nav-drop { position: absolute; left: -6px; top: calc(100% + 10px); width: max-content; min-width: 270px; max-width: min(340px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; z-index: 50; display: grid; gap: 2px; }
.nav .nav-drop a { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 12px; align-items: start; padding: 10px 12px; border-radius: 11px; white-space: normal; color: var(--text); }
.nav .nav-drop a .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--muted); }
.nav-drop b { display: block; font-weight: 600; color: var(--heading); }
.nav-drop small { display: block; margin-top: 1px; font-weight: 400; color: var(--muted); font-size: calc(12.5 * var(--px)); line-height: 1.4; }
.nav .nav-drop a:hover { background: var(--lilac-soft); }
.nav .nav-drop a:hover .ico, .nav .nav-drop a.on .ico { color: var(--lilac-text); }
.nav .nav-drop a.on { background: var(--ghost-hover); box-shadow: inset 3px 0 0 var(--lilac); }
.nav .nav-drop a.on::after { display: none; }
/* small phones: four round buttons next to the logo only fit without the word NAIMEX */
@media (max-width: 22.4375em) { .head-in.with-search .brand-word { display: none; } }
.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--heading); cursor: pointer; padding: 0; transition: background-color .15s, border-color .15s; }
.icon-btn:hover { background: var(--ghost-hover); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.burger { display: none; }

/* Wave edges. Each layer is one wavelength wider than the screen and slides by exactly one wavelength,
   so the loop is seamless. Only transform is animated: the browser moves a finished layer instead of
   repainting the wave in every frame (the old mask-position animation kept the page busy all the time). */
.wave { height: 14px; pointer-events: none; position: relative; overflow: hidden; }
.wave i { position: absolute; top: 0; bottom: 0; left: -720px; width: calc(100% + 720px); background: var(--head-bg); -webkit-mask: url('../img/wave.svg') repeat-x 0 0 / 720px 14px; mask: url('../img/wave.svg') repeat-x 0 0 / 720px 14px; animation: wave720 22s linear infinite; will-change: transform; }
.wave i + i { opacity: .55; left: -520px; width: calc(100% + 520px); -webkit-mask-size: 520px 11px; mask-size: 520px 11px; animation: wave520 15s linear infinite reverse; }
@keyframes wave720 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(720px, 0, 0); } }
@keyframes wave520 { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(520px, 0, 0); } }
.site-head .wave { margin-bottom: -14px; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; } }

/* Switching light/dark: one short cross-fade of the whole page, so header, wave, cards and footer change together.
   Browsers without view transitions get a short colour transition instead (class set by app.js for 350 ms). */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: ease; }
html.theme-switch, html.theme-switch *, html.theme-switch *::before, html.theme-switch *::after {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, fill .3s ease, stroke .3s ease, box-shadow .3s ease !important;
}
html.theme-vt *, html.theme-vt *::before, html.theme-vt *::after { transition: none !important; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

.user-menu { position: relative; }
.user-menu > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; border-radius: 999px; padding: 3px 3px 3px 3px; border: 1px solid var(--border); background: var(--surface); }
.user-menu > summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-text); font-family: 'Sora', sans-serif; font-size: calc(12 * var(--px)); font-weight: 700; letter-spacing: .02em; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; z-index: 50; }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu .who b { display: block; font-size: calc(14 * var(--px)); }
.menu .who span { font-size: calc(12.5 * var(--px)); color: var(--muted); word-break: break-all; }
.menu .who span.role { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--lilac-soft); color: var(--lilac-text); font-size: calc(11.5 * var(--px)); font-weight: 600; word-break: normal; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; font-size: calc(14.5 * var(--px)); padding: 9px 10px; border-radius: 10px; text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--ghost-hover); }
.menu form { margin: 0; }

/* ------------------------------------------------------------------ page */
main { flex: 1; padding: 34px 0 72px; }
.page-head { display: flex; align-items: flex-end; gap: 18px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 26px; }
.page-head .t { min-width: 0; }
.page-head .sub { color: var(--muted); margin-top: 8px; font-size: calc(15 * var(--px)); }
/* " · " separators (wrapped by View::spaceSeparators): more room around a lighter dot */
.dot { display: inline-block; margin: 0 .32em; opacity: .55; }
.sub .badges { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: .5em; vertical-align: 1px; }
.sub .badges:empty { display: none; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: 'JetBrains Mono', monospace; font-size: calc(11.5 * var(--px)); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; text-decoration: none; }
.eyebrow::before { content: ''; width: 7px; height: 11px; background: var(--lilac); transform: skewY(-22deg); border-radius: 1px; flex: none; }
a.eyebrow:hover { color: var(--heading); }
.crumbs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: calc(13.5 * var(--px)); color: var(--muted); margin-bottom: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--heading); }
.crumbs .sep { opacity: .5; }

.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.gap-s { gap: 6px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; min-width: 0; }
.card.pad-s { padding: 16px 18px; }
.card.flat { box-shadow: none; }
.card.tint { background: var(--surface-2); }
.card > h2, .card > h3, .card-head { margin-bottom: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card .card-foot { border-top: 1px solid var(--border); margin: 18px -24px -22px; padding: 14px 24px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat .n { font-family: 'Sora', sans-serif; font-weight: 700; font-size: calc(28 * var(--px)); color: var(--heading); letter-spacing: -0.02em; line-height: 1.1; }
.stat .l { font-family: 'JetBrains Mono', monospace; font-size: calc(11 * var(--px)); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat .d { font-size: calc(13 * var(--px)); color: var(--muted); }
a.stat-card { text-decoration: none; transition: border-color .15s, transform .15s; }
a.stat-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.card.stat { position: relative; } .card.stat:has(.kpi-ico) .l { padding-right: 44px; }
.kpi-ico { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--lilac-soft); color: var(--lilac-text); }
.kpi-ico .ico { width: 18px; height: 18px; }
.delta { font-weight: 600; color: var(--heading); font-variant-numeric: tabular-nums; white-space: nowrap; } .delta.pos { color: var(--ok); } .delta.neg { color: var(--danger); }
.tier-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 1px 10px 1px 8px; border-radius: 999px; font-size: calc(12.5 * var(--px)); font-weight: 600; white-space: nowrap; background: var(--lilac-soft); color: var(--lilac-text); }
/* verified channel (Ui::verified): seal with a tick next to the name, Twitch Partner/Affiliate as a small chip */
/* verified badge right after a channel name: the platform's own tick, Twitch Affiliate as a word */
.vf { display: inline-block; line-height: 1; vertical-align: -0.17em; white-space: nowrap; color: var(--lilac-text); --vf-tick: #fff; }
.vf-i { display: block; width: 1.08em; height: 1.08em; }
.vf-yt { color: #606060; --vf-tick: var(--surface, #fff); }
.vf-tt { color: #0A9AAE; }
.vf-ig { color: #0095F6; }
.vf-x { color: #1A8CD8; }
.vf-fb { color: #0866FF; }
.vf-tw { color: #9146FF; }
.vf-nx { --vf-tick: var(--surface, #fff); }
.vf-txt { vertical-align: baseline; font-size: 0.82em; font-weight: 600; letter-spacing: 0.01em; color: var(--muted); }
.ig-refusals { list-style: none; padding: 0; margin: 8px 0 0; }
.ig-refusals > li { padding: 12px 0; border-top: 1px solid var(--border); }
.ig-refusals > li > p { margin: 0 0 6px; }
.ig-refusals code { overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vf-yt { color: #AAAAAA; }
  :root:not([data-theme="light"]) .vf-tt { color: #20D5EC; }
  :root:not([data-theme="light"]) .vf-x { color: #1D9BF0; }
  :root:not([data-theme="light"]) .vf-tw { color: #A970FF; }
}
:root[data-theme="dark"] .vf-yt { color: #AAAAAA; }
:root[data-theme="dark"] .vf-tt { color: #20D5EC; }
:root[data-theme="dark"] .vf-x { color: #1D9BF0; }
:root[data-theme="dark"] .vf-tw { color: #A970FF; }
.tier-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--tier, var(--lilac)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tier, var(--lilac)) 28%, transparent); }
.tier-chip.t0 { --tier: #A0A5AB; } .tier-chip.t1 { --tier: #7C86B8; } .tier-chip.t2 { --tier: #4FA392; } .tier-chip.t3 { --tier: #9379B4; } .tier-chip.t4 { --tier: #6E4FB0; } .tier-chip.t5, .tier-chip.t6, .tier-chip.t7 { --tier: #D29B2B; }
.pf-mini { display: grid; gap: 12px; align-content: start; } .pf-mini .card-head { margin-bottom: 0; } .pf-mini .btn { justify-self: start; }
.pf-mini-n { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; } .pf-mini-n div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.pf-mini-n dt { font-family: 'JetBrains Mono', monospace; font-size: calc(10.5 * var(--px)); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pf-mini-n dd { margin: 2px 0 0; font-family: 'Sora', sans-serif; font-weight: 700; font-size: calc(19 * var(--px)); color: var(--heading); } .pf-mini-n dd .delta { display: inline-block; }
.pf-mini-pl { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0; font-size: calc(13.5 * var(--px)); } .pf-mini-off .pl { opacity: .6; } .pf-mini-hint { margin: 0; }

.kv-list { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 9px 16px; margin: 0; }
.kv-list dt { color: var(--muted); font-size: calc(14 * var(--px)); }
.kv-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.list > li:last-child { border-bottom: 0; }
.list > li:first-child { padding-top: 2px; }
.list .grow { flex: 1 1 14em; min-width: 0; }
.list .meta { color: var(--muted); font-size: calc(13 * var(--px)); }
.list a.item { text-decoration: none; display: block; }
.sum-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.badges-in { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.more-line { margin-top: 10px; }
.list a.item:hover b { text-decoration: underline; text-decoration-color: var(--lilac); }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 4px 20px; border-radius: 999px; border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-text); font: inherit; font-size: calc(14.5 * var(--px)); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .1s; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--heading); border-color: var(--border); }
.btn.ghost:hover { background: var(--ghost-hover); border-color: var(--border-strong); }
.btn.quiet { background: transparent; border-color: transparent; color: var(--heading); }
.btn.quiet:hover { background: var(--ghost-hover); }
.btn.danger { background: var(--surface); color: var(--danger); border-color: var(--border); }
.btn.danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn.sm { min-height: 34px; padding: 3px 14px; font-size: calc(13.5 * var(--px)); }
.btn.xs { min-height: 28px; padding: 2px 11px; font-size: calc(12.5 * var(--px)); gap: 6px; }
.btn.xs .ico { width: 15px; height: 15px; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.linkbtn:hover { text-decoration-color: var(--lilac); }
.linkbtn.danger { color: var(--danger); }
form.inline { display: inline; margin: 0; }

/* ------------------------------------------------------------------ forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label, .label { font-size: calc(13 * var(--px)); font-weight: 600; color: var(--heading); }
.field .help, .help { color: var(--muted); font-size: calc(12.5 * var(--px)); line-height: 1.4; font-weight: 400; }
input[type=text], input[type=email], input[type=date], input[type=number], input[type=search], input[type=url], input[type=tel], input[type=month], input[type=password], input:not([type]), select, textarea {
  width: 100%; min-height: 42px; padding: 9px 13px; border-radius: var(--radius-sm); border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text);
  font: inherit; font-size: calc(15 * var(--px)); line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 84px; }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: 2px solid transparent; outline-offset: 1px; border-color: var(--focus-ring); box-shadow: 0 0 0 3px var(--focus); }
input[readonly] { background: var(--surface-2); }
input[type=file] { font: inherit; font-size: calc(14 * var(--px)); color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-size: calc(13.5 * var(--px)); font-weight: 600; border: 1px solid var(--border-strong); background: var(--surface); color: var(--heading); border-radius: 999px; padding: 7px 14px; margin-right: 10px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: calc(14.5 * var(--px)); line-height: 1.4; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--lilac); flex: none; }
.check .help { display: block; margin-top: 2px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--input-border); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-size: calc(14 * var(--px)); }
.radio-row input { accent-color: var(--lilac); margin: 0; }
.radio-row label:has(input:checked) { border-color: var(--lilac); background: var(--lilac-soft); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 18px; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
fieldset > legend { font-family: 'Sora', sans-serif; font-weight: 700; font-size: calc(16 * var(--px)); color: var(--heading); margin-bottom: 14px; padding: 0; }
.dyn-row { display: grid; grid-template-columns: 1fr 140px 40px; gap: 8px; align-items: center; margin-bottom: 8px; }
.search { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search input, .search select { width: auto; min-width: 180px; flex: 1; }
.search select { flex: 0 1 220px; }
.search .check input, .search input[type=checkbox] { min-width: 0; width: 18px; flex: none; }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: calc(14.5 * var(--px)); }
table.t th { text-align: left; font-family: 'JetBrains Mono', monospace; font-size: calc(10.5 * var(--px)); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 0 12px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.t td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t td:first-child, table.t th:first-child { padding-left: 2px; }
table.t td:last-child, table.t th:last-child { padding-right: 2px; }
table.t .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.t tr.dim td { color: var(--muted); }
table.t tr.dim td s { opacity: .8; }
table.t a.rowlink { text-decoration: none; font-weight: 600; color: var(--heading); }
table.t a.rowlink:hover { text-decoration: underline; text-decoration-color: var(--lilac); }
table.t tfoot td { font-weight: 700; border-top: 1px solid var(--border-strong); border-bottom: 0; }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount.neg { color: var(--danger); }

/* ------------------------------------------------------------------ badges, pills */
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 1px 10px; border-radius: 999px; font-size: calc(12.5 * var(--px)); font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid transparent; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .8; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-lilac { background: var(--lilac-soft); color: var(--lilac-text); }
.badge-muted { background: var(--surface-2); color: var(--muted); }
.badge.plain::before { display: none; }
.badge.vis::before { display: none; } .badge.vis { gap: 5px; } .badge.vis .ico { width: 13px; height: 13px; flex: none; }
.pl { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; color: var(--pl, var(--muted)); vertical-align: -.2em; }
.pl-l, .pl-only, .pl-set { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.pl-youtube { --pl: #FF0000; } .pl-instagram { --pl: #FF0069; } .pl-tiktok, .pl-x, .pl-threads { --pl: var(--heading); } .pl-twitch { --pl: #9146FF; }
.pl-facebook { --pl: #0866FF; } .pl-discord { --pl: #5865F2; } .pl-reddit { --pl: #FF4500; } .pl-telegram { --pl: #26A5E4; } .pl-spotify { --pl: #1DB954; }
.pl-apple_music { --pl: #FA243C; } .pl-soundcloud { --pl: #FF5500; } .pl-deezer { --pl: #A238FF; } .pl-onlyfans, .pl-fansly { --pl: #0099DD; }
.pl-snapchat { --pl: var(--pl-snap); } .pl-kick { --pl: var(--pl-kick); }
.btn:not(.ghost):not(.quiet) .pl-tiktok, .btn:not(.ghost):not(.quiet) .pl-x, .btn:not(.ghost):not(.quiet) .pl-threads { --pl: currentColor; }
@media (forced-colors: active) { .pl { color: CanvasText; } }
.tag { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: calc(11 * var(--px)); letter-spacing: .04em; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }

/* ------------------------------------------------------------------ tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: 0 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { text-decoration: none; color: var(--muted); padding: 10px 14px 12px; font-size: calc(14.5 * var(--px)); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 7px; align-items: center; }
.tabs a:hover { color: var(--heading); }
.tabs a.on { color: var(--heading); font-weight: 600; border-bottom-color: var(--lilac); }
.tabs a.tab-out { color: var(--lilac-text); font-weight: 600; } .tabs a.tab-out .ico { width: 16px; height: 16px; }
.tabs .count { font-family: 'JetBrains Mono', monospace; font-size: calc(11 * var(--px)); color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 0 7px; line-height: 1.65; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); flex-wrap: wrap; }
.seg a { text-decoration: none; font-size: calc(13.5 * var(--px)); padding: 6px 13px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.seg a.on { background: var(--surface); color: var(--heading); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* ------------------------------------------------------------------ flash, notes */
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; margin-bottom: 16px; font-size: calc(14.5 * var(--px)); border: 1px solid transparent; }
.flash .ico { margin-top: 2px; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.error { background: var(--danger-bg); color: var(--danger); }
.flash.info { background: var(--info-bg); color: var(--info); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }
.flash p { margin: 0; color: inherit; }
.note { border-left: 3px solid var(--lilac); background: var(--lilac-soft); border-radius: 4px 12px 12px 4px; padding: 12px 16px; font-size: calc(14 * var(--px)); color: var(--text); }
.note b { color: var(--heading); }
.note.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.note.danger { border-left-color: var(--danger); background: var(--danger-bg); }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty p { margin-bottom: 14px; }

/* ------------------------------------------------------------------ timeline */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--border); border-radius: 2px; }
.tl > li { position: relative; padding: 0 0 20px 40px; }
.tl > li:last-child { padding-bottom: 0; }
.tl .dot { position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 999px; background: var(--surface); border: 2px solid var(--border-strong); }
.tl li.k-done .dot { border-color: var(--lilac); background: var(--lilac); box-shadow: 0 0 0 4px var(--lilac-soft); }
.tl li.k-life .dot { border-color: var(--navy); background: var(--navy); }
.tl li.k-auto .dot { width: 10px; height: 10px; left: 7px; top: 7px; border-width: 2px; }
.tl li.revoked .dot { border-style: dashed; background: var(--surface); box-shadow: none; }
.tl .h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tl .h b { color: var(--heading); font-weight: 650; }
.tl .when { font-family: 'JetBrains Mono', monospace; font-size: calc(11.5 * var(--px)); color: var(--muted); letter-spacing: .02em; }
.tl .d { color: var(--muted); font-size: calc(13.5 * var(--px)); margin-top: 2px; }
.tl .nt { margin-top: 6px; font-size: calc(14 * var(--px)); background: var(--surface-2); border-radius: 10px; padding: 8px 12px; white-space: pre-line; }
.tl li.revoked .h b, .tl li.revoked .d { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); }
.tl .why { font-size: calc(13 * var(--px)); color: var(--danger); margin-top: 4px; }
.tl .acts { margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; font-size: calc(13 * var(--px)); }

/* process steps of a document */
.steps { display: flex; gap: 0; margin: 4px 0 6px; counter-reset: st; flex-wrap: wrap; }
.steps li { list-style: none; flex: 1 1 0; min-width: 110px; position: relative; padding: 30px 8px 0 0; font-size: calc(13 * var(--px)); color: var(--muted); }
.steps li::before { content: ''; position: absolute; top: 10px; left: 0; right: 0; height: 2px; background: var(--border); }
.steps li::after { counter-increment: st; content: counter(st); position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong); font-family: 'JetBrains Mono', monospace; font-size: calc(11 * var(--px)); color: var(--muted); }
.steps li.done { color: var(--heading); }
.steps li.done::before { background: var(--lilac); }
.steps li.done::after { content: '✓'; background: var(--lilac); border-color: var(--lilac); color: #fff; }
.steps li.next::after { border-color: var(--lilac); color: var(--lilac-text); }
.steps li b { display: block; font-weight: 600; font-size: calc(13.5 * var(--px)); }
.steps li span { display: block; font-size: calc(12 * var(--px)); color: var(--muted); }
.steps { padding-left: 0; }

/* collapsible forms (details) */
details.pop { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
details.pop + details.pop { margin-top: 10px; }
details.pop > summary { list-style: none; cursor: pointer; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--heading); }
details.pop > summary::-webkit-details-marker { display: none; }
details.pop > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
details.pop[open] > summary::after { transform: rotate(-135deg); }
details.pop > .in { padding: 4px 16px 16px; }
details.pop.primary { border-color: var(--lilac); box-shadow: 0 0 0 3px var(--lilac-soft); }

/* modal dialog */
dialog.modal { border: 1px solid var(--border); border-radius: 20px; padding: 0; background: var(--surface); color: var(--text); width: min(460px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(0,0,0,.25); }
dialog.modal::backdrop { background: rgba(15, 17, 30, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
dialog.modal .in { padding: 22px 24px 8px; }
dialog.modal .in h3 { margin-bottom: 8px; }
dialog.modal .acts { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px 20px; }

/* ------------------------------------------------------------------ footer */
.site-foot { margin-top: auto; color: var(--footer-text); }
.site-foot .wave i { background: var(--footer-bg); -webkit-mask-image: url('../img/wave-up.svg'); mask-image: url('../img/wave-up.svg'); }
.site-foot .wave i + i { opacity: .5; }
.site-foot .in { background: var(--footer-bg); padding: 22px 0 26px; font-size: calc(13 * var(--px)); }
.site-foot .row { justify-content: space-between; }
.site-foot a { color: var(--footer-text); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.site-foot .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-foot .brand-mark { width: 20px; height: 20px; --art-navy: #ECEEF0; --art-slate: #A0A5AB; }
.site-foot .b { display: flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------------ bare pages (login, waiting) */
body.bare main { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 48px 20px 64px; }
.auth { width: min(440px, 100%); margin-inline: auto; text-align: center; }
.auth .brand { justify-content: center; margin-bottom: 30px; }
.auth .brand-mark { width: 44px; height: 44px; }
.auth .brand-word b { font-size: calc(22 * var(--px)); }
.auth .brand-word span { font-size: calc(10.5 * var(--px)); }
.auth .card { text-align: left; padding: 30px 30px 26px; box-shadow: var(--shadow); min-width: 0; overflow-wrap: anywhere; }
.auth h1 { font-size: calc(26 * var(--px)); margin-bottom: 8px; }
.auth .lead { color: var(--muted); margin-bottom: 22px; }
.auth .btn { width: 100%; min-height: 48px; font-size: calc(15.5 * var(--px)); }
.auth .fine { color: var(--muted); font-size: calc(12.5 * var(--px)); margin-top: 18px; text-align: center; }
.auth .status { min-height: 22px; margin-top: 14px; font-size: calc(14 * var(--px)); color: var(--muted); text-align: center; }
.auth .status.err { color: var(--danger); }
.spinner { width: 18px; height: 18px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; vertical-align: -4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.dev-box { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border-strong); }
.dev-box .row { justify-content: center; }

/* ------------------------------------------------------------------ portal */
.hello { display: flex; gap: 18px; align-items: center; margin-bottom: 26px; }
.hello .avatar { width: 54px; height: 54px; font-size: calc(18 * var(--px)); }
.todo { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); }
.todo + .todo { margin-top: 10px; }
.todo .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--lilac-soft); color: var(--lilac-text); flex: none; }
.todo .grow { flex: 1; min-width: 0; }
.todo .grow b { display: block; color: var(--heading); }
.todo .grow span { color: var(--muted); font-size: calc(13.5 * var(--px)); }
.pay-box { background: var(--surface-2); border-radius: 14px; padding: 14px 16px; font-size: calc(14 * var(--px)); }
.pay-box dl { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; }
.pay-box dt { color: var(--muted); }
.pay-box dd { margin: 0; font-family: 'JetBrains Mono', monospace; font-size: calc(13 * var(--px)); overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ editor */
body.editing main { padding-top: 18px; padding-bottom: 40px; }
.ed-top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 16px; }
.ed-top h1 { font-size: calc(22 * var(--px)); }
.ed-top .sub { color: var(--muted); font-size: calc(13.5 * var(--px)); margin-top: 4px; }
.ed-status { font-size: calc(13 * var(--px)); color: var(--muted); display: inline-flex; align-items: center; gap: 7px; min-width: 150px; justify-content: flex-end; }
.ed-status.dirty { color: var(--warn); }
.ed-status.err { color: var(--danger); }
.ed-status::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }
.ed-status.dirty::before { background: var(--warn); }
.ed-status.err::before { background: var(--danger); }
.ed-status.busy::before { background: var(--lilac); animation: pulse 1s ease infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; }
.ed-canvas { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 18px; overflow: hidden; }
.ed-page { background: #fff; color: #33364A; width: 100%; max-width: 794px; margin: 0 auto; padding: 72px 64px 80px; box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 18px 40px rgba(20,22,40,.10); border-radius: 4px; position: relative; min-height: 600px; }
.ed-page.discreet::before { content: 'Diskret'; position: absolute; top: 18px; right: 22px; font-family: 'JetBrains Mono', monospace; font-size: calc(10 * var(--px)); letter-spacing: .12em; text-transform: uppercase; color: #8E73B0; border: 1px solid #D8CDE8; border-radius: 999px; padding: 2px 9px; }
.eb { position: relative; border-radius: 6px; margin: 0 -12px; padding: 2px 12px; outline: 1px solid transparent; transition: outline-color .12s, background-color .12s; cursor: text; }
.eb:hover { outline-color: #E6E1EF; }
.eb.on { outline: 2px solid #9379B4; background: #FCFBFE; cursor: default; }
.eb.hidden-block { background: repeating-linear-gradient(-45deg, #FAF8FD, #FAF8FD 8px, #F4F0FA 8px, #F4F0FA 16px); }
.eb.hidden-block::after { content: 'nur im Editor'; position: absolute; right: 8px; top: 4px; font-family: 'JetBrains Mono', monospace; font-size: calc(9.5 * var(--px)); color: #8E73B0; letter-spacing: .06em; }
.eb .tok { background: #EFEAF7; border-radius: 3px; box-shadow: 0 0 0 1px #E2D9F0; color: inherit; padding: 0 1px; }
.eb .tok.empty { background: #FFF7E8; box-shadow: 0 0 0 1px #F1DDB3; color: #8A5A00; font-size: .92em; padding: 0 3px; }
.eb .gap { background: #F5F0FB; border-radius: 3px; color: #6E5394; }
.eb-tools { position: absolute; top: -40px; left: 8px; display: none; gap: 4px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 4px; z-index: 5; font-family: 'Instrument Sans', sans-serif; font-size: calc(13 * var(--px)); color: var(--text); white-space: nowrap; }
.eb.on > .eb-tools { display: flex; }
.eb-tools button, .eb-tools select { height: 30px; min-height: 30px; border: 0; background: transparent; color: var(--heading); border-radius: 8px; padding: 0 9px; font: inherit; font-size: calc(13 * var(--px)); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; width: auto; }
.eb-tools select { padding-right: 26px; background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%; border: 1px solid var(--border); }
.eb-tools button:hover { background: var(--ghost-hover); }
.eb-tools button.del:hover { background: var(--danger-bg); color: var(--danger); }
.eb-tools .sep { width: 1px; height: 18px; background: var(--border); margin: 0 2px; }
.eb-tools .ico { width: 16px; height: 16px; }
.eb-form { font-family: 'Instrument Sans', sans-serif; font-size: calc(14 * var(--px)); color: #1B2040; padding: 10px 0 8px; display: grid; gap: 10px; }
.eb-form label.l { font-size: calc(12 * var(--px)); font-weight: 600; color: #4E5689; display: block; margin-bottom: 4px; }
.eb-form textarea, .eb-form input[type=text], .eb-form input:not([type]), .eb-form select { background: #fff; color: #1B2040; border-color: #CDD0E2; font-size: calc(14 * var(--px)); min-height: 36px; padding: 7px 10px; border-radius: 9px; }
.eb-form textarea { min-height: 38px; resize: none; overflow: hidden; line-height: 1.45; font-family: 'Instrument Sans', sans-serif; }
.eb-form .flags { display: flex; gap: 14px; flex-wrap: wrap; font-size: calc(13 * var(--px)); color: #4E5689; }
.eb-form .flags label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.eb-form .flags input { accent-color: #9379B4; }
.eb-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eb-form .cells { display: grid; gap: 6px; }
.eb-form .cells .r { display: grid; gap: 6px; align-items: start; }
.eb-form .cells .r .x { width: 30px; height: 36px; border-radius: 8px; border: 1px solid #E1E3F0; background: #fff; color: #B3261E; cursor: pointer; }
.eb-form .add { justify-self: start; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px dashed #B9B3C8; background: #fff; color: #4E5689; cursor: pointer; font: inherit; font-size: calc(13 * var(--px)); }
.eb-form .add:hover { border-color: #9379B4; color: #6E5394; }
.eb-form .hint-line { font-size: calc(12 * var(--px)); color: #70748A; }
.eb-insert { display: flex; justify-content: center; height: 0; position: relative; z-index: 4; }
.eb-insert button { position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 999px; border: 1px solid #D8CDE8; background: #fff; color: #8E73B0; display: none; place-items: center; cursor: pointer; padding: 0; font-size: calc(16 * var(--px)); line-height: 1; }
.eb.on + .eb-insert button, .eb-insert:hover button { display: grid; }
.ed-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 110px); }
.ed-side .card { padding: 16px 18px; }
.ed-side .tabs { margin-bottom: 12px; }
.ed-side .tabs a { padding: 8px 10px 10px; font-size: calc(13.5 * var(--px)); cursor: pointer; }
.ed-panel { overflow: auto; max-height: calc(100vh - 290px); margin: 0 -6px; padding: 0 6px; }
.fld { display: grid; gap: 4px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.fld:last-child { border-bottom: 0; }
.fld .k { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: calc(13 * var(--px)); }
.fld .k b { color: var(--heading); font-weight: 600; }
.fld .k button { font-size: calc(12 * var(--px)); }
.fld input { min-height: 34px; padding: 6px 10px; font-size: calc(13.5 * var(--px)); border-radius: 9px; }
.fld .v { font-size: calc(13 * var(--px)); color: var(--muted); overflow-wrap: anywhere; }
.fld.missing .v { color: var(--warn); }
.fgroup { font-family: 'JetBrains Mono', monospace; font-size: calc(10.5 * var(--px)); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 0 2px; }
.fgroup:first-child { margin-top: 0; }
.gapi { padding: 10px 0; border-bottom: 1px solid var(--border); display: grid; gap: 6px; }
.gapi:last-child { border-bottom: 0; }
.gapi .g { font-size: calc(13.5 * var(--px)); color: var(--lilac-text); font-weight: 600; overflow-wrap: anywhere; }
.gapi .ctx { font-size: calc(12.5 * var(--px)); color: var(--muted); overflow-wrap: anywhere; }
.gapi .row input { flex: 1; min-height: 34px; padding: 6px 10px; font-size: calc(13.5 * var(--px)); border-radius: 9px; }
.revi { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: calc(13.5 * var(--px)); }
.revi:last-child { border-bottom: 0; }
.revi span { color: var(--muted); font-size: calc(12.5 * var(--px)); display: block; }
.tokpick { position: absolute; z-index: 60; width: 320px; max-height: 340px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; font-family: 'Instrument Sans', sans-serif; }
.tokpick input { min-height: 34px; padding: 6px 10px; font-size: calc(13.5 * var(--px)); margin-bottom: 6px; border-radius: 9px; }
.tokpick button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 6px 8px; cursor: pointer; color: var(--text); font: inherit; font-size: calc(13.5 * var(--px)); }
.tokpick button:hover, .tokpick button.on { background: var(--ghost-hover); }
.tokpick button small { display: block; color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: calc(11 * var(--px)); }
.tokpick .g { font-family: 'JetBrains Mono', monospace; font-size: calc(10.5 * var(--px)); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 8px 8px 2px; }
.addmenu { position: absolute; z-index: 60; width: 260px; max-height: 360px; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.addmenu button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 7px 10px; cursor: pointer; color: var(--text); font: inherit; font-size: calc(13.5 * var(--px)); }
.addmenu button:hover { background: var(--ghost-hover); }
.ed-help { font-size: calc(13.5 * var(--px)); color: var(--muted); }
.ed-help b { color: var(--heading); }
.ed-help ul { padding-left: 18px; margin: 6px 0 10px; }
.ed-help code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; color: var(--heading); }

/* editor: paper resets (global heading styles must not leak into the document) */
.paper h1, .paper h2, .paper h3 { font-family: inherit; letter-spacing: normal; }
.paper img { max-width: 100%; }
.eb .ph { color: #6F6888; font-style: italic; font-weight: normal; }
.eb .gap, .eb .blank, .eb .tok { cursor: pointer; }
.eb .gap:hover, .eb .blank:hover { background: #ECE4F7; }
.eb.on .box[data-p], .eb.on [data-chk] { cursor: pointer; }
.eb .tok.unknown { background: #FBE5E3; box-shadow: 0 0 0 1px #F2C4BF; color: #B3261E; }
.eb.t-sp, .eb.t-pb { min-height: 16px; }
.eb.t-sp .sp { min-height: 6px; }
.eb.t-sp:hover .sp, .eb.t-sp.on .sp { background: repeating-linear-gradient(90deg, #F1EEF7 0 6px, transparent 6px 12px); }
.eb.t-pb { padding-top: 8px; padding-bottom: 8px; }
.eb.t-pb .pagebreak { margin: 0; }
.eb-lbl { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-family: 'JetBrains Mono', monospace; font-size: calc(9.5 * var(--px)); letter-spacing: .06em; color: #8E73B0; background: #fff; padding: 0 6px; pointer-events: none; opacity: 0; transition: opacity .12s; }
.eb:hover .eb-lbl, .eb.on .eb-lbl, .eb.t-pb .eb-lbl { opacity: 1; }
.eb-tools button[aria-pressed="true"] { background: var(--lilac-soft); color: var(--lilac-text); }
.eb-form .numrow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: start; }
.eb-form .cells > .l, .eb-form .r.head .l { font-size: calc(12 * var(--px)); font-weight: 600; color: #4E5689; }
.eb-form .r.head { margin-bottom: -2px; }
.eb-form .gridwrap { overflow-x: auto; padding-bottom: 2px; }
.eb-form .row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.eb-form select.mini { min-height: 30px; height: 30px; padding: 2px 28px 2px 9px; font-size: calc(13 * var(--px)); width: auto; display: inline-block; border-radius: 8px; }
.eb-form .flags label select.mini { margin-left: 4px; }
.eb-form .r > div > select.mini { width: 100%; height: 36px; min-height: 36px; }
.ed-empty { text-align: center; padding: 70px 0; font-family: 'Instrument Sans', sans-serif; color: #70748A; }
.ed-empty p { margin-bottom: 14px; }
.fsearch { min-height: 34px; padding: 6px 12px; font-size: calc(13.5 * var(--px)); border-radius: 999px; margin: 0 0 6px; }
.fmore { margin-top: 14px; border-top: 1px solid var(--border); }
.fmore > summary { cursor: pointer; font-size: calc(13.5 * var(--px)); color: var(--heading); font-weight: 600; padding: 12px 0 4px; list-style: none; }
.fmore > summary::-webkit-details-marker { display: none; }
.fmore > summary::before { content: '+'; display: inline-block; width: 16px; color: var(--lilac); }
.fmore[open] > summary::before { content: '−'; }
.fld[hidden] { display: none; }
.tokpick .list { display: block; }
.tabs .count.zero { background: var(--ok-bg); color: var(--ok); }
.gapi .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.gapi .ctx b { color: var(--lilac-text); font-weight: 600; }
.ed-toast { position: fixed; left: 50%; bottom: 22px; z-index: 80; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 12px; background: var(--navy); color: var(--surface); border-radius: 999px; padding: 9px 10px 9px 18px; font-size: calc(14 * var(--px)); box-shadow: var(--shadow); transition: opacity .18s ease, transform .18s ease; max-width: calc(100vw - 32px); }
.ed-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ed-toast button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: inherit; font: inherit; font-size: calc(13 * var(--px)); font-weight: 600; padding: 6px 12px; cursor: pointer; }
.ed-toast button:hover { background: rgba(255,255,255,.24); }
:root[data-theme="dark"] .ed-toast button { background: rgba(0,0,0,.08); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ed-toast button { background: rgba(0,0,0,.08); } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 68.75em) {
  .nav a { padding: 8px 9px; font-size: calc(14 * var(--px)); }
  .ed { grid-template-columns: minmax(0, 1fr); }
  .ed-side { position: static; max-height: none; }
  .ed-panel { max-height: 420px; }
  .grid.side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 60em) {
  .burger { display: inline-grid; }
  .nav { display: none; position: absolute; top: 74px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: calc(15.5 * var(--px)); border-radius: 12px; }
  .nav-row { display: none; }
  .nav-list, .nav-sec { display: flex; flex-direction: column; gap: 2px; }
  .nav-h { margin: 10px 14px 4px; font-family: 'JetBrains Mono', monospace; font-size: calc(11.5 * var(--px)); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac-text); }
  .nav-sec + a.sep, .nav-list > a.sep { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 12px 12px; padding-top: 14px; }
  .nav a.on::after { display: none; }
  .nav a.on { background: var(--ghost-hover); }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 43.75em) {
  body { font-size: calc(15 * var(--px)); }
  .wrap { padding: 0 16px; }
  main { padding: 24px 0 56px; }
  .head-in { height: 64px; gap: 10px; }
  .nav { top: 64px; }
  .brand-word span { display: none; }
  .grid.c2, .grid.c3, .form-grid, .form-grid.c3, .form-grid.c4 { grid-template-columns: minmax(0, 1fr); }
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 18px 16px; border-radius: 16px; }
  .card .card-foot { margin: 16px -16px -18px; padding: 12px 16px; }
  .page-head { margin-bottom: 18px; }
  .page-head .actions { width: 100%; }
  .kv-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv-list dd { margin-bottom: 10px; }
  .stat .n { font-size: calc(22 * var(--px)); }
  .grid.c4 .stat .n.amount { font-size: calc(19 * var(--px)); }   /* "194.676,00 €" stays on one line in a half-width card */
  .ed-canvas { padding: 10px 6px; border-radius: 14px; }
  .ed-page { padding: 34px 22px 44px; }
  .eb { margin: 0 -8px; padding: 2px 8px; }
  .eb.on > .eb-tools { position: static; margin: 4px 0 8px; flex-wrap: wrap; white-space: normal; box-shadow: none; }
  .eb-form .numrow { grid-template-columns: minmax(0, 1fr); }
  .eb-form .cells .r { grid-template-columns: minmax(0, 1fr) !important; border-bottom: 1px dashed #E1E3F0; padding-bottom: 8px; }
  .eb-form .cells .r > div { grid-column: auto !important; }
  .eb-form .cells .r .x { justify-self: end; }
  .eb-form .cells .r.head { display: none; }
  .eb-form .two { grid-template-columns: minmax(0, 1fr); }
  table.t.stack-sm thead { display: none; }
  table.t.stack-sm tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  table.t.stack-sm tr:last-child { border-bottom: 0; }
  table.t.stack-sm td { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 6px; padding: 4px 0; border: 0; text-align: right; }
  table.t.stack-sm td::before { content: attr(data-l); color: var(--muted); font-size: calc(13 * var(--px)); text-align: left; flex: none; margin-right: auto; padding-right: 12px; }
  table.t.stack-sm td.main { display: block; text-align: left; padding-bottom: 6px; }
  table.t.stack-sm td.main::before { display: none; }
  .steps li { min-width: 0; flex: 1 1 33%; padding-bottom: 12px; }
  .dyn-row { grid-template-columns: 1fr 100px 36px; }
  .search input, .search select { min-width: 0; flex: 1 1 100%; }
  .search .check input, .search input[type=checkbox] { flex: none; }
  .todo { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; row-gap: 10px; }
  .todo > .grow ~ * { grid-column: 2; justify-self: start; }
}
@media print {
  .site-head, .site-foot, .page-head .actions, .no-print { display: none !important; }
  body { background: #fff; }
  .card { border: 0; padding: 0; }
}
details.inline-rev { display: inline; }
details.inline-rev > summary { list-style: none; display: inline; color: var(--muted); }
details.inline-rev > summary::-webkit-details-marker { display: none; }
details.inline-rev[open] { display: block; width: 100%; }

/* ------------------------------------------------------------------ channels: pictures, search, confirmation */
.ch-avatar { width: 40px; height: 40px; border-radius: 999px; flex: none; object-fit: cover; background: var(--surface-2); box-shadow: 0 0 0 1px var(--border); }
.ch-avatar.lg { width: 64px; height: 64px; }
.ch-avatar.ph { display: grid; place-items: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: calc(15 * var(--px)); color: var(--muted); }
.ch-avatar.lg.ph { font-size: calc(22 * var(--px)); }
.ch-avatar.ph .pl { width: 20px; height: 20px; } .ch-avatar.lg.ph .pl { width: 30px; height: 30px; }
.ch-av { position: relative; display: inline-flex; flex: none; }
.ch-pl { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.ch-pl .pl { width: 12px; height: 12px; } .ch-av.lg .ch-pl { width: 26px; height: 26px; } .ch-av.lg .ch-pl .pl { width: 16px; height: 16px; }
.ch-cell { display: flex; gap: 12px; align-items: center; min-width: 0; }
.ch-cell > div { min-width: 0; overflow-wrap: anywhere; }
.ch-name { color: var(--heading); font-weight: 600; }
.ch-at { color: var(--muted); font-size: calc(12 * var(--px)); font-weight: 400; margin-top: 2px; white-space: normal; }
.ch-at.bad { color: var(--warn); }
.input-btn { display: flex; gap: 8px; align-items: center; }
.input-btn input { flex: 1; min-width: 0; }
.input-btn .btn { flex: none; min-height: 42px; }
.ch-confirm { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.ch-confirm .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ch-count { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--heading); font-size: calc(17 * var(--px)); margin-top: 4px; }
.ch-q { margin: 12px 0 8px; font-weight: 600; color: var(--heading); }
[data-ch-result] .note { margin: 0; }
.connect-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 10px; justify-items: start; }
.connect-box p { margin: 0; }

/* ------------------------------------------------------------------ settings: platform interfaces */
fieldset.plat { padding: 18px 0 4px; margin: 0; border-top: 1px solid var(--border); }
fieldset.plat:first-of-type { border-top: 0; padding-top: 4px; }
fieldset.plat > legend { display: flex; gap: 10px; align-items: center; float: left; width: 100%; margin-bottom: 6px; }
fieldset.plat > legend + * { clear: both; }
.plat-extra { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
.plat-extra p { margin: 0; }
.check.mini { font-size: calc(13 * var(--px)); color: var(--muted); margin-top: 2px; }
.check.mini input { width: 15px; height: 15px; }
code.sel { user-select: all; font-family: 'JetBrains Mono', monospace; font-size: calc(12.5 * var(--px)); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ legal pages and consent */
.legal { max-width: 760px; }
.legal h2 { font-size: calc(19 * var(--px)); margin: 30px 0 10px; }
.legal h3 { font-size: calc(16 * var(--px)); margin: 20px 0 6px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.2em; margin: 8px 0 12px; }
.legal li + li { margin-top: 4px; }
.legal .stand { color: var(--muted); font-size: calc(13.5 * var(--px)); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.consent-card { max-width: 640px; margin: 0 auto; }
.consent-card .check { margin-top: 16px; }

@media (max-width: 40em) {
  .ch-confirm { align-items: flex-start; }
  .input-btn { flex-wrap: wrap; }
  .input-btn .btn { width: 100%; }
}


/* ---------------------------------------------------------------- naimex.de/creator (Website) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.row > .grow { flex: 1; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.web-pic { width: 120px; height: 160px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--lilac-soft); flex: none; }
.web-card { display: flex; flex-direction: column; gap: 4px; }
.web-card img, .web-card .web-ini { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); }
.web-ini { display: grid !important; place-items: center; background: var(--lilac-soft); color: var(--lilac-text); font-size: calc(44 * var(--px)); font-weight: 700; letter-spacing: .04em; }
.web-card b { margin-top: 8px; color: var(--heading); font-size: calc(16 * var(--px)); }
.web-rows { display: grid; gap: 8px; }
.web-rows .web-ch { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.4fr) 110px minmax(0, 1fr); gap: 8px; }
.web-rows .web-ch > * { min-width: 0; }
@media (max-width: 53.75em) { .web-rows .web-ch { grid-template-columns: 1fr 1fr; } .web-rows .web-ch > :nth-child(3) { grid-column: 1 / -1; } }
.web-list td .small { overflow-wrap: anywhere; }

/* ---------- Auswertung: grouped bars per month ----------
   Series colours checked with the palette validator for neighbouring bars (light on #FFFFFF, dark on #2D3135):
   lightness band, chroma, colour-blind separation and contrast all pass. Order is fixed: income, commission, services. */
.chart-card { --series-1: #3d5bd9; --series-2: #12917a; --series-3: #a64fb5; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chart-card { --series-1: #5b78e0; --series-2: #1f9e7c; --series-3: #b066c4; }
}
:root[data-theme="dark"] .chart-card { --series-1: #5b78e0; --series-2: #1f9e7c; --series-3: #b066c4; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: calc(13 * var(--px)); color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend i.s1, .chart-bar.s1, .chart-tip i.s1 { background: var(--series-1); }
.legend i.s2, .chart-bar.s2, .chart-tip i.s2 { background: var(--series-2); }
.legend i.s3, .chart-bar.s3, .chart-tip i.s3 { background: var(--series-3); }
.chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; padding-top: 4px; }
.chart-col { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; border-radius: 8px; outline: none; cursor: default; }
.chart-col.off .chart-area, .chart-col.off .chart-l { opacity: .38; }
.chart-area { height: 170px; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid var(--border); border-radius: 6px 6px 0 0; transition: background-color .15s; }
.chart-col:hover .chart-area, .chart-col:focus-visible .chart-area { background: var(--surface-2); }
.chart-col:focus-visible { box-shadow: 0 0 0 3px var(--focus); }
.chart-bar { display: block; width: 30%; max-width: 14px; border-radius: 4px 4px 0 0; min-height: 0; }
.chart-l { font-size: calc(11.5 * var(--px)); color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
.chart-tip { display: none; position: absolute; z-index: 3; bottom: calc(100% - 6px); left: 50%; transform: translateX(-50%); min-width: 190px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); font-size: calc(12.5 * var(--px)); line-height: 1.5; color: var(--text); white-space: nowrap; pointer-events: none; }
.chart-tip b { display: block; margin-bottom: 2px; color: var(--heading); }
.chart-tip span { display: flex; justify-content: space-between; gap: 14px; }
.chart-tip span em { font-style: normal; color: var(--muted); }
.chart-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.chart-col:nth-child(-n+2) .chart-tip { left: 0; transform: none; }
.chart-col:nth-last-child(-n+2) .chart-tip { left: auto; right: 0; transform: none; }
.chart-col:hover .chart-tip, .chart-col:focus-visible .chart-tip { display: block; }
@media (max-width: 35em) {
  .chart { gap: 3px; }
  .chart-area { height: 130px; gap: 1px; }
  .chart-l { font-size: calc(10 * var(--px)); }
}
.year-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 14px; }
.year-stats .stat .n { font-size: calc(22 * var(--px)); }
@media (max-width: 45em) { .year-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- partner requests (partner.naimex.de, /admin/partner, /portal/anfragen) */
.pre { white-space: pre-line; overflow-wrap: anywhere; margin: 6px 0 0; }
.steps-list { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }
.pc-grid { align-items: stretch; }
.pc-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.pc-card h3 { font-size: calc(17 * var(--px)); }
.pc-pic { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
span.pc-pic { display: grid !important; place-items: center; }
.pc-ch { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pc-ch a { display: inline-flex; gap: 5px; align-items: baseline; font-size: calc(12.5 * var(--px)); padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; border: 1px solid var(--border); }
.pc-ch a:hover { border-color: var(--border-strong); }
.pc-ch b { color: var(--heading); font-weight: 600; }
.pc-foot { margin-top: auto; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.pc-foot .muted { min-width: 0; }
.pc-foot .btn { flex-shrink: 0; margin-left: auto; }
.pc-mini { text-decoration: none; color: inherit; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pick-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color .15s, background-color .15s; }
.pick-item:hover { border-color: var(--border-strong); }
.pick-item:has(input:checked) { border-color: var(--lilac); background: var(--lilac-soft); }
.pick-item input { width: 18px; height: 18px; flex: none; accent-color: var(--lilac); }
.pick-item img, .pick-item .ini, .offer-head img, .offer-head .ini { width: 42px; height: 56px; border-radius: 9px; object-fit: cover; flex: none; border: 1px solid var(--border); }
.pick-item .grow, .offer-head .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ini { display: grid; place-items: center; background: var(--lilac-soft); color: var(--lilac-text); font-weight: 700; font-size: calc(15 * var(--px)); letter-spacing: .03em; }
.offer { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: grid; gap: 12px; background: var(--surface); scroll-margin-top: 90px; }
.offer-head { display: flex; gap: 12px; align-items: center; }
.offer-head .grow { flex: 1; }
.offer-head b a { color: inherit; }
.offer .price { font-family: 'Sora', sans-serif; font-weight: 700; font-size: calc(19 * var(--px)); color: var(--heading); letter-spacing: -0.01em; margin-top: 2px; }
.offer-note { margin: 0; font-size: calc(14 * var(--px)); padding: 10px 12px; border-radius: 10px; background: var(--surface-2); white-space: pre-line; overflow-wrap: anywhere; }
.offer-acts { display: grid; gap: 10px; }
.offer-acts details.pop + details.pop { margin-top: 0; }
.thread { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.thread li { max-width: 86%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); border: 1px solid var(--border); }
.thread li.me { margin-left: auto; border-radius: 14px 14px 4px 14px; background: var(--lilac-soft); border-color: transparent; }
.thread .who { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: calc(12.5 * var(--px)); color: var(--muted); }
.thread .who b { color: var(--heading); font-weight: 600; }
.thread p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; font-size: calc(14.5 * var(--px)); }
.thread .att { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; font-size: calc(13.5 * var(--px)); overflow-wrap: anywhere; }
.thread-form textarea { min-height: 84px; }
.thread-acts { justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.file-pick { position: relative; display: inline-flex; gap: 6px; align-items: center; font-size: calc(13.5 * var(--px)); color: var(--muted); cursor: pointer; padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--border-strong); max-width: 100%; }
.file-pick:hover { color: var(--heading); }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-pick.has span { color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
details.thread-pop > summary .tag { margin-left: 4px; }
@media (max-width: 43.75em) {
  .thread li { max-width: 100%; }
  .pick { grid-template-columns: minmax(0, 1fr); }
  .offer { padding: 12px; }
}

/* ---------- Impressum (tab on the creator page): address with fixed prefix, service address, page preview ---------- */
.prefix-input { display: flex; align-items: stretch; min-width: 0; }
.prefix-input > span { display: flex; align-items: center; padding: 0 10px 0 13px; border: 1px solid var(--border-strong); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--surface-2); color: var(--muted); font-size: calc(14 * var(--px)); white-space: nowrap; }
.prefix-input > input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; min-width: 0; flex: 1; }
.ro-box { padding: 10px 13px; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong); background: var(--surface-2); font-size: calc(14.5 * var(--px)); line-height: 1.5; overflow-wrap: anywhere; }
/* Impressum preview: looks like naimex.de/impressum/<adresse> (page frame with the address; colours as on naimex.de) */
.imp-page { --imp-soft: #3A4063; --imp-link: #4E5689; --imp-note: #ECEDF5; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; overflow-wrap: anywhere; line-height: 1.55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .imp-page { --imp-soft: #CDD0D4; --imp-link: #D9DCE0; --imp-note: #282B2F; } }
:root[data-theme="dark"] .imp-page { --imp-soft: #CDD0D4; --imp-link: #D9DCE0; --imp-note: #282B2F; }
.imp-page .imp-bar { padding: 7px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.imp-page .imp-url { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: calc(11.5 * var(--px, 0.0625rem)); color: var(--muted); }
.imp-page .imp-body { padding: 22px 18px 20px; }
.imp-page .imp-title { margin: 0; font-size: calc(26 * var(--px, 0.0625rem)); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }
.imp-page .imp-name { margin: 8px 0 0; font-family: 'Sora', 'Instrument Sans', sans-serif; font-weight: 600; letter-spacing: -0.01em; font-size: calc(17 * var(--px, 0.0625rem)); line-height: 1.3; color: var(--text); }
.imp-page .imp-hinweis { margin: 20px 0 0; padding: 12px 14px 12px 15px; border-left: 3px solid var(--lilac); border-radius: 0 12px 12px 0; background: var(--imp-note); }
.imp-page .imp-hinweis p { margin: 0; color: var(--text); font-weight: 500; font-size: calc(13.5 * var(--px, 0.0625rem)); }
.imp-page .imp-abschnitt h5 { margin: 20px 0 6px; font-family: 'Sora', 'Instrument Sans', sans-serif; font-size: calc(15 * var(--px, 0.0625rem)); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--text); }
.imp-page .imp-abschnitt p { margin: 0 0 8px; color: var(--imp-soft); font-size: calc(14 * var(--px, 0.0625rem)); line-height: 1.75; }
.imp-page a { color: var(--imp-link); text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 2px; }
.imp-page .imp-stand { margin: 24px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: calc(12.5 * var(--px, 0.0625rem)); color: var(--muted); }
/* Postfach bei Naimex: numbered steps with their forms (tab "Zugang") */
.suffix-input { display: flex; align-items: stretch; min-width: 0; flex: 1 1 260px; max-width: 420px; }
.suffix-input > input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); min-width: 0; flex: 1; }
.suffix-input > span { display: flex; align-items: center; padding: 0 13px 0 10px; border: 1px solid var(--border-strong); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); color: var(--muted); font-size: calc(14 * var(--px)); white-space: nowrap; }
.pf-steps { list-style: none; margin: 18px 0 0; padding: 0; }
.pf-steps > li { position: relative; padding: 0 0 20px 42px; min-width: 0; }
.pf-steps > li:last-child { padding-bottom: 0; }
.pf-steps > li::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--border); }
.pf-steps > li:last-child::before { display: none; }
.pf-steps > li.done::before { background: var(--lilac); }
.pf-h { display: flex; align-items: center; min-height: 28px; }
.pf-h b { font-weight: 600; color: var(--heading); }
.pf-n { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; border: 2px solid var(--border-strong); background: var(--surface); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: calc(12 * var(--px)); color: var(--muted); }
.pf-steps > li.done .pf-n { background: var(--lilac); border-color: var(--lilac); color: #fff; font-size: 0; }
.pf-steps > li.done .pf-n::after { content: '✓'; font-size: calc(13 * var(--px)); font-family: inherit; }
.pf-b { margin-top: 4px; min-width: 0; }
.pf-b p { margin: 0; }
.pf-b .help { display: block; margin-top: 6px; }
.pf-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.pf-input { flex: 1 1 240px; max-width: 360px; min-width: 0; }
.pf-addr { font-size: calc(14 * var(--px)); overflow-wrap: anywhere; }
.pf-pw { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; padding: 8px 10px 8px 13px; border-radius: var(--radius-sm); border: 1px dashed var(--border-strong); background: var(--surface-2); max-width: 520px; }
.pf-pw[hidden] { display: none; }
.pf-pw code { font-size: calc(14 * var(--px)); letter-spacing: .03em; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 26.25em) {
  .pf-steps > li { padding-left: 38px; }
  .suffix-input { flex-basis: 100%; }
  .pf-input { flex-basis: 100%; max-width: none; }
}
/* the preview stays in view while the form scrolls (wide screens, below the sticky header) */
@media (min-width: 68.8125em) { .imp-side { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; } }
@media (max-width: 26.25em) {
  .prefix-input { flex-direction: column; }
  .prefix-input > span { padding: 6px 13px; border-right: 1px solid var(--border-strong); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .prefix-input > input { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
}
/* Impressum pages without a creator (menu "Impressum & Webseite"): channels typed in by hand, steps, history */
.imp-rows { display: grid; gap: 8px; }
.imp-rows .imp-ch { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.imp-rows .imp-ch > * { min-width: 0; }
@media (max-width: 53.75em) { .imp-rows .imp-ch { grid-template-columns: 1fr 1fr; } .imp-rows .imp-ch > :nth-child(3) { grid-column: 1 / -1; } }
.howto { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.howto li { padding-left: 2px; }
.howto li::marker { color: var(--lilac-text); font-weight: 600; }
.imp-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.imp-log li { display: grid; gap: 1px; font-size: calc(14 * var(--px)); }
.imp-list td.main a b, .imp-list .mono { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- lists in pages, placeholders, things on their way to the server */
.more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; }
.more[hidden] { display: none; }
.more-top { margin: 0; }
.skel td, li.skel, div.skel { padding-top: 15px; padding-bottom: 15px; }
.skel-bar { display: block; width: 55%; height: 12px; border-radius: 999px; background: var(--surface-2); position: relative; overflow: hidden; }
.skel td:first-child .skel-bar { width: 75%; }
.skel-bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--border), transparent); transform: translateX(-100%); animation: skel 1.1s ease-in-out infinite; }
@keyframes skel { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skel-bar::after { animation: none; } }
[data-region][data-loading] { opacity: .55; transition: opacity .15s; }
.thread li.pending, .list li.pending, tr.pending { opacity: .65; }

/* ================================================================ app view on phones, accessibility
   Contract shared by all naimex.de sites (see the Erklärung zur Barrierefreiheit on naimex.de):
   - text sizes follow the reader's setting (browser text size, iOS "Größerer Text"); layout grows instead of clipping
   - phones: tab bar at the bottom, sheet for "Mehr", safe areas, fields at 16 px (no zoom on focus), 44 px targets
   - "Bewegung reduzieren", "Kontrast erhöhen" and Windows contrast themes are honoured; focus is always visible */

/* iOS: the root takes the Dynamic Type size (17 px by default), --px keeps today's sizes at the default setting */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  :root { font: -apple-system-body; --px: calc(1rem / 17); }
}
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; top: calc(12px + env(safe-area-inset-top)); }
main:focus { outline: none; }
/* anchors and focused fields never end up hidden under the sticky header or the tab bar (WCAG 2.4.11) */
html { scroll-padding-top: 96px; }

/* links in the footer and in lists are big enough to hit (WCAG 2.5.8) */
.site-foot .links a { display: inline-block; padding: 6px 0; }
.site-foot .links { row-gap: 4px; }
a.eyebrow { padding: 4px 0; margin-top: -4px; }
table.t a.rowlink, td.main > a, .crumbs a { display: inline-block; padding: 3px 0; }
summary.linkbtn { padding: 4px 0; }
.check input, .pick-item input, .check.mini input { min-width: 18px; min-height: 18px; }
.seg a { padding: 8px 14px; }

/* tab bar: only on phones and only where a menu exists */
.tabbar { display: none; }
@media (max-width: 43.75em) {
  body.has-tabbar { --tabbar-h: calc(62px + env(safe-area-inset-bottom)); padding-bottom: var(--tabbar-h); }
  html:has(body.has-tabbar) { scroll-padding-bottom: calc(var(--tabbar-h, 0px) + 16px); }
  body.has-tabbar .head-actions .burger { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    background: var(--head-bg); border-top: 1px solid var(--border);
  }
  .tabbar .tab {
    flex: 1 1 0; min-width: 0; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 4px 2px; border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; font-size: min(calc(11.5 * var(--px)), 15px); font-weight: 600;
    text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; position: relative;
  }
  .tabbar .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .tab .ico { width: 23px; height: 23px; }
  .tabbar .tab.on { color: var(--heading); }
  .tabbar .tab.on::before { content: ''; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--lilac); }
  .tabbar .tab:active { background: var(--ghost-hover); }
  /* "Mehr": the full menu as a sheet above the tab bar */
  .nav.sheet { position: fixed; top: auto; left: 8px; right: 8px; bottom: calc(var(--tabbar-h) + 8px); max-height: calc(100dvh - var(--tabbar-h) - 90px); overflow-y: auto; overscroll-behavior: contain; z-index: 46; box-shadow: var(--shadow), 0 0 0 100vmax rgba(15, 17, 30, .4); }
  .nav.sheet a { min-height: 48px; display: flex; align-items: center; }
  /* the on-screen keyboard needs the room: no bar while a field is being typed in */
  body.has-tabbar:has(input:not([type=checkbox]):not([type=radio]):not([type=file]):focus, textarea:focus, select:focus, [contenteditable]:focus) .tabbar { display: none; }
  body.has-tabbar .ed-toast { bottom: calc(var(--tabbar-h) + 12px); }
}

/* phones and other touch screens: comfortable targets and no zoom when a field gets focus */
@media (pointer: coarse) {
  input[type=text], input[type=email], input[type=date], input[type=number], input[type=search], input[type=url], input[type=tel], input[type=month], input[type=password], input:not([type]), select, textarea {
    font-size: max(16px, calc(15 * var(--px))); min-height: 44px;
  }
  .icon-btn { width: 44px; height: 44px; }
  .user-menu > summary { min-height: 44px; }
  .btn { min-height: 44px; }
  .btn.sm { min-height: 40px; }
  .btn.xs { min-height: 34px; }
  .nav a, .menu a, .menu button { min-height: 44px; }
  .tabs a { min-height: 44px; }
  .seg a { min-height: 40px; display: inline-flex; align-items: center; }
  .site-foot .links a { padding: 10px 0; }
  .check input, .pick-item input { width: 22px; height: 22px; }
  details.pop > summary { min-height: 48px; }
  * { -webkit-tap-highlight-color: transparent; }
  .btn:active, .icon-btn:active, .nav a:active, .menu a:active { opacity: .82; }
}

/* app started from the home screen: room for the status bar and the rounded corners */
@media (display-mode: standalone) {
  .site-head .bar { padding-top: env(safe-area-inset-top); }
  .head-in, .site-foot .in > .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  body.bare main { padding-top: calc(48px + env(safe-area-inset-top)); }
}

@media (max-width: 26.25em) {
  .auth .card { padding: 24px 18px 22px; }
  .auth .brand { margin-bottom: 22px; }
}
/* long names and amounts wrap instead of pushing the page sideways (WCAG 1.4.10, also with large text) */
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.page-head .t, .card-head > *, .stat, .todo .grow, .legal { min-width: 0; }
.stat .n, .stat .l, .legal p, .legal li, .ch-name { overflow-wrap: anywhere; }
.list .grow b, .todo .grow b { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.btn, .badge { max-width: 100%; white-space: normal; text-align: center; }
.btn > span, .badge > span { min-width: 0; }
.eyebrow { flex-wrap: wrap; max-width: 100%; row-gap: 2px; }
.hello > div, .tl .h, .tl .d, .tl > li { min-width: 0; }
.tl .h b, .tl .d, code, .tag { overflow-wrap: anywhere; }
.tag { white-space: normal; }
main .card, main .list, .flash, .note, .stat .d, .site-foot { overflow-wrap: break-word; }
table.t.stack-sm td::before { flex: 0 1 auto; max-width: 48%; overflow-wrap: anywhere; }
fieldset.plat > legend { flex-wrap: wrap; }
.field label, .label, details.pop > summary { overflow-wrap: anywhere; min-width: 0; }
details.pop > summary { flex-wrap: wrap; }
.year-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5em), 1fr)); }
.stat .n.amount { white-space: normal; }
@media (pointer: coarse) {
  table.t td a, .linkbtn, .tl .acts a, .tl .acts button { padding-block: 6px; }
  .check input, .pick-item input { width: 24px; height: 24px; }
}
.offer-head, .offer-head .grow, .offer-head b { min-width: 0; overflow-wrap: anywhere; }
.offer-head { flex-wrap: wrap; }
.kv-list dd input, .card input, .card select { max-width: 100%; }

/* "Bewegung reduzieren": nothing moves by itself, switches happen without animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .spinner { animation: none; border-right-color: currentColor; opacity: .6; }
}

/* "Kontrast erhöhen" (macOS, iOS, Android, Windows): stronger text, edges and focus */
@media (prefers-contrast: more) {
  :root { --muted: #3C4163; --border: #9DA1BC; --border-strong: #6B6F8E; --input-border: #4D5170; --focus-ring: #4A2F74; }
  :root[data-theme="dark"] { --muted: #D2D5DA; --border: #6C7178; --border-strong: #9298A0; --input-border: #A9AEB6; --focus-ring: #E2D6F2; }
  :focus-visible { outline-width: 4px; }
  .card, .btn.ghost, .icon-btn, details.pop { border-color: var(--border-strong); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --muted: #D2D5DA; --border: #6C7178; --border-strong: #9298A0; --input-border: #A9AEB6; --focus-ring: #E2D6F2; }
}

/* Windows contrast themes (forced colours): system colours, visible edges, no decoration that turns into blocks */
@media (forced-colors: active) {
  .wave, .eyebrow::before, .nav a.on::after, .tabbar .tab.on::before { display: none; }
  .brand-mark polygon { fill: CanvasText; }
  .brand-mark polygon:last-child { fill: Highlight; }
  .nav a.on, .tabbar .tab.on, .tabs a.on, .seg a.on { text-decoration: underline; text-underline-offset: 4px; }
  .tabs a.on { border-bottom-color: Highlight; }
  .card, .btn, .icon-btn, .badge, .tag, .flash, .note, details.pop, .tabbar, .user-menu .menu, .nav, dialog.modal { border: 1px solid CanvasText; }
  .nav-drop { border: 1px solid CanvasText; }
  .nav-group > summary.on { text-decoration: underline; text-underline-offset: 4px; }
  .nav .nav-drop a.on { outline: 2px solid Highlight; box-shadow: none; }
  .steps li.done::after, .pf-steps > li.done .pf-n, .tl li.k-done .dot { background: Highlight; border-color: Highlight; color: HighlightText; forced-color-adjust: none; }
  .skel-bar { background: GrayText; }
  :focus-visible { outline: 3px solid Highlight; }
  .chart-bar { forced-color-adjust: none; }
}
.cr-pl { margin-top: 4px; } .cr-pl .pl { width: 16px; height: 16px; }
