:root {
  --bg: #000;
  --panel: #121212;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.62);
  --accent: #c8f02a;
  --accent-deep: #1fa84a;
  --danger: #ff6b6b;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(31, 168, 74, 0.16), transparent 42%),
    radial-gradient(ellipse at bottom right, rgba(200, 240, 42, 0.1), transparent 38%),
    var(--bg);
  color: var(--text);
}

a { color: var(--accent); }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
}

header.top img { height: 42px; width: auto; }

header.top nav { display: flex; gap: 0.8rem; align-items: center; color: var(--muted); }

main { padding: 1.4rem; }

button, input {
  font: inherit;
  color: inherit;
}

button {
  background: var(--accent);
  color: #111;
  border: 0;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-weight: 650;
  cursor: pointer;
}

button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

button.on {
  background: var(--accent-deep);
  color: #fff;
}

input[type="text"], input[type="password"], input:not([type]) {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #0c0c0c;
  color: var(--text);
}

.card {
  width: min(28rem, 100%);
  margin: 8vh auto;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 18, 18, 0.92);
}

h1 { font-weight: 560; letter-spacing: -0.03em; }

.muted { color: var(--muted); }
.err { color: var(--danger); }

.desk {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) 1fr auto;
  gap: 1rem;
  align-items: start;
}
.telos, .bank, .strip {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.telos { padding: 1rem; }
.telos h2, .bank h2 { margin: 0 0 0.8rem; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; }
.bank { padding: 0.8rem; min-height: 22rem; }
.bank .strips { display: flex; gap: 0.7rem; align-items: stretch; overflow-x: auto; min-height: 20rem; }
.strip {
  width: 7.2rem;
  padding: 0.7rem 0.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}
.strip.master { border-color: var(--accent-deep); }
.strip .name { min-height: 2.4rem; }
.fader {
  writing-mode: vertical-lr;
  direction: rtl;
  width: 1.6rem;
  height: 11rem;
  accent-color: var(--accent);
}
.db { font-variant-numeric: tabular-nums; color: var(--accent); }
.meter.vert {
  width: 8px;
  height: 11rem;
  background: #2a2a2a;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.meter { height: 8px; background: #2a2a2a; border-radius: 99px; margin: 0.45rem 0; overflow: hidden; }
.meter > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.meter.vert > div { width: 100%; height: 0; background: linear-gradient(0deg, var(--accent-deep), var(--accent)); }
.strip button { width: 100%; }
label { display: block; font-size: 0.85rem; color: var(--muted); }
.status-line { min-height: 1.4rem; }
@media (max-width: 860px) {
  .desk { grid-template-columns: 1fr; }
}
