:root { color-scheme: dark; font: 13px "Segoe UI", system-ui, sans-serif; color: #c6d3d9; background: #10181c; --panel: #18242b; --border: #34444d; --mint: #a1f4d8; --muted: #91a5ae; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { display: inline-block; background: #24323a; color: #d6e1e5; border: 1px solid var(--border); border-radius: 4px; padding: 8px 13px; cursor: pointer; text-align: center; }
button:hover, .button:hover { background: #354952; border-color: #65838d; }
button.primary, .button.primary, nav a[aria-current="page"] { background: #22483f; border-color: #4eab92; color: var(--mint); }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 2px solid #65ecd0; outline-offset: 3px; }
input, select, textarea { background: #131f25; border: 1px solid var(--border); color: #d9e5eb; border-radius: 4px; padding: 9px; width: 100%; min-width: 0; }
textarea { resize: vertical; }
label { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; }
header { min-height: 64px; padding: 12px 25px; display: flex; align-items: center; gap: 20px; background: var(--panel); border-bottom: 1px solid var(--border); }
.brand { color: var(--mint); font-size: 17px; font-weight: 700; letter-spacing: 2px; }
.brand span { color: #c6d3d9; font-size: 13px; font-weight: 400; letter-spacing: 0; margin-left: 18px; }
#identity { display: flex; align-items: center; gap: 18px; margin-left: auto; }
#username { color: var(--mint); }
.tag, .badge { border: 1px solid #3a4d55; background: #26373d; color: #b3c6cf; padding: 4px 8px; border-radius: 3px; font-size: 11px; white-space: nowrap; }
.badge.active, .badge.online { color: var(--mint); border-color: #3b6d5e; background: #203c34; }
.badge.suspended, .badge.offline, .badge.deactivated { color: #f0b9ad; border-color: #704d48; background: #382c2b; }
.workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 96px); }
aside { position: relative; background: #141f25; border-right: 1px solid var(--border); padding: 26px 14px 120px; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.6px; font-weight: 600; text-transform: uppercase; }
.nav-label { margin: 0 12px 12px; }
#module-heading { margin-top: 32px; }
nav a { display: block; padding: 11px 12px; border: 1px solid transparent; border-radius: 4px; margin-bottom: 5px; }
nav a:hover { background: #24323a; }
.workspace-switcher { padding: 12px 8px 8px; background: #1a2b30; border: 1px solid #3a5558; border-radius: 6px; }
.workspace-switcher .nav-label { margin-left: 12px; color: #b3c6cf; }
.section-nav a { font-size: 14px; font-weight: 600; }
.section-nav a:last-child { margin-bottom: 0; }
#module-nav a { color: var(--muted); }
#module-nav a:hover { color: #d6e1e5; }
#module-nav a[aria-current="page"] { background: #24323a; border-color: transparent; box-shadow: inset 3px 0 #7fa69b; color: #e5edef; }
.sidebar-note { position: absolute; bottom: 28px; left: 26px; font-size: 11px; line-height: 1.9; }
.signal { display: inline-block; width: 6px; height: 6px; background: #6de0bf; border-radius: 50%; margin-right: 7px; }
main { padding: 34px clamp(20px, 3vw, 50px) 45px; max-width: 1680px; width: 100%; margin: 0 auto; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 25px; font-weight: 600; color: #e5edef; margin-bottom: 9px; }
h2 { font-size: 15px; font-weight: 600; color: #dce7eb; }
h3 { font-size: 14px; color: #e0e9ed; margin-bottom: 9px; }
p { line-height: 1.6; }
.muted { color: var(--muted); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading .eyebrow { margin-bottom: 13px; }
.page-heading p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 28px; }
.stat, .card, .panel { background: var(--panel); border: 1px solid var(--border); border-radius: 5px; }
.stat { padding: 20px; }
.stat .value { display: block; font-size: 29px; color: #e5edef; margin: 13px 0 6px; font-weight: 600; }
.stat small { color: var(--muted); font-size: 11px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.section-heading h2 { margin: 0; }
.section-heading .eyebrow { margin-bottom: 10px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.card { padding: 23px; display: flex; flex-direction: column; min-height: 206px; }
.card p { max-width: 510px; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.module-number { font: 11px Consolas, monospace; color: #75938f; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 15px; }
.card-bottom small { color: var(--muted); }
.panel { padding: 22px; margin-bottom: 20px; }
.panel > :last-child { margin-bottom: 0; }
.empty-state { padding: 55px 20px; text-align: center; background: #131f25; border: 1px dashed #34444d; border-radius: 4px; }
.empty-state h3 { margin-bottom: 9px; }
.empty-state p { margin: 0 auto; max-width: 470px; color: var(--muted); }
.search-form { display: grid; grid-template-columns: minmax(160px, 1fr) 170px auto; gap: 12px; align-items: end; margin-bottom: 20px; }
.search-form label { margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; }
th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .9px; color: var(--muted); padding: 13px 12px; background: #142027; font-weight: 600; }
td { padding: 15px 12px; border-top: 1px solid #2c3d45; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
td small { display: block; color: var(--muted); margin-top: 5px; }
.pagination, .actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 20px; }
.pagination span { margin-right: auto; color: var(--muted); }
.error { color: #ffaca4; }
#page-message:not(:empty) { padding: 12px 16px; border: 1px solid #49675e; background: #1c302a; border-radius: 4px; margin-bottom: 18px; }
#page-message.error { background: #382c2b; border-color: #704d48; }
.login-wrap { min-height: calc(100vh - 96px); display: grid; place-items: center; padding: 35px 20px; background: radial-gradient(ellipse at 50% 45%, #1c302e, #10181c 60%); }
.login-card { width: 100%; max-width: 410px; background: var(--panel); border: 1px solid #3d554f; border-radius: 6px; padding: 32px; box-shadow: 0 24px 70px #0003; }
.login-card .eyebrow { color: var(--mint); margin-bottom: 20px; }
.login-card h1 { font-size: 23px; }
.login-card > .muted { margin-bottom: 26px; }
.login-card button { width: 100%; }
.login-card .login-note { font-size: 11px; text-align: center; margin: 22px 0 0; }
.boot { padding: 80px 25px; text-align: center; color: var(--muted); }
dialog { max-width: 590px; width: calc(100% - 32px); padding: 26px; background: var(--panel); color: #c6d3d9; border: 1px solid #50646d; border-radius: 7px; box-shadow: 0 20px 80px #0008; }
dialog::backdrop { background: #071116c9; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
footer { min-height: 32px; background: #10181c; border-top: 1px solid var(--border); padding: 8px 24px; display: flex; justify-content: space-between; color: #78909a; font-size: 10px; letter-spacing: .5px; }
[hidden] { display: none !important; }
@media (max-width: 1050px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .workspace { grid-template-columns: 190px minmax(0, 1fr); } }
@media (max-width: 720px) { header { flex-wrap: wrap; gap: 12px; padding: 14px 18px; } .brand span { margin-left: 9px; } #identity { gap: 10px; } .workspace { display: block; } aside { padding: 16px; border-right: 0; border-bottom: 1px solid var(--border); } .sidebar-note, .nav-label, #module-heading { display: none; } nav { display: flex; gap: 7px; flex-wrap: wrap; } nav a { padding: 8px 10px; margin: 0; } #module-nav { margin-top: 14px; } main { padding: 24px 16px; } .cards { grid-template-columns: 1fr; } .stats { gap: 10px; } .stat { padding: 16px; } .search-form { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } footer { gap: 20px; } }
