:root {
    --accent: #ff7a00;
    --accent-2: #ffa040;
    --accent-soft: rgba(255, 122, 0, .14);
    --accent-glow: rgba(255, 122, 0, .35);
    --bg: rgba(13, 13, 16, .97);
    --panel: #17171c;
    --panel-2: #1e1e24;
    --border: #2a2a32;
    --text: #f1f1f3;
    --muted: #9b9ba6;
    --danger: #ff4d4d;
    --success: #3ddc84;
    --warning: #ffc233;
    --radius: 12px;
    --scale: 1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    width: 100vw; height: 100vh; overflow: hidden;
    background: transparent;
    font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
    color: var(--text);
    font-size: 14px;
    
}
.hidden { display: none !important; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: #3a3a44; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.sidebar {
    width: 230px; flex-shrink: 0;
    background: linear-gradient(180deg, #1a1410 0%, #121215 40%);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: 20px 14px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 22px; }
.logo {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), #ff5500);
    font-weight: 800; letter-spacing: -.5px; color: #1a0d00;
    box-shadow: 0 6px 20px var(--accent-glow);
}
.brand-name { font-weight: 700; font-size: 15px; }
.brand-sub { color: var(--accent-2); font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; margin-top: 2px; }

nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-btn {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px; border-radius: 10px;
    background: none; border: none; color: var(--muted);
    font: inherit; font-weight: 500; text-align: left; cursor: pointer;
    transition: .15s;
}
.nav-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-btn:hover { background: var(--panel-2); color: var(--text); }
.nav-btn.active { background: var(--accent-soft); color: var(--accent-2); box-shadow: inset 3px 0 0 var(--accent); }
.nav-sep { height: 1px; background: var(--border); margin: 8px 6px; }
.sidebar-foot { color: var(--muted); font-size: 12px; padding: 0 8px; }
.kbd { background: var(--panel-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 11px; margin-right: 4px; }

main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px 14px; }
.topbar h1 { font-size: 21px; font-weight: 700; }
.topbar h1::after { content: ''; display: block; width: 34px; height: 3px; border-radius: 3px; background: var(--accent); margin-top: 6px; }
#content { flex: 1; overflow-y: auto; padding: 4px 26px 26px; }

/* ───────────── Grundelemente ───────────── */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 14px; }
.card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-2); margin-bottom: 12px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 14px; border-radius: 9px;
    background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
    font: inherit; font-weight: 500; cursor: pointer; transition: .12s;
}
.btn:hover { border-color: var(--accent); color: var(--accent-2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1a0d00; font-weight: 700; }
.btn.primary:hover { background: var(--accent-2); color: #1a0d00; box-shadow: 0 4px 18px var(--accent-glow); }
.btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn:disabled { opacity: .4; pointer-events: none; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer; font-size: 14px; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }

input[type=text], input[type=number], textarea, select {
    width: 100%; padding: 10px 12px; border-radius: 9px;
    background: #111115; border: 1px solid var(--border); color: var(--text);
    font: inherit; outline: none; transition: .12s;
    user-select: text;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select option { background: #17171c; }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Schalter */
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; background: #2b2b33; border-radius: 24px; cursor: pointer; transition: .18s; }
.switch i::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #cfcfd6; border-radius: 50%; transition: .18s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::before { transform: translateX(20px); background: #1a0d00; }

/* Formularzeilen */
.field { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.field:last-child { border-bottom: none; }
.field.stack { flex-direction: column; align-items: stretch; gap: 8px; }
.field .lbl { flex: 1; }
.field .lbl small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.field .ctl { width: 260px; flex-shrink: 0; display: flex; justify-content: flex-end; }
.range-wrap { display: flex; align-items: center; gap: 10px; width: 100%; }
.range-wrap output { min-width: 42px; text-align: right; color: var(--accent-2); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; width: 100%; height: 5px; border-radius: 5px; background: #2b2b33; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 0 4px var(--accent-soft); }
.save-bar { position: sticky; bottom: -26px; margin: 16px -26px -26px; padding: 14px 26px; background: linear-gradient(0deg, var(--bg) 70%, transparent); display: flex; justify-content: flex-end; gap: 10px; }

/* ───────────── Spieler ───────────── */
.players { display: grid; grid-template-columns: 300px 1fr; gap: 16px; height: 100%; min-height: 0; }
.plist { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.plist-head { padding: 12px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.plist-count { font-size: 12px; color: var(--muted); }
.plist-items { overflow-y: auto; flex: 1; padding: 6px; }
.pitem { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; cursor: pointer; transition: .1s; }
.pitem:hover { background: var(--panel-2); }
.pitem.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.pid { min-width: 36px; text-align: center; padding: 3px 6px; border-radius: 6px; background: #26262e; font-size: 12px; font-weight: 700; color: var(--accent-2); }
.pname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pname small { display: block; color: var(--muted); font-size: 11px; }
.ping { font-size: 11px; color: var(--muted); }
.ping.bad { color: var(--danger); }
.tag { font-size: 10px; text-transform: uppercase; letter-spacing: .6px; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-2); font-weight: 700; }
.tag.frozen { background: rgba(80,170,255,.15); color: #7cc4ff; }

.pdetail { overflow-y: auto; min-height: 0; }
.phead { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; font-weight: 800; background: linear-gradient(135deg, var(--accent), #ff5500); color: #1a0d00; }
.phead h2 { font-size: 19px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.stat span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.stat b { display: block; margin-top: 4px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agroup + .agroup { margin-top: 14px; }
.agroup h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--muted); }
.empty b { display: block; font-size: 40px; color: var(--accent); opacity: .5; margin-bottom: 8px; }

/* Werkzeug-Kacheln */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tile {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 16px 12px; text-align: center; cursor: pointer; transition: .15s;
}
.tile:hover { border-color: var(--accent); }
.tile .ic { font-size: 22px; margin-bottom: 8px; }
.tile .nm { font-weight: 600; }
.tile .st { font-size: 11px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .8px; }
.tile.on { background: var(--accent-soft); border-color: var(--accent); }
.tile.on .st { color: var(--accent-2); font-weight: 700; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { flex: 1; }

/* Tabellen */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
td { padding: 10px; border-bottom: 1px solid #222229; vertical-align: top; }
tr:hover td { background: rgba(255,255,255,.015); }
td .act { color: var(--accent-2); font-weight: 600; }
.toolbar { display: flex; gap: 10px; margin-bottom: 12px; }
.toolbar input { flex: 1; }

/* ───────────── Modal ───────────── */
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 50; }
.modal-box { width: 420px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: pop2 .15s ease-out; transform: scale(var(--scale)); }
@keyframes pop2 { from { opacity: 0; transform: scale(calc(var(--scale) * .96)); } }
.modal-box h2 { font-size: 17px; margin-bottom: 4px; }
.modal-box p { color: var(--muted); margin-bottom: 14px; }
.modal-box label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 6px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* ───────────── Benachrichtigungen ───────────── */
#toasts { position: fixed; z-index: 100; display: flex; flex-direction: column; gap: 10px; width: 340px; pointer-events: none; }
#toasts.pos-top-right { top: 24px; right: 24px; }
#toasts.pos-top-left { top: 24px; left: 24px; }
#toasts.pos-bottom-right { bottom: 24px; right: 24px; flex-direction: column-reverse; }
#toasts.pos-bottom-left { bottom: 24px; left: 24px; flex-direction: column-reverse; }
.toast {
    position: relative; overflow: hidden;
    display: flex; gap: 12px; align-items: flex-start;
    background: rgba(18,18,22,.96); border: 1px solid var(--border); border-left: 3px solid var(--accent);
    border-radius: 11px; padding: 12px 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    animation: tin .25s ease-out;
}
.toast.out { animation: tout .25s ease-in forwards; }
@keyframes tin { from { opacity: 0; transform: translateX(30px); } }
@keyframes tout { to { opacity: 0; transform: translateX(30px); } }
.toast .ti { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.toast b { display: block; margin-bottom: 2px; }
.toast span { color: #d6d6dc; line-height: 1.4; word-wrap: break-word; }
.toast .prog { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); animation: prog linear forwards; }
@keyframes prog { from { width: 100%; } to { width: 0; } }
.toast.success { border-left-color: var(--success); } .toast.success .ti { color: var(--success); background: rgba(61,220,132,.12); } .toast.success .prog { background: var(--success); }
.toast.error { border-left-color: var(--danger); } .toast.error .ti { color: var(--danger); background: rgba(255,77,77,.12); } .toast.error .prog { background: var(--danger); }
.toast.warning { border-left-color: var(--warning); } .toast.warning .ti { color: var(--warning); background: rgba(255,194,51,.12); } .toast.warning .prog { background: var(--warning); }
.toast.admin { border-left-color: var(--accent); background: linear-gradient(90deg, rgba(255,122,0,.16), rgba(18,18,22,.96) 60%); }

#clip { position: fixed; left: -9999px; top: 0; opacity: 0; }
.grid-2 > .card + .card, .grid-3 > .card + .card { margin-top: 0; }

.webcode { font-family: Consolas, monospace; font-size: 26px; font-weight: 800; letter-spacing: 4px; text-align: center; padding: 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); border: 1px dashed var(--accent); user-select: text; }

/* ═════════════════════ KeinGaming Control – Webseiten-Layout ═════════════════════ */
html, body { background: #0b0b0e; }
body {
    background: radial-gradient(1200px 600px at 10% -10%, #3a1d05 0%, transparent 55%), #0b0b0e;
    min-height: 100vh;
}

#shell { position: fixed; inset: 0; display: flex; }

/* Spieleleiste ganz links */
.rail {
    width: 72px; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 16px 0;
    background: rgba(10, 8, 7, .9);
    border-right: 1px solid var(--border);
}
.rail .logo { width: 44px; height: 44px; margin-bottom: 8px; cursor: pointer; }
.rail-sep { width: 30px; height: 1px; background: var(--border); margin: 2px 0; }
.rail-btn {
    position: relative;
    width: 46px; height: 46px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--panel-2); border: 1px solid var(--border);
    font-size: 21px; cursor: pointer; transition: .15s;
}
.rail-btn:hover { border-color: var(--accent); border-radius: 12px; }
.rail-btn.active { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rail-btn.soon { filter: grayscale(.85); opacity: .55; }
.rail-btn.soon:hover { filter: none; opacity: 1; }
.rail-btn .dot { position: absolute; right: -2px; top: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--success); border: 2px solid #0b0b0e; }
.rail-btn::after {
    content: attr(data-tip); position: absolute; left: 58px; top: 50%; transform: translateY(-50%);
    white-space: nowrap; background: #1e1e24; border: 1px solid var(--border); color: var(--text);
    font-size: 12px; padding: 5px 9px; border-radius: 7px; pointer-events: none; opacity: 0; transition: .12s; z-index: 30;
}
.rail-btn:hover::after { opacity: 1; }

/* Seitenleiste */
.sidebar { background: rgba(18, 14, 12, .85); }
.sidebar.hidden { display: none; }
.srv-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.srv-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 0 8px 6px; }
.srv {
    display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
    cursor: pointer; border: 1px solid transparent;
}
.srv:hover { background: var(--panel-2); }
.srv.active { background: var(--panel-2); border-color: var(--border); }
.srv .st { width: 8px; height: 8px; border-radius: 50%; background: #55555f; flex-shrink: 0; }
.srv .st.on { background: var(--success); box-shadow: 0 0 8px rgba(61,220,132,.6); }
.srv .st.off { background: var(--danger); }
.srv .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv .cnt { font-size: 11px; color: var(--muted); }
.add-srv { width: 100%; justify-content: flex-start; border-style: dashed; color: var(--muted); }

main { background: rgba(13, 13, 16, .6); }
.topbar .pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); background: var(--panel); border: 1px solid var(--border); padding: 6px 12px; border-radius: 20px; }
.topbar .pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.topbar .pill.demo i { background: var(--warning); }

/* Übersicht */
.hero { padding: 6px 0 22px; }
.hero h2 { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.hero h2 span { color: var(--accent); }
.hero p { color: var(--muted); margin-top: 6px; max-width: 640px; line-height: 1.5; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.game-card {
    position: relative; overflow: hidden;
    background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px;
    cursor: pointer; transition: .15s;
}
.game-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.game-card .gc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.game-card .gc-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 23px; background: var(--accent-soft); }
.game-card h3 { font-size: 17px; }
.game-card .gc-sub { font-size: 12px; color: var(--muted); }
.game-card .gc-srv { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 13px; }
.game-card .gc-srv .st { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.game-card .gc-srv b { margin-left: auto; color: var(--accent-2); font-weight: 600; }
.game-card.soon { opacity: .7; }
.game-card.soon .gc-ic { background: #23232a; filter: grayscale(.6); }
.soon-tag { position: absolute; top: 16px; right: 16px; }

.plan-list { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.plan-list li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.plan-list li::before { content: '◆'; color: var(--accent); font-size: 10px; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid rgba(255,122,0,.35); margin-bottom: 14px; line-height: 1.5; }
.notice b { color: var(--accent-2); }
.center-empty { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.center-empty .big { font-size: 46px; margin-bottom: 10px; }
.center-empty h2 { font-size: 20px; margin-bottom: 6px; }
.center-empty p { color: var(--muted); max-width: 440px; margin: 0 auto 16px; line-height: 1.5; }
.code-input { font-family: Consolas, monospace; font-size: 20px !important; letter-spacing: 3px; text-transform: uppercase; text-align: center; }

.players { height: calc(100vh - 110px); }

@media (max-width: 900px) {
    #shell { flex-direction: column; }
    .rail { width: auto; flex-direction: row; padding: 8px 10px; border-right: none; border-bottom: 1px solid var(--border); overflow-x: auto; }
    .rail .logo { margin: 0 6px 0 0; width: 38px; height: 38px; }
    .rail-sep { width: 1px; height: 26px; }
    .rail-btn { width: 40px; height: 40px; font-size: 18px; flex-shrink: 0; }
    .rail-btn::after { display: none; }
    .sidebar { width: auto; padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--border); flex-direction: column; }
    .sidebar .brand { display: none; }
    .srv-list { flex-direction: row; overflow-x: auto; margin-bottom: 8px; }
    .srv-title { display: none; }
    .srv { flex-shrink: 0; }
    .add-srv { width: auto; }
    nav { flex-direction: row; overflow-x: auto; }
    .nav-btn { flex-shrink: 0; }
    .nav-btn span { display: none; }
    .nav-sep { display: none; }
    .sidebar-foot { display: none; }
    .topbar { padding: 14px 16px 8px; }
    #content { padding: 4px 16px 16px; }
    .players { grid-template-columns: 1fr; height: auto; }
    .plist { max-height: 300px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .field { flex-wrap: wrap; }
    .field .ctl { width: 100%; }
    .modal-box { width: calc(100vw - 32px); }
    table { font-size: 12px; }
}

#rail { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 900px) { #rail { flex-direction: row; } }

/* ───────────── Config-Editor ───────────── */
.cfg { display: grid; grid-template-columns: 280px 1fr; gap: 16px; height: calc(100vh - 110px); min-height: 0; }
.cfg-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; gap: 10px; }
.cfg-res { display: flex; align-items: center; gap: 8px; padding: 10px 10px 4px; font-size: 12px; font-weight: 700; color: var(--accent-2); text-transform: none; }
.cfg-res .st { width: 7px; height: 7px; border-radius: 50%; background: #55555f; }
.cfg-res .st.on { background: var(--success); }
.cfg-res .tag { margin-left: auto; }
.cfg-file { padding: 7px 10px 7px 24px; font-family: Consolas, 'JetBrains Mono', monospace; font-size: 12.5px; }
.cfg-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cfg-path { font-family: Consolas, monospace; font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cfg-bar select { width: auto; max-width: 280px; padding: 8px 10px; }
.dirty { color: var(--warning); font-family: inherit; font-size: 12px; }
.cfg-main .notice { margin: 0; padding: 10px 14px; }
.cfg-status { font-size: 12px; color: var(--muted); font-family: Consolas, monospace; }

.code-wrap { flex: 1; min-height: 260px; display: flex; background: #0e0e12; border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
    font: 13px/20px Consolas, 'JetBrains Mono', 'Courier New', monospace; }
.code-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gutter { flex-shrink: 0; min-width: 52px; padding: 12px 10px 12px 8px; text-align: right; color: #50505a; background: #121217; border-right: 1px solid var(--border); overflow: hidden; user-select: none; }
.gutter .err { color: #fff; background: var(--danger); border-radius: 4px; margin: 0 -4px; padding: 0 4px; }
.code-area { position: relative; flex: 1; min-width: 0; }
.code-area pre, .code-area textarea {
    position: absolute; inset: 0; margin: 0; padding: 12px 14px; border: none; border-radius: 0;
    font: inherit; white-space: pre; overflow: auto; tab-size: 4; letter-spacing: 0; word-wrap: normal;
}
.code-area pre { color: #d9d9e0; pointer-events: none; overflow: hidden; }
.code-area textarea { color: transparent; background: transparent; caret-color: var(--accent-2); resize: none; outline: none; min-height: 0; width: 100%; height: 100%; box-shadow: none !important; }
.code-area textarea::selection { background: rgba(255,122,0,.3); color: transparent; }
.tk { color: #ff9a3c; font-weight: 600; } .ts { color: #a6d98a; } .tc { color: #6a6a78; font-style: italic; } .tn { color: #79b8ff; } .tb { color: #d19bff; }

@media (max-width: 900px) {
    .cfg { grid-template-columns: 1fr; height: auto; }
    .cfg .plist { max-height: 240px; }
    .code-wrap { min-height: 60vh; }
}

/* ───────────── Updates ───────────── */
.btn.sm { padding: 6px 10px; font-size: 12.5px; }
.mono { font-family: Consolas, 'JetBrains Mono', monospace; }
code { font-family: Consolas, monospace; background: #111115; border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; font-size: 12px; color: var(--accent-2); }
.upd-table td { vertical-align: middle; }
.dot-st { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #55555f; margin-right: 8px; }
.dot-st.on { background: var(--success); box-shadow: 0 0 6px rgba(61,220,132,.6); }
.repo-link { color: var(--accent-2); text-decoration: none; font-family: Consolas, monospace; }
.repo-link:hover { text-decoration: underline; }
.tag.ok { background: rgba(61,220,132,.12); color: var(--success); }
.tag.upd { background: rgba(255,194,51,.14); color: var(--warning); }
.tag.bad { background: rgba(255,77,77,.14); color: var(--danger); }
.modal-box.wide { width: 680px; max-width: calc(100vw - 32px); max-height: 86vh; display: flex; flex-direction: column; }
.vtabs { display: flex; gap: 6px; margin: 4px 0 10px; border-bottom: 1px solid var(--border); }
.vtab { background: none; border: none; color: var(--muted); font: inherit; padding: 8px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.vtab.active { color: var(--accent-2); border-bottom-color: var(--accent); }
.vlist { overflow-y: auto; flex: 1; min-height: 120px; display: flex; flex-direction: column; gap: 6px; }
.vrow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); }
.vrow.cur { border-color: rgba(61,220,132,.5); background: rgba(61,220,132,.06); }
.vmain { flex: 1; min-width: 0; }
.vrow .tag { margin-left: 4px; }
.vrow details { margin-top: 6px; }
.vrow summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.notes { white-space: pre-wrap; font-size: 12.5px; color: #cfcfd6; background: #111115; border-radius: 8px; padding: 8px 10px; margin-top: 6px; max-height: 180px; overflow-y: auto; }
