/* Shared look for the console, lobby and viewer: warm parchment light theme, dark theme for the viewer. */
:root {
  --page: #f2e8d8;
  --page-glow: #f8efe1;
  --bar: #fbf7f0;
  --card: #fcf8f0;
  --card-head-from: #fbf3e2;
  --card-head-to: #f8ead0;
  --line: #ebdcc2;
  --line-strong: #e2c890;
  --field: #f4e4c6;
  --field-line: #e8d3ac;
  --ink: #2f2414;
  --ink-soft: #5a4527;
  --muted: #a8885e;
  --placeholder: #b39672;
  --gold: #b8862b;
  --gold-deep: #96691a;
  --gold-soft: #f9ecd4;
  --live: #2e9d5b;
  --danger: #b54a3e;
  --serif: "EB Garamond", "Noto Serif SC", Georgia, serif;
  --sans: "Source Sans 3", "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: radial-gradient(ellipse at top, var(--page-glow), var(--page) 60%) fixed; min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
svg.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark { width: 22px; height: 22px; color: var(--ink); }
.brand-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-mark { display: block; width: 56px; height: 56px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; font-weight: 500; }
.brand-sub { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); }
.brand-divider { width: 1px; height: 22px; background: var(--line-strong); }

.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--gold-soft); font-size: 13px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.pill.live { color: var(--live); border-color: rgba(46,157,91,.35); background: rgba(46,157,91,.08); }
.pill.live::before { background: var(--live); box-shadow: 0 0 0 3px rgba(46,157,91,.18); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(120,90,40,.05); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; background: linear-gradient(120deg, var(--card-head-from), var(--card-head-to)); border-bottom: 1px solid var(--line); }
.card-icon { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--gold-soft); display: grid; place-items: center; color: var(--gold); }
.card-title { font-family: var(--serif); font-size: 20px; font-weight: 500; margin: 0; }
.card-note { font-family: var(--serif); font-style: italic; font-size: 13px; color: var(--muted); }
.card-body { padding: 20px 22px 22px; }

.field-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin: 0 0 7px; }
.field-label .required { color: var(--gold); margin-left: 3px; }
.field { width: 100%; height: 40px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--field-line); background: var(--field); color: var(--ink); font-size: 15px; outline: none; }
.field::placeholder { color: var(--placeholder); }
.field:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,43,.15); }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237a5a2c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: #fffdf9; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.btn:hover:not(:disabled) { border-color: var(--line-strong); }
.btn-primary { height: 54px; width: 100%; border-radius: 12px; border: none; font-size: 18px; color: #fdf8ee; background: linear-gradient(135deg, #c99635, var(--gold-deep)); box-shadow: 0 8px 22px rgba(184,134,43,.35); }
.btn-primary:disabled { background: #ece0cb; color: #a99a85; box-shadow: none; }
.btn-stop { height: 54px; width: 100%; border-radius: 12px; font-size: 18px; color: var(--danger); background: #fdf1ee; border: 1px solid rgba(181,74,62,.35); }
