:root {
  color-scheme: dark;
  --bg: #08090e;
  --bg-soft: #0d0f16;
  --panel: #11131c;
  --panel-2: #151822;
  --panel-3: #1a1d29;
  --line: #262a38;
  --line-soft: #1c1f2b;
  --text: #f4f1fb;
  --muted: #9699aa;
  --muted-2: #676b7b;
  --violet: #9e6cff;
  --violet-soft: #c5a9ff;
  --violet-dim: rgba(158, 108, 255, .13);
  --teal: #53e6c3;
  --teal-dim: rgba(83, 230, 195, .12);
  --red: #ff657a;
  --red-dim: rgba(255, 101, 122, .12);
  --amber: #f5bd56;
  --amber-dim: rgba(245, 189, 86, .12);
  --blue: #63a8ff;
  --sidebar: 260px;
  --radius: 14px;
  --radius-sm: 9px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: white; background: rgba(158, 108, 255, .45); }
*:focus-visible { outline: 2px solid var(--violet-soft); outline-offset: 2px; }
.hidden { display: none !important; }
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1000; opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.eyebrow, .nav-label, .topbar-left p, .channel-state small {
  margin: 0; color: var(--muted-2); font-size: 10px; font-weight: 750; letter-spacing: .16em;
}

/* Start und Anmeldung */
.center-view { min-height: 100vh; display: grid; place-content: center; justify-items: center; padding: 32px; text-align: center; }
.center-view h1 { margin: 10px 0 24px; font-size: clamp(24px, 4vw, 36px); letter-spacing: -.035em; }
.boot-mark, .brand-mark {
  position: relative; display: grid; place-items: center; width: 50px; height: 50px;
  border: 1px solid rgba(158,108,255,.58); background: linear-gradient(145deg, #171125, #0c0d14);
  box-shadow: inset 0 0 22px rgba(158,108,255,.1), 0 0 30px rgba(158,108,255,.1); transform: rotate(45deg); border-radius: 13px;
}
.boot-mark span, .brand-mark span { color: var(--violet-soft); font-size: 23px; font-weight: 900; transform: rotate(-45deg); }
.boot-mark { width: 64px; height: 64px; margin-bottom: 28px; animation: bootPulse 1.8s ease-in-out infinite; }
.loading-line { width: 220px; height: 2px; overflow: hidden; background: var(--line); }
.loading-line span { display: block; width: 45%; height: 100%; background: var(--violet); animation: load 1.2s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-110%); } to { transform: translateX(330%); } }
@keyframes bootPulse { 50% { box-shadow: inset 0 0 28px rgba(158,108,255,.16), 0 0 42px rgba(158,108,255,.2); } }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) minmax(500px, 1.1fr); }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 7vw, 112px); border-right: 1px solid var(--line-soft); background: #0b0c12; }
.brand-lockup { display: flex; align-items: center; gap: 17px; }
.brand-lockup .brand-mark { width: 45px; height: 45px; border-radius: 11px; }
.brand-lockup .brand-mark span { font-size: 20px; }
.brand-lockup p { margin: 0 0 2px; font-weight: 900; font-size: 20px; letter-spacing: .21em; }
.brand-lockup div > span { display: block; color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .22em; }
.login-copy { margin: clamp(72px, 11vh, 130px) 0 44px; max-width: 590px; }
.login-copy h1 { margin: 14px 0 24px; font-size: clamp(46px, 6vw, 78px); line-height: .98; letter-spacing: -.065em; }
.login-copy h1 span { color: var(--violet-soft); }
.login-copy > p:last-child { max-width: 530px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.button {
  appearance: none; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: var(--radius-sm);
  min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; font-size: 13px; cursor: pointer; transition: .18s ease;
}
.button:hover { border-color: #3a3f51; background: var(--panel-3); transform: translateY(-1px); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button-large { width: fit-content; min-height: 52px; padding: 0 24px; font-size: 14px; }
.button-twitch, .button-primary { border-color: #7f4ee6; background: #7444d2; color: white; box-shadow: 0 8px 30px rgba(116,68,210,.2); }
.button-twitch:hover, .button-primary:hover { border-color: #a67bff; background: #8553e8; }
.button-danger { border-color: rgba(255,101,122,.34); background: var(--red-dim); color: #ff9baa; }
.button-ghost { background: transparent; }
.button-icon { font-size: 18px; }
.login-trust { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--muted-2); font-size: 11px; }
.login-trust span { display: flex; align-items: center; gap: 8px; }
.login-error { max-width: 540px; margin: 20px 0 0; padding: 12px 14px; border: 1px solid rgba(255,101,122,.25); border-radius: var(--radius-sm); background: var(--red-dim); color: #ff9dab; font-size: 13px; }
.login-aside { position: relative; min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 52% 47%, rgba(158,108,255,.16), transparent 26%), linear-gradient(135deg, #0a0b11, #11121b); }
.login-aside::before { content: ""; position: absolute; inset: 0; opacity: .18; background-size: 42px 42px; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); mask-image: radial-gradient(circle, black, transparent 70%); }
.nox-glyph { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; display: grid; place-items: center; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid rgba(158,108,255,.55); border-radius: 42px; background: rgba(11,12,19,.82); box-shadow: inset 0 0 70px rgba(158,108,255,.12), 0 0 100px rgba(158,108,255,.12); }
.nox-glyph span { font-size: 93px; font-weight: 900; color: #c3a5ff; transform: rotate(-45deg); text-shadow: 0 0 35px rgba(158,108,255,.35); }
.nox-glyph em { position: absolute; right: 24px; top: 24px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 20px var(--teal); animation: statusPulse 2s infinite; }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(158,108,255,.15); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-one { width: 390px; height: 390px; }
.orbit-two { width: 610px; height: 610px; border-style: dashed; animation: spin 35s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.signal-card { position: absolute; min-width: 135px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(14,16,24,.8); backdrop-filter: blur(12px); }
.signal-card small { display: block; color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.signal-card strong { display: block; margin-top: 5px; font-size: 13px; letter-spacing: .08em; }
.signal-card i { position: absolute; right: 14px; top: 22px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 9px var(--teal); }
.signal-a { left: 13%; top: 22%; }.signal-b { right: 10%; top: 31%; }.signal-c { left: 17%; bottom: 20%; }

/* App-Rahmen */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; border-right: 1px solid var(--line-soft); background: #0b0c12; }
.sidebar-head { min-height: 79px; display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--line-soft); }
.brand-lockup.compact { gap: 14px; }
.brand-lockup.compact .brand-mark { width: 37px; height: 37px; border-radius: 9px; }
.brand-lockup.compact .brand-mark span { font-size: 16px; }
.brand-lockup.compact p { font-size: 16px; }
.sidebar-close { display: none !important; margin-left: auto; }
.channel-state { margin: 19px 16px 10px; padding: 14px 13px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(255,255,255,.018); }
.channel-state strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.channel-state > span { color: var(--muted-2); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #5e6271; box-shadow: 0 0 0 3px rgba(94,98,113,.1); }
.status-dot.online { background: var(--teal); box-shadow: 0 0 0 3px var(--teal-dim), 0 0 10px rgba(83,230,195,.4); }
.status-dot.warning { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
@keyframes statusPulse { 50% { opacity: .45; } }
.main-nav { flex: 1; overflow-y: auto; padding: 5px 10px 18px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.nav-label { padding: 20px 12px 8px; }
.main-nav a { position: relative; min-height: 41px; margin: 2px 0; padding: 0 12px; display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 8px; color: #a7aab8; font-size: 12px; font-weight: 650; transition: .15s ease; }
.main-nav a > span:first-child { width: 17px; color: #6f7383; font-size: 17px; text-align: center; }
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.025); }
.main-nav a.active { border-color: rgba(158,108,255,.17); background: var(--violet-dim); color: var(--text); }
.main-nav a.active::before { content: ""; position: absolute; left: -11px; width: 2px; height: 21px; border-radius: 0 3px 3px 0; background: var(--violet); box-shadow: 0 0 12px rgba(158,108,255,.5); }
.main-nav a.active > span:first-child, .cortex-link > span:first-child { color: var(--violet-soft); }
.nav-badge { margin-left: auto; min-width: 19px; padding: 2px 5px; border-radius: 20px; background: var(--violet); color: white; font-size: 9px; font-style: normal; text-align: center; }
.nav-badge.danger { background: var(--red); }
.cortex-pulse { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); animation: statusPulse 2.5s infinite; }
.sidebar-foot { padding: 13px 15px 18px; border-top: 1px solid var(--line-soft); }
.mini-system { padding: 10px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.mini-system-icon { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: var(--violet-soft); font-size: 11px; font-weight: 900; }
.mini-system strong, .mini-system small { display: block; }.mini-system strong { font-size: 10px; }.mini-system small { margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.workspace { min-width: 0; grid-column: 2; }
.topbar { position: sticky; z-index: 20; top: 0; height: 79px; padding: 0 clamp(20px, 3vw, 42px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); background: rgba(8,9,14,.87); backdrop-filter: blur(18px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-left h1 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.025em; }
.icon-button { appearance: none; width: 37px; height: 37px; padding: 0; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--muted); cursor: pointer; }
.icon-button:hover { border-color: #393e50; color: var(--text); background: var(--panel-2); }
.menu-button { display: none; }
.connection-pill { height: 33px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-soft); border-radius: 20px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.profile-button { position: relative; min-width: 162px; height: 45px; padding: 0 11px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--panel); cursor: pointer; text-align: left; }
.profile-button img, #profile-fallback { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; }
#profile-fallback { display: grid; place-items: center; background: var(--violet-dim); color: var(--violet-soft); font-size: 11px; font-weight: 800; }
.profile-copy strong, .profile-copy small { display: block; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { font-size: 10px; }.profile-copy small { margin-top: 2px; color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.profile-menu { position: absolute; z-index: 50; right: 40px; top: 69px; min-width: 210px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #151720; box-shadow: 0 18px 60px rgba(0,0,0,.4); }
.profile-menu p { margin: 0; padding: 9px 10px 12px; border-bottom: 1px solid var(--line-soft); }.profile-menu p strong, .profile-menu p span { display: block; }.profile-menu p strong { font-size: 12px; }.profile-menu p span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.profile-menu button { width: 100%; margin-top: 7px; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #ff96a5; cursor: pointer; text-align: left; font-size: 11px; font-weight: 700; }.profile-menu button:hover { background: var(--red-dim); }
.sidebar-scrim { display: none; }
.route-loading { position: fixed; z-index: 25; top: 78px; right: 0; left: var(--sidebar); height: 2px; overflow: hidden; background: transparent; }.route-loading span { display: block; width: 25%; height: 100%; background: var(--violet); animation: load .9s ease-in-out infinite; }
.view-root { width: min(1540px, 100%); margin: 0 auto; padding: clamp(24px, 3.2vw, 46px); }

/* Inhaltsbausteine */
.page-head { min-height: 54px; margin-bottom: 27px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.page-head h2 { margin: 0 0 7px; font-size: clamp(23px, 2.8vw, 34px); letter-spacing: -.045em; }.page-head p { max-width: 720px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.page-actions, .inline-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat-card, .card { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--panel); }
.stat-card { position: relative; min-height: 132px; padding: 20px; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: linear-gradient(90deg, transparent, var(--stat-color, var(--violet)), transparent); opacity: .35; }
.stat-card .stat-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--violet-dim); color: var(--violet-soft); font-size: 14px; }
.stat-card strong { display: block; margin-top: 15px; font-size: 25px; letter-spacing: -.035em; }.stat-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .75fr); gap: 18px; }.content-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }.content-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; overflow: hidden; }
.card-head { min-height: 63px; padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line-soft); }
.card-head h3 { margin: 0; font-size: 13px; letter-spacing: -.01em; }.card-head p { margin: 4px 0 0; color: var(--muted-2); font-size: 10px; }.card-head > span { color: var(--muted-2); font-size: 10px; }
.card-body { padding: 19px; }.card-body.flush { padding: 0; }.card + .card { margin-top: 0; }
.empty-state { min-height: 170px; padding: 28px; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }.empty-state span { font-size: 25px; color: var(--muted-2); }.empty-state strong { margin-top: 12px; color: var(--text); font-size: 13px; }.empty-state p { max-width: 330px; margin: 6px 0 0; font-size: 11px; line-height: 1.55; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
th { color: var(--muted-2); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; background: rgba(255,255,255,.012); }
tbody tr:last-child td { border-bottom: 0; } tbody tr:hover td { background: rgba(255,255,255,.012); }
.table-primary { color: var(--text); font-weight: 700; }.table-secondary { display: block; margin-top: 3px; color: var(--muted-2); font-size: 9px; }.table-actions { display: flex; justify-content: flex-end; gap: 5px; }.table-actions button { width: 30px; height: 30px; }
.badge { width: fit-content; padding: 4px 7px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); background: rgba(255,255,255,.02); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }.badge.green { border-color: rgba(83,230,195,.18); background: var(--teal-dim); color: var(--teal); }.badge.red { border-color: rgba(255,101,122,.2); background: var(--red-dim); color: #ff91a1; }.badge.amber { border-color: rgba(245,189,86,.2); background: var(--amber-dim); color: var(--amber); }.badge.violet { border-color: rgba(158,108,255,.22); background: var(--violet-dim); color: var(--violet-soft); }
.muted { color: var(--muted); }.dim { color: var(--muted-2); }.danger-text { color: #ff8496; }.good-text { color: var(--teal); }
.section-stack { display: grid; gap: 18px; }
.toolbar { margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.search { position: relative; min-width: min(330px, 100%); }.search span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }.search input { padding-left: 35px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #0d0f16; color: var(--text); font-size: 12px; transition: .15s ease; }
input, select { height: 41px; padding: 0 12px; } textarea { min-height: 104px; padding: 11px 12px; line-height: 1.55; resize: vertical; }
input::placeholder, textarea::placeholder { color: #555968; } input:focus, textarea:focus, select:focus { border-color: rgba(158,108,255,.65); outline: 0; box-shadow: 0 0 0 3px var(--violet-dim); }
.field { display: grid; gap: 7px; }.field label, .field > span:first-child { color: #b6b8c5; font-size: 10px; font-weight: 700; }.field small { color: var(--muted-2); font-size: 9px; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }.form-grid .wide { grid-column: 1 / -1; }.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.setting-row { min-height: 67px; padding: 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-soft); }.setting-row:last-child { border-bottom: 0; }.setting-copy strong { display: block; font-size: 11px; }.setting-copy span { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; line-height: 1.4; }
.switch { position: relative; flex: 0 0 auto; width: 39px; height: 22px; }.switch input { position: absolute; opacity: 0; pointer-events: none; }.switch span { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 20px; background: #171923; cursor: pointer; transition: .18s; }.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #747887; transition: .18s; }.switch input:checked + span { border-color: rgba(158,108,255,.6); background: rgba(158,108,255,.28); }.switch input:checked + span::after { transform: translateX(17px); background: var(--violet-soft); box-shadow: 0 0 10px rgba(158,108,255,.4); }.switch input:focus-visible + span { outline: 2px solid var(--violet-soft); outline-offset: 2px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 7px; }.chip { max-width: 100%; padding: 7px 9px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 7px; background: #0d0f16; color: #b9bbc7; font-size: 10px; }.chip button { appearance: none; border: 0; background: transparent; color: var(--muted-2); cursor: pointer; }.chip button:hover { color: var(--red); }
.add-inline { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }

/* Übersicht */
.status-list { display: grid; gap: 2px; }.status-row { min-height: 48px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line-soft); }.status-row:last-child { border-bottom: 0; }.status-row strong { display: block; font-size: 10px; }.status-row small { display: block; margin-top: 3px; color: var(--muted-2); font-size: 9px; }.status-row > span { color: var(--muted); font-size: 9px; }
.leaderboard { display: grid; }.leader-row { min-height: 48px; display: grid; grid-template-columns: 27px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line-soft); }.leader-row:last-child { border: 0; }.leader-rank { color: var(--muted-2); font-size: 10px; font-weight: 800; }.leader-row strong { display: block; font-size: 10px; }.leader-row small { color: var(--muted-2); font-size: 8px; }.leader-points { color: var(--violet-soft); font-size: 10px; font-weight: 750; }
.cortex-preview { position: relative; min-height: 230px; display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 18px; overflow: hidden; }.core-signal { position: relative; width: 94px; height: 94px; display: grid; place-items: center; border: 1px solid rgba(158,108,255,.4); border-radius: 50%; box-shadow: inset 0 0 30px rgba(158,108,255,.1); }.core-signal::before, .core-signal::after { content: ""; position: absolute; border: 1px solid rgba(158,108,255,.16); border-radius: 50%; }.core-signal::before { inset: -13px; }.core-signal::after { inset: 13px; border-style: dashed; animation: spin 14s linear infinite; }.core-signal span { color: var(--violet-soft); font-size: 22px; }.cortex-preview h3 { margin: 0; font-size: 21px; letter-spacing: -.035em; }.cortex-preview p { margin: 8px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }

/* Chat */
.chat-layout { min-height: calc(100vh - 190px); display: grid; grid-template-columns: minmax(0, 1fr) 280px; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.chat-main { min-width: 0; display: grid; grid-template-rows: auto minmax(360px, 1fr) auto; }.chat-header { min-height: 59px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }.chat-header h3 { margin: 0; font-size: 12px; }.chat-feed { max-height: calc(100vh - 315px); overflow-y: auto; padding: 13px 18px; scrollbar-color: var(--line) transparent; }.chat-message { padding: 9px 0; display: grid; grid-template-columns: 78px 1fr auto; gap: 11px; align-items: start; }.chat-time { padding-top: 2px; color: var(--muted-2); font-size: 9px; }.chat-content { min-width: 0; color: #d6d6de; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }.chat-content strong { margin-right: 7px; color: var(--violet-soft); }.chat-message.mod .chat-content strong { color: var(--teal); }.chat-message.broadcaster .chat-content strong { color: #ff8799; }.chat-delete { opacity: 0; }.chat-message:hover .chat-delete { opacity: 1; }
.chat-composer { padding: 13px 15px; display: grid; grid-template-columns: 1fr auto; gap: 9px; border-top: 1px solid var(--line-soft); background: #0e1017; }.chat-composer input { height: 43px; }.chat-composer .button { min-height: 43px; }
.chat-side { border-left: 1px solid var(--line-soft); background: #0e1017; }.chat-side-section { padding: 18px; border-bottom: 1px solid var(--line-soft); }.chat-side-section h4 { margin: 0 0 13px; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }.quick-actions { display: grid; gap: 7px; }.quick-actions .button { justify-content: flex-start; width: 100%; }

/* Moderation und Anti-Bot */
.event-list { display: grid; }.event-item { min-height: 68px; padding: 13px 17px; display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-soft); }.event-item:last-child { border-bottom: 0; }.event-mark { width: 7px; height: 34px; border-radius: 4px; background: var(--amber); }.event-mark.timeout, .event-mark.high { background: var(--red); }.event-mark.review { background: var(--violet); }.event-item strong { font-size: 10px; }.event-item p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }.event-item time { color: var(--muted-2); font-size: 8px; white-space: nowrap; }
.risk-score { display: flex; align-items: center; gap: 10px; }.risk-score strong { width: 28px; font-size: 11px; }.risk-track { width: 70px; height: 4px; overflow: hidden; border-radius: 4px; background: var(--line); }.risk-track span { display: block; height: 100%; background: var(--amber); }.risk-track span.high { background: var(--red); }.risk-track span.low { background: var(--teal); }
.signal-tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }.signal-tags span { padding: 3px 5px; border-radius: 4px; background: rgba(255,255,255,.035); color: var(--muted-2); font-size: 8px; }
.guard-banner { position: relative; min-height: 170px; padding: 26px; display: grid; grid-template-columns: 1fr auto; align-items: center; overflow: hidden; border: 1px solid rgba(158,108,255,.23); border-radius: var(--radius); background: linear-gradient(110deg, rgba(158,108,255,.11), rgba(17,19,28,.8) 54%); }.guard-banner::after { content: ""; position: absolute; right: -70px; width: 240px; height: 240px; border: 1px solid rgba(158,108,255,.16); border-radius: 50%; box-shadow: inset 0 0 0 34px rgba(158,108,255,.018), inset 0 0 0 70px rgba(158,108,255,.018); }.guard-banner h2 { margin: 7px 0 10px; font-size: 28px; letter-spacing: -.045em; }.guard-banner p { max-width: 690px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }.guard-status { position: relative; z-index: 2; margin-right: 40px; text-align: right; }.guard-status strong { display: block; color: var(--teal); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }.guard-status span { display: block; margin-top: 7px; color: var(--muted-2); font-size: 9px; }
.decision-note { padding: 12px 14px; border-left: 2px solid var(--violet); background: var(--violet-dim); color: #bbb5ca; font-size: 10px; line-height: 1.55; }

/* Cortex */
.cortex-hero { position: relative; min-height: 235px; margin-bottom: 18px; padding: 30px; display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: center; overflow: hidden; border: 1px solid rgba(158,108,255,.26); border-radius: var(--radius); background: radial-gradient(circle at 80% 50%, rgba(158,108,255,.13), transparent 28%), #10111a; }
.cortex-hero::before { content: "NOX / CORTEX"; position: absolute; right: 25px; bottom: -4px; color: rgba(255,255,255,.025); font-size: 58px; font-weight: 900; letter-spacing: -.06em; }
.cortex-hero h2 { margin: 8px 0 12px; font-size: clamp(31px, 4vw, 49px); letter-spacing: -.06em; }.cortex-hero h2 span { color: var(--violet-soft); }.cortex-hero p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.cortex-vitals { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }.vital { padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: rgba(8,9,14,.45); }.vital small { display: block; color: var(--muted-2); font-size: 8px; letter-spacing: .12em; }.vital strong { display: block; margin-top: 7px; font-size: 12px; text-transform: capitalize; }.vital strong.good { color: var(--teal); }
.thought-stream { max-height: 520px; overflow-y: auto; }.thought { padding: 15px 17px; display: grid; grid-template-columns: 29px 1fr; gap: 11px; border-bottom: 1px solid var(--line-soft); }.thought:last-child { border-bottom: 0; }.thought-icon { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid rgba(158,108,255,.2); border-radius: 50%; background: var(--violet-dim); color: var(--violet-soft); font-size: 10px; }.thought header { display: flex; justify-content: space-between; gap: 12px; }.thought header strong { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.thought header time { color: var(--muted-2); font-size: 8px; }.thought p { margin: 6px 0 0; color: #c6c5ce; font-size: 10px; line-height: 1.55; }.thought .prompt { color: var(--muted-2); }
.memory-card { padding: 14px; border: 1px solid var(--line-soft); border-radius: 9px; background: #0e1017; }.memory-card + .memory-card { margin-top: 8px; }.memory-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.memory-card h4 { margin: 7px 0 0; font-size: 11px; }.memory-card p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.memory-card footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; color: var(--muted-2); font-size: 8px; }
.learning-list { margin-top: 14px; display: grid; gap: 9px; }.learning-card { padding: 14px; border: 1px solid rgba(158,108,255,.18); border-radius: 9px; background: linear-gradient(135deg, rgba(158,108,255,.07), #0e1017 48%); }.learning-card header, .learning-card footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.learning-card header > div, .learning-card footer > div { display: flex; align-items: center; gap: 7px; }.learning-card time, .learning-card footer > span { color: var(--muted-2); font-size: 8px; }.learning-card h4 { margin: 11px 0 0; font-size: 11px; }.learning-card p { margin: 7px 0 13px; color: var(--muted); font-size: 10px; line-height: 1.55; }.learning-card footer { align-items: flex-end; }.learning-card .button { min-height: 30px; padding: 7px 10px; font-size: 8px; }
.weight { width: 64px; height: 3px; overflow: hidden; border-radius: 3px; background: var(--line); }.weight span { display: block; height: 100%; background: var(--violet); }

/* Dialog und Meldungen */
.dialog { width: min(570px, calc(100vw - 30px)); padding: 0; border: 1px solid var(--line); border-radius: 15px; background: #12141d; color: var(--text); box-shadow: 0 30px 120px rgba(0,0,0,.6); }.dialog::backdrop { background: rgba(4,5,8,.72); backdrop-filter: blur(5px); }.dialog-shell > header, .dialog-shell > footer { min-height: 68px; padding: 15px 19px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }.dialog-shell > header { border-bottom: 1px solid var(--line-soft); }.dialog-shell > footer { justify-content: flex-end; border-top: 1px solid var(--line-soft); }.dialog-shell h2 { margin: 4px 0 0; font-size: 17px; }.dialog-body { padding: 20px; }
.toast-region { position: fixed; z-index: 100; right: 21px; bottom: 21px; display: grid; gap: 8px; pointer-events: none; }.toast { min-width: 280px; max-width: 420px; padding: 13px 15px; display: grid; grid-template-columns: auto 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 10px; background: #171923; box-shadow: 0 15px 50px rgba(0,0,0,.35); animation: toastIn .2s ease-out; }.toast i { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--teal); }.toast.error i { background: var(--red); }.toast strong { display: block; font-size: 10px; }.toast p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }.toast.leave { opacity: 0; transform: translateY(7px); transition: .2s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid.three { grid-template-columns: 1fr; }
  .cortex-hero { grid-template-columns: 1fr; gap: 24px; }.cortex-vitals { max-width: 500px; }
}

@media (max-width: 900px) {
  .login-view { grid-template-columns: 1fr; }.login-panel { min-height: 100vh; border: 0; }.login-aside { display: none; }
  .app-shell { display: block; }.workspace { grid-column: auto; }
  .sidebar { transform: translateX(-101%); transition: transform .22s ease; box-shadow: 22px 0 70px rgba(0,0,0,.4); }.sidebar.open { transform: translateX(0); }
  .sidebar-close, .menu-button { display: inline-grid !important; }.sidebar-head { justify-content: space-between; }.sidebar-scrim { position: fixed; z-index: 29; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(3,4,7,.65); }.sidebar.open + .sidebar-scrim { display: block; }
  .route-loading { left: 0; }.content-grid, .content-grid.equal { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }.chat-side { display: none; }.chat-feed { max-height: calc(100vh - 330px); }
}

@media (max-width: 620px) {
  .login-panel { padding: 30px 24px; }.login-copy { margin: 72px 0 35px; }.login-copy h1 { font-size: 46px; }.login-trust { display: grid; }
  .topbar { height: 68px; padding: 0 14px; }.topbar-left { gap: 9px; }.topbar-left h1 { font-size: 16px; }.topbar-left p { display: none; }.connection-pill, #refresh-button, .profile-copy, .profile-button > span:last-child { display: none; }.profile-button { min-width: 44px; width: 44px; grid-template-columns: 1fr; padding: 7px; }.profile-menu { right: 14px; top: 60px; }
  .view-root { padding: 22px 14px 34px; }.page-head { display: grid; }.page-actions { width: 100%; }.page-actions .button { flex: 1; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }.stat-card { min-height: 118px; padding: 15px; }.stat-card strong { font-size: 21px; }
  .form-grid { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }.form-actions { grid-column: auto; }
  .toolbar { align-items: stretch; flex-direction: column; }.search { min-width: 0; }
  .cortex-preview { grid-template-columns: 1fr; }.core-signal { width: 72px; height: 72px; }
  .cortex-hero { padding: 22px; }.cortex-vitals { grid-template-columns: 1fr 1fr; }.cortex-hero::before { display: none; }
  .guard-banner { grid-template-columns: 1fr; }.guard-status { margin: 20px 0 0; text-align: left; }
  .chat-message { grid-template-columns: 1fr auto; }.chat-time { display: none; }.chat-feed { padding: 10px 13px; }.chat-composer { grid-template-columns: 1fr; }
  th, td { padding: 11px 12px; }.hide-mobile { display: none; }
  .toast-region { right: 12px; bottom: 12px; left: 12px; }.toast { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
