/* EXODUS V – Master Control Panel · Dark Mode, Cyan / Eisblau / Weiß */
@font-face { font-family: 'Oswald'; font-weight: 500; font-display: swap; src: url(assets/fonts/Oswald-500-latin.woff2) format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url(assets/fonts/Oswald-600-latin.woff2) format('woff2'); }
@font-face { font-family: 'Oswald'; font-weight: 700; font-display: swap; src: url(assets/fonts/Oswald-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 400; font-display: swap; src: url(assets/fonts/Lato-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 700; font-display: swap; src: url(assets/fonts/Lato-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 900; font-display: swap; src: url(assets/fonts/Lato-900-latin.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 400; font-display: swap; src: url(assets/fonts/Lato-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF; }

:root {
  --bg: #04060a; --bg2: #080c12;
  --panel: rgba(17, 24, 33, .72); --panel-solid: #0e141c; --panel-hi: rgba(26, 36, 48, .85);
  --line: rgba(148, 220, 255, .10); --line-hi: rgba(110, 231, 255, .35);
  --text: #eef6fb; --muted: #8a9bab; --dim: #5d6c7a;
  --cyan: #22d3ee; --ice: #a5f3fc; --ice2: #67e8f9; --blue: #38bdf8; --white: #ffffff;
  --ok: #34d399; --warn: #fbbf24; --err: #f87171; --crit: #fb7185; --magenta: #e879f9;
  --glow: 0 0 0 1px rgba(103, 232, 249, .18), 0 10px 40px -12px rgba(34, 211, 238, .35);
  --r: 16px; --r-sm: 10px;
  --side: 264px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 'Lato', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 600px at 85% -10%, rgba(34, 211, 238, .10), transparent 60%),
              radial-gradient(700px 500px at -10% 110%, rgba(56, 189, 248, .08), transparent 60%),
              linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(148, 220, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 220, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 20%, #000 20%, transparent 75%); }
a { color: var(--ice2); text-decoration: none; }
a:hover { color: var(--white); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(34, 211, 238, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(148, 220, 255, .14); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(148, 220, 255, .28); }
.hidden { display: none !important; }

/* ---------- Boot / Login ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; gap: 22px; align-content: center; }
.boot img { width: 260px; max-width: 70vw; opacity: .9; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(103, 232, 249, .15); border-top-color: var(--cyan); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(430px, 100%); padding: 40px 36px 32px; border-radius: 24px; background: linear-gradient(160deg, rgba(20, 30, 42, .78), rgba(9, 13, 19, .82));
  border: 1px solid var(--line); box-shadow: var(--glow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: rise .5s ease both; position: relative; overflow: hidden; }
.login-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(103, 232, 249, .55), transparent 35%, transparent 65%, rgba(165, 243, 252, .35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.login-card .logo { display: block; width: 100%; max-width: 300px; margin: 0 auto 6px; }
.login-card .sub { text-align: center; font: 600 12px 'Oswald', sans-serif; letter-spacing: .42em; color: var(--ice2); margin-bottom: 30px; text-transform: uppercase; }
.login-card form { display: grid; gap: 14px; }
.login-card .foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--dim); }
.login-err { color: var(--err); font-size: 13px; min-height: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Formularelemente ---------- */
label.f { display: grid; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.in, select.in, textarea.in { width: 100%; padding: 11px 13px; border-radius: var(--r-sm); background: rgba(4, 8, 12, .65); border: 1px solid var(--line); outline: none;
  transition: border-color .15s, box-shadow .15s; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text); }
.in:focus { border-color: var(--line-hi); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
textarea.in { resize: vertical; min-height: 96px; line-height: 1.55; }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
select.in option { background: #0b1118; }
input[type=date].in { color-scheme: dark; }
input[type=range] { accent-color: var(--cyan); width: 100%; }
input[type=checkbox] { accent-color: var(--cyan); width: 16px; height: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer;
  background: rgba(22, 32, 44, .8); font-weight: 700; font-size: 13.5px; letter-spacing: .02em; transition: transform .12s, border-color .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { border-color: var(--line-hi); background: rgba(30, 44, 58, .9); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, #22d3ee, #38bdf8 55%, #a5f3fc); color: #021016; border-color: transparent; box-shadow: 0 8px 26px -10px rgba(34, 211, 238, .8); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 10px 30px -8px rgba(34, 211, 238, .95); }
.btn.ghost { background: transparent; }
.btn.danger { color: #fecaca; border-color: rgba(248, 113, 113, .3); }
.btn.danger:hover { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .6); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn.icon { padding: 8px; width: 36px; height: 36px; }
.btn.block { width: 100%; padding: 13px; font-size: 15px; }
.btn svg, .ico { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Grundlayout ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 16px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 15, 22, .86), rgba(6, 9, 14, .92)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 40; }
.side .brand { padding: 4px 10px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.side .brand img { width: 100%; max-width: 200px; display: block; filter: drop-shadow(0 0 18px rgba(34, 211, 238, .25)); }
.side .brand small { display: block; margin-top: 8px; font: 600 10.5px 'Oswald', sans-serif; letter-spacing: .38em; color: var(--ice2); text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: 14px; position: relative; transition: background .15s, color .15s; }
.nav a:hover { color: var(--text); background: rgba(148, 220, 255, .05); }
.nav a.on { color: var(--white); background: linear-gradient(90deg, rgba(34, 211, 238, .18), rgba(34, 211, 238, .03)); box-shadow: inset 0 0 0 1px rgba(103, 232, 249, .16); }
.nav a.on::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.nav a.on .ico { stroke: var(--ice); }
.nav .num { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 900; text-align: center; background: var(--cyan); color: #021016; }
.nav .num.dim { background: rgba(148, 220, 255, .1); color: var(--muted); }
.nav .sep { height: 1px; background: var(--line); margin: 8px 10px; }
.side .me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); margin-top: 10px; }
.side .me .who { flex: 1; min-width: 0; }
.side .me b { display: block; font-size: 14px; }
.side .me small { color: var(--muted); font-size: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 14px 28px; border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 12, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top .burger { display: none; }
.search { flex: 1; max-width: 560px; position: relative; }
.search .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search input { padding-left: 40px; border-radius: 12px; }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.presence { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(10, 16, 22, .6); font-size: 12.5px; color: var(--muted); }
.bell { position: relative; }
.bell .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--cyan); color: #021016; font: 900 10.5px/18px 'Lato'; text-align: center; box-shadow: 0 0 12px rgba(34, 211, 238, .7); }
.content { padding: 28px; max-width: 1500px; width: 100%; margin: 0 auto; animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Bausteine ---------- */
.ph { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ph h1 { margin: 0; font: 600 30px/1.1 'Oswald', sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.ph h1 em { font-style: normal; background: linear-gradient(90deg, var(--cyan), var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph p { margin: 6px 0 0; color: var(--muted); }
.ph .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.kicker { font: 600 11px 'Oswald', sans-serif; letter-spacing: .32em; color: var(--ice2); text-transform: uppercase; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; position: relative; }
.panel.glass { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.panel > h2, .panel-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 15px 'Oswald', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
.panel-h .more { margin-left: auto; font: 700 12px 'Lato'; letter-spacing: 0; text-transform: none; color: var(--muted); }
.panel-h .more:hover { color: var(--ice); }
.cols { display: grid; gap: 18px; }
.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.c12 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(20, 30, 42, .78), rgba(10, 14, 20, .78)); position: relative; overflow: hidden; transition: transform .15s, border-color .15s; }
.stat:hover { transform: translateY(-2px); border-color: var(--line-hi); }
.stat::after { content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: radial-gradient(circle, var(--c, rgba(34, 211, 238, .22)), transparent 70%); }
.stat b { display: block; font: 600 34px/1 'Oswald', sans-serif; margin: 8px 0 2px; }
.stat span { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

.hello { display: flex; align-items: center; gap: 22px; padding: 26px 28px; margin-bottom: 18px; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; position: relative;
  background: linear-gradient(120deg, rgba(34, 211, 238, .12), rgba(14, 20, 28, .75) 45%, rgba(165, 243, 252, .06)); }
.hello img { width: 230px; max-width: 34vw; filter: drop-shadow(0 0 24px rgba(34, 211, 238, .3)); }
.hello h1 { margin: 4px 0 4px; font: 600 28px 'Oswald', sans-serif; letter-spacing: .02em; }
.hello p { margin: 0; color: var(--muted); }
.hello .clock { margin-left: auto; text-align: right; }
.hello .clock b { display: block; font: 600 34px/1 'Oswald', sans-serif; color: var(--ice); letter-spacing: .04em; }
.hello .clock small { color: var(--muted); }

.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.item:last-child { border-bottom: 0; }
.item .t { flex: 1; min-width: 0; }
.item .t b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .t small { color: var(--muted); font-size: 12.5px; }
a.item:hover { background: rgba(148, 220, 255, .04); border-radius: 10px; }
.empty { padding: 22px 8px; text-align: center; color: var(--dim); font-size: 13.5px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 900; letter-spacing: .03em; white-space: nowrap; border: 1px solid transparent; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.s-offen { color: #7dd3fc; background: rgba(56, 189, 248, .1); border-color: rgba(56, 189, 248, .25); }
.s-in_bearbeitung { color: #67e8f9; background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .35); }
.s-wartet { color: #fcd34d; background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .28); }
.s-erledigt, .s-geschlossen { color: #6ee7b7; background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .28); }
.p-niedrig { color: #94a3b8; background: rgba(148, 163, 184, .1); }
.p-normal { color: #a5f3fc; background: rgba(165, 243, 252, .08); }
.p-hoch { color: #fdba74; background: rgba(251, 146, 60, .12); }
.p-kritisch { color: #fecdd3; background: rgba(251, 113, 133, .2); border-color: rgba(251, 113, 133, .5); box-shadow: 0 0 14px -4px rgba(251, 113, 133, .7); }
.v-tag { font: 700 11.5px 'Lato'; padding: 2px 8px; border-radius: 6px; background: rgba(34, 211, 238, .12); color: var(--ice); border: 1px solid rgba(34, 211, 238, .25); }
.ext { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; font: 900 10px 'Lato'; letter-spacing: .04em; text-transform: uppercase; flex: none;
  background: linear-gradient(150deg, rgba(34, 211, 238, .16), rgba(56, 189, 248, .04)); border: 1px solid rgba(103, 232, 249, .2); color: var(--ice); }
.ext.folder { background: linear-gradient(150deg, rgba(165, 243, 252, .18), rgba(34, 211, 238, .05)); }
.av { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font: 900 13px 'Lato'; color: #021016; flex: none; background: var(--c, var(--cyan)); position: relative; }
.av.sm { width: 24px; height: 24px; border-radius: 8px; font-size: 10.5px; }
.av.on::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg); }
.who-tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; }
.lock { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 900; color: #fde68a; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .35); }
.lock.mine { color: #a5f3fc; background: rgba(34, 211, 238, .12); border-color: rgba(34, 211, 238, .4); }

.bar { height: 7px; border-radius: 99px; background: rgba(148, 220, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--ice)); box-shadow: 0 0 12px rgba(34, 211, 238, .6); transition: width .5s ease; }

/* Tabellen */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
table.t { width: 100%; border-collapse: collapse; min-width: 760px; }
table.t th { text-align: left; padding: 12px 14px; font: 600 11.5px 'Oswald', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); background: rgba(8, 12, 18, .6); white-space: nowrap; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { transition: background .12s; }
table.t tbody tr:hover { background: rgba(148, 220, 255, .035); }
table.t tr.done td { opacity: .55; }
table.t .title { font-weight: 700; color: var(--text); }
table.t .title:hover { color: var(--ice); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .in { width: auto; min-width: 150px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 13px; background: rgba(8, 12, 18, .7); border: 1px solid var(--line); flex-wrap: wrap; }
.tabs button { padding: 7px 14px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; font-weight: 700; font-size: 13px; color: var(--muted); }
.tabs button:hover { color: var(--text); }
.tabs button.on { background: linear-gradient(135deg, rgba(34, 211, 238, .25), rgba(56, 189, 248, .1)); color: var(--white); box-shadow: inset 0 0 0 1px rgba(103, 232, 249, .3); }

/* Kanban-artige Fall-Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: transform .15s, border-color .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); border-color: var(--line-hi); box-shadow: var(--glow); }
.card .num { font: 600 12px 'Oswald', sans-serif; letter-spacing: .18em; color: var(--ice2); }
.card h3 { margin: 0; font-size: 16.5px; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.card.mine { box-shadow: inset 3px 0 0 var(--cyan); }
.card.theirs { box-shadow: inset 3px 0 0 var(--ice); }

/* Script Manager */
.roots { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.root-card { padding: 26px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(34, 211, 238, .14), rgba(12, 18, 26, .8) 55%); display: flex; gap: 18px; align-items: center; transition: transform .15s, box-shadow .15s, border-color .15s; }
.root-card.unf { background: linear-gradient(150deg, rgba(165, 243, 252, .1), rgba(12, 18, 26, .8) 55%); }
.root-card:hover { transform: translateY(-3px); box-shadow: var(--glow); border-color: var(--line-hi); }
.root-card .big { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(34, 211, 238, .15); border: 1px solid rgba(103, 232, 249, .3); }
.root-card .big svg { width: 30px; height: 30px; stroke: var(--ice); fill: none; stroke-width: 1.8; }
.root-card h2 { margin: 0; font: 600 21px 'Oswald', sans-serif; letter-spacing: .08em; color: var(--white); }
.root-card p { margin: 4px 0 0; color: var(--muted); }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); font-weight: 700; } .crumbs a:hover { color: var(--ice); }
.crumbs b { color: var(--text); }
.drop { border: 1.5px dashed rgba(103, 232, 249, .25); border-radius: var(--r); padding: 16px; text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; transition: background .15s, border-color .15s; }
.drop.over { background: rgba(34, 211, 238, .08); border-color: var(--cyan); color: var(--ice); }
.fs-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fs-row:last-child { border-bottom: 0; }
.fs-row:hover { background: rgba(148, 220, 255, .03); }
.fs-row .t { flex: 1; min-width: 0; }
.fs-row .t a { font-weight: 700; color: var(--text); }
.fs-row .t a:hover { color: var(--ice); }
.fs-row .t small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-row .m { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.code { margin: 0; padding: 16px; border-radius: 12px; background: #03060a; border: 1px solid var(--line); overflow: auto; max-height: 520px; font: 13px/1.6 ui-monospace, 'Cascadia Code', Consolas, monospace; color: #d6eef8; white-space: pre; tab-size: 4; }
textarea.editor { font: 13px/1.6 ui-monospace, 'Cascadia Code', Consolas, monospace; min-height: 55vh; white-space: pre; tab-size: 4; background: #03060a; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.banner.warn { color: #fde68a; background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .3); }
.banner.info { color: var(--ice); background: rgba(34, 211, 238, .08); border-color: rgba(34, 211, 238, .3); }
.banner .btn { margin-left: auto; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px 14px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.desc { white-space: pre-wrap; color: #d3e3ee; line-height: 1.6; overflow-wrap: anywhere; }

/* Kommentare */
.comments { display: flex; flex-direction: column; gap: 12px; }
.cm { display: flex; gap: 12px; }
.cm .bub { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: rgba(20, 30, 42, .7); border: 1px solid var(--line); }
.cm .bub header { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.cm .bub header b { color: var(--text); font-size: 13.5px; }
.cm .bub header .acts { margin-left: auto; display: flex; gap: 10px; }
.cm .bub header .acts button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 700; padding: 0; }
.cm .bub header .acts button:hover { color: var(--ice); }
.cm .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.cm.reply { margin-left: 46px; }
.reply-to { font-size: 12.5px; color: var(--ice2); display: flex; align-items: center; gap: 8px; }
.reply-to button { background: none; border: 0; color: var(--muted); cursor: pointer; }

/* Nachrichten */
.chat { display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 420px; }
.chat .stream { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.msg { max-width: min(640px, 82%); display: flex; flex-direction: column; gap: 3px; align-self: flex-start; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg .b { padding: 10px 14px; border-radius: 16px 16px 16px 5px; background: rgba(24, 34, 46, .9); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.me .b { border-radius: 16px 16px 5px 16px; background: linear-gradient(135deg, rgba(34, 211, 238, .28), rgba(56, 189, 248, .14)); border-color: rgba(103, 232, 249, .3); }
.msg .q { font-size: 12px; color: var(--muted); border-left: 2px solid var(--cyan); padding: 2px 8px; margin-bottom: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg small { color: var(--dim); font-size: 11.5px; display: flex; gap: 8px; align-items: center; }
.msg small button { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 11.5px; padding: 0; }
.msg small button:hover { color: var(--ice); }
.day { align-self: center; font-size: 11.5px; color: var(--dim); padding: 3px 12px; border-radius: 99px; border: 1px solid var(--line); margin: 6px 0; }
.composer { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); align-items: flex-end; flex-wrap: wrap; }
.composer textarea { flex: 1; min-height: 48px; max-height: 180px; resize: none; }
.composer .reply-to { width: 100%; }

/* Aktivität */
.act { display: flex; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.act:last-child { border-bottom: 0; }
.act .tx { flex: 1; min-width: 0; font-size: 14px; }
.act time { color: var(--dim); font-size: 12px; white-space: nowrap; }
.timeline .act { position: relative; padding-left: 4px; }

/* Benachrichtigungen */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.note.unread { background: linear-gradient(90deg, rgba(34, 211, 238, .08), transparent); box-shadow: inset 3px 0 0 var(--cyan); }
.note .ni { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(34, 211, 238, .1); color: var(--ice); flex: none; }
.note .tx { flex: 1; min-width: 0; }
.note time { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }

/* Modal & Toasts */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(1, 3, 6, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fadein .15s ease; overflow-y: auto; }
@keyframes fadein { from { opacity: 0; } }
.modal { width: min(640px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px; border-radius: 20px; background: linear-gradient(160deg, #111a24, #080c12); border: 1px solid var(--line-hi); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), var(--glow); animation: rise .2s ease; }
.modal.wide { width: min(1100px, 100%); }
.modal h3 { margin: 0 0 18px; font: 600 20px 'Oswald', sans-serif; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.modal h3 .x { margin-left: auto; }
.modal form, .modal .body { display: grid; gap: 14px; }
.modal .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 40px)); }
.toast { padding: 12px 16px; border-radius: 14px; background: rgba(13, 20, 28, .96); border: 1px solid var(--line-hi); box-shadow: var(--glow); font-size: 14px; animation: rise .25s ease; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.toast.err { border-color: rgba(248, 113, 113, .5); }
.toast.ok { border-color: rgba(52, 211, 153, .45); }
.toast .ico { color: var(--ice); margin-top: 2px; }
.upl { display: grid; gap: 6px; font-size: 13px; }
.upl .bar { height: 5px; }

.searchres h2 { margin: 18px 0 10px; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 12.5px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; }
.right { margin-left: auto; }
.pill-x { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1280px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 30px 0 60px rgba(0, 0, 0, .5); }
  .side.open { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .5); }
  .top .burger { display: inline-flex; }
  .c2, .c12, .c3, .roots { grid-template-columns: minmax(0, 1fr); }
  .presence span.txt { display: none; }
}
@media (max-width: 640px) {
  .content { padding: 18px 14px; }
  .top { padding: 10px 14px; gap: 8px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat b { font-size: 28px; }
  .ph h1 { font-size: 24px; }
  .hello { flex-direction: column; align-items: flex-start; padding: 20px; }
  .hello .clock { margin-left: 0; text-align: left; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; }
  .fs-row .m { display: none; }
  .presence { display: none; }
  .modal { padding: 18px; }
  .cm.reply { margin-left: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Upload-Fortschritt (unten links, bleibt beim Seitenwechsel stehen) */
.uploads { position: fixed; left: 20px; bottom: 20px; z-index: 150; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 40px)); }
.upbox { padding: 14px 16px; border-radius: 14px; background: rgba(13, 20, 28, .97); border: 1px solid var(--line-hi); box-shadow: var(--glow); display: grid; gap: 8px; font-size: 13.5px; animation: rise .25s ease; }
.upbox [data-n] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
