/* Wandering Giants HQ. Same family as the public site: Geist-style system sans, warm near-white, a dawn glow at the top. */
:root {
  --bg: #FCFBF8; --surface: #FFFFFF; --fg: #1C1C1C; --muted: #6B6A66; --edge: #E8E6E1;
  --live: #1F7A55; --live-soft: #E3F2EA; --build: #8A5A12; --build-soft: #F8EBD3;
  --warn: #A3352A; --warn-soft: #F8E2DE; --accent: #3A5BD9; --glow-opacity: .45;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211; --surface: #1A1A19; --fg: #F3F1EC; --muted: #A3A19B; --edge: #2B2A28;
    --live: #6FD1A3; --live-soft: #173326; --build: #E9B566; --build-soft: #3A2C15;
    --warn: #F08B7E; --warn-soft: #3D1D19; --accent: #93A9FF; --glow-opacity: .25;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; position: relative; min-height: 100vh; overflow-x: clip; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.04em; line-height: 1.05; font-weight: 700; }
h2 { font-size: 1.15rem; letter-spacing: -.02em; font-weight: 600; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 980px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.wrap.wide { max-width: 1240px; }
main.wrap { display: flex; flex-direction: column; gap: 32px; padding-block: 28px 56px; position: relative; }

.glow { position: absolute; z-index: -1; inset: -120px 0 auto; height: 300px; filter: blur(70px); opacity: var(--glow-opacity); pointer-events: none; overflow: hidden; }
.glow i { position: absolute; border-radius: 50%; width: 40%; height: 80%; top: 10%; }
.glow i:nth-child(1) { left: 5%; background: #FFB98A; } .glow i:nth-child(2) { left: 32%; background: #F7A8C8; } .glow i:nth-child(3) { left: 58%; background: #A9C2FF; }

.bar { border-bottom: 1px solid var(--edge); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.bar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 12px; max-width: 1240px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.lockup svg { width: 26px; height: 26px; } .lockup .tile { fill: var(--fg); } .lockup .step { fill: var(--bg); }
.lockup b { font-weight: 600; color: var(--muted); }
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: .92rem; }
nav a { color: var(--muted); text-decoration: none; } nav a:hover { color: var(--fg); }
nav form { margin: 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; }
.linkish:hover { color: var(--fg); }

.eyebrow { font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.hello { display: flex; flex-direction: column; gap: 8px; }
.head-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
section > h2 { margin-bottom: 12px; }

.flash, .notice, .error { padding: 10px 14px; border-radius: 10px; font-size: .92rem; }
.flash.ok, .flash { background: var(--live-soft); color: var(--fg); }
.flash.bad, .error { background: var(--warn-soft); color: var(--fg); }
.notice { background: var(--build-soft); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--edge); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile .label { font-size: .82rem; color: var(--muted); }
.tile b { font-size: 1.7rem; letter-spacing: -.03em; font-weight: 650; font-variant-numeric: tabular-nums; }
.tile .sub { font-size: .8rem; color: var(--muted); }

.meter { display: block; width: 100%; min-width: 70px; height: 6px; }
.meter .track { fill: var(--edge); }
.meter .fill { fill: #E89AB8; }

.tablebox { overflow-x: auto; border: 1px solid var(--edge); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--edge); vertical-align: middle; white-space: nowrap; }
th { font-size: .75rem; font-weight: 500; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td .sub { display: block; font-size: .75rem; color: var(--muted); }
table.audit td { white-space: normal; }

.co { display: flex; flex-direction: column; text-decoration: none; color: var(--fg); }
.co-name { font-weight: 600; letter-spacing: -.01em; }
.co-trade { font-size: .78rem; color: var(--muted); }
.chip { display: inline-block; font-size: .72rem; padding: 3px 8px; border-radius: 99px; background: var(--edge); color: var(--fg); white-space: nowrap; vertical-align: middle; }
.chip.live { background: var(--live-soft); color: var(--live); }
.chip.build { background: var(--build-soft); color: var(--build); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.ghost { background: transparent; border: 1px dashed var(--muted); color: var(--muted); }
.co .chip { align-self: flex-start; margin-top: 2px; }

button, .button { font: inherit; font-size: .9rem; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--edge); background: var(--surface); color: var(--fg); cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover { border-color: var(--muted); }
button.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
button.open { background: var(--fg); color: var(--bg); border-color: var(--fg); padding: 6px 12px; font-size: .82rem; }
button.danger { color: var(--warn); }
td form, .actions form { margin: 0; }

.auth { max-width: 420px; margin: 6vh auto 0; display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.narrow { max-width: 380px; }
label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
input, select { font: inherit; font-size: .95rem; color: var(--fg); background: var(--surface); border: 1px solid var(--edge); border-radius: 10px; padding: 9px 11px; min-width: 0; }
form.inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
form.inline label { flex: 1 1 200px; }

.others { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.other { background: var(--surface); border: 1px solid var(--edge); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

.person { background: var(--surface); border: 1px solid var(--edge); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.person summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; list-style: none; }
.person summary::-webkit-details-marker { display: none; }
.pname { font-weight: 600; }
.access { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.access .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; width: 100%; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--edge); }
.row-actions form { margin: 0; }
.copy { flex-basis: 100%; font-size: .88rem; }
.copy input { width: 100%; margin-top: 6px; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
.people { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.people li { display: flex; justify-content: space-between; max-width: 420px; }
.secret code { font: 1.15rem ui-monospace, Menlo, monospace; letter-spacing: .06em; background: var(--surface); border: 1px solid var(--edge); border-radius: 10px; padding: 10px 14px; display: inline-block; }
.foot { color: var(--muted); font-size: .8rem; padding-block: 18px 28px; border-top: 1px solid var(--edge); }
@media (max-width: 640px) { nav { gap: 12px; } .tile b { font-size: 1.4rem; } }

.google { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 14px; border-radius: 99px; border: 1px solid var(--edge); background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 600; }
.google:hover { border-color: var(--muted); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .82rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.chip.super { background: var(--fg); color: var(--bg); }
