/* MUSEO Studio på nettet. Layout: smal mørk sidebjælke, arbejdsflade til højre; stabler på telefon. */
:root {
  --bg: #F1EEE3; --surface: #E7E2D5; --line: #DDD7C7; --card: #F8F6EF;
  --ink: #191815; --muted: #6B655A; --accent: #E57276; --accent-ink: #A83F3A; --on-accent: #191815;
  --bar: #191815; --bar-ink: #F1EEE3;
  --chart: #C9555B; --grid: #E2DCCD;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #191815; --surface: #24221E; --line: #35322C; --card: #1F1D1A;
  --ink: #F1EEE3; --muted: #A49D8F; --accent: #E57276; --accent-ink: #F08A85;
  --bar: #2C2A25; --bar-ink: #F1EEE3; --chart: #D9666C; --grid: #2F2C27;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #191815; --surface: #24221E; --line: #35322C; --card: #1F1D1A;
  --ink: #F1EEE3; --muted: #A49D8F; --accent: #E57276; --accent-ink: #F08A85;
  --bar: #2C2A25; --bar-ink: #F1EEE3; --chart: #D9666C; --grid: #2F2C27;
  color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--ui); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
a { color: inherit; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.boot { min-height: 100vh; display: grid; place-items: center; letter-spacing: .3em; font-weight: 700; color: var(--muted); }

/* Knapper og felter */
.btn { border: 0; border-radius: 99px; height: 40px; padding: 0 18px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-line { background: transparent; border: 1.5px solid var(--ink); }
.btn-soft { background: var(--surface); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-wide { width: 100%; height: 50px; font-size: 16px; }
.link { background: none; border: 0; padding: 0; font-weight: 600; font-size: 13px; color: var(--accent-ink); }
.icon { width: 16px; height: 16px; flex: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select, .input { background: var(--surface); border: 1px solid transparent; border-radius: 12px; padding: 10px 12px; width: 100%; }
.field input:focus, .field textarea:focus, .input:focus { border-color: var(--ink); outline: none; }
.field input.big { font-family: var(--display); font-size: 21px; padding: 8px 12px; }
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field .row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.note { background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.error { color: var(--accent-ink); font-size: 13.5px; font-weight: 550; }
.chip { border: 0; border-radius: 99px; padding: 0 16px; height: 36px; background: var(--surface); font-size: 13.5px; font-weight: 550; }
.chip.on { background: var(--ink); color: var(--bg); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--bar); color: var(--bar-ink); display: flex; flex-direction: column; justify-content: space-between; padding: 40px; gap: 24px; min-width: 0; }
.login-art .mark { width: min(56vh, 100%, 460px); align-self: center; color: var(--bar-ink); margin-block: auto; }
/* Mærket står midt i det mørke felt – ordmærket ligger øverst uden at skubbe det. */
.login-art { position: relative; justify-content: center; }
.login-art .wordmark { position: absolute; top: 40px; left: 40px; }
.login-art .wordmark { width: 170px; color: var(--bar-ink); }
.login-art .wordmark svg { width: 100%; height: auto; display: block; }
.login-art p { margin: 0; max-width: 34ch; opacity: .7; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-form form { width: min(380px, 100%); display: flex; flex-direction: column; gap: 18px; }
.login-form h1 { font-size: 34px; line-height: 1.1; }
.login-form h1 em { font-style: normal; color: var(--accent-ink); }
/* Nederst i venstre hjørne af det mørke felt – spejler ordmærket øverst. */
.back-home { position: absolute; left: 40px; bottom: 36px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  color: var(--bar-ink); opacity: .7; text-decoration: none; }
.back-home:hover { opacity: 1; }
.back-home .icon { width: 16px; height: 16px; }
.request { display: grid; gap: 6px; justify-items: start; background: var(--surface); border-radius: 16px; padding: 16px; margin-top: 6px; }
.request b { font-weight: 650; font-size: 15px; }
.request span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.request .btn { margin-top: 6px; }
.code-input { font: 600 28px/1 var(--mono) !important; letter-spacing: .4em; text-align: center; }

/* Skal */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--bar); color: var(--bar-ink); padding: 26px 18px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { flex: none; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: .02em; }
.brand span { font-size: 10px; letter-spacing: .22em; font-weight: 650; opacity: .6; display: block; margin-top: -2px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { padding: 10px 12px; border-radius: 12px; color: var(--bar-ink); opacity: .7; display: flex; gap: 10px; align-items: center; text-decoration: none; }
.nav a.on { background: rgba(241,238,227,.1); opacity: 1; }
.nav a:hover { opacity: 1; }
.side-foot { margin-top: auto; font-size: 12.5px; display: flex; flex-direction: column; gap: 8px; }
.side-foot .who { opacity: .6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot select { background: rgba(241,238,227,.08); color: var(--bar-ink); border: 0; border-radius: 10px; padding: 8px 10px; }
.side-foot select option { color: #191815; }
.side-foot .org { font-weight: 600; }
.side-foot button { background: none; border: 0; color: var(--bar-ink); opacity: .7; text-align: left; padding: 0; font-size: 12.5px; }
main { min-width: 0; padding: 28px 36px 60px; }

/* Oversigt */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.top h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.05; margin-top: 10px; }
.top h1 em { font-style: normal; color: var(--accent-ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; margin-top: 26px; }
.tour { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.cover { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 10px 24px rgba(25,24,21,.16); }
.cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.status { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 650; padding: 4px 9px; border-radius: 99px; background: rgba(25,24,21,.62); color: #F1EEE3; backdrop-filter: blur(6px); }
.status.draft { background: rgba(241,238,227,.88); color: #191815; }
.status.changed { background: var(--accent); color: var(--on-accent); }
.tour h3 { font-size: 19px; line-height: 1.2; margin-top: 4px; }
.tour .meta { font-size: 13px; color: var(--muted); }
.how { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; border-top: 1px solid var(--line); padding-top: 26px; }
.how div { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--muted); max-width: 36ch; }
.how b { color: var(--ink); font-weight: 600; font-size: 14px; }
.empty { padding: 40px 0; color: var(--muted); max-width: 46ch; }

/* Editor */
.ed-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.back { background: var(--ink); color: var(--bg); border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; text-decoration: none; }
.ed-title { flex: 1; min-width: 200px; }
.ed-title h1 { font-size: 28px; line-height: 1.15; }
.ed-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.saving { font-size: 12.5px; color: var(--muted); min-width: 70px; text-align: right; }
.work { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stops { padding: 12px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; }
.stops .floor { padding: 14px 8px 6px; }
.stop { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 12px; border: 0; background: none; text-align: left; width: 100%; }
.stop:hover { background: var(--surface); }
.stop.on { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }
.thumb { width: 40px; height: 50px; border-radius: 8px; flex: none; object-fit: cover; background: var(--surface); display: grid; place-items: center; font-family: var(--display); color: var(--muted); }
.stop .t { min-width: 0; flex: 1; }
.stop .t b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop .t small { color: var(--muted); font-size: 12px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.insp { padding: 22px; display: flex; flex-direction: column; gap: 20px; }
.lang-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.lang { border: 0; border-radius: 99px; height: 32px; padding: 0 12px; font-size: 13px; font-weight: 600; background: var(--surface); display: inline-flex; gap: 6px; align-items: center; }
.lang.on { background: var(--ink); color: var(--bg); }
.art { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.art img, .art .thumb { width: 112px; height: 140px; border-radius: 12px; object-fit: cover; }
.audio { background: var(--surface); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.audio audio { width: 100%; }

/* Modaler */
.scrim { position: fixed; inset: 0; background: rgba(25,24,21,.45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--bg); border-radius: 24px; padding: 26px; width: min(540px, 100%); max-height: 92vh; overflow: auto; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.modal h2 { font-size: 26px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.qr-row { display: grid; grid-template-columns: 188px 1fr; gap: 20px; align-items: center; }
.qr { background: #fff; padding: 10px; border-radius: 14px; width: 188px; height: 188px; }
.qr img, .qr canvas { width: 168px !important; height: 168px !important; }
.share-code { font: 600 30px/1 var(--mono); letter-spacing: .25em; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; background: var(--surface); border: 0; border-radius: 10px; padding: 9px 11px; font-family: var(--mono); font-size: 12.5px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--bar); color: var(--bar-ink); padding: 11px 18px; border-radius: 99px; font-size: 13.5px; font-weight: 600; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.3); }

/* Statistik */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 24px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.tile .label { font-size: 13px; color: var(--muted); }
.tile .value { font-size: 30px; font-weight: 650; line-height: 1.1; }
.tile .sub { font-size: 12.5px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 18px; }
.card h3 { font-size: 20px; }
.card .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface); }
.hbar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; align-items: center; padding: 5px 0; font-size: 13.5px; }
.hbar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { position: relative; height: 22px; display: flex; align-items: center; gap: 8px; }
.hbar .fill { height: 16px; background: var(--chart); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .val { font-size: 12.5px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart { position: relative; margin-top: 14px; }
.chart svg { display: block; width: 100%; height: 220px; overflow: visible; }
.chart .tip { position: absolute; pointer-events: none; background: var(--bar); color: var(--bar-ink); font-size: 12.5px; padding: 7px 10px; border-radius: 10px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); z-index: 5; }
.chart text { fill: var(--muted); font: 11px var(--ui); font-variant-numeric: tabular-nums; }
details summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-top: 12px; }

/* Team */
.member { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.member .who { flex: 1; min-width: 180px; }
.member .who b { font-weight: 600; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-weight: 700; font-size: 13px; text-transform: uppercase; flex: none; }
.member select { background: var(--surface); border: 0; border-radius: 10px; padding: 7px 10px; }
.invite-form { display: grid; grid-template-columns: 1fr 150px auto; gap: 10px; align-items: end; }
.message { background: var(--surface); border-radius: 14px; padding: 14px; font-size: 14px; white-space: pre-wrap; }

@media (max-width: 1000px) { .work { grid-template-columns: 1fr; } .stops { position: static; max-height: none; } }
@media (max-width: 760px) {
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 72px 16px 32px; }
  .login-art .wordmark { top: 24px; left: 16px; width: 130px; }
  .back-home { left: 16px; bottom: 20px; }
  .login-art .mark { width: min(220px, 60vw); }
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 14px 16px; gap: 14px; flex-wrap: wrap; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .side-foot { margin-top: 0; width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
  main { padding: 20px 16px 50px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .tour h3 { font-size: 16px; }
  .qr-row { grid-template-columns: 1fr; justify-items: center; }
  .invite-form { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Låst tur: kontakt og kortets kode */
.lock-box { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); }
.lock-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.lock-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.lock-row > span { display: flex; flex-direction: column; gap: 4px; }

/* Hvem redigerer? */
.editing { display: flex; flex-direction: column; gap: 3px; margin: 14px 0 0; padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); font-size: 14px; }
.editing span { color: var(--muted); font-size: 12.5px; }
.editing-tag { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--accent-ink); }

/* Editor: værktøjer, stop, tid og valg */
.tool-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tool-row .btn[disabled] { opacity: .4; }
.btn.recording { background: var(--accent); color: var(--on-accent); }
.add-stop { border: 1.5px dashed var(--line); background: none; border-radius: 12px; padding: 9px; margin: 6px 0 4px; font-weight: 600; font-size: 13px; color: var(--muted); }
.add-stop:hover { border-color: var(--ink); color: var(--ink); }
.sect { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.sect legend { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 550; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.field > label.check { font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding-left: 28px; }
.inline input, .inline select { background: var(--surface); border: 1px solid transparent; border-radius: 10px; padding: 7px 9px; }
.choice { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.branches { display: flex; flex-direction: column; gap: 8px; }
.branches > div { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.branches span { color: var(--muted); }
.branches .warn { color: var(--accent-ink); font-weight: 600; }
.danger-row { display: flex; justify-content: flex-end; }
.cover-row { display: flex; gap: 14px; align-items: center; }
.cover-row img, .cover-empty { width: 90px; height: 112px; border-radius: 12px; object-fit: cover; flex: none; }
@media (max-width: 760px) { .choice { grid-template-columns: 1fr; } }

/* Plantegning og etager */
.stops .floor { display: flex; justify-content: space-between; align-items: center; border: 0; background: none; width: 100%; text-align: left; border-radius: 10px; cursor: pointer; }
.stops .floor span { text-transform: none; letter-spacing: 0; font-weight: 550; opacity: .7; }
.stops .floor:hover, .stops .floor.on { background: var(--surface); }
.plan-wrap { display: flex; justify-content: center; }
.plan { position: relative; width: min(100%, calc(62vh * var(--aspect))); aspect-ratio: var(--aspect); border-radius: 14px; overflow: hidden; background: var(--surface); user-select: none; touch-action: none; }
.plan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.plan-blank { position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--ink) 22%, transparent) 1px, transparent 1.4px); background-size: 22px 22px; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); background: var(--ink); color: var(--bg); font-weight: 700; font-size: 13px; cursor: grab; box-shadow: 0 2px 8px rgba(0,0,0,.25); padding: 0; }
.pin:active { cursor: grabbing; }
.pin.on { background: var(--accent); color: var(--on-accent); width: 36px; height: 36px; z-index: 2; }
.pin.dim { opacity: .45; cursor: pointer; }
.plan-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.plan-lines line { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }

/* Udendørs: Apple-kortet */
.map { position: relative; height: min(62vh, 520px); border-radius: 14px; overflow: hidden; background: var(--surface); }
.map > span { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.map.placing, .map.placing * { cursor: crosshair; }
.map-pin { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bg); background: var(--ink); color: var(--bg); font: 700 13px/26px var(--ui); text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); cursor: grab; }
.map-pin.on { width: 36px; height: 36px; line-height: 32px; background: var(--accent); color: var(--on-accent); }
.map-pin.dim { opacity: .5; cursor: pointer; }
.map-wp { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink); cursor: grab; }
.map-search { display: flex; gap: 8px; align-items: center; }
.map-results { display: flex; flex-direction: column; gap: 6px; }
.map-results:empty, .map-bar:empty { display: none; }
.map-place { border: 0; background: var(--surface); border-radius: 12px; padding: 8px 12px; text-align: left; display: flex; flex-direction: column; font-size: 13.5px; }
.map-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border-radius: 12px; padding: 6px 6px 6px 12px; font-size: 14px; }

/* Lydlandskab */
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input { flex: 1; accent-color: var(--accent); }
.range-row b { min-width: 52px; text-align: right; font: 500 13px var(--mono); color: var(--muted); }
.zone-list { display: flex; flex-direction: column; gap: 2px; }
.map-zone { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); color: var(--ink); font: 700 14px/24px var(--ui); text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: grab; }
.map-zone.on { background: var(--accent); border-color: var(--bg); color: var(--on-accent); }
.map-zone.dim { opacity: .5; cursor: pointer; }
.map-pin.small { width: 24px; height: 24px; line-height: 20px; font-size: 11px; cursor: default; }

/* Sprog */
.lang-list { display: flex; flex-direction: column; gap: 4px; }
.lang-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border-radius: 12px; padding: 8px 8px 8px 12px; min-height: 48px; }
.lang-row span { display: flex; flex-direction: column; }
.lang-row small { font-size: 12px; }

/* Prøv turen */
.preview { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; overflow: auto; }
.pv-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 2; }
.pv-top h2 { font-size: 24px; margin-top: 4px; }
.pv-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pv-controls select, .pv-controls input { background: var(--surface); border: 1px solid transparent; border-radius: 10px; padding: 7px 9px; font-size: 14px; }
.pv-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; padding: 20px 24px 40px; align-items: start; }
.pv-stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pv-floors { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-floors:empty { display: none; }
.pv-mapkit { height: min(70vh, 640px); }
.pv-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.pv-now { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.pv-now img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.pv-now h3 { font-size: 22px; }
.pv-play { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.pv-toggle { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: var(--on-accent); font-size: 15px; flex: none; }
.pv-bar { flex: 1; height: 5px; border-radius: 3px; background: var(--surface); overflow: hidden; }
.pv-bar span { display: block; height: 100%; background: var(--ink); transition: width .25s linear; }
.pv-time { font: 12px var(--mono); color: var(--muted); min-width: 0; }
.pv-script summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.pv-script p { font-size: 14px; line-height: 1.55; }
.pv-choices { display: flex; flex-direction: column; gap: 8px; }
.pv-next { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border-radius: 14px; padding: 10px 10px 10px 14px; }
.pv-next > span { display: flex; flex-direction: column; gap: 2px; }
.pv-arrive { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.pv-list { display: flex; flex-direction: column; gap: 2px; }
.pv-stop { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 6px 8px; border-radius: 10px; font-size: 14px; }
button.pv-stop:hover { background: var(--surface); }
.pv-stop > span:last-child { display: flex; flex-direction: column; }
.pv-stop small { font-size: 12px; color: var(--muted); }
.pv-stop .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.pv-stop.on .n { background: var(--accent); color: var(--on-accent); }
.pv-stop.heard .n { background: var(--surface); color: var(--ink); }
.pv-stop.dim, .pv-stop.off { opacity: .5; }
.pv-stop.off .n { background: var(--surface); color: var(--muted); }
.pin.heard, .map-pin.heard { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.pv-me { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #2F7BF6; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47,123,246,.25); transform: translate(-50%, -50%); pointer-events: none; z-index: 3; }
.mk-annotation-container .pv-me { position: static; transform: none; display: block; }
@media (max-width: 900px) { .pv-body { grid-template-columns: 1fr; } .pv-side { position: static; } }

/* Museets eget udtryk i sidebjælken */
.brand.museum .logo { width: 42px; height: 42px; border-radius: 10px; background: #F8F6EF; display: grid; place-items: center; padding: 4px; flex: none; }
.brand.museum .logo img { width: 100%; height: 100%; object-fit: contain; }
.brand.museum b { font-size: 16px; line-height: 1.15; }
.nav a.nav-admin { margin-top: 14px; border-top: 1px solid rgba(241,238,227,.12); border-radius: 0 0 12px 12px; padding-top: 14px; }

/* Kunder */
.customer { display: grid; grid-template-columns: minmax(220px, 1.3fr) minmax(260px, 1.4fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.customer:last-child { border-bottom: 0; }
.customer .who b { font-weight: 650; font-size: 15.5px; }
.customer .nums { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.customer .nums b { color: var(--ink); font-weight: 650; }
.customer .acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.customer.closed { opacity: .7; }
.state { font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 99px; background: var(--surface); margin-left: 6px; vertical-align: 2px; }
.state.active { background: color-mix(in srgb, #3E7C59 18%, transparent); color: #2F6145; }
.state.paused { background: color-mix(in srgb, #B5651D 18%, transparent); color: #8A4A12; }
@media (max-width: 1000px) { .customer { grid-template-columns: 1fr; } .customer .acts { justify-content: flex-start; } }

/* Museum: navn, logo og farve */
.brand-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; margin-top: 24px; align-items: start; }
.brand-page .card { display: flex; flex-direction: column; gap: 18px; }
.logo-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-tile { width: 88px; height: 88px; border-radius: 18px; background: #F8F6EF; border: 1px solid var(--line); display: grid; place-items: center; padding: 8px; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); cursor: pointer; position: relative; }
.swatch.on { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.swatch.custom { background: conic-gradient(#E57276, #E5C372, #72E58A, #72B8E5, #A272E5, #E57276); display: grid; place-items: center; overflow: hidden; }
.swatch.custom input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.phone { background: #F1EEE3; color: #191815; border-radius: 34px; padding: 22px 18px; border: 8px solid #191815; display: flex; flex-direction: column; gap: 10px; position: sticky; top: 20px; }
.phone .muted { color: #6B655A; }
.phone-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; }
.phone-top img { width: 28px; height: 28px; border-radius: 7px; background: #F8F6EF; padding: 2px; object-fit: contain; }
.phone-cover { aspect-ratio: 4 / 3; border-radius: 16px; background: linear-gradient(135deg, var(--b), color-mix(in srgb, var(--b) 35%, #191815)); }
.phone h3 { font-size: 21px; }
.phone-btn { align-self: flex-start; background: var(--b); color: var(--b-on); border-radius: 99px; padding: 10px 18px; font-weight: 650; font-size: 14px; }
.phone-pins { display: flex; gap: 8px; margin-top: 4px; }
.phone-pins span { width: 28px; height: 28px; border-radius: 50%; background: #191815; color: #F1EEE3; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.phone-pins span.on { background: var(--b); color: var(--b-on); }
@media (max-width: 1000px) { .brand-page { grid-template-columns: 1fr; } .phone { position: static; max-width: 320px; } }

/* Museets side i Guide */
.museum-page { display: flex; flex-direction: column; gap: 6px; }
.museum-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; margin-top: 14px; align-items: start; }
.museum-fields { display: flex; flex-direction: column; gap: 16px; }
.museum-fields textarea { min-height: 96px; }
.slug-row { display: flex; align-items: center; gap: 2px; background: var(--surface); border-radius: 12px; padding: 0 12px; }
.slug-row input { border: 0 !important; background: none !important; padding: 10px 0 !important; font-family: var(--mono); }
.slug-row:focus-within { box-shadow: inset 0 0 0 1px var(--ink); }
.museum-share { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--surface); border-radius: 16px; padding: 18px; }
.qr-box { background: #fff; padding: 12px; border-radius: 12px; line-height: 0; }
.qr-box img, .qr-box canvas { width: 168px; height: 168px; }
.link-out { font: 13px var(--mono); color: var(--accent-ink); word-break: break-all; text-align: center; }
.museum-tours { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1000px) { .museum-grid { grid-template-columns: 1fr; } }
