/* FRCE Admin (decision 46). System fonts, no external files. */
:root {
  --bg: #050505; --panel: #0d0f0f; --panel-2: #141717; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #f4f4ef; --muted: #9a9f9c; --orange: #ff6a00; --orange-soft: rgba(255,106,0,.14); --lime: #d6ff62; --red: #ff5a5a; --ok: #4cd18a;
  --radius: 10px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; }
[hidden] { display: none !important; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.02em; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.muted { color: var(--muted); } .small { font-size: 12px; } .error { color: var(--red); min-height: 1.2em; margin: 8px 0 0; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: .02em; } .brand span { color: var(--orange); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.btn { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 14px; cursor: pointer; }
.btn:hover { border-color: var(--text); } .btn:disabled { opacity: .5; cursor: default; }
.btn--primary { background: var(--orange); border-color: var(--orange); color: #000; font-weight: 700; }
.btn--danger { border-color: var(--red); color: var(--red); background: transparent; }
.btn--ghost { background: transparent; }
.btn--sm { padding: 5px 10px; font-size: 13px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
input, select { display: block; width: 100%; margin-top: 5px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; }
input:focus, select:focus, .btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login__card { width: 100%; max-width: 360px; } .login__card .brand { margin-bottom: 18px; font-size: 24px; }
.login__card .btn { width: 100%; margin-top: 4px; }
.app { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side nav button { text-align: left; font: inherit; color: var(--muted); background: none; border: 0; border-radius: 8px; padding: 9px 10px; cursor: pointer; }
.side nav button:hover { color: var(--text); background: var(--panel); }
.side nav button.is-on { color: var(--text); background: var(--orange-soft); box-shadow: inset 3px 0 0 var(--orange); }
.side__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.main { padding: 22px 26px 60px; min-width: 0; }
.main__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.badge--dev { color: var(--lime); border-color: var(--lime); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; } .stat span { font-size: 12px; color: var(--muted); }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .row > label { flex: 1; min-width: 140px; margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
td.num { font-variant-numeric: tabular-nums; } .table-wrap { overflow-x: auto; }
.pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); }
.pill--ok { color: var(--ok); border-color: rgba(76,209,138,.4); } .pill--off { color: var(--muted); }
.stack > * + * { margin-top: 14px; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; letter-spacing: .08em; background: var(--bg); border: 1px dashed var(--orange); border-radius: 8px; padding: 12px; text-align: center; user-select: all; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 16px; z-index: 10; }
.modal__card { width: 100%; max-width: 440px; } .modal__actions { margin-top: 16px; display: flex; justify-content: flex-end; gap: 8px; }
.team { border-top: 1px solid var(--line); padding: 8px 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  html, body { overflow-x: hidden; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side { min-width: 0; }
  .side nav { flex-direction: row; overflow-x: auto; width: 100%; max-width: 100%; order: 3; }
  .side nav button { white-space: nowrap; }
  .side__foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .main { padding: 16px; }
}
.row--between { justify-content: space-between; align-items: center; }
.m0 { margin: 0; } .mb14 { margin-bottom: 14px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .mt18 { margin-top: 18px; }
.secret-label { margin: 10px 0 6px; } .nowrap { white-space: nowrap; }
input[type="color"] { padding: 4px; height: 42px; }
