:root {
  --bg: #090b10;
  --surface: #11151d;
  --surface-2: #171c26;
  --line: #272e3c;
  --text: #f4f6fa;
  --muted: #929bad;
  --accent: #8bffb0;
  --danger: #ff7185;
  --warning: #ffc866;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 75% 0%, #15291f 0, transparent 28rem), var(--bg); }
button, input { font: inherit; }
button { border: 0; border-radius: .65rem; padding: .72rem 1rem; color: #06110a; background: var(--accent); font-weight: 750; cursor: pointer; }
button:hover { filter: brightness(.92); }
button:disabled { opacity: .55; cursor: wait; }
label { display: grid; gap: .45rem; color: #cbd1dc; font-size: .86rem; font-weight: 650; }
input { width: 100%; border: 1px solid var(--line); border-radius: .65rem; padding: .75rem .85rem; color: var(--text); background: #0b0e14; outline: none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #8bffb01c; }
select { width: 100%; border: 1px solid var(--line); border-radius: .65rem; padding: .75rem .85rem; color: var(--text); background: #0b0e14; }
.tls-form { display: grid; gap: 1rem; margin-top: 1rem; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .3rem; letter-spacing: -.04em; }
h2 { margin-bottom: 1.2rem; font-size: 1.02rem; }
code { color: var(--accent); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin-bottom: .4rem; color: var(--accent); text-transform: uppercase; letter-spacing: .13em; font-size: .67rem; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.2rem; border-radius: .8rem; color: #07130b; background: var(--accent); font-weight: 900; box-shadow: 0 0 32px #8bffb040; }
.brand-mark.small { width: 2rem; height: 2rem; margin: 0; border-radius: .5rem; font-size: .8rem; }
.login-shell { display: grid; place-items: center; min-height: 100vh; padding: 1rem; }
.login-card { width: min(100%, 410px); padding: 2.3rem; border: 1px solid var(--line); border-radius: 1rem; background: #10141ce8; box-shadow: 0 30px 90px #0009; }
.login-card label, #sso-login { margin-top: 1rem; }
.login-card button[type=submit], #sso-button { width: 100%; margin-top: 1.4rem; }
.session-user { margin: 0 .8rem .4rem; overflow-wrap: anywhere; font-size: .78rem; }
.session-user:empty { display: none; }
.check-row { display: flex; align-items: center; gap: .7rem; }
.check-row input { width: auto; }
textarea { width: 100%; min-height: 8rem; border: 1px solid var(--line); border-radius: .65rem; padding: .75rem .85rem; color: var(--text); background: #0b0e14; outline: none; resize: vertical; font: .82rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #8bffb01c; }
.form-hint { color: var(--muted); font-size: .75rem; font-weight: 550; line-height: 1.45; }
.error { min-height: 1.2rem; margin: .8rem 0 0; color: var(--danger); font-size: .83rem; }
.app { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
aside { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 1.3rem .85rem; border-right: 1px solid var(--line); background: #0c0f15e8; }
.brand { display: flex; align-items: center; gap: .7rem; padding: 0 .65rem 1.6rem; font-weight: 800; }
nav { display: grid; gap: .3rem; }
.nav-item { display: block; width: 100%; padding: .72rem .8rem; color: var(--muted); background: transparent; text-align: left; font-weight: 650; }
.nav-item:hover, .nav-item.active { color: var(--text); background: var(--surface-2); filter: none; }
.nav-item.active { box-shadow: inset 3px 0 var(--accent); }
.logout { margin-top: auto; }
.workspace { min-width: 0; padding: 2rem clamp(1rem, 4vw, 4rem) 4rem; }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2.2rem; }
.pill { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 2rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.pill span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--warning); box-shadow: 0 0 8px currentColor; }
.pill.online span { background: var(--accent); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.metrics article, .panel { border: 1px solid var(--line); border-radius: .9rem; background: linear-gradient(145deg, #141923, #10141b); }
.metrics article { display: grid; padding: 1.25rem; }
.metrics span, .metrics small { color: var(--muted); }
.metrics strong { margin: .35rem 0; font-size: 1.8rem; letter-spacing: -.05em; }
.metrics small { font-size: .72rem; }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { padding: 1.3rem; }
.panel-head, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.panel-head h2, .toolbar p { margin: 0; }
.toolbar { margin-bottom: 1rem; }
.secondary, .icon, .danger { color: var(--text); background: var(--surface-2); border: 1px solid var(--line); }
.danger { color: var(--danger); padding: .45rem .7rem; }
.icon { padding: .25rem .55rem; font-size: 1.3rem; }
dl { display: grid; grid-template-columns: auto 1fr; gap: .8rem 1rem; margin-bottom: 0; font-size: .87rem; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.checklist { display: grid; gap: .85rem; margin: 0; padding: 0; list-style: none; color: #cbd1dc; font-size: .88rem; }
.checklist li { display: grid; grid-template-columns: 1rem 1fr; gap: .55rem; align-items: start; }
.checklist li::before { content: "–"; color: var(--muted); }
.checklist li.ok::before { content: "✓"; color: var(--accent); }
.checklist small { display: block; margin-top: .2rem; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.table-wrap { padding: 0; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); text-align: left; font-size: .86rem; }
th { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
td:last-child { width: 1%; text-align: right; }
.row-actions { display: flex; justify-content: flex-end; gap: .4rem; }
tr:last-child td { border-bottom: 0; }
.empty { padding: 2.5rem; color: var(--muted); text-align: center; }
.feature-card { padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: #0b0e14; }
.feature-card strong { display: block; margin-bottom: .35rem; font-size: 1.2rem; color: var(--accent); }
.ports { display: grid; gap: .6rem; }
.port { display: flex; justify-content: space-between; padding: .75rem; border-bottom: 1px solid var(--line); font-size: .84rem; }
.port:last-child { border: 0; }
.notice { margin-top: 1rem; border-color: #8bffb04d; }
.notice p { margin: .5rem 0 0; color: var(--muted); line-height: 1.55; }
.logs { min-height: 60vh; margin: 0; padding: 1.2rem; overflow: auto; border: 1px solid var(--line); border-radius: .9rem; color: #bed4c4; background: #06080c; font: .75rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
dialog { width: min(92vw, 460px); padding: 0; border: 1px solid var(--line); border-radius: 1rem; color: var(--text); background: var(--surface); box-shadow: 0 30px 100px #000; }
dialog::backdrop { background: #000a; backdrop-filter: blur(4px); }
dialog form { display: grid; gap: 1rem; padding: 1.5rem; }
.toast { position: fixed; z-index: 20; right: 1.2rem; bottom: 1.2rem; max-width: 360px; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--text); background: var(--surface-2); opacity: 0; transform: translateY(1rem); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: none; }
.toast.bad { border-color: var(--danger); }
@media (max-width: 900px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .app { grid-template-columns: 1fr; }
  aside { position: fixed; z-index: 10; top: auto; bottom: 0; width: 100%; height: auto; padding: .4rem; border: 1px solid var(--line); }
  .brand, .logout, .session-user { display: none; }
  nav { display: flex; overflow-x: auto; }
  .nav-item { min-width: max-content; text-align: center; font-size: .72rem; }
  .nav-item.active { box-shadow: inset 0 -3px var(--accent); }
  .workspace { padding: 1.25rem 1rem 6rem; }
  header { align-items: flex-start; }
  .metrics { grid-template-columns: 1fr 1fr; }
  th, td { padding: .85rem .7rem; }
  th:nth-child(2), td:nth-child(2) { display: none; }
}
