/* Fælles udseende for forside og administration (3D-modellerne har deres egne, tilsvarende tokens) */
:root {
  --bg: #f3f2ef; --panel: #fbfaf8; --ink: #1d1e20; --muted: #6b6c70; --line: #dcd9d2;
  --accent: #a8722f; --accent-ink: #ffffff; --chip: #efece6; --danger: #b3261e; --ok: #2f7d4f;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #151617; --panel: #1b1c1e; --ink: #ecebe8; --muted: #9a9a9e; --line: #2e2f32;
  --accent: #d39a55; --accent-ink: #1b1c1e; --chip: #25262a; --danger: #f2867d; --ok: #7cc49a; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #151617; --panel: #1b1c1e; --ink: #ecebe8; --muted: #9a9a9e; --line: #2e2f32;
  --accent: #d39a55; --accent-ink: #1b1c1e; --chip: #25262a; --danger: #f2867d; --ok: #7cc49a; color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.45; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left)); }
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 22px; }
.top h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.top nav { display: flex; gap: 14px; align-items: baseline; font-size: 13px; color: var(--muted); }
a { color: inherit; }
h2 { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: var(--chip); border: 1px solid var(--line); border-radius: 4px; padding: 6px 12px; font-size: 13px; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
button.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; }
button:disabled { opacity: .55; cursor: default; }
input[type="email"], input[type="text"], select { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 6px 9px; min-width: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.msg { font-size: 13px; margin: 8px 0 0; min-height: 1.4em; }
.msg.err { color: var(--danger); } .msg.ok { color: var(--ok); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; min-width: 0; }
