:root {
  --bg: #0B0B0F;
  --bg-soft: #12121A;
  --surface: #1A1A24;
  --blue: #00E0FF;
  --green: #00FF9C;
  --red: #FF3B3B;
  --text: #FFFFFF;
  --muted: #A0A0B2;
  --line: #2A2A36;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 10% 0%, rgba(0, 255, 156, .14), transparent 28rem), linear-gradient(135deg, var(--bg), var(--bg-soft));
  font-family: ui-sans-serif, "Avenir Next", "Segoe UI", sans-serif;
}
a { color: inherit; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.06); color: var(--text); padding: .9rem 1rem; }
label { display: grid; gap: .45rem; color: var(--muted); }
.card { background: rgba(26,26,36,.84); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.shell { min-height: 100vh; display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: 1rem; padding: 1rem; }
.sidebar { position: sticky; top: 1rem; height: calc(100vh - 2rem); padding: 1rem; display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; }
.brand { display: flex; gap: .8rem; align-items: center; }
.brand-mark { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 16px; color: var(--bg); background: linear-gradient(135deg, var(--green), var(--blue)); font-weight: 1000; }
.eyebrow { margin: 0 0 .35rem; color: var(--blue); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 900; }
.sidebar nav { display: grid; align-content: start; gap: .25rem; }
.sidebar nav a { padding: .78rem .85rem; border-radius: 14px; text-decoration: none; color: var(--muted); font-weight: 850; }
.sidebar nav a.active, .sidebar nav a:hover { color: var(--text); background: rgba(255,255,255,.07); }
.user-pill { display: grid; gap: .25rem; border: 1px solid var(--line); border-radius: 18px; padding: .8rem; color: var(--muted); }
.user-pill strong { color: var(--text); overflow-wrap: anywhere; }
.workspace { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem; }
.topbar h1 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.05em; }
.button { border: 0; border-radius: 999px; padding: .85rem 1.05rem; font-weight: 950; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; }
.primary { background: var(--blue); color: var(--bg); }
.ghost { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.metric { min-height: 9rem; padding: 1rem; display: grid; align-content: space-between; }
.metric span, .muted, .pager { color: var(--muted); }
.metric strong { font-size: clamp(1.5rem, 2.5vw, 3rem); letter-spacing: -.04em; }
.emptyish { opacity: .76; }
.grid.two { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; }
.panel { padding: 1.2rem; }
.section-title { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.section-title h2 { margin: 0; }
.section-title span { color: var(--muted); }
.toolbar { display: grid; grid-template-columns: minmax(12rem, 1fr) auto auto; gap: .6rem; align-items: center; margin-bottom: 1rem; color: var(--muted); }
.breadcrumbs { display: flex; gap: .55rem; color: var(--muted); font-weight: 850; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 44rem; }
th, td { border-bottom: 1px solid var(--line); padding: 1rem; text-align: left; }
th { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.badge { border-radius: 999px; padding: .3rem .6rem; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.badge.approved, .badge.paid, .badge.active, .badge.payable { color: var(--green); background: rgba(0,255,156,.1); }
.badge.pending, .badge.draft, .badge.scheduled { color: var(--blue); background: rgba(0,224,255,.1); }
.badge.rejected, .badge.disabled, .badge.failed { color: var(--red); background: rgba(255,59,59,.1); }
.state { border: 1px solid var(--line); border-radius: 20px; padding: 1rem; display: grid; gap: .35rem; background: rgba(255,255,255,.045); }
.state span { color: var(--muted); }
.state.error { border-color: rgba(255,59,59,.35); }
.state.error strong { color: var(--red); }
.state-loading { display: none; }
.state-loading span { height: 4rem; border-radius: 16px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05)); background-size: 220% 100%; animation: shimmer 1.2s infinite; }
.flash-stack { display: grid; gap: .5rem; }
.flash { border-radius: 16px; padding: .85rem 1rem; margin: 0; font-weight: 850; }
.flash.success { color: var(--green); background: rgba(0,255,156,.1); }
.flash.error { color: var(--red); background: rgba(255,59,59,.1); }
.queue-item { display: grid; gap: .25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; background: rgba(255,255,255,.045); margin-bottom: .7rem; }
.queue-item span { color: var(--muted); }
.station-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.station-card { min-height: 10rem; display: grid; align-content: space-between; gap: .6rem; padding: 1rem; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle at 20% 0%, rgba(0,224,255,.16), transparent 16rem), rgba(255,255,255,.045); text-decoration: none; }
.station-card strong { font-size: 1.4rem; letter-spacing: -.03em; }
.station-card small, .station-card span { color: var(--muted); }
.flow-list { display: grid; gap: .7rem; counter-reset: flow; }
.flow-list div { counter-increment: flow; border: 1px solid var(--line); border-radius: 18px; padding: 1rem; background: rgba(255,255,255,.045); font-weight: 900; }
.flow-list div::before { content: counter(flow); display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-right: .6rem; border-radius: 999px; color: var(--bg); background: var(--green); }
.stream-box, .upload-box { display: grid; gap: .8rem; }
.stream-box code { display: block; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 14px; padding: .85rem; background: rgba(0,0,0,.25); color: var(--green); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; padding: 1rem; }
.login-art, .login-card { padding: clamp(1.5rem, 4vw, 4rem); display: grid; align-content: center; }
.login-art h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .9; margin: 0; text-transform: uppercase; letter-spacing: -.06em; }
.login-art h1 span { color: var(--blue); }
.login-card { gap: 1rem; }
.help { color: var(--muted); font-size: .85rem; }
.modal-anchor { display: none; position: fixed; inset: 0; place-items: center; background: rgba(11,11,15,.75); padding: 1rem; }
.modal-anchor:target { display: grid; }
.modal-card { width: min(34rem, 100%); padding: 1.2rem; display: grid; gap: 1rem; }
.close { justify-self: end; color: var(--muted); }
@keyframes shimmer { to { background-position: -100% 0; } }
@media (max-width: 1100px) { .shell, .login-shell, .grid.two { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .metrics, .toolbar, .station-grid { grid-template-columns: 1fr; } .shell, .login-shell { padding: .6rem; } }
