:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: #10141c; color: #e8edf5; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #1b2740 0, #10141c 46rem); }
button, input, select { font: inherit; }
button { border: 0; border-radius: 6px; padding: .65rem 1rem; background: #3178d4; color: white; cursor: pointer; }
button:hover { background: #438ce8; }
button.secondary { background: #293547; }
input, select { width: 100%; background: #151c28; border: 1px solid #3a4658; border-radius: 5px; padding: .6rem .7rem; color: #e8edf5; }
label { display: grid; gap: .35rem; font-size: .88rem; color: #bec9d9; }
.centered-card { width: min(390px, calc(100% - 2rem)); margin: 14vh auto; padding: 2rem; border: 1px solid #2d3c53; border-radius: 12px; background: #182130; box-shadow: 0 20px 70px #0005; }
h1, h2, h3 { margin: 0 0 .7rem; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1rem; }
form { display: grid; gap: .9rem; }
.muted { color: #91a0b7; font-size: .88rem; }
.error { color: #ff8d8d; min-height: 1.2rem; }
.message { background: #203b2d; color: #a9e6b9; padding: .7rem .9rem; border-radius: 6px; margin-bottom: 1rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; border-bottom: 1px solid #273348; background: #131a26dd; position: sticky; top: 0; backdrop-filter: blur(12px); z-index: 2; }
.topbar-actions { display: flex; gap: .5rem; }
#current-user { margin-left: 1rem; }
.content { width: min(1200px, calc(100% - 2rem)); margin: 2rem auto; }
.section-heading { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem; }
.target-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; margin-bottom: 2rem; }
.target-card { padding: 1rem; border: 1px solid #30425e; border-radius: 9px; background: #182333; }
.target-card h3 { margin-bottom: .3rem; }
.target-card p { margin: .35rem 0 1rem; color: #9eabc0; font-size: .85rem; }
.target-card button { width: 100%; }
.target-card.offline { opacity: .58; }
.admin-grid, .admin-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.panel { border: 1px solid #2d3c53; border-radius: 9px; padding: 1rem; background: #151e2c; }
.panel.wide { grid-column: span 2; }
.compact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.compact-form label, .compact-form button, .compact-form .token { grid-column: span 1; }
.compact-form label.check { display: flex; flex-direction: row; align-items: center; gap: .5rem; }
.compact-form label.check input { width: auto; }
.target-form label:first-child { grid-column: span 2; }
.target-form button { grid-column: span 2; }
.token { white-space: pre-wrap; overflow-wrap: anywhere; background: #0b1018; color: #ffc979; padding: .7rem; border-radius: 5px; font-size: .8rem; }
.list-row { display: flex; justify-content: space-between; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid #263244; font-size: .87rem; }
.list-row:last-child { border-bottom: 0; }
.badge { border-radius: 99px; padding: .2rem .5rem; background: #263852; color: #b9d3f5; font-size: .72rem; }
.badge.online { background: #204a36; color: #a7edbd; }
.access-grid { overflow-x: auto; }
.access-grid table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.access-grid th, .access-grid td { border-bottom: 1px solid #2b384c; padding: .55rem; text-align: left; }
.access-grid td:not(:first-child), .access-grid th:not(:first-child) { text-align: center; }
.terminal-modal { position: fixed; inset: 0; background: #0009; display: grid; place-items: center; z-index: 10; padding: 1rem; }
.terminal-window { width: min(1100px, 100%); height: min(720px, 90vh); display: grid; grid-template-rows: auto 1fr auto; border: 1px solid #40516d; border-radius: 8px; overflow: hidden; background: #090c11; box-shadow: 0 20px 80px #000b; }
.terminal-header { display: flex; justify-content: space-between; align-items: center; padding: .55rem .75rem; background: #202b3c; }
.terminal-header button { padding: .35rem .7rem; background: #364761; }
.terminal { min-height: 0; padding: .5rem; }
.terminal-status { padding: .35rem .7rem; color: #a1afc4; background: #111823; font-size: .78rem; }
@media (max-width: 750px) { .topbar { padding: .8rem 1rem; } .content { width: calc(100% - 1rem); } .admin-grid, .admin-lists { grid-template-columns: 1fr; } .panel.wide { grid-column: span 1; } .compact-form { grid-template-columns: 1fr; } .compact-form label, .target-form label:first-child, .target-form button { grid-column: span 1; } }
