/* admin.calenzy.app: the look of the team's panel (2026-11-16, the proposal's "dense, quiet, one accent").
   Calenzy's brand kit: navy ink, pink as the single accent, the fonts of the proposal page served from here
   (Inter, Space Grotesk, JetBrains Mono, all under the SIL Open Font License). Light and dark follow the device. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #F8F9FC; --surface: #FFFFFF; --sunk: #EEF1F7;
  --ink: #1D293F; --muted: #6B7691; --line: #E2E7F0;
  --accent: #FE2674; --on-accent: #FFFFFF; --accent-soft: #FFE9F1;
  --good: #02996A; --good-soft: #E2F6EE; --warn: #C9640F; --warn-soft: #FDEFE0; --bad: #D93650; --bad-soft: #FDE8EB;
  --rail: #1D293F; --rail-ink: #C9D2E3; --rail-on: #FFFFFF; --rail-line: #2E3C58;
  --display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --text: "Inter", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827; --surface: #19233A; --sunk: #141D30;
    --ink: #EEF1F7; --muted: #9AA6C0; --line: #2B3853;
    --accent: #FF5C97; --on-accent: #1A0A12; --accent-soft: #3A1A2A;
    --good: #3AD19A; --good-soft: #12362B; --warn: #F7A455; --warn-soft: #3A2A16; --bad: #FF7A8C; --bad-soft: #3B1C24;
    --rail: #0C1322; --rail-ink: #A9B4CC; --rail-on: #FFFFFF; --rail-line: #1E2A44;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 15px; line-height: 1.5; }
h1, h2 { font-family: var(--display); letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h1 { font-size: 24px; line-height: 1.2; font-weight: 600; }
h2 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 0.92em; }
/* no ligatures in codes, keys and addresses: every character as typed */
.mono, .key, .codes, .input.code, .steps { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 8px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }

.brand { font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none; color: var(--ink); }
.brand i { font-style: normal; color: var(--accent); }
.brand.big { font-size: 22px; }

/* the door: one card in the middle */
.door-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 28px 16px 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.door-card { width: 100%; max-width: 420px; padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 16px; }
.door-card.wide { max-width: 480px; }
.steps { font-family: var(--mono); font-size: 12px; color: var(--accent); }

/* the app: a bar, then the content */
.bar { display: flex; align-items: center; gap: 14px; padding: 10px 20px; background: var(--rail); color: var(--rail-ink); }
.bar .brand { color: var(--rail-on); }
.bar .who { font-weight: 600; color: var(--rail-on); font-size: 14px; }
.bar form { margin: 0; }
.content { max-width: 880px; margin: 0 auto; padding: 24px 16px 64px; display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.panel > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; background: var(--sunk); flex-wrap: wrap; }
.panel > header span { color: var(--muted); font-size: 13px; }
.panel .line { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.panel .line:first-of-type { border-top: 0; }
.panel .line .t { font-weight: 600; overflow-wrap: anywhere; }
.panel .line .s { color: var(--muted); font-size: 13px; }
.panel .line form { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel .pad { padding: 14px; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 0 0; } .kv dd { margin-bottom: 8px; } }

/* forms */
label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
.input { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.input.code { font-family: var(--mono); font-size: 20px; letter-spacing: 0.18em; text-align: center; }
.input.inline { width: 150px; padding: 6px 8px; font-size: 14px; letter-spacing: 0.08em; text-align: left; }
.btn { font: inherit; font-size: 14px; font-weight: 600; border: 1px solid var(--line); border-radius: 7px; padding: 9px 14px; background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.btn:hover { border-color: var(--muted); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn.go { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.go:hover { filter: brightness(0.95); }
.btn.full { width: 100%; }
.btn.small { font-size: 13px; padding: 5px 10px; }
.btn.quiet { background: transparent; border-color: var(--rail-line); color: var(--rail-ink); font-size: 13px; padding: 5px 10px; }
.btn.quiet:hover { color: var(--rail-on); border-color: var(--rail-ink); }
.linkish { color: var(--muted); font-size: 13px; }
.linkish:hover { color: var(--ink); }

.notice { font-size: 14px; border-radius: 7px; padding: 9px 12px; }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.good { background: var(--good-soft); color: var(--good); }
.notice.note { background: var(--sunk); color: var(--ink); }

.chip { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 5px; padding: 2px 7px; white-space: nowrap; }
.chip.ok { background: var(--good-soft); color: var(--good); }
.chip.due { background: var(--warn-soft); color: var(--warn); }
.chip.plain { background: var(--sunk); color: var(--muted); }

/* an AI app asking for access */
.gets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gets li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.gets li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; margin-left: 4px; }
.facts { background: var(--sunk); border-radius: 7px; padding: 10px 12px; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.facts b { font-weight: 600; overflow-wrap: anywhere; }

/* setting up the code */
.qr { align-self: center; background: #FFFFFF; padding: 12px; border-radius: 8px; border: 1px solid var(--line); line-height: 0; min-width: 204px; min-height: 204px; }
.qr img, .qr canvas { width: 180px; height: 180px; }
.key { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; background: var(--sunk); border-radius: 7px; padding: 10px 12px; overflow-wrap: anywhere; text-align: center; user-select: all; -webkit-user-select: all; }
.codes { list-style: none; margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; background: var(--sunk); border-radius: 7px; font-family: var(--mono); font-size: 13px; }
.codes li { user-select: all; -webkit-user-select: all; white-space: nowrap; }
@media (max-width: 420px) { .codes { grid-template-columns: 1fr; } }
