/* Live Event Board, design spec v1 (Cicciopaolo, 2026-11-19).
   One near-black scene, true greys, one accent. The accent is used ONLY for:
   TV: join block fill, Who is here page line, ring on a new card. Phone: submit button, focus, consent box, perk box.
   Admin: Export CSV, Save settings / Create event, focus. Host colour replaces --accent (common.js setAccent). */

@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #0B0B0C;
  --surface: #141416;
  --surface-2: #1C1C1F;
  --border: #26262A;
  --border-strong: #34343A;
  --text-1: #F4F4F5;
  --text-2: #A1A1A8;
  --text-3: #85858E;
  --builds: #C9C9CE;
  --danger: #F2685E;
  --ok: #4ADE80;

  --accent: #FF6A3D;
  --on-accent: #0B0B0C;
  --accent-text: var(--accent);
  --accent-hover: color-mix(in srgb, var(--accent) 88%, #fff);
  --accent-pressed: color-mix(in srgb, var(--accent) 85%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, var(--surface));
  --accent-line: color-mix(in srgb, var(--accent) 45%, var(--surface));

  --font: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  font-family: var(--font);
  color: var(--text-1);
  background: var(--bg);
  color-scheme: dark;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.45; }
h1, h2, h3, p { margin: 0; }
b, strong { font-weight: 600; }
a { color: inherit; text-underline-offset: 3px; }
.hidden { display: none !important; }
.muted { color: var(--text-2); }
.label { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); }

/* Avatars: rounded square, radius 25% of the size. Photo, or initials on one neutral tile. */
.avatar { flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--builds);
  font-weight: 600; letter-spacing: .01em; box-shadow: inset 0 0 0 1px var(--border-strong); object-fit: cover; overflow: hidden; }
img.avatar { box-shadow: none; background: var(--surface-2); }

/* Buttons: primary = accent fill, secondary = surface-2 with a strong border. Never bold past 600. */
button, .btn {
  font: inherit; font-weight: 600; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  background: var(--accent); color: var(--on-accent);
}
button:hover, .btn:hover { background: var(--accent-hover); }
button:active, .btn:active { background: var(--accent-pressed); }
button.secondary, .btn.secondary, button.danger { background: var(--surface-2); color: var(--text-1); border: 1px solid var(--border-strong); }
button.secondary:hover, .btn.secondary:hover, button.danger:hover { background: #232327; }
button.danger { color: var(--danger); }
button:disabled { opacity: .5; cursor: default; }
:focus-visible { outline: none; }
button:focus-visible, .btn:focus-visible { box-shadow: 0 0 0 1px var(--bg), 0 0 0 3px var(--accent); }

input[type=text], input[type=url], input[type=date], input[type=password], input[type=number], textarea {
  width: 100%; font: inherit; color: var(--text-1); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 12px; margin: 0;
}
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
textarea { resize: vertical; }
input[type=checkbox] { accent-color: var(--accent); }
.error { color: var(--danger); font-size: 15px; line-height: 21px; }

/* ================= Phone (guests), 375 px reference. Spacing: 4, 8, 12, 16, 20, 24, 32. ================= */
.phone { max-width: 520px; margin: 0 auto; font-size: 17px; line-height: 1.45;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
.ev-head { padding: 4px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.ev-head .logo { display: block; height: 32px; max-width: 160px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; margin-bottom: 16px; }
.ev-head .date { font-size: 13px; line-height: 18px; margin-bottom: 8px; }
.ev-head h1 { font-size: 24px; line-height: 29px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 8px; overflow-wrap: anywhere; }
.ev-head .topic { font-size: 15px; line-height: 22px; color: var(--text-2); margin: 0; }
.intro { font-size: 17px; line-height: 25px; margin: 0 0 24px; color: var(--text-1); }

.field { margin-bottom: 20px; }
.field > label, .field > .flabel { display: block; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--text-1); margin-bottom: 8px; }
.hint { font-weight: 400; color: var(--text-3); }
.phone input[type=text], .phone input[type=url], .phone textarea { min-height: 52px; padding: 14px 16px; font-size: 17px; line-height: 24px; }
.phone textarea { min-height: 76px; }

.photo { display: flex; gap: 16px; align-items: center; }
.photo .tile-btn { padding: 0; background: none; border: 0; border-radius: 22px; flex: none; min-height: 0; }
.photo .tile-btn:hover, .photo .tile-btn:active { background: none; }
.photo .avatar { width: 88px; height: 88px; border-radius: 22px; font-size: 28px; font-weight: 400; color: var(--text-3); }
.photo .btns { flex: 1; display: grid; gap: 8px; min-width: 0; }
.photo .btns button { min-height: 48px; padding: 0 16px; border-radius: 12px; font-size: 16px; }
.photo .note { font-size: 15px; line-height: 21px; color: var(--text-2); }
.photo .note:empty { display: none; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 24px; font-size: 15px; line-height: 21px; color: var(--text-2); font-weight: 400; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 0; flex: none; }
.consent b { color: var(--text-1); font-weight: 500; }

.submit-bar { position: sticky; bottom: 0; z-index: 2; background: var(--bg); border-top: 1px solid var(--border);
  margin: 0 calc(-1 * max(20px, env(safe-area-inset-right))) 0 calc(-1 * max(20px, env(safe-area-inset-left)));
  padding: 12px max(20px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.submit-bar .error { margin: 0 0 8px; }
.submit { width: 100%; min-height: 56px; border-radius: 12px; font-size: 17px; padding: 0 16px; }

.phone .card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 24px; }
.phone .card h2 { font-size: 20px; line-height: 25px; font-weight: 600; margin: 0 0 4px; }
.phone .card p, .phone .card.note { font-size: 15px; line-height: 21px; color: var(--text-2); }

.done { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.done .avatar { width: 64px; height: 64px; border-radius: 16px; font-size: 23px; }
.done h2 { font-size: 22px; line-height: 26px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 4px; }
.done p { font-size: 15px; line-height: 21px; margin: 0; color: var(--text-2); }
.perk { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 14px; padding: 16px; margin-bottom: 32px; }
.perk .label { color: var(--accent-text); font-size: 12px; line-height: 16px; margin-bottom: 6px; }
.perk .perk-text { font-size: 17px; line-height: 24px; font-weight: 500; color: var(--text-1); }
.m-title { font-size: 20px; line-height: 25px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 4px; }
.m-sub { font-size: 15px; line-height: 21px; color: var(--text-2); margin: 0 0 16px; }
.m-empty { font-size: 15px; line-height: 21px; color: var(--text-2); }
.match { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.match .who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.match .who > div { min-width: 0; }
.match .avatar { width: 52px; height: 52px; border-radius: 13px; font-size: 18px; }
.match .n { font-size: 17px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.match .c { font-size: 15px; line-height: 20px; color: var(--text-2); overflow-wrap: anywhere; }
.match .talk { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.match .talk .label { font-size: 12px; line-height: 16px; margin-bottom: 4px; }
.match .talk .t { font-size: 17px; line-height: 24px; font-weight: 500; color: var(--text-1); }
.again { display: block; text-align: center; font-size: 15px; line-height: 21px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px;
  padding: 16px 0 calc(40px + env(safe-area-inset-bottom)); }

/* ================= TV and projector (spec v2, 2026-11-19) =================
   Departures-board feel: calm, readable, turns by itself with a soft crossfade.
   --u = 1% of the width on a 16:9 screen, smaller when the screen is shorter than 16:9 (16:10, 4:3, browser bars),
   so nothing is cut off. --px = one spec pixel at 1920x1080 (19.2 px = 1u). 4K is the same layout, sharper.
   Spacing used: 2, 6, 8, 10, 12, 14, 16, 20, 24, 40, 48, 56, 64, 72. Type: 12 to 32. */
.tv { --u: min(1vw, 1.7778vh); --px: calc(var(--u) / 19.2); --hair: max(1px, var(--px));
  height: 100vh; height: 100dvh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); row-gap: calc(var(--px) * 48);
  padding: calc(var(--px) * 56) calc(var(--px) * 72); background: var(--bg); }

.tv-head { display: flex; align-items: flex-end; gap: calc(var(--px) * 32); min-width: 0; }
.tv-head .logo { align-self: center; flex: none; height: calc(var(--px) * 56); max-width: calc(var(--px) * 168); object-fit: contain;
  background: #fff; border-radius: calc(var(--px) * 10); padding: calc(var(--px) * 8); margin-right: calc(var(--px) * -8); }
.tv-head .t { flex: 1; min-width: 0; }
.tv-head h1 { font-size: calc(var(--px) * 32); line-height: calc(var(--px) * 40); font-weight: 600; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-head .meta { margin-top: calc(var(--px) * 6); font-size: calc(var(--px) * 16); line-height: calc(var(--px) * 24); color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-head .meta b { color: var(--text-1); font-weight: 500; }
.tv-head .meta .dot { color: var(--text-3); padding: 0 calc(var(--px) * 8); }
.tv-head .pill { flex: none; font-size: calc(var(--px) * 12); line-height: calc(var(--px) * 16); color: var(--text-2);
  padding: calc(var(--px) * 6) calc(var(--px) * 10); border: var(--hair) solid var(--border-strong); border-radius: 999px; }
.tv-head .count { flex: none; text-align: right; }
.tv-head .count b { display: block; font-size: calc(var(--px) * 32); line-height: calc(var(--px) * 40); font-weight: 600; letter-spacing: -.02em; }
.tv-head .count .label { display: block; margin-top: calc(var(--px) * 6); font-size: calc(var(--px) * 12); line-height: calc(var(--px) * 24); }

/* Main: who is here (1fr) + right column 480, gap 64. Both start with a 16 + 16 label row, so content tops line up. */
.tv-main { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--px) * 480); column-gap: calc(var(--px) * 64); min-height: 0; }
.sec { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; min-width: 0; }
.tv .label { font-size: calc(var(--px) * 12); line-height: calc(var(--px) * 16); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; height: calc(var(--px) * 16); margin-bottom: calc(var(--px) * 16); }
/* Stage: page changes fade out, then fade in (tv.js swap, opacity only, never two screens at once). */
.stage { display: grid; min-height: 0; min-width: 0; }
.stage > * { grid-area: 1 / 1; min-height: 0; min-width: 0; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
/* Pager "1 / 3" on Who is here: text-2 so the page hint reads. */
#pager { color: var(--text-2); }
/* Who is here progress line: 16 label row, then 7 + 2 line + 7 (content top unchanged), full left column, accent over the page time. */
.sec.people { grid-template-rows: auto auto minmax(0, 1fr); }
.sec.people .sec-head { margin-bottom: 0; }
.sec.people .progress { margin: calc(var(--px) * 7) 0; }
.sec.people .progress i { background: var(--accent); }

/* Card elevation (TV cards and pair cards only): top-lit gradient, hairline highlight, soft lift. No glow, no colour. */
.tv .card { --lift: 0 calc(var(--px) * 1) calc(var(--px) * 2) rgba(0, 0, 0, .6), 0 calc(var(--px) * 12) calc(var(--px) * 32) calc(var(--px) * -12) rgba(0, 0, 0, .8);
  background: linear-gradient(180deg, #19191C 0%, #121214 100%); border: var(--hair) solid var(--border); border-radius: calc(var(--px) * 14);
  box-shadow: inset 0 var(--hair) 0 rgba(255, 255, 255, .05), var(--lift); }

/* Who is here: always 3 x 3 = 9 slots, gap 24. */
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: calc(var(--px) * 24); min-height: 0; }
.person { padding: calc(var(--px) * 20); display: flex; flex-direction: column; gap: calc(var(--px) * 16); min-width: 0; min-height: 0; overflow: hidden; }
.tv .person.new { border-color: var(--accent); box-shadow: inset 0 0 0 var(--hair) var(--accent), var(--lift); }
.person.enter { animation: fade-in 600ms ease-in-out; }
.person .top { display: flex; gap: calc(var(--px) * 16); align-items: center; min-width: 0; }
.person .avatar { width: calc(var(--px) * 64); height: calc(var(--px) * 64); border-radius: 25%; font-size: calc(var(--px) * 22); }
.person .who { min-width: 0; flex: 1; }
.person .name { font-size: calc(var(--px) * 18); line-height: calc(var(--px) * 22); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .sm { font-size: calc(var(--px) * 14); line-height: calc(var(--px) * 18); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person dl { margin: 0; display: grid; grid-template-columns: calc(var(--px) * 64) minmax(0, 1fr); column-gap: calc(var(--px) * 12); row-gap: calc(var(--px) * 10); min-width: 0; }
.person dt { font-size: calc(var(--px) * 12); line-height: calc(var(--px) * 19); font-weight: 500; color: var(--text-3); }
.person dd { margin: 0; font-size: calc(var(--px) * 14); line-height: calc(var(--px) * 19); color: var(--builds);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { grid-column: 1 / -1; grid-row: 1 / -1; align-self: center; justify-self: center; text-align: center; }
.empty .big { font-size: calc(var(--px) * 32); line-height: calc(var(--px) * 40); font-weight: 600; color: var(--text-1); margin-bottom: calc(var(--px) * 8); }
.empty .small { font-size: calc(var(--px) * 16); line-height: calc(var(--px) * 24); color: var(--text-2); }

/* Right column: empty label row, Scan to join (top = first card row), 40, You should meet down to the last card row. */
.rail { display: grid; grid-template-rows: auto auto minmax(0, 1fr); min-height: 0; min-width: 0; }
.join { background: var(--accent); color: var(--on-accent); border-radius: calc(var(--px) * 14); padding: calc(var(--px) * 14);
  height: calc(var(--px) * 140); display: flex; gap: calc(var(--px) * 20); align-items: center; min-width: 0; }
.join .qr { width: calc(var(--px) * 112); height: calc(var(--px) * 112); flex: none; background: #fff; border-radius: calc(var(--px) * 8); padding: calc(var(--px) * 7); }
.join .qr svg { width: 100%; height: 100%; display: block; }
.join .qr:empty { visibility: hidden; }
.join > div:last-child { min-width: 0; }
.join h3 { font-size: calc(var(--px) * 24); line-height: calc(var(--px) * 28); font-weight: 600; letter-spacing: -.015em; margin: 0 0 calc(var(--px) * 6); }
.join p { font-size: calc(var(--px) * 14); line-height: calc(var(--px) * 20); font-weight: 500; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sec.pairs { grid-template-rows: auto auto minmax(0, 1fr); margin-top: calc(var(--px) * 40); }
.sec.pairs .sec-head { margin-bottom: 0; }
.progress { height: calc(var(--px) * 2); background: var(--border); border-radius: calc(var(--px) * 2); overflow: hidden;
  margin: calc(var(--px) * 10) 0 calc(var(--px) * 16); }
.progress i { display: block; height: 100%; background: var(--text-3); transform-origin: left center; transform: scaleX(0); }
.progress.run i { animation: grow var(--dur, 30s) linear forwards; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.progress.off { visibility: hidden; height: calc(var(--px) * 2); }

/* You should meet: 2 pairs, pictures 112 and names first, topic small underneath. */
.meet { display: grid; grid-template-rows: repeat(var(--n, 2), minmax(0, 1fr)); gap: calc(var(--px) * 16); min-height: 0; }
.pair { padding: calc(var(--px) * 24); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--px) * 20);
  min-height: 0; min-width: 0; overflow: hidden; }
.pair .people { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--px) * 24) minmax(0, 1fr); column-gap: calc(var(--px) * 8); align-items: start; }
.pair .side { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.pair .avatar { width: calc(var(--px) * 112); height: calc(var(--px) * 112); border-radius: 25%; font-size: calc(var(--px) * 36); margin-bottom: calc(var(--px) * 14); }
.pair .n { max-width: 100%; font-size: calc(var(--px) * 18); line-height: calc(var(--px) * 22); font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair .c { max-width: 100%; margin-top: calc(var(--px) * 2); font-size: calc(var(--px) * 14); line-height: calc(var(--px) * 18); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair .amp { font-size: calc(var(--px) * 18); line-height: calc(var(--px) * 112); color: var(--text-3); text-align: center; }
.pair .topic { max-width: 100%; font-size: calc(var(--px) * 14); line-height: calc(var(--px) * 20); color: var(--text-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pair .topic span { color: var(--text-3); }
.meet .note { grid-row: 1; align-self: start; background: var(--surface); border: var(--hair) solid var(--border); border-radius: calc(var(--px) * 14);
  padding: calc(var(--px) * 16) calc(var(--px) * 20); font-size: calc(var(--px) * 14); line-height: calc(var(--px) * 20); color: var(--text-2); }

/* ================= Admin and create-event page ================= */
.page { max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px; font-size: 15px; line-height: 1.45; }
.page .card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.page h1 { font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -.015em; }
.page h2 { font-size: 20px; line-height: 25px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.page .lead { color: var(--text-2); margin: 8px 0 24px; }
.page .eyebrow { font-size: 13px; line-height: 18px; margin-bottom: 4px; }
.page .meta { color: var(--text-2); margin-top: 4px; }
.page .small { font-size: 13px; line-height: 18px; }
.page a { color: var(--text-1); }

.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.admin-head > div:first-child { min-width: 0; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar button, .toolbar .btn { height: 40px; border-radius: 10px; padding: 0 16px; font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 999px;
  font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin-right: 8px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.status.closed::before { background: var(--danger); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 999px;
  font-family: var(--mono); font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); vertical-align: 1px; }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; }
.stat b { display: block; font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -.015em; }
.stat span { display: block; font-size: 13px; line-height: 18px; color: var(--text-2); margin-top: 4px; }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { height: 36px; padding: 0 14px; border-radius: 7px; font-size: 14px; font-weight: 500; background: transparent; color: var(--text-2); border: 1px solid transparent; }
.tabs button:hover { background: transparent; color: var(--text-1); }
.tabs button.on { background: var(--surface); border-color: var(--border-strong); color: var(--text-1); }
.panel-note { color: var(--text-2); font-size: 14px; line-height: 20px; margin-bottom: 12px; }

table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 20px; }
tbody tr:last-child td { border-bottom: 0; }
th { font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); background: var(--surface); }
td .muted { color: var(--text-2); }
td .avatar { width: 36px; height: 36px; border-radius: 9px; font-size: 13px; }
td button { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 14px; }
td.num { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
td.person-cell { min-width: 210px; }
tr.is-hidden td { opacity: .45; }

.page label { display: block; font-size: 15px; line-height: 20px; font-weight: 500; margin: 20px 0 8px; }
.page label:first-of-type { margin-top: 16px; }
.page input[type=text], .page input[type=date], .page input[type=password], .page input[type=number], .page input[type=url], .page textarea {
  min-height: 44px; padding: 10px 14px; font-size: 15px; line-height: 22px; border-radius: 10px; }
.page textarea { min-height: 88px; }
.page input[type=file] { font: inherit; font-size: 14px; color: var(--text-2); }
.page input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: 14px; height: 36px; padding: 0 12px; margin-right: 12px; border-radius: 8px;
  background: var(--surface-2); color: var(--text-1); border: 1px solid var(--border-strong); cursor: pointer; }
.page .consent { color: var(--text-1); margin: 12px 0 0; font-size: 14px; }
.page .consent input { width: 18px; height: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.color-field { display: flex; align-items: center; gap: 12px; }
.color-field input[type=color] { width: 44px; height: 44px; padding: 3px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); cursor: pointer; }
.color-field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type=color]::-webkit-color-swatch { border: 0; border-radius: 6px; }
.color-field code { font-family: var(--mono); font-size: 14px; color: var(--text-2); text-transform: uppercase; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.form-actions button { height: 44px; padding: 0 20px; border-radius: 10px; font-size: 15px; }
.form-msg { font-size: 14px; color: var(--text-2); }
.page .error { margin-top: 16px; }
.links { display: grid; gap: 12px; margin-top: 16px; }
.links .label { font-size: 12px; margin-bottom: 4px; }
.links code { display: block; font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; word-break: break-all; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } .stats { grid-template-columns: 1fr 1fr; } }
