/* Design nach emeraldhost.de: zinc-Palette, Primaergruen #91d655, Montserrat (gleiche Tokens wie partnertermine/) */
:root {
  --bg: #131316;
  --bg-2: #18181b;
  --card: #1e1e22;
  --card-hover: #232328;
  --tile: #26262b;
  --input: #2e2e34;
  --input-hover: #36363d;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .14);
  --fg: #f4f4f5;
  --fg-2: #d4d4d8;
  --muted: #a1a1aa;
  --muted-2: #6f6f78;
  --primary: #91d655;
  --primary-hover: #a3e46a;
  --primary-fg: #0f1a06;
  --green-bg: #1b2e14;
  --green-border: rgba(145, 214, 85, .4);
  --danger: #f87171;
  --warn: #fcd34d;
  --warn-bg: #3b2f12;
  --blue: #93c5fd;
  --blue-bg: #1e2a3b;
  --orange: #fdba74;
  --orange-bg: #3b2415;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --top-h: 58px;
  --side-w: 236px;
}

@font-face { font-family: Montserrat; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/montserrat-400.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/montserrat-500.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/montserrat-600.woff2) format('woff2'); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/montserrat-700.woff2) format('woff2'); }
/* Headline-Schrift der Post-Grafiken (Photoshop-Vorlage): Integral CF Medium, nur fuer den Canvas */
@font-face { font-family: 'Integral CF'; font-style: normal; font-weight: 500; font-display: block; src: url(fonts/integralcf-medium.otf) format('opentype'); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--input) var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font-family: Montserrat, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.55;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
button { font: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--input); padding: 1px 5px; border-radius: 4px; color: var(--fg-2); }

/* Bausteine */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm); border: 1px solid transparent; padding: 10px 16px;
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn[disabled] { opacity: .55; cursor: default; box-shadow: none; }
.btn-secondary { background: var(--input); color: var(--fg); }
.btn-secondary:hover { background: var(--input-hover); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--border-strong); color: var(--fg-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--fg); background: rgba(145, 214, 85, .06); }
.btn-danger { background: transparent; border-color: rgba(248, 113, 113, .35); color: var(--danger); }
.btn-danger:hover { background: rgba(248, 113, 113, .1); }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-xs { padding: 4px 9px; font-size: 12px; gap: 5px; }
.btn-xs svg { width: 13px; height: 13px; }
.icon-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm); display: grid; place-items: center; cursor: pointer;
  background: var(--input); border: 1px solid transparent; color: var(--fg);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--input-hover); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; background: var(--input); color: var(--fg-2); white-space: nowrap; line-height: 1.4;
}
.badge svg { width: 13px; height: 13px; }
.badge:empty { display: none; }
.badge-green { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--primary); }
.badge-blue { background: var(--blue-bg); border: 1px solid rgba(96, 165, 250, .35); color: var(--blue); }
.badge-warn { background: var(--warn-bg); border: 1px solid rgba(251, 191, 36, .35); color: var(--warn); }
.badge-orange { background: var(--orange-bg); border: 1px solid rgba(253, 186, 116, .35); color: var(--orange); }
.badge-red { background: #3b1a1a; border: 1px solid rgba(248, 113, 113, .4); color: var(--danger); }
.badge-muted { color: var(--muted); }

/* Segment-Schalter (Sprachwahl in der Grafik-Werkstatt) */
.seg { display: inline-flex; gap: 2px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.seg-btn { background: transparent; border: 0; border-radius: 6px; color: var(--muted); padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.seg-btn:hover { color: var(--fg); }
.seg-btn.is-active { background: var(--input); color: var(--fg); }

/* Kopf */
.top { background: rgba(24, 24, 27, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
.top-inner { height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.logo img { display: block; height: 24px; width: auto; }
.top-tag { font-size: 13px; font-weight: 600; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--border-strong); line-height: 1.2; }
.who { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.who-text { font-size: 13px; color: var(--muted); }
.who form { margin: 0; }

/* Grundaufteilung: Navigation links, Inhalt rechts */
.layout { flex: 1; display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 0; }
.side {
  position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); overflow: auto;
  border-right: 1px solid var(--border); padding: 20px 14px 16px; display: flex; flex-direction: column; gap: 20px;
  background: var(--bg-2);
}
.side-group { display: grid; gap: 2px; }
.side-group + .side-group { padding-top: 14px; border-top: 1px solid var(--border); }
.side-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 10px; border: 0; background: transparent; color: var(--fg-2);
  font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .12s, color .12s;
}
.side-item svg { width: 16px; height: 16px; color: var(--muted); flex: 0 0 auto; }
.side-new { width: 100%; justify-content: center; padding: 11px 14px; font-size: 14px; border-radius: 10px; margin-bottom: -4px; }
.side-new svg { width: 16px; height: 16px; }
.side-item b { margin-left: auto; font-weight: 700; font-size: 11.5px; color: var(--muted); background: rgba(255, 255, 255, .06); padding: 1px 8px; border-radius: 999px; min-width: 24px; text-align: center; }
.side-item b:empty { display: none; }
.side-item:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }
.side-item.is-active { background: rgba(255, 255, 255, .07); color: var(--fg); box-shadow: inset 3px 0 0 var(--primary); }
.side-item.is-active svg { color: var(--primary); }
.side-item[data-view="hot"] b:not(:empty) { background: var(--primary); color: var(--primary-fg); }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: grid; gap: 4px; }
.side-dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); flex: 0 0 auto; }
.side-dot.is-ok { background: var(--primary); }
.side-dot.is-hint { background: var(--warn); }
.side-dot.is-warn { background: var(--danger); }
.side-item b:not(:empty) + .side-dot { margin-left: 8px; }
.side-stand { margin: 0; padding: 0 12px; font-size: 11px; color: var(--muted-2); line-height: 1.4; }

/* Systemseite: Zustand als Kacheln, darunter Schreibauftraege und Update-Checks */
.sys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 14px 0 22px; }
.sys-tile { display: grid; gap: 2px; align-content: start; padding: 12px 14px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.sys-tile span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
.sys-tile strong { font-size: 15px; font-weight: 700; color: var(--fg); }
.sys-tile small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.sys-tile strong.sys-ok { color: var(--primary); }
.sys-tile strong.sys-warnung { color: var(--danger); }
.sys-tile strong.sys-hinweis { color: var(--warn); }
.sys-tabs { margin-bottom: 12px; }

.main { padding: 22px 26px 56px; min-width: 0; position: relative; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes kenBurns { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Login (Seite kommt vom Server) */
/* Login (Seite kommt vom Server): alles mittig wie die leeren Zustaende der Website */
.login-page { align-items: center; justify-content: center; padding: 32px 20px; }
.login { width: 100%; max-width: 420px; display: grid; justify-items: center; gap: 28px; margin-bottom: 6vh; }
.login-logo { height: 34px; width: auto; display: block; }
.login-card { width: 100%; padding: 36px 36px 32px; display: grid; gap: 22px; text-align: center; border-color: var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.login-card h1 { font-size: 24px; letter-spacing: -.01em; }
.login-text { color: var(--muted); font-size: 14.5px; margin-top: -12px; }
.login-card form { display: grid; gap: 16px; text-align: left; }
.login-card .btn { width: 100%; justify-content: center; min-height: 48px; font-size: 15px; border-radius: 10px; }
.btn-ms { background: #fff; color: #1f1f1f; gap: 12px; font-weight: 600; }
.btn-ms:hover { background: #ececec; color: #1f1f1f; }
.ms-logo { width: 20px; height: 20px; stroke: none; }
.login-error { color: var(--danger); background: #3b1a1a; border: 1px solid rgba(248, 113, 113, .4); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; font-weight: 600; text-align: left; }
.login-foot { color: var(--muted-2); font-size: 12.5px; }
@media (max-width: 480px) {
  .login-card { padding: 28px 22px 24px; }
}
a.btn:hover { text-decoration: none; }
.pane-title { font-size: 21px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fg-2); }
label small { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 6px; }
input, textarea, select {
  width: 100%; background: var(--input); border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--fg); padding: 9px 12px; font: inherit; font-weight: 500; transition: border-color .12s, background .12s;
}
input:hover, textarea:hover, select:hover { background: var(--input-hover); }
input::placeholder { color: var(--muted-2); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); background: var(--input); }
textarea { resize: vertical; min-height: 70px; }
.error { color: var(--danger); font-size: 13px; font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; margin: 0; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--green-bg); border: 1px solid var(--green-border); color: var(--primary); font-weight: 600; font-size: 13.5px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.error { background: #3b1a1a; border-color: rgba(248, 113, 113, .4); color: var(--danger); }

/* Listenkopf (Titel + Suche) */
.list-head { display: flex; align-items: center; gap: 14px; margin-bottom: 2px; }
.list-title { font-size: 22px; letter-spacing: -.01em; }
.list-hint { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; min-height: 1.3em; }
.search-wrap { position: relative; display: block; margin-left: auto; width: 240px; }
.search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted-2); pointer-events: none; }
.search-wrap input { padding: 8px 14px 8px 36px; font-size: 13px; background: var(--card); border-color: var(--border); border-radius: 999px; }
.search-wrap input:focus { border-color: var(--primary); }
.empty { color: var(--muted); font-size: 14px; padding: 48px 16px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.list-more { margin-top: 10px; background: transparent; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 9px 12px; width: 100%; cursor: pointer; }
.list-more:hover { color: var(--fg); border-color: var(--primary); }

/* Liste + Detail nebeneinander */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(420px, 6fr); gap: 26px; align-items: start; }
.list-col { min-width: 0; }
.detail-col { position: sticky; top: calc(var(--top-h) + 22px); max-height: calc(100vh - var(--top-h) - 44px); overflow: auto; min-width: 0; scrollbar-width: thin; }

/* Zeilen */
.list { display: grid; gap: 4px; }
.group-head {
  display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; padding: 0 4px;
  font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.group-head:first-child { margin-top: 0; }
.group-head.is-today { color: var(--primary); }
.group-head.is-hot { color: var(--orange); }
.group-head.is-soon { color: var(--blue); }
.group-head.is-work { color: var(--warn); }
.group-head span { font-weight: 600; color: var(--muted-2); }
.row-item {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 0 12px; align-items: center;
  width: 100%; text-align: left; padding: 8px 12px 8px 8px; border-radius: var(--radius);
  background: transparent; border: 1px solid transparent; color: inherit; cursor: pointer;
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.row-item:hover { background: var(--card); border-color: var(--border); }
.row-item.is-selected { background: var(--card-hover); border-color: var(--border-strong); box-shadow: inset 3px 0 0 var(--primary), var(--shadow); transform: none; }
.row-item.is-new .row-icon { box-shadow: 0 0 0 2px var(--primary); }
.row-new { font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-fg); background: var(--primary); border-radius: 999px; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.row-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.row-icon, .hero-icon {
  width: 46px; height: 46px; border-radius: 10px; overflow: hidden; display: grid; place-items: center;
  background: var(--tile); border: 1px solid var(--border); flex: 0 0 auto;
  font-weight: 800; font-size: 18px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.row-icon img, .hero-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.is-letter { background: hsl(var(--h, 120) 32% 30%); }
.row-main { min-width: 0; display: grid; gap: 1px; }
.row-game { font-weight: 700; font-size: 14.5px; line-height: 1.3; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item.is-selected .row-game { color: var(--primary); }
.row-title { font-size: 12.5px; color: var(--muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-grund { color: var(--muted-2); }
.row-side { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.row-side .badge { padding: 2px 8px; font-size: 11px; }
.row-age { font-size: 11.5px; color: var(--muted-2); min-width: 72px; text-align: right; font-weight: 600; }
.row-age.is-fresh { color: var(--fg-2); }
.row-age.is-today { color: var(--primary); background: var(--green-bg); border: 1px solid var(--green-border); border-radius: 999px; padding: 2px 9px; min-width: 0; }

/* Detail */
.detail-empty { padding: 48px 20px; text-align: center; color: var(--muted); font-size: 14px; display: grid; gap: 8px; }
.detail-empty strong { color: var(--fg-2); }
.detail { padding: 0; overflow: hidden; box-shadow: var(--shadow); animation: fadeUp .22s ease; }
.detail-body { padding: 18px 22px 22px; display: grid; gap: 20px; }
.detail-back { display: none; }

/* Keyart-Banner oben im Detail */
.hero { position: relative; min-height: 170px; background: linear-gradient(135deg, #26262c, #1a1a1e); border-bottom: 1px solid var(--border); isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: brightness(.55) saturate(1.15); z-index: -2; animation: kenBurns 1.2s ease-out both; }
.hero.has-bg::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19, 19, 22, .05) 0%, rgba(19, 19, 22, .5) 55%, rgba(30, 30, 34, .97) 100%); }
.hero-in { position: relative; padding: 16px 22px 18px; display: grid; gap: 10px; min-height: 170px; align-content: end; }
.hero-row { display: flex; align-items: flex-end; gap: 14px; }
.hero-icon { width: 60px; height: 60px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .18); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); font-size: 24px; }
.hero-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.hero-logo { max-height: 54px; max-width: min(320px, 70%); width: auto; height: auto; object-fit: contain; object-position: left bottom; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .7)); margin-bottom: 2px; }
.hero.has-logo h2 .game { display: none; }
.hero h2 { font-size: 21px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.hero.has-logo h2 { font-size: 17px; }
.hero h2 .game { color: var(--primary); }
.hero h2 .t { font-weight: 600; color: var(--fg); }
.hero .meta { font-size: 12.5px; color: var(--fg-2); display: flex; flex-wrap: wrap; align-items: center; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.hero .meta i { font-style: normal; color: var(--muted); margin: 0 7px; }
.hero .meta .k-hot { color: var(--orange); font-weight: 700; }
.hero .meta .k-soon { color: var(--blue); font-weight: 700; }
.hero .btn-danger { background: rgba(19, 19, 22, .55); backdrop-filter: blur(6px); }

/* Rabattzeile: eine Quelle fuer Grafik und Post */
.rabatt-box { display: grid; gap: 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px 9px 10px; }
.rb-line { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rb-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--warn-bg); color: var(--warn); flex: 0 0 auto; }
.rb-text { flex: 1; min-width: 0; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb-text .code { color: var(--warn); font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.rb-edit { display: grid; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.rb-head { display: flex; align-items: center; gap: 8px; font-size: 13px; flex: 0 0 auto; }
.rb-head input { width: 17px; height: 17px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.rb-head .muted { font-weight: 500; }
.rb-fields { display: grid; grid-template-columns: 1.3fr .7fr 1.2fr; gap: 8px; }
.rb-fields label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); gap: 3px; }
.rb-fields input { padding: 6px 10px; font-size: 13px; }
.rb-fields input[data-rb="code"] { font-family: ui-monospace, Consolas, monospace; text-transform: uppercase; color: var(--warn); font-weight: 700; letter-spacing: .03em; }

/* Naechster Schritt: eine Karte mit einem Knopf, die drei Schritte nur als Chips */
.next { display: grid; gap: 12px; padding: 14px 16px 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border-strong); border-radius: var(--radius); }
.chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chips i { flex: 0 0 14px; height: 2px; background: var(--border-strong); border-radius: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 3px 10px 3px 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.chip b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; background: var(--input); color: var(--fg-2); }
.chip.is-done { color: var(--fg-2); }
.chip.is-done b { background: var(--green-bg); color: var(--primary); border: 1px solid var(--green-border); }
.chip.is-now { color: var(--fg); border-color: var(--green-border); background: rgba(145, 214, 85, .12); }
.chip.is-now b { background: var(--primary); color: var(--primary-fg); }
.next-main { display: flex; align-items: center; gap: 16px; }
.next-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.next-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); font-weight: 800; }
.next-text strong { font-size: 17px; line-height: 1.25; }
.next-text > span:last-child { font-size: 12.5px; color: var(--muted); }
.btn-lg { padding: 12px 20px; font-size: 14.5px; border-radius: 10px; }
.next-more { display: flex; gap: 6px; flex-wrap: wrap; }
.next-more:empty { display: none; }

.d-section { display: grid; gap: 8px; }
.d-section h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.d-section h3::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.was { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13.5px; color: var(--fg-2); }
.was li::marker { color: var(--primary); }
.was b { color: var(--fg); font-weight: 600; }
.was-text { margin: 0; color: var(--fg-2); white-space: pre-wrap; }
.facts-line { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--fg-2); padding-top: 6px; border-top: 1px dashed var(--border); margin-top: 2px; }
.facts-line b { color: var(--muted); font-weight: 600; margin-right: 4px; }
.facts-line .code { color: var(--warn); font-family: ui-monospace, Consolas, monospace; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 13px; margin: 0; }
.facts dt { color: var(--muted); font-weight: 600; white-space: nowrap; }
.facts dd { margin: 0; color: var(--fg-2); overflow-wrap: anywhere; min-width: 0; }
.facts dd .code { color: var(--warn); font-weight: 600; font-family: ui-monospace, Consolas, monospace; }
.grund-box { background: var(--bg-2); border: 1px solid rgba(248, 113, 113, .3); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 8px; }
.grund-box .row { display: flex; gap: 6px; justify-content: flex-end; }
.closed-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; color: var(--fg-2); display: grid; gap: 10px; }
.closed-box .row { display: flex; gap: 6px; flex-wrap: wrap; }
.detail textarea { min-height: 60px; font-size: 13px; }
.notiz-saved { font-size: 11.5px; color: var(--muted-2); min-height: 1em; justify-self: end; }
.mehr { border-top: 1px solid var(--border); padding-top: 12px; display: grid; gap: 8px; }
.mehr > summary .badge { margin-left: 4px; }
.mehr .notiz-saved { text-align: right; }
.mehr > summary { cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.mehr > summary::-webkit-details-marker { display: none; }
.mehr > summary::before { content: ''; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; flex: 0 0 auto; }
.mehr[open] > summary::before { transform: rotate(45deg); }
.mehr > summary:hover { color: var(--fg); }
.mehr-block { display: grid; gap: 6px; margin-top: 14px; justify-items: start; }
.mehr-block .links, .mehr-block .sichtungen, .mehr-block .verlauf { justify-self: stretch; }
.mehr-block h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 700; }
.sichtungen { display: flex; flex-wrap: wrap; gap: 4px; }
.sichtungen .badge { font-weight: 500; cursor: pointer; border: 1px solid transparent; }
.sichtungen .badge:hover { border-color: var(--border-strong); color: var(--fg); }
.check-notes { margin: 4px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); display: grid; gap: 3px; }
.links { display: grid; gap: 3px; font-size: 12.5px; }
.links a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.verlauf { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.verlauf strong { color: var(--fg-2); font-weight: 600; }

/* Zum Posten: Texte und Grafiken */
.post-panel { display: grid; gap: 10px; min-width: 0; }
.d-section > * { min-width: 0; }
.pp-grafiken { display: flex; gap: 10px; flex-wrap: wrap; }
.pp-g { display: grid; gap: 5px; width: 132px; }
.pp-g img { width: 132px; height: 132px; object-fit: cover; border-radius: 10px; background: #000; display: block; border: 1px solid var(--border); }
.pp-g .row { display: flex; gap: 4px; }
.pp-g .btn { flex: 1; padding: 4px 6px; }
.pp-tabs { justify-self: start; }
.pp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-col { display: grid; gap: 6px; align-content: start; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; min-width: 0; }
.pp-col.is-empty { place-items: center; min-height: 80px; }
.pp-col-head { display: flex; align-items: center; gap: 8px; }
.pp-col-head .btn { margin-left: auto; }
.pp-col pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 12.5px; line-height: 1.45; color: var(--fg-2); max-height: 220px; overflow: auto; scrollbar-width: thin; }
.pp-tags { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding-top: 6px; }
.pp-tags code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; background: transparent; padding: 0; color: var(--muted); }
.pp-block { display: grid; gap: 4px; }
.pp-block .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pp-block .row strong { font-size: 12.5px; }
.pp-block pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 12.5px; line-height: 1.45; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; color: var(--fg-2); max-height: 120px; overflow: auto; }

/* Auftraege */
.job { padding: 14px 16px; margin-bottom: 8px; display: grid; gap: 8px; }
.job-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.job-head .muted { font-weight: 500; font-size: 12.5px; }
.job pre { margin: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; color: var(--fg-2); }
.job .row { display: flex; gap: 6px; flex-wrap: wrap; }
details > summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; }
details > summary:hover { color: var(--fg); }
details[open] > summary { margin-bottom: 8px; }

/* Laeufe */
.lauf { padding: 12px 16px; margin-bottom: 8px; display: grid; gap: 6px; }
.lauf-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.lauf-head .muted { font-weight: 500; font-size: 12.5px; }
.lauf-head .lauf-datei { margin-left: auto; }
.lauf-list { font-size: 13px; color: var(--fg-2); display: grid; gap: 2px; }
.lauf-list .k-hot { color: var(--orange); font-size: 9px; vertical-align: middle; }
.lauf-list .k-soon { color: var(--blue); font-size: 9px; vertical-align: middle; }
.lauf pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 12.5px; color: var(--muted); background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; max-height: 320px; overflow: auto; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .65); backdrop-filter: blur(4px); display: grid; place-items: start center; padding: 32px 16px; overflow: auto; }
.modal-box { width: 100%; max-width: 640px; padding: 20px 22px; display: grid; gap: 14px; border-color: var(--border-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); border-radius: var(--radius-lg); }
.modal-box.md { max-width: 720px; }
.modal-box.wide { max-width: 900px; }
.modal-box.xl { max-width: 1320px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 18px; overflow-wrap: anywhere; }
.modal form { display: grid; gap: 12px; }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 1fr; }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.prompt-pre { margin: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 50vh; overflow: auto; color: var(--fg-2); }
.md-view { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.55; color: var(--fg-2); background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; max-height: 70vh; overflow: auto; }
.copy-block { display: grid; gap: 6px; }
.copy-block .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.copy-block .row strong { font-size: 13px; }
.copy-block pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.5; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; color: var(--fg-2); max-height: 280px; overflow: auto; }

/* Grafik-Werkstatt: Vorschau links, Reiter rechts */
.g-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 22px; align-items: start; }
.g-left { display: grid; gap: 10px; min-width: 0; position: sticky; top: 0; }
.g-langs { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.g-canvas { width: 100%; height: auto; aspect-ratio: 1; display: block; border-radius: var(--radius); border: 1px solid var(--border-strong); background: #000; box-shadow: var(--shadow); }
.g-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.g-outbox { display: grid; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; }
.g-outbox > summary { font-size: 12.5px; }
.g-form { display: grid; gap: 10px; align-content: start; max-height: min(82vh, 1100px); overflow: auto; padding-right: 4px; min-width: 0; scrollbar-width: thin; }
.g-tabs { display: flex; gap: 2px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; position: sticky; top: 0; z-index: 2; }
.g-tab { flex: 1; background: transparent; border: 0; border-radius: 6px; color: var(--muted); padding: 8px 10px; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.g-tab svg { width: 15px; height: 15px; }
.g-tab.is-active svg { color: var(--primary); }
.g-tab:hover { color: var(--fg); }
.g-tab.is-active { background: var(--input); color: var(--fg); }
.g-pane { display: grid; gap: 12px; }
.g-block { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; }
.g-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.g-row { display: flex; gap: 6px; flex-wrap: wrap; }
.g-rabatt { margin: 0; font-size: 13px; color: var(--fg-2); }
.g-rabatt .code { color: var(--warn); font-family: ui-monospace, Consolas, monospace; }
.g-rabatt small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 9px; border: 2px solid transparent; background: var(--c); cursor: pointer; padding: 0; position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.swatch span { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); background: #000; color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; display: none; pointer-events: none; }
.swatch:hover span { display: block; }
.swatch:hover { border-color: var(--border-strong); }
.swatch.is-active { border-color: var(--fg); box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3px var(--fg); }
.swatch-free { display: grid; place-items: center; width: auto; min-width: 34px; padding: 0 8px 0 0; gap: 6px; grid-auto-flow: column; background: var(--input); font-size: 11.5px; font-weight: 600; color: var(--fg-2); }
.swatch-free input[type=color] { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.swatch-free input[type=color]::-webkit-color-swatch-wrapper { padding: 2px; }
.swatch-free input[type=color]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.swatch-free span { position: static; transform: none; display: block; background: transparent; color: inherit; padding: 0; }
.g-picks { display: flex; gap: 6px; flex-wrap: wrap; }
.g-pick { display: grid; gap: 4px; padding: 4px; background: var(--card); border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer; color: var(--muted); font-size: 11px; font-weight: 600; width: 112px; text-align: center; }
.g-pick img { width: 100%; height: 60px; object-fit: cover; border-radius: 5px; background: #000; display: block; }
.g-picks-logo .g-pick img { object-fit: contain; background: #1a1a1d; padding: 4px; }
.g-pick-none { align-content: center; min-height: 86px; }
.g-pick:hover { color: var(--fg); border-color: var(--border-strong); }
.g-pick.is-active { border-color: var(--primary); color: var(--primary); }
.g-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.g-slider { gap: 2px; font-size: 12px; }
.g-slider small { margin-left: 4px; }
.g-slider input[type=range] { padding: 0; height: 24px; accent-color: var(--primary); background: transparent; }
.g-toggle { display: flex; align-items: center; gap: 8px; padding: 0; font-size: 13.5px; }
.g-toggle input { width: auto; margin: 0; accent-color: var(--primary); }
.g-toggle em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; }
.g-quellen { display: grid; gap: 8px; }
.g-quellen > summary { font-size: 12.5px; }
.g-step-body textarea { min-height: 54px; font-size: 13px; }
.g-outputs { display: grid; gap: 8px; }
.g-out { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; }
.g-out img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; display: block; background: #000; }
.g-out-meta { display: grid; gap: 4px; font-size: 13px; min-width: 0; }
.g-out-meta a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-out-meta .row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.g-out-meta code { font-size: 11.5px; }

@media (max-width: 1280px) {
  :root { --side-w: 204px; }
  .split { grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr); }
  .g-wrap { grid-template-columns: minmax(0, 1fr) 380px; }
}

@media (max-width: 900px) {
  .top-inner { padding: 0 14px; gap: 10px; }
  .logo img { height: 22px; }
  .who-text { display: none; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 10px 12px; flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .side-group, .side-foot { display: contents; }
  .side-group + .side-group { padding-top: 0; border-top: 0; }
  .side-stand, .side-dot { display: none; }
  .side-new { width: auto; flex: 0 0 auto; padding: 7px 12px; font-size: 13px; margin: 0; }
  .side-item { width: auto; flex: 0 0 auto; padding: 7px 10px; font-size: 13px; }
  .side-item.is-active { box-shadow: none; }
  .main { padding: 14px 14px 40px; }
  .list-head { flex-wrap: wrap; }
  .search-wrap { width: 100%; margin-left: 0; }
  .split { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 46px minmax(0, 1fr); }
  .row-side { grid-column: 2; justify-content: flex-start; margin-top: 4px; }
  .row-age { min-width: 0; text-align: left; }
  .detail-col { position: fixed; inset: 0; z-index: 45; max-height: none; background: var(--bg); padding: 0; overflow: auto; display: none; }
  .detail-col.is-shown { display: block; }
  .detail { border-radius: 0; border: 0; }
  .detail-back { display: inline-flex; justify-self: start; background: rgba(19, 19, 22, .55); }
  .hero-row { flex-wrap: wrap; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .rb-fields { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .pp-grid { grid-template-columns: 1fr; }
  .next-main { flex-direction: column; align-items: stretch; }
  .modal { padding: 16px 8px; }
  .g-wrap { grid-template-columns: 1fr; }
  .g-left { position: static; }
  .g-form { max-height: none; }
}

/* Schritt 3: Freigeben (Social Media und Discord getrennt) */
.pub-section { display: grid; gap: 12px; }
.pub-section.is-flash { animation: pub-flash 1.6s ease-out; }
@keyframes pub-flash { 0% { box-shadow: 0 0 0 3px rgba(145, 214, 85, .55); } 100% { box-shadow: 0 0 0 3px rgba(145, 214, 85, 0); } }
.pub-time { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.pub-time input { width: auto; min-width: 200px; }
.pub-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
/* Eine Zeile je Kanal: Name + Kurzfassung | Einstellungen | Knopf, darunter Status oder Probleme */
.pub-rows { display: grid; gap: 8px; }
.pub-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main go" "ctl ctl" "foot foot"; gap: 8px 16px; align-items: center; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.pub-row.is-done { border-color: rgba(145, 214, 85, .35); }
.pub-row-main { grid-area: main; display: grid; gap: 2px; min-width: 0; }
.pub-row-ctl { grid-area: ctl; }
.pub-row-go { grid-area: go; }
.pub-row-foot { grid-area: foot; }
.pub-row-main strong { font-size: 14px; }
.pub-row-main .tiny { overflow-wrap: anywhere; }
.pub-row-ctl { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.pub-row-ctl:empty { display: none; }
.pub-row-ctl label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); gap: 3px; }
.pub-row-ctl select { padding: 6px 28px 6px 10px; font-size: 12.5px; max-width: 230px; }
.pub-row-go { display: flex; gap: 6px; align-items: center; justify-self: end; flex-wrap: wrap; justify-content: flex-end; }
.pub-row-go:empty { display: none; }
.pub-row-foot { grid-column: 1 / -1; display: grid; gap: 5px; font-size: 12.5px; color: var(--fg-2); border-top: 1px dashed var(--border); padding-top: 8px; line-height: 1.5; }
.pub-row-foot code { font-size: 11.5px; }
.pub-probleme { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--danger); display: grid; gap: 2px; }
.pub-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.pub-docs li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.pub-docs b { font-size: 10.5px; letter-spacing: .06em; color: var(--muted-2); width: 20px; }
.pub-doc-titel { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(100%, 520px); }
.pub-ok { color: var(--primary); font-weight: 600; }
.pub-hinweise { font-size: 12.5px; color: var(--fg-2); }
.pub-hinweise summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.pub-hinweise ul { margin: 6px 0 0; padding-left: 18px; }
.pp-more > summary .muted { font-weight: 500; }
.pp-body { display: grid; gap: 10px; margin-top: 4px; }
@media (max-width: 900px) {
  .pub-row { grid-template-columns: 1fr; grid-template-areas: "main" "ctl" "go" "foot"; }
  .pub-row-go { justify-self: start; justify-content: flex-start; }
}
.pub-web-prev { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; display: grid; gap: 6px; }
.pub-web-prev p, .pub-web-prev ul { margin: 0; }
.pub-web-prev ul { padding-left: 18px; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.4; }
label.check input { margin-top: 3px; width: auto; flex: 0 0 auto; accent-color: var(--primary); }
label.check > span { flex: 1; min-width: 0; }
label.check small { display: block; color: var(--muted); font-weight: 400; }
.pub-preview { display: grid; gap: 12px; margin: 14px 0; }
.pub-preview-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; }
.pub-preview-row img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.pub-preview-row pre { margin: 0; }
@media (max-width: 560px) { .pub-preview-row { grid-template-columns: 1fr; } .pub-preview-row img { width: 72px; height: 72px; } }

/* Formulare in Dialogen: nummerierte Abschnitte, Hilfe als Platzhalter statt im Label, die drei Texte als Kacheln */
.fform { gap: 16px; }
.fsec { display: grid; gap: 10px; }
.fsec + .fsec { border-top: 1px solid var(--border); padding-top: 16px; }
.fsec-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.fsec-head b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--input); color: var(--fg-2); }
.fsec-head span { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted-2); }
.field { gap: 5px; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; padding: 9px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .12s; }
.toggle input { width: 17px; height: 17px; margin: 0; flex: 0 0 auto; accent-color: var(--primary); cursor: pointer; }
.toggle small { margin-left: auto; font-weight: 500; }
.toggle:has(input:checked) { border-color: var(--green-border); }
.fmehr { border-top: 0; padding-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 34px 12px 12px; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; font-weight: 500; transition: border-color .12s, background .12s; }
.tile:hover { background: var(--tile); }
.tile > svg { width: 18px; height: 18px; color: var(--muted); margin-top: 1px; }
.tile input { position: absolute; top: 11px; right: 11px; width: 16px; height: 16px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.tile > span { display: grid; gap: 2px; min-width: 0; }
.tile strong { font-size: 13.5px; color: var(--fg); line-height: 1.3; }
.tile small { margin: 0; font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.35; }
.tile em { font-style: normal; font-size: 11.5px; color: var(--warn); font-weight: 600; }
.tile:has(input:checked) { border-color: var(--green-border); background: rgba(145, 214, 85, .08); }
.tile:has(input:checked) > svg { color: var(--primary); }
.tile:has(input:disabled) { opacity: .55; cursor: default; }
.form-foot-note { margin-right: auto; font-size: 12.5px; color: var(--muted); }
.facts + .fform, p + .fform { margin-top: 16px; }
