@font-face { font-family: 'Schibsted Grotesk'; src: url(/grotesk.woff2) format('woff2'); font-weight: 400 900; font-display: swap; }
/* Same palette as glugg.no: sea navy and teal from the icon, the key's yellow for emphasis. */
:root {
  --bg: #f3f6f8; --fg: #0b1f33; --muted: #4a5d70; --tile: #d9e1e8; --btn: #fff; --line: #d0d9e1;
  --accent: #0e7c6f; --accent-fg: #fff; --danger: #c93636;
  --sea: #0b2a4a; --sea-fg: #e8f0f6; --sea-dim: #8fb0c9; --teal: #3fd6c1; --key: #ffd27a;
  --font: 'Schibsted Grotesk', system-ui, sans-serif;
  --sun: none; --moon: block; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #08141f; --fg: #e4ecf2; --muted: #93a6b8; --tile: #12263a; --btn: #0f2234; --line: #22394f;
  --accent: #3fd6c1; --accent-fg: #062520; --danger: #e05c5c; --sun: block; --moon: none; color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #08141f; --fg: #e4ecf2; --muted: #93a6b8; --tile: #12263a; --btn: #0f2234; --line: #22394f;
  --accent: #3fd6c1; --accent-fg: #062520; --danger: #e05c5c; --sun: block; --moon: none; color-scheme: dark;
}
/* A call is always dark, whatever the system: faces read better on it. */
#call { --bg: #06111b; --fg: #e4ecf2; --muted: #93a6b8; --tile: #10233a; --btn: #0f2234; --line: #22394f; --accent: #3fd6c1; --accent-fg: #062520; --danger: #e05c5c; color-scheme: dark; background: var(--bg); color: var(--fg); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 16px/1.5 var(--font); }
[hidden] { display: none !important; }
a { color: var(--accent); }
code { font: .92em ui-monospace, 'SF Mono', Menlo, monospace; }
button { font: inherit; font-weight: 600; padding: .7em 1.15em; border-radius: 10px; border: 1.5px solid var(--line); background: var(--btn); color: var(--fg); cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
button:hover { border-color: var(--muted); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
button.primary:hover { filter: brightness(1.08); }
button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
button:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.link { padding: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; font-weight: 500; }
input { font: inherit; padding: .7em .85em; border-radius: 10px; border: 1.5px solid var(--line); background: var(--btn); color: var(--fg); min-width: 0; }
input::placeholder { color: var(--muted); opacity: .7; }
.note { color: var(--muted); margin: 0; font-size: .93rem; }

/* The light/dark switch shows what it switches to. */
.theme { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: none; color: inherit; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun { display: var(--sun); } .theme .moon { display: var(--moon); }

/* ---- lobby: the sea panel on the left, the one thing to do on the right ---- */
#lobby { min-height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.side { background: var(--sea); color: var(--sea-fg); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: max(36px, env(safe-area-inset-top)) 48px 36px max(48px, env(safe-area-inset-left)); }
.side .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; }
.pitch .big { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; max-width: 14ch; }
.pitch ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; color: var(--sea-dim); }
.pitch li { display: flex; gap: 12px; align-items: baseline; }
.pitch li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); translate: 0 -1px; }
.fine { margin: 0; font-size: .88rem; color: var(--sea-dim); }
.fine a { color: inherit; }
.panel { display: grid; place-items: center; padding: 48px max(24px, env(safe-area-inset-right)) 48px 24px; }
.stack { width: min(100%, 24rem); display: grid; gap: 20px; }
.stack h1 { margin: 0; font-size: 1.9rem; line-height: 1.1; letter-spacing: -.02em; font-weight: 750; }
.stack h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.01em; }
#join, #signin, #paste { display: grid; gap: 12px; }
#join label, #signin label, #paste > label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
#new { padding-block: .9em; font-size: 1.05rem; }
#paste { padding-top: 20px; border-top: 1px solid var(--line); }
#paste .row { display: flex; gap: 8px; }
#paste .row input { flex: 1; }
#err { color: var(--danger); margin: 0; }
#err:empty { display: none; }
#me { padding-top: 16px; border-top: 1px solid var(--line); }
#mine { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
#mine h2 { font-size: 1.1rem; }
#mine ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
#mine li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
#mine li.over b { color: var(--muted); }
#mine .acts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
#edit-err, #vault-err { color: var(--danger); }
#vault form > div { display: grid; gap: .8rem; }
#vault .code { margin: 0; font: 700 1.5rem/1.3 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .06em; text-align: center; user-select: all; }
#vault-err:empty { display: none; }
#edit-err:empty { display: none; }
@media (max-width: 760px) {
  #lobby { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .side { padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left)); gap: 20px; }
  .pitch .big { font-size: 1.6rem; max-width: none; }
  .pitch ul, .fine { display: none; }
  .panel { place-items: start center; padding: 28px max(20px, env(safe-area-inset-right)) 40px max(20px, env(safe-area-inset-left)); }
}

/* ---- call ---- */
#call { height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.top { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 16px 0; min-height: 44px; }
.top img { width: 28px; height: 28px; }
#status { justify-self: center; margin: 0; padding: 4px 14px; border-radius: 999px; background: #ffffff14; font-size: .92rem; text-align: center; }
#host { justify-self: center; margin-top: 6px; }
/* Grid: --w is set by app.js `layout` so that every tile fits the window. */
#grid { grid-row: 2; min-height: 0; position: relative; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; justify-content: center; align-content: center; overflow: hidden; }
.tile { position: relative; margin: 0; flex: 0 0 auto; width: var(--w, 100%); aspect-ratio: 16 / 9; background: var(--tile); border-radius: 14px; overflow: hidden; cursor: pointer; }
/* Spotlight: one tile fills the stage, the rest sit in a strip along the bottom. */
#grid[data-layout="spotlight"] { flex-wrap: nowrap; align-items: flex-end; align-content: normal; justify-content: safe center; overflow-x: auto; }
#grid[data-layout="spotlight"] .tile { width: auto; height: 110px; }
#grid[data-layout="spotlight"] .tile.big { position: absolute; inset: 8px 8px var(--strip, 8px); width: auto; height: auto; aspect-ratio: auto; }
#grid #self[data-place="corner"] { position: fixed; z-index: 1; right: 16px; bottom: calc(100px + env(safe-area-inset-bottom)); width: min(30vw, 220px); height: auto; aspect-ratio: 16 / 9; box-shadow: 0 6px 20px #000a; }
#grid #self[data-place="hidden"] { display: none; }
.tile video, .tile canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
#self video { transform: scaleX(-1); }
#self.flat video { transform: none; }
.tile figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 8px; background: #06111bb3; color: #fff; font-size: .85rem; font-weight: 500; }
.tile[data-path]::after { content: attr(data-path); position: absolute; right: 10px; top: 10px; padding: 1px 8px; border-radius: 6px; background: #06111bb3; color: var(--teal); font: .72rem/1.6 ui-monospace, 'SF Mono', Menlo, monospace; }
.tile.off canvas, .tile.off video { visibility: hidden; }
.tile.off::before { content: 'Kamera av'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
nav { grid-row: 3; justify-self: center; display: flex; gap: 12px; margin: 4px 16px calc(14px + env(safe-area-inset-bottom)); padding: 10px 12px; border-radius: 999px; background: #0f2234; border: 1px solid #22394f; }
nav button { width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: #ffffff14; color: #fff; }
nav button:hover { background: #ffffff2b; }
nav button[aria-pressed="false"]:not(#screen) { background: #fff; color: #0b1f33; }
nav button.danger { width: 72px; border-radius: 999px; background: var(--danger); }
nav button.danger:hover { background: #c93636; }
nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
nav svg .fill { fill: currentColor; stroke: none; }
#screen[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
nav button[aria-pressed="false"] .on, nav button:not([aria-pressed="false"]) .off { display: none; }
.sprite { position: absolute; width: 0; height: 0; }
.tile .more { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #06111bb3; color: #fff; font-size: 1.1rem; line-height: 1; }
.tile.hidden-by-me canvas { visibility: hidden; }
.tile.hidden-by-me::before { content: 'Skjult for deg'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; }
#peer-menu { margin: 0; inset: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--btn); color: var(--fg); box-shadow: 0 12px 32px #000a; }
#peer-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; font-weight: 500; }
#peer-menu button:hover { background: var(--line); }
#report, #edit, #vault, #ev, #plan { max-width: min(30rem, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--btn); color: var(--fg); }
#report::backdrop, #edit::backdrop, #vault::backdrop, #ev::backdrop, #plan::backdrop { background: #06111bb3; }
#report form, #edit form, #vault form, #ev form, #plan form { display: grid; gap: .8rem; }
#report label, #edit label, #vault label, #plan label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
#report h2, #edit h2, #vault h2, #ev h2, #plan h2 { margin: 0; font-size: 1.25rem; }
#report select, #report textarea, #layouts select, #plan select, #plan textarea { font: inherit; font-weight: 400; padding: .55em; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); }
#report .actions, #edit .actions, #vault .actions, #ev .actions, #plan .actions { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 420px) { nav { gap: 8px; } nav button { width: 48px; height: 48px; } nav button.danger { width: 60px; } }
#layouts { margin: 0 auto; inset: auto 0 calc(100px + env(safe-area-inset-bottom)); padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--btn); color: var(--fg); box-shadow: 0 12px 32px #000a; }
#layouts fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
#layouts fieldset + fieldset { margin-top: 14px; }
#layouts legend { padding: 0; margin-bottom: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#layouts label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
#layouts input { accent-color: var(--accent); }
#layouts select { flex: 1; min-width: 0; max-width: 15rem; margin-left: auto; padding: .35em; }

:lang(en) .tile.off::before { content: 'Camera off'; }
:lang(en) .tile.hidden-by-me::before { content: 'Hidden for you'; }
.prefs { display: flex; align-items: center; gap: 8px; }
.lang { padding: .45em .8em; border-radius: 999px; background: none; color: inherit; font-weight: 600; font-size: .88rem; border-color: color-mix(in srgb, currentColor 30%, transparent); }

/* ---- terms and privacy ---- */
:lang(en) [data-only="nb"], :lang(nb) [data-only="en"] { display: none; }
.doc { max-width: 42rem; margin: 0 auto; padding: 32px max(20px, env(safe-area-inset-right)) 64px max(20px, env(safe-area-inset-left)); }
.doc h1 { font-size: 2.2rem; line-height: 1.1; letter-spacing: -.02em; }
.doc h2 { margin-top: 1.8em; font-size: 1.2rem; }
.doc li { margin: .4em 0; }
.doc > p:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.doc > p:first-child a { margin-right: auto; }
.doc > p:first-child a { font-weight: 800; font-size: 1.2rem; color: var(--fg); text-decoration: none; letter-spacing: -.02em; }

/* ---- scheduled meetings ---- */
/* Yours in the accent, invitations in the key's yellow; dashed until answered, faded when declined, struck through when cancelled. */
.ev, .key { --c: var(--accent); }
.ev.inv, .key.inv { --c: #d9a03a; }
.panel { gap: 32px; align-content: center; }
#cal { width: min(100%, 60rem); display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cal-bar h2 { margin: 0 auto 0 0; font-size: 1.35rem; letter-spacing: -.01em; min-width: 10ch; }
.cal-bar button { padding: .45em .85em; font-size: .92rem; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; border-radius: 0; }
.seg button + button { border-left: 1.5px solid var(--line); }
.seg [aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
.compact .cal-bar h2 { flex-basis: 100%; }
.compact #cal-new { margin-left: auto; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.month .wd { background: var(--bg); padding: 6px 0; text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.day { background: var(--btn); min-height: 104px; min-width: 0; padding: 4px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.day:hover { background: color-mix(in srgb, var(--accent) 6%, var(--btn)); }
.day.out { background: var(--bg); }
.day.out .num { color: var(--muted); }
.day .num { align-self: flex-start; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; font-size: .85rem; }
.day.today .num { background: var(--accent); color: var(--accent-fg); }
.evs { display: grid; gap: 2px; min-width: 0; }
.ev { display: flex; gap: 5px; align-items: baseline; min-width: 0; padding: 1px 6px; border: 1.5px solid var(--c); border-radius: 6px; background: var(--c); color: var(--accent-fg); font-size: .76rem; font-weight: 600; line-height: 1.35; text-align: left; white-space: nowrap; overflow: hidden; }
.ev.inv { background: color-mix(in srgb, var(--c) 30%, var(--btn)); color: var(--fg); }
.ev.pending { border-style: dashed; background: var(--btn); }
.ev.no { opacity: .55; }
.ev.off { opacity: .55; background: none; color: var(--muted); border-color: var(--line); text-decoration: line-through; }
.ev:hover { filter: brightness(1.06); border-color: var(--c); }
.ev time { font-weight: 500; font-variant-numeric: tabular-nums; opacity: .85; }
.ev time { flex: none; }
.ev span, .ev b { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.day .more { padding: 0 6px; border: 0; background: none; color: var(--muted); font-size: .76rem; text-align: left; }
/* A phone: dots in the month, and the picked day listed under it. */
.daylist { display: none; }
.compact .day { min-height: 54px; align-items: center; padding: 4px 2px; }
.compact .day .num { align-self: center; }
.compact .day.picked { box-shadow: inset 0 0 0 2px var(--accent); }
.compact .evs { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; pointer-events: none; }
.compact .day .ev { width: 7px; height: 7px; padding: 0; border-radius: 50%; font-size: 0; }
.compact .day .ev.pending { background: none; }
.compact .day .more { display: none; }
.agenda, .compact .daylist { display: grid; gap: 6px; }
.agenda h3, .daylist h3 { margin: 10px 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ev.row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0 12px; padding: 10px 12px; border: 0; border-left: 4px solid var(--c); border-radius: 10px; background: color-mix(in srgb, var(--c) 10%, var(--btn)); color: var(--fg); font-size: .95rem; white-space: normal; }
.ev.row.pending { border-left-style: dashed; }
.ev.row.off { background: var(--bg); border-left-color: var(--line); }
.ev.row .sub { grid-column: 2; color: var(--muted); font-size: .85rem; font-weight: 500; }
.compact .ev.row { grid-template-columns: minmax(0, 1fr); }
.compact .ev.row .sub { grid-column: 1; }
.week { --h: 44px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--btn); }
.wh, .wb { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); }
.wh { border-bottom: 1px solid var(--line); }
.wh span { padding: 6px 0; text-align: center; font-size: .72rem; line-height: 1.2; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.wh b { display: block; font-size: 1.05rem; color: var(--fg); }
.wh .today b { color: var(--accent); }
.wb { height: min(62vh, 600px); overflow-y: auto; }
.hours, .col { position: relative; height: calc(24 * var(--h)); }
.hours span { position: absolute; right: 6px; top: calc(var(--i) * var(--h) - .6em); font-size: .68rem; color: var(--muted); }
.col { border-left: 1px solid var(--line); cursor: pointer; background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--h) - 1px), var(--line) calc(var(--h) - 1px) var(--h)); }
.col .ev { position: absolute; top: calc(var(--t) * var(--h) / 60); left: calc(var(--l) / var(--n) * 100% + 1px); width: calc(100% / var(--n) - 2px); height: max(18px, calc(var(--m) * var(--h) / 60 - 2px)); flex-direction: column; align-items: stretch; gap: 0; padding: 2px 4px; font-size: .7rem; line-height: 1.2; white-space: normal; }
.col .now { position: absolute; left: 0; right: 0; top: calc(var(--t) * var(--h) / 60); border-top: 2px solid var(--danger); pointer-events: none; }
.compact .col .ev time { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; }
.key::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; border: 1.5px solid var(--c); background: var(--c); vertical-align: -1px; }
.key.inv::before { background: color-mix(in srgb, var(--c) 30%, var(--btn)); }
.key.pending::before { border-style: dashed; background: none; }
.key.no::before { opacity: .55; }
#cal-err, #ev-err, #p-err { color: var(--danger); }
#cal-err:empty, #ev-err:empty, #p-err:empty { display: none; }
#ev p { margin: 0; }
#ev .tag, #invite .tag { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#ev .when, #invite .when { font-weight: 600; }
#ev .desc, #invite .desc { white-space: pre-wrap; }
#ev .who { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .92rem; }
#ev .who li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.st { flex: none; color: var(--muted); font-size: .85rem; }
.st.yes { color: var(--accent); } .st.no { color: var(--danger); }
#ev .acts, #invite .acts { display: flex; flex-wrap: wrap; gap: 8px; }
#ev .acts button, #invite .acts button { padding: .5em .9em; }
#ev [aria-pressed="true"], #invite [aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
h2.off { text-decoration: line-through; color: var(--muted); }
#ev p:empty, #invite p:empty { display: none; }
#plan { max-width: min(34rem, calc(100vw - 32px)); }
#plan textarea { font-family: inherit; }
#plan .two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
#plan label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
#plan .unit { display: flex; align-items: center; gap: 8px; font-weight: 500; }
#plan .unit input { width: 5em; }
#plan summary { cursor: pointer; font-weight: 600; color: var(--muted); }
#plan details[open] summary { margin-bottom: .8rem; }
#plan input[type="checkbox"], #notify input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--btn); cursor: text; }
.chips:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips input { flex: 1 0 12rem; padding: .3em .4em; border: 0; outline: none; }
.chip { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 2px 2px 10px; border-radius: 999px; background: var(--tile); font-size: .88rem; overflow-wrap: anywhere; }
.chip button { padding: 0 8px; border: 0; background: none; font-size: 1.05rem; line-height: 1.3; }
#invite { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--btn); }
#invite h2, #invite p { margin: 0; }
#invite label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
#notify { padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
#notify summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
#notify p { margin: 0; }
#notify fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
#notify legend { padding: 0; margin-bottom: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#notify label { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
#n-soon { width: 5.5em; padding: .35em .5em; }

/* ---- the contact form (contact.html) ---- */
.contact { display: grid; gap: 16px; margin-top: 24px; }
.contact label { display: grid; gap: 6px; font-weight: 600; }
.contact select, .contact textarea { font: inherit; font-weight: 400; padding: .7em .85em; border-radius: 10px; border: 1.5px solid var(--line); background: var(--btn); color: var(--fg); }
.contact button { justify-self: start; }
.contact .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.doc .done { padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); font-weight: 600; }
#error { color: var(--danger); font-weight: 600; }

/* ---- the admin console (admin.html) ---- */
.admin { max-width: 56rem; }
.admin > p:first-child { gap: 14px; }
.admin #who { margin-left: auto; }
a.button { display: inline-block; font-weight: 600; padding: .7em 1.15em; border-radius: 10px; text-decoration: none; }
a.button.primary { background: var(--accent); color: var(--accent-fg); }
.tabs { display: flex; gap: 6px; margin: 8px 0 4px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; border-radius: 10px 10px 0 0; background: none; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); }
.row-between { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.inline { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.requests { list-style: none; padding: 0; display: grid; gap: 12px; }
.requests li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--btn); }
.requests li.done-item { opacity: .6; }
.requests .message { white-space: pre-wrap; margin: 10px 0 12px; }
.requests .actions { display: flex; gap: 8px; }
.requests .actions button { padding: .45em .9em; }
.admin #why { color: var(--danger); }
#signin { display: grid; justify-items: start; gap: 14px; }
#signin h1, #signin p { margin: 0; }
