/* Al's Room account portal. Same rule as the editor (frontend/src/index.css): zero-chroma greys only; colour appears
 * where it IS the information (test-mode ribbon, warnings, errors). No web fonts, no third-party anything. */
:root {
  --bg: #121212;
  --panel: #1b1b1b;
  --panel-2: #222;
  --line: #2e2e2e;
  --text: #e5e5e5;
  --muted: #a3a3a3;
  --faint: #737373;
  --button: #e5e5e5;
  --button-text: #121212;
  --warn: #fcd34d;
  --error: #fca5a5;
  --ok: #d4d4d4;
  --radius: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.5 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: #fff; }
.wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 20px; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.brand img { width: 26px; height: 26px; }
.who { color: var(--muted); font-size: 14px; display: flex; gap: 14px; align-items: center; }
main { flex: 1; padding: 36px 0 60px; }
footer.bottom { border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
footer.bottom .wrap { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 18px; padding-bottom: 24px; }
footer.bottom a { color: var(--muted); }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 15px; margin: 0 0 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card.wide { grid-column: 1 / -1; }
.big { font-size: 44px; font-weight: 650; letter-spacing: -.02em; line-height: 1; margin: 4px 0 8px; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 13px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
button, .button {
  appearance: none; border: 1px solid var(--button); background: var(--button); color: var(--button-text);
  font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 8px; cursor: pointer; text-decoration: none;
  display: inline-block; line-height: 1.3;
}
button.secondary, .button.secondary { background: transparent; color: var(--text); border-color: #525252; }
button.link { background: none; border: none; color: var(--muted); padding: 0; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
button:disabled { opacity: .45; cursor: default; }
input[type=email], input[type=text] {
  width: 100%; background: var(--panel-2); border: 1px solid #3a3a3a; color: var(--text); border-radius: 8px;
  padding: 11px 13px; font: inherit;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #d4d4d4; outline-offset: 2px; }
form.stack { display: grid; gap: 12px; max-width: 420px; }
.narrow { max-width: 480px; }
.notice { border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px; padding: 12px 14px; margin: 0 0 20px; }
.notice.warn { border-color: #78350f; color: var(--warn); }
.notice.error { border-color: #7f1d1d; color: var(--error); }
.ribbon { background: #422006; color: var(--warn); text-align: center; font-size: 13px; padding: 6px 12px; }
.pill { display: inline-block; border: 1px solid #525252; border-radius: 999px; padding: 2px 10px; font-size: 13px; color: var(--muted); }
.pill.on { color: var(--text); border-color: #a3a3a3; }
.pill.bad { color: var(--warn); border-color: #78350f; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--faint); font-weight: 500; font-size: 13px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.code { font: 600 30px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; background: var(--panel-2);
        border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; display: inline-block; margin: 6px 0 16px; }
.hidden { display: none !important; }
.mt { margin-top: 14px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
  .big { font-size: 38px; }
  .who .email { display: none; }
}
