/* TS-Sponsoring Panel – Design */
@font-face { font-family: 'Orbitron'; font-weight: 500; src: url(fonts/orbitron-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Orbitron'; font-weight: 700; src: url(fonts/orbitron-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Orbitron'; font-weight: 900; src: url(fonts/orbitron-latin-900-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; src: url(fonts/inter-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF; }

:root {
  --bg: #070b16; --bg2: #0a1020; --panel: #0e1528; --panel2: #121b33; --panel3: #17223f; --line: #1e2a48; --line2: #2a3a62;
  --text: #e8eeff; --muted: #8b97ba; --dim: #5d6a8f;
  --cyan: #22d3ee; --violet: #a855f7; --pink: #f472b6; --ok: #34d399; --warn: #fbbf24; --bad: #f87171;
  --grad: linear-gradient(120deg, #22d3ee 0%, #a855f7 55%, #f472b6 100%);
  --radius: 14px; --shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
svg.st { width: 16px; height: 16px; flex: none; color: #7a88b4; vertical-align: -3px; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.45 'Inter', system-ui, sans-serif; overflow: hidden; user-select: none; }
input, textarea, select, button { font: inherit; color: inherit; }
::selection { background: rgba(168, 85, 247, .45); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #22305a; border-radius: 10px; border: 2px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }
.sel { user-select: text; }

/* ---------- Titelleiste ---------- */
#titlebar { position: fixed; inset: 0 0 auto 0; height: 38px; display: flex; align-items: center; z-index: 50; -webkit-app-region: drag; background: linear-gradient(180deg, rgba(7, 11, 22, .95), rgba(7, 11, 22, .6)); border-bottom: 1px solid rgba(255, 255, 255, .04); }
#titlebar .tb-title { padding-left: 16px; font: 700 11px 'Orbitron'; letter-spacing: .18em; color: var(--muted); display: flex; gap: 10px; align-items: center; }
#titlebar .tb-title b { background: var(--grad); -webkit-background-clip: text; color: transparent; }
#titlebar .tb-conn { margin-left: 18px; font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
#titlebar .tb-btns { margin-left: auto; display: flex; height: 100%; -webkit-app-region: no-drag; }
#titlebar .tb-btns button { width: 46px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
#titlebar .tb-btns button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
#titlebar .tb-btns button.close:hover { background: #e5484d; color: #fff; }

/* ---------- Login ---------- */
#login { position: fixed; inset: 0; display: grid; place-items: center; padding-top: 38px; }
#bgwaves { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.login-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 440px; gap: 64px; align-items: center; max-width: 1080px; width: calc(100% - 64px); }
.login-hero { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.login-hero p { color: var(--muted); max-width: 420px; margin: 0; }
.login-card { background: rgba(14, 21, 40, .78); backdrop-filter: blur(16px); border: 1px solid var(--line2); border-radius: 20px; padding: 28px; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05); }
.login-card h2 { margin: 0 0 4px; font: 700 18px 'Orbitron'; letter-spacing: .06em; }
.login-card .sub { color: var(--muted); margin: 0 0 18px; font-size: 13px; }
.login-msg { margin-top: 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; display: none; }
.login-msg.err { display: block; background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .35); color: #ffc9c9; }
.login-msg.info { display: block; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .3); color: #c8f6ff; }
.help { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.help summary { cursor: pointer; color: var(--cyan); }
.help ul { padding-left: 18px; margin: 8px 0 0; } .help li { margin-bottom: 5px; }
.help code { background: rgba(255, 255, 255, .06); padding: 1px 5px; border-radius: 5px; color: var(--text); }

/* ---------- Logo ---------- */
.lockup { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.wordmark { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wm-main { position: relative; font: 900 34px 'Orbitron'; letter-spacing: .08em; background: linear-gradient(100deg, #22d3ee 0%, #a855f7 40%, #f472b6 60%, #22d3ee 100%); background-size: 250% 100%; -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(168, 85, 247, .35)); }
.is-anim .wm-main { animation: shimmer 6s linear infinite; }
.wm-tag { font: 500 11px 'Orbitron'; letter-spacing: .42em; color: var(--muted); padding-left: .42em; }
@keyframes shimmer { to { background-position: -250% 0; } }
.ts-logo { overflow: visible; }
.ts-logo .ring1, .ts-logo .ring2, .ts-logo .spark1, .ts-logo .spark2 { transform-origin: 120px 120px; }
.ts-logo.is-anim .ring1 { animation: spin 22s linear infinite; }
.ts-logo.is-anim .ring2 { animation: spin 34s linear infinite reverse; }
.ts-logo.is-anim .spark1 { animation: spin 5.5s linear infinite; }
.ts-logo.is-anim .spark2 { animation: spin 8.5s linear infinite reverse; }
.ts-logo.is-anim .halo { animation: halo 3.2s ease-in-out infinite; transform-origin: 120px 120px; }
.ts-logo.is-anim .core-pulse { animation: corepulse 2.4s ease-in-out infinite; transform-origin: 120px 120px; }
.ts-logo .eq { transform-box: fill-box; transform-origin: 50% 100%; }
.ts-logo.is-anim .eq { animation: eq 1.1s ease-in-out infinite; }
.ts-logo.is-anim .eq0 { animation-delay: -.2s; animation-duration: .9s; } .ts-logo.is-anim .eq1 { animation-delay: -.55s; }
.ts-logo.is-anim .eq2 { animation-delay: -.1s; animation-duration: 1.3s; } .ts-logo.is-anim .eq3 { animation-delay: -.75s; animation-duration: .95s; }
.ts-logo.is-anim .eq4 { animation-delay: -.4s; animation-duration: 1.2s; }
.ts-logo.is-anim .waves path { animation: wave 1.8s ease-out infinite; transform-box: fill-box; }
.ts-logo.is-anim .waves .w1l, .ts-logo.is-anim .waves .w1r { transform-origin: 50% 50%; }
.ts-logo.is-anim .waves .w2l, .ts-logo.is-anim .waves .w2r { animation-delay: .35s; }
.ts-logo.is-anim .mic { animation: mic 1.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes halo { 0%, 100% { opacity: .22; transform: scale(.97); } 50% { opacity: .55; transform: scale(1.06); } }
@keyframes corepulse { 0%, 100% { stroke-opacity: .15; } 50% { stroke-opacity: .7; } }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1.08); } }
@keyframes wave { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mic { 0%, 100% { fill: #f472b6; } 50% { fill: #fff; } }
@media (prefers-reduced-motion: reduce) { .is-anim *, .is-anim { animation: none !important; } }

/* ---------- App-Layout ---------- */
#app { position: fixed; inset: 38px 0 0 0; display: grid; grid-template-columns: 236px 1fr; }
#sidebar { background: linear-gradient(180deg, var(--bg2), #080d1b); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 12px; gap: 4px; }
.side-logo { display: flex; align-items: center; gap: 10px; padding: 4px 6px 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.side-logo .wm-main { font-size: 15px; letter-spacing: .05em; }
.side-logo .wm-tag { font-size: 8px; letter-spacing: .3em; }
.side-logo .wordmark { align-items: flex-start; gap: 2px; }
.nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--muted); cursor: pointer; font-weight: 500; position: relative; transition: background .15s, color .15s; }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.nav.active { background: linear-gradient(90deg, rgba(34, 211, 238, .14), rgba(168, 85, 247, .08)); color: #fff; }
.nav.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); }
.nav .badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: rgba(34, 211, 238, .14); color: var(--cyan); }
.side-foot { margin-top: auto; padding: 12px 8px 4px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); display: flex; flex-direction: column; gap: 8px; }
.side-foot .srv { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#content { overflow: auto; padding: 26px 30px 40px; position: relative; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font: 700 22px 'Orbitron'; letter-spacing: .04em; }
.page-head .hint { color: var(--muted); font-size: 13px; }
.page-head .spacer { flex: 1; }

/* ---------- Bausteine ---------- */
.card { background: linear-gradient(180deg, var(--panel), #0c1324); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin: 0 0 12px; font: 700 12px 'Orbitron'; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); cursor: pointer; font-weight: 600; font-size: 13px; transition: transform .08s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--panel3); border-color: #3a4d80; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--grad); border: 0; color: #08101f; box-shadow: 0 6px 24px rgba(168, 85, 247, .35); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 8px 30px rgba(168, 85, 247, .5); }
.btn.ok { background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .45); color: #a7f3d0; }
.btn.ok:hover { background: rgba(52, 211, 153, .22); }
.btn.warn { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .45); color: #fde68a; }
.btn.warn:hover { background: rgba(251, 191, 36, .2); }
.btn.danger { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .45); color: #fecaca; }
.btn.danger:hover { background: rgba(248, 113, 113, .22); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.icon { width: 34px; padding: 0; }
.btn.lg { height: 46px; font-size: 14px; padding: 0 22px; }
.btn.block { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.row { display: flex; gap: 10px; } .row > * { flex: 1; }
.inp, select.inp, textarea.inp { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(5, 9, 20, .7); outline: none; transition: border-color .15s, box-shadow .15s; user-select: text; }
textarea.inp { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.inp:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168, 85, 247, .2); }
select.inp option { background: #0e1528; }
.check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; cursor: pointer; margin: 4px 0 14px; }
.check input { accent-color: var(--violet); width: 16px; height: 16px; }
.seg { display: inline-flex; background: rgba(5, 9, 20, .7); border: 1px solid var(--line2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 12.5px; }
.seg button.on { background: var(--panel3); color: #fff; box-shadow: inset 0 0 0 1px var(--line2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.online { background: rgba(52, 211, 153, .12); color: var(--ok); } .pill.online .dot { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: ping 1.8s infinite; }
.pill.offline { background: rgba(248, 113, 113, .12); color: var(--bad); }
.pill.booting, .pill.unknown { background: rgba(251, 191, 36, .12); color: var(--warn); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
.tag { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: rgba(168, 85, 247, .14); color: #e0c3ff; border: 1px solid rgba(168, 85, 247, .25); white-space: nowrap; }
.tag.c { background: rgba(34, 211, 238, .1); color: #b5f3ff; border-color: rgba(34, 211, 238, .25); }
.tag.p { background: rgba(244, 114, 182, .1); color: #ffd0e7; border-color: rgba(244, 114, 182, .28); }
.tag.g { background: rgba(255, 255, 255, .05); color: var(--muted); border-color: var(--line2); }
.muted { color: var(--muted); } .dim { color: var(--dim); } .mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12.5px; }
.empty { padding: 40px 20px; text-align: center; color: var(--dim); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.copyable { cursor: pointer; border-bottom: 1px dashed var(--line2); } .copyable:hover { color: var(--cyan); }

/* ---------- Übersicht ---------- */
.hero { position: relative; overflow: hidden; display: flex; gap: 22px; align-items: center; padding: 22px 24px; }
.hero::after { content: ''; position: absolute; right: -80px; top: -120px; width: 380px; height: 380px; background: radial-gradient(circle, rgba(168, 85, 247, .22), transparent 65%); pointer-events: none; }
.hero .h-name { font: 700 22px 'Orbitron'; letter-spacing: .03em; margin: 6px 0 4px; }
.hero .h-meta { color: var(--muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero .h-actions { margin-left: auto; display: flex; gap: 10px; position: relative; z-index: 1; }
.stats { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 16px 18px; position: relative; overflow: hidden; }
.stat .s-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat .s-val { font: 700 26px 'Orbitron'; margin-top: 8px; letter-spacing: .02em; }
.stat .s-val small { font: 500 13px 'Inter'; color: var(--muted); margin-left: 4px; }
.stat .s-sub { font-size: 12px; color: var(--dim); margin-top: 2px; }
.stat .s-ico { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(34, 211, 238, .1); color: var(--cyan); }
.stat .s-ico svg { width: 18px; height: 18px; }
.bar { height: 6px; background: rgba(255, 255, 255, .06); border-radius: 6px; margin-top: 10px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 6px; transition: width .6s; }
.dash2 { grid-template-columns: 1.3fr 1fr; }
.chat { height: 230px; overflow: auto; display: flex; flex-direction: column; gap: 8px; padding-right: 4px; }
.chat .m { font-size: 13px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); user-select: text; }
.chat .m b { color: var(--cyan); } .chat .m .t { float: right; color: var(--dim); font-size: 11px; }
.chat .m.me b { color: var(--pink); }
.online-list { display: flex; flex-wrap: wrap; gap: 8px; }
.online-list .u { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.online-list .u:hover { border-color: var(--line2); background: rgba(255, 255, 255, .06); }

/* ---------- Live-Baum ---------- */
.live { display: grid; grid-template-columns: minmax(420px, 1fr) 400px; gap: 16px; height: calc(100vh - 38px - 26px - 40px - 66px); }
.tree-card { display: flex; flex-direction: column; min-height: 0; padding: 0; }
.tree-tools { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.tree { overflow: auto; padding: 8px 6px 20px; flex: 1; }
.tree .srvrow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; font-weight: 700; color: #fff; }
.tree .srvrow svg { width: 18px; height: 18px; color: var(--cyan); }
.ch { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; cursor: pointer; color: #cdd6f3; border: 1px solid transparent; position: relative; }
.ch:hover { background: rgba(255, 255, 255, .04); }
.ch.sel { background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .3); }
.ch.drop { background: rgba(168, 85, 247, .18); border-color: var(--violet); }
.ch .ci { width: 16px; height: 16px; flex: none; color: #6f7fb0; }
.ch.has-users .ci { color: var(--cyan); }
.ch .cn { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch .cc { font-size: 11px; color: var(--dim); }
.ch .flag { width: 14px; height: 14px; color: var(--warn); }
.ch.spacer { cursor: default; color: var(--muted); font-weight: 700; letter-spacing: .04em; justify-content: center; }
.ch.spacer .cn { flex: none; } .ch.spacer.left { justify-content: flex-start; } .ch.spacer.right { justify-content: flex-end; }
.ch.spacer.line .cn { flex: 1; color: var(--line2); overflow: hidden; }
.cl { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 8px; cursor: grab; font-size: 13.5px; border: 1px solid transparent; }
.cl:hover { background: rgba(255, 255, 255, .05); }
.cl.sel { background: rgba(244, 114, 182, .1); border-color: rgba(244, 114, 182, .35); }
.cl .st { width: 16px; height: 16px; flex: none; color: #7a88b4; }
.cl.talk .st { color: var(--ok); filter: drop-shadow(0 0 6px rgba(52, 211, 153, .8)); }
.cl.away { opacity: .6; }
.cl .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl .tags { display: flex; gap: 4px; margin-left: auto; }
.cl .ico-s { width: 14px; height: 14px; color: var(--bad); flex: none; }
.cl .cty { font-size: 13px; }
.detail { overflow: auto; }
.detail .d-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font: 900 20px 'Orbitron'; color: #08101f; background: var(--grad); flex: none; }
.detail .d-name { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); font-size: 12px; cursor: pointer; color: var(--muted); font-weight: 600; transition: all .15s; }
.chip:hover { border-color: #4a5d93; color: var(--text); }
.chip.on { background: rgba(168, 85, 247, .2); border-color: var(--violet); color: #fff; }
.section-t { font: 700 11px 'Orbitron'; letter-spacing: .12em; color: var(--muted); margin: 18px 0 10px; text-transform: uppercase; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { position: sticky; top: 0; background: var(--panel2); text-align: left; padding: 10px 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); z-index: 1; }
table.t td { padding: 10px 12px; border-bottom: 1px solid rgba(30, 42, 72, .6); vertical-align: middle; }
table.t tr:hover td { background: rgba(255, 255, 255, .02); }
table.t td.act { text-align: right; white-space: nowrap; }
.groups { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.glist .gi { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.glist .gi:hover { background: rgba(255, 255, 255, .04); }
.glist .gi.sel { background: rgba(168, 85, 247, .14); border-color: rgba(168, 85, 247, .4); }
.glist .gi .gid { margin-left: auto; font-size: 11px; color: var(--dim); }
.log { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12.5px; }
.log td.lvl { font-weight: 700; } .lvl.INFO { color: var(--cyan); } .lvl.WARNING { color: var(--warn); } .lvl.ERROR, .lvl.CRITICAL { color: var(--bad); } .lvl.DEVELOP { color: var(--dim); }
.log td { user-select: text; } .log td:first-child { white-space: nowrap; }
.tokenbox { font: 600 15px ui-monospace, Consolas, monospace; padding: 14px; border-radius: 12px; background: rgba(5, 9, 20, .8); border: 1px dashed var(--violet); text-align: center; word-break: break-all; user-select: text; color: #fff; }
.backup-grid { grid-template-columns: 1fr 1fr; }
.big-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; }
.big-ico svg { width: 26px; height: 26px; }

/* ---------- Modal, Toast, Kontextmenü ---------- */
#modal-root { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(3, 6, 14, .66); backdrop-filter: blur(4px); }
#modal-root.open { display: grid; animation: fade .15s; }
.modal { width: 480px; max-width: calc(100vw - 40px); max-height: calc(100vh - 80px); overflow: auto; background: linear-gradient(180deg, #111a31, #0c1325); border: 1px solid var(--line2); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); animation: pop .18s cubic-bezier(.2, .9, .3, 1.2); }
.modal h2 { margin: 0 0 6px; font: 700 16px 'Orbitron'; letter-spacing: .05em; }
.modal .m-text { color: var(--muted); margin: 0 0 16px; font-size: 13.5px; }
.modal .m-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.modal.danger h2 { color: #fecaca; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { min-width: 260px; max-width: 420px; padding: 12px 16px; border-radius: 12px; background: #121b33; border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; animation: slidein .25s cubic-bezier(.2, .9, .3, 1.2); }
.toast.ok { border-color: rgba(52, 211, 153, .5); } .toast.ok::before { content: '✔'; color: var(--ok); }
.toast.err { border-color: rgba(248, 113, 113, .55); } .toast.err::before { content: '✖'; color: var(--bad); }
.toast.info::before { content: 'ℹ'; color: var(--cyan); }
.toast.out { opacity: 0; transform: translateX(20px); transition: all .3s; }
@keyframes slidein { from { opacity: 0; transform: translateX(30px); } }
#ctx { position: fixed; z-index: 150; min-width: 210px; background: #111a31; border: 1px solid var(--line2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: none; }
#ctx.open { display: block; animation: fade .1s; }
#ctx .ci { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; }
#ctx .ci svg { width: 15px; height: 15px; color: var(--muted); }
#ctx .ci:hover { background: rgba(255, 255, 255, .06); }
#ctx .ci.danger { color: #fecaca; } #ctx .ci.danger svg { color: var(--bad); }
#ctx .ch-h { padding: 8px 10px 4px; font: 700 10px 'Orbitron'; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
#ctx .ci-l { display: flex; flex-direction: column; min-width: 0; }
#ctx .ci-l small { color: var(--dim); font-size: 11px; }
#ctx .ci.cur { background: rgba(34, 211, 238, .08); cursor: default; }
#ctx .ci-ok { margin-left: auto; color: var(--ok); font-weight: 700; }
#ctx .sep { height: 1px; background: var(--line); margin: 5px 4px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .8s linear infinite; display: inline-block; }
.overlay-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7, 11, 22, .6); z-index: 20; border-radius: inherit; }
.offline-note { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .3); color: #fde68a; margin-bottom: 16px; }
.offline-note > svg { width: 22px; height: 22px; flex: none; }
.conn-lost { position: fixed; top: 46px; left: 50%; transform: translateX(-50%); z-index: 60; padding: 8px 16px; border-radius: 99px; background: rgba(248, 113, 113, .15); border: 1px solid rgba(248, 113, 113, .5); color: #fecaca; font-size: 13px; display: none; align-items: center; gap: 10px; }
.conn-lost.show { display: flex; }
.sico { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.mi { width: 14px; height: 14px; vertical-align: -2px; }
.h3i { width: 15px; height: 15px; }
.gico { width: 16px; height: 16px; color: var(--violet); flex: none; }
.bigi { width: 40px; height: 40px; color: var(--line2); }
.hits { position: absolute; left: 0; right: 0; top: 44px; background: #111a31; border: 1px solid var(--line2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); z-index: 30; display: none; max-height: 300px; overflow: auto; }
.hits.open { display: block; }
.hit { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.hit svg { width: 15px; height: 15px; color: var(--muted); }
.hit:hover { background: rgba(255, 255, 255, .06); }
.hero > .ts-logo { flex: none; }
.tb-update { -webkit-app-region: no-drag; margin-left: 16px; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 99px; border: 0; cursor: pointer; font: 700 12px 'Inter'; color: #08101f; background: var(--grad); box-shadow: 0 0 18px rgba(168, 85, 247, .5); animation: updglow 2.4s ease-in-out infinite; }
.tb-update svg { width: 14px; height: 14px; }
@keyframes updglow { 50% { box-shadow: 0 0 28px rgba(34, 211, 238, .7); } }
.wishes { grid-template-columns: 340px 1fr; align-items: start; }
#w-list { display: flex; flex-direction: column; gap: 12px; }
.wish .w-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wish .w-title { font-size: 15px; }
.w-text { white-space: pre-wrap; color: #cdd6f3; font-size: 13.5px; margin-top: 10px; overflow-wrap: anywhere; }
.w-reply { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(168, 85, 247, .1); border: 1px solid rgba(168, 85, 247, .3); font-size: 13.5px; }
.w-reply b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #e0c3ff; margin-bottom: 4px; }
.w-reply div { white-space: pre-wrap; overflow-wrap: anywhere; }
.w-admin { display: grid; grid-template-columns: 180px 1fr; gap: 10px; margin-top: 12px; }
.w-admin textarea { min-height: 42px; height: 42px; }
.w-admin .row { grid-column: 1 / -1; }
.wpill { padding: 2px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.wpill.info { background: rgba(34, 211, 238, .12); color: var(--cyan); } .wpill.plan { background: rgba(168, 85, 247, .16); color: #e0c3ff; }
.wpill.work { background: rgba(251, 191, 36, .14); color: var(--warn); } .wpill.done { background: rgba(52, 211, 153, .14); color: var(--ok); }
.wpill.no { background: rgba(248, 113, 113, .12); color: var(--bad); }
.modal .wishes { grid-template-columns: 300px 1fr; }
.modal #w-list { max-height: 58vh; overflow: auto; padding-right: 4px; }
.nav.off { opacity: .4; }
table.srvt tr.cur td { background: rgba(34, 211, 238, .06); }
table.srvt tr.cur td:first-child { box-shadow: inset 3px 0 0 var(--cyan); }
table.srvt td.act .btn { margin-left: 4px; }
.sv-name { display: inline-block; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.switch { position: relative; display: inline-block; width: 40px; height: 22px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid var(--line2); transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; border-radius: 50%; background: var(--muted); transition: .2s; }
.switch input:checked + span { background: rgba(52, 211, 153, .25); border-color: rgba(52, 211, 153, .6); }
.switch input:checked + span::before { transform: translateX(18px); background: var(--ok); }
.w-drop { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px dashed var(--line2); border-radius: 10px; color: var(--muted); font-size: 12.5px; cursor: pointer; transition: all .15s; }
.w-drop svg { width: 18px; height: 18px; flex: none; color: var(--cyan); }
.w-drop:hover, .w-drop.over { border-color: var(--cyan); background: rgba(34, 211, 238, .06); color: var(--text); }
.w-pend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.w-thumb { position: relative; width: 84px; }
.w-thumb img { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line2); display: block; }
.w-thumb span { display: block; font-size: 10.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.w-thumb button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: 11px; cursor: pointer; display: grid; place-items: center; }
.w-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.w-att { width: 120px; height: 80px; padding: 0; border-radius: 10px; border: 1px solid var(--line2); background: rgba(5, 9, 20, .7); cursor: zoom-in; overflow: hidden; display: grid; place-items: center; }
.w-att img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-att:hover { border-color: var(--cyan); }
.w-big { text-align: center; } .w-big img { max-width: 100%; max-height: calc(100vh - 220px); border-radius: 10px; border: 1px solid var(--line2); }
.cl-date { font: 500 11px 'Inter'; color: var(--dim); margin-left: 6px; letter-spacing: 0; }
.cs-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; max-height: 52vh; overflow: auto; padding-right: 4px; }
.cs-sec[hidden] { display: none; }
.cs-sec .field.wide { grid-column: 1 / -1; }
.cs-sec textarea.inp { min-height: 64px; }
img.flagi { width: 18px; height: 13.5px; border-radius: 2px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); flex: none; }
img.gicon { width: 14px; height: 14px; vertical-align: -3px; margin-right: 4px; flex: none; object-fit: contain; }
.tag img.gicon { width: 13px; height: 13px; margin-right: 4px; }
.glist .gi img.gicon { width: 16px; height: 16px; margin: 0; }
.chip img.gicon { width: 13px; height: 13px; }
.help-link { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--cyan); cursor: pointer; font-size: 12.5px; }
.help-link:hover { text-decoration: underline; }
.hl { font-size: 13.5px; max-height: 60vh; overflow: auto; padding-right: 4px; }
.hl[hidden] { display: none; }
.hl code { background: rgba(255, 255, 255, .07); padding: 1px 6px; border-radius: 5px; }
.steps { padding-left: 20px; margin: 0 0 12px; } .steps > li { margin-bottom: 10px; line-height: 1.55; } .steps ul { margin: 6px 0 0; padding-left: 18px; } .steps ul li { margin-bottom: 4px; }
.hl-note { padding: 12px 14px; border-radius: 12px; background: rgba(34, 211, 238, .06); border: 1px solid rgba(34, 211, 238, .25); }
.hl-note b { color: #c8f6ff; } .hl-note ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); } .hl-note li { margin-bottom: 5px; }
.site-link { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); text-decoration: none; font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(34, 211, 238, .3); background: rgba(34, 211, 238, .06); transition: all .15s; margin-top: 10px; }
.site-link svg { width: 15px; height: 15px; }
.site-link:hover { background: rgba(34, 211, 238, .14); border-color: var(--cyan); color: #fff; }
.site-link.big { font-size: 14px; padding: 8px 16px; }
.site-link.side { margin: -6px 6px 10px; font-size: 11.5px; padding: 4px 10px; align-self: flex-start; }
.changelog h4 { margin: 14px 0 6px; font: 700 13px 'Orbitron'; color: var(--cyan); }
.changelog ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
