/* © 2026 quik UG (haftungsbeschränkt), Köln – alle Rechte vorbehalten. */
/* quik Messages – Stylesheet im quik-OS-Design (Tokens aus quik OS · Boards) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0a0c10; --bg-2: #0d1014; --surface: #13161c; --surface-2: #1a1d24; --surface-3: #232731;
  --hover: rgba(255,255,255,.045); --line: rgba(255,255,255,.11); --line-soft: rgba(255,255,255,.065); --line-strong: rgba(255,255,255,.2);
  --ink: rgba(255,255,255,.92); --ink-soft: rgba(255,255,255,.66); --ink-faint: rgba(255,255,255,.47);
  --accent: #4a8cff; --accent-strong: #2f6bff; --accent-soft: rgba(74,140,255,.14);
  --red: #f87171; --green: #34d399; --orange: #fbbf24;
  --ig: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 80%, #4f5bd5 100%);
  --r-sm: 8px; --r: 12px; --r-lg: 20px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22,1,.36,1);
  --shadow-pop: 0 1px 2px rgba(0,0,0,.5), 0 24px 60px -18px rgba(0,0,0,.75);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.45 var(--font); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: #fff; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-soft); word-break: break-all; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(74,140,255,.35); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
[hidden] { display: none !important; }

.muted { color: var(--ink-soft); } .faint { color: var(--ink-faint); } .sm { font-size: 12.5px; } .xs { font-size: 11.5px; }
.grow { flex: 1; min-width: 0; } .row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 10px; }
.between { justify-content: space-between; } .end { justify-content: flex-end; } .gap-s { gap: 6px; } .gap-l { gap: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.dot { width: 8px; height: 8px; border-radius: 99px; display: inline-block; flex: none; background: var(--ink-faint); }
.dot.ok { background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.15); } .dot.warn { background: var(--orange); } .dot.bad { background: var(--red); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border-radius: 999px; padding: .6em 1.15em; font-weight: 560; font-size: 14px; letter-spacing: -.01em; border: 1px solid transparent; white-space: nowrap; transition: transform .4s var(--ease), background .2s, border-color .2s; }
.btn:hover { text-decoration: none; } .btn:active { transform: scale(.98); }
.btn-sm { padding: .45em .95em; font-size: 13px; }
.btn-primary { background: #fff; color: #0a0a0c; } .btn-primary:hover { background: #e9edf5; }
.btn-accent { background: var(--accent-strong); color: #fff; } .btn-accent:hover { background: #3d76ff; }
.btn-ghost { border-color: var(--line); color: var(--ink); } .btn-ghost:hover { border-color: var(--line-strong); background: var(--hover); }
.btn-danger { border-color: rgba(248,113,113,.4); color: #ff8a8a; } .btn-danger:hover { background: rgba(248,113,113,.1); }
.btn-ig { background: var(--ig); color: #fff; } .btn-ig:hover { filter: brightness(1.08); }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--ink-soft); flex: none; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--hover); color: #fff; }
.link-btn { color: var(--ink-soft); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.chip.ok { color: var(--green); border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.08); }
.chip.bad { color: #ff8a8a; border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.08); }
.chip.warn { color: var(--orange); border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.08); }
.chip.info { color: #9cc0ff; border-color: rgba(74,140,255,.3); background: var(--accent-soft); }
.chip.ghost { background: transparent; color: var(--ink-soft); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-soft); flex-wrap: wrap; }
.seg button { padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.seg button.on { background: var(--surface-3); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.switch { width: 36px; height: 21px; border-radius: 99px; background: var(--surface-3); position: relative; flex: none; transition: background .2s; border: 1px solid var(--line-soft); }
.switch span { position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 99px; background: #fff; transition: transform .25s var(--ease); }
.switch.on { background: var(--accent-strong); } .switch.on span { transform: translateX(15px); }

/* Formulare */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .lbl { font-size: 12.5px; font-weight: 560; color: var(--ink-soft); }
.input, textarea.input, select.input { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { resize: vertical; min-height: 84px; line-height: 1.5; }
.input.mono { font-family: var(--mono); font-size: 12.5px; }
.hint { font-size: 12px; color: var(--ink-faint); }
.count { font-size: 11.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.count.over { color: var(--red); font-weight: 600; }
.err { color: #ff8a8a; font-size: 13px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; min-height: 42px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; align-items: center; cursor: text; }
.tags:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tags input { flex: 1; min-width: 120px; background: none; border: 0; outline: none; color: #fff; padding: 4px 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--accent-soft); color: #cfe0ff; font-size: 13px; font-weight: 500; }
.tag.red { background: rgba(248,113,113,.12); color: #ffb4b4; }
.tag button { width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; color: inherit; opacity: .7; }
.tag button:hover { opacity: 1; background: rgba(255,255,255,.1); }

/* Gerüst (wie quik OS: App-Leiste · Seitenleiste · Inhalt) */
.app { display: grid; grid-template-columns: 60px 240px minmax(0,1fr); height: 100vh; height: 100dvh; overflow: hidden; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 12px; background: #07080b; border-right: 1px solid var(--line-soft); }
.rail-home { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 10px; }
.rail-home img { width: 26px; height: 26px; border-radius: 7px; }
.rail-it { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-faint); }
.rail-it.on { background: #fff; color: #0a0c10; }
.rail-it:not(.on):hover { background: var(--surface-2); color: #fff; }
.rail-tip { position: absolute; left: 50px; top: 50%; transform: translateY(-50%); background: #f4f6fb; color: #0a0c10; font-size: 12px; font-weight: 550; padding: 5px 9px; border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 90; }
.rail-it:hover .rail-tip { opacity: 1; }
.rail-bottom { margin-top: auto; }
.sb { background: var(--bg-2); border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; min-height: 0; }
.sb-top { padding: 18px 16px 14px 18px; }
.sb-app { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.sb-app-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ig); color: #fff; }
.sb-nav { padding: 4px 8px; display: flex; flex-direction: column; gap: 1px; }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--ink-soft); font-weight: 500; font-size: 13.5px; }
.sb-link span { flex: 1; }
.sb-link:hover { background: var(--hover); color: #fff; text-decoration: none; }
.sb-link.on { background: var(--surface-2); color: #fff; }
.sb-sec { padding: 18px 18px 6px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.sb-acc { margin: 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sb-acc:hover { border-color: var(--line); text-decoration: none; }
.sb-acc img, .avatar { width: 28px; height: 28px; border-radius: 99px; object-fit: cover; background: var(--surface-3); flex: none; }
.avatar { display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.sb-bottom { margin-top: auto; border-top: 1px solid var(--line-soft); padding: 10px 12px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; }
.main { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.page { max-width: 1180px; margin: 0 auto; padding: 30px 36px 80px; }
.page.narrow { max-width: 860px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head p { margin-top: 6px; }

/* Karten */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 20px 22px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 16px; }
.card h3 { font-size: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.kpi { padding: 18px 20px; }
.kpi .v { font-size: 30px; font-weight: 650; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; margin-top: 8px; }
.kpi .s { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--accent-strong); width: 0; transition: width .6s var(--ease); }
.meter.warn i { background: var(--orange); } .meter.bad i { background: var(--red); }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; align-items: end; height: 120px; }
.bar { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 2px; }
.bar i { display: block; border-radius: 4px 4px 2px 2px; background: var(--surface-3); min-height: 2px; height: 0; transition: height .6s var(--ease); }
.bar i.sent { background: var(--accent-strong); }
.bar-l { font-size: 10.5px; color: var(--ink-faint); text-align: center; margin-top: 6px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-soft); }
.legend b { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Listen */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line-soft); min-width: 0; }
.li:first-child { border-top: 0; }
.ev-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-soft); flex: none; }
.ev-ic.sent { color: var(--green); background: rgba(52,211,153,.1); } .ev-ic.failed { color: var(--red); background: rgba(248,113,113,.1); }
.ev-ic.matched { color: #9cc0ff; background: var(--accent-soft); }
.ev-text { color: var(--ink); }
.ev-meta { font-size: 12px; color: var(--ink-faint); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.table td { padding: 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,.015); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Automationen */
.auto { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); transition: border-color .15s; }
.auto + .auto { margin-top: 10px; }
.auto:hover { border-color: var(--line); }
.auto-main { flex: 1; min-width: 0; cursor: pointer; }
.auto-main h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.auto-stats { display: flex; gap: 22px; text-align: right; }
.auto-stats b { display: block; font-size: 17px; color: #fff; font-variant-numeric: tabular-nums; }
.auto-stats span { font-size: 11.5px; color: var(--ink-faint); }
.empty { text-align: center; padding: 56px 20px; color: var(--ink-soft); }
.empty h2 { font-size: 18px; margin-bottom: 8px; }
.empty-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--ig); color: #fff; }

/* Editor */
.editor { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 24px; align-items: start; }
.step { display: flex; gap: 14px; }
.step-n { width: 26px; height: 26px; border-radius: 99px; background: var(--surface-3); display: grid; place-items: center; font-size: 12.5px; font-weight: 650; color: #fff; flex: none; }
.step-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bg-2); cursor: pointer; }
.opt:hover { border-color: var(--line); }
.opt b { display: block; font-weight: 560; font-size: 13.5px; color: #fff; }
.opt span { font-size: 12.5px; color: var(--ink-faint); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 330px; overflow: auto; padding: 2px; }
.media { position: relative; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 2px solid transparent; cursor: pointer; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media .cap { position: absolute; inset: auto 0 0 0; padding: 18px 6px 5px; font-size: 10.5px; line-height: 1.25; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.85)); max-height: 60%; overflow: hidden; }
.media .ty { position: absolute; top: 5px; left: 5px; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 99px; background: rgba(0,0,0,.6); }
.media.on { border-color: var(--accent); }
.media.on::after { content: "✓"; position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 99px; background: var(--accent-strong); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.btn-edit { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 8px; align-items: center; }
.variant { display: flex; gap: 8px; align-items: center; }
.test-box { display: flex; gap: 8px; align-items: center; }
.test-res { font-size: 13px; }
.sticky { position: sticky; top: 24px; }
.savebar { position: sticky; bottom: 0; margin-top: 20px; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 35%); display: flex; gap: 10px; justify-content: flex-end; align-items: center; z-index: 5; }

/* Telefon-Vorschau */
.phone { border-radius: 34px; background: #000; border: 1px solid var(--line); padding: 14px 12px 18px; box-shadow: var(--shadow-pop); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.phone-top .avatar { width: 30px; height: 30px; background: var(--ig); color: #fff; }
.phone-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 4px 4px; min-height: 380px; font-size: 13.5px; }
.pv-label { text-align: center; font-size: 11px; color: var(--ink-faint); margin: 6px 0 2px; }
.bub { max-width: 82%; padding: 9px 13px; border-radius: 20px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.bub.in { align-self: flex-start; background: #262626; color: #fff; }
.bub.out { align-self: flex-end; background: #3797f0; color: #fff; }
.bub.comment { align-self: stretch; max-width: none; background: transparent; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; font-size: 13px; }
.tpl { align-self: flex-end; width: 82%; border-radius: 18px; overflow: hidden; background: #262626; }
.tpl p { padding: 10px 13px; white-space: pre-wrap; word-break: break-word; color: #fff; }
.tpl button { display: block; width: 100%; padding: 9px; border-top: 1px solid rgba(255,255,255,.1); color: #fff; font-weight: 600; font-size: 13px; text-align: center; }

/* Login */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 520px at 50% -10%, rgba(74,140,255,.12), transparent 70%), var(--bg); }
.gate-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 24px; padding: 32px 30px; box-shadow: var(--shadow-pop); }
.gate-card.wide { max-width: 520px; }
.gate-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.gate-logo img { width: 34px; height: 34px; border-radius: 10px; }
.gate h1 { font-size: 22px; margin-bottom: 6px; }
.gate form { display: flex; flex-direction: column; gap: 14px; margin-top: 22px; }
.gate .btn { width: 100%; padding: .75em 1em; }
.otp { font: 600 26px/1 var(--mono); letter-spacing: .4em; text-align: center; padding: 14px 10px; }
.qr { background: #fff; border-radius: 14px; padding: 12px; width: 204px; height: 204px; margin: 4px auto; }
.qr img, .qr svg { width: 100%; height: 100%; display: block; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font: 500 14px var(--mono); padding: 14px 16px; background: var(--bg-2); border-radius: 12px; border: 1px solid var(--line-soft); }
.strength { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }
.secure-note { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-faint); margin-top: 18px; justify-content: center; }

/* Einstellungen */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--ink-soft); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: #fff; text-decoration: none; }
.tabs a.on { color: #fff; border-color: #fff; }
.check { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.check:first-of-type { border-top: 0; padding-top: 4px; }
.check-ic { width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.check-ic.done { background: rgba(52,211,153,.15); color: var(--green); }
.copy { display: flex; gap: 6px; align-items: center; }
.copy code { flex: 1; padding: 7px 10px; font-size: 12px; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--ink-faint); } .kv dd { margin: 0; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(74,140,255,.25); font-size: 13.5px; color: #dbe7ff; }
.notice.warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.25); color: #fde9b0; }
.notice.bad { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.25); color: #ffd0d0; }
.notice svg { flex: none; margin-top: 1px; }

/* Toast & Dialog */
.toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: #f4f6fb; color: #0a0c10; padding: 11px 16px; border-radius: 12px; font-weight: 530; font-size: 13.5px; box-shadow: var(--shadow-pop); max-width: 380px; animation: tin .35s var(--ease); }
.toast.bad { background: #ffe1e1; color: #5c0b0b; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 150; padding: 20px; animation: fin .2s; }
@keyframes fin { from { opacity: 0; } }
.modal { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-pop); }
.modal h2 { font-size: 18px; margin-bottom: 8px; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; }
.spin { width: 22px; height: 22px; border-radius: 99px; border: 2px solid var(--line); border-top-color: #fff; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .editor .sticky { position: static; } .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto minmax(0,1fr); }
  .rail { display: none; }
  .sb { flex-direction: row; align-items: center; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .sb-top { padding: 10px 12px; } .sb-app span, .sb-sec, .sb-acc, .sb-bottom { display: none; }
  .sb-nav { flex-direction: row; padding: 6px; }
  .page { padding: 20px 16px 60px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .auto { flex-wrap: wrap; } .auto-stats { width: 100%; justify-content: flex-start; text-align: left; }
  .kv { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Abstände & Ergänzungen */
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 10px; }
.span2 { grid-column: span 2; }
.title-in { font-size: 22px; font-weight: 600; letter-spacing: -.02em; background: transparent; border-color: transparent; padding: 6px 8px; margin: 8px 0 0 -9px; width: min(640px, 80vw); }
.title-in:hover { border-color: var(--line-soft); }
.narrow-in { max-width: 160px; }
.search-in { max-width: 260px; }
.avatar.big { width: 52px; height: 52px; font-size: 18px; }
.legend .lg-c { background: var(--surface-3); } .legend .lg-s { background: var(--accent-strong); }
.bars-l { height: auto; margin-top: 0; }
.opt input[type=radio] { margin-top: 3px; accent-color: var(--accent-strong); }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "▸ "; }
details[open] summary::before { content: "▾ "; }
label.row { cursor: pointer; }
.tpl button { cursor: default; }
@media (max-width: 820px) { .span2 { grid-column: auto; } }
.gate-logo > div { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
