/* Ekkoly
   Et værktøj til receptionen: roligt, læsbart og hurtigt at handle i.
   Gæstens egne ord står i Literata som et brev; alt omkring dem er stille Public Sans. */

@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url(fonts/public-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 500; font-display: swap; src: url(fonts/public-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url(fonts/public-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Literata'; font-weight: 400; font-display: swap; src: url(fonts/literata-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Literata'; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/literata-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Literata'; font-weight: 600; font-display: swap; src: url(fonts/literata-latin-600-normal.woff2) format('woff2'); }

:root {
  --paper: #f3f5f4;
  --surface: #ffffff;
  --ink: #1e2b30;
  --muted: #5c6a6f;
  --line: #d6dddb;
  --line-strong: #b9c4c1;
  --harbour: #2b5e7e;
  --harbour-hover: #224e6a;
  --harbour-soft: #e6eef3;
  --on-accent: #ffffff;
  --praise: #2f6e4e;
  --mixed: #8a6414;
  --critique: #8e2f3c;
  --critique-soft: #f7ebed;
  --chrome: #1e2b30;
  --chrome-fg: #e8eeec;
  --chrome-line: #61757c;
  --shadow: rgba(30, 43, 48, .25);
  --sans: 'Public Sans', system-ui, sans-serif;
  --serif: 'Literata', Georgia, serif;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131a1d; --surface: #1b2428; --ink: #e2e8e6; --muted: #9aa8ac; --line: #2c383c; --line-strong: #45545a;
    --harbour: #82b4d6; --harbour-hover: #9cc5e1; --harbour-soft: #203440; --on-accent: #0e1a20;
    --praise: #7cc49c; --mixed: #d8b25e; --critique: #e8909d; --critique-soft: #3b2429;
    --chrome: #0c1214; --chrome-fg: #e2e8e6; --chrome-line: #45545a; --shadow: rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #131a1d; --surface: #1b2428; --ink: #e2e8e6; --muted: #9aa8ac; --line: #2c383c; --line-strong: #45545a;
  --harbour: #82b4d6; --harbour-hover: #9cc5e1; --harbour-soft: #203440; --on-accent: #0e1a20;
  --praise: #7cc49c; --mixed: #d8b25e; --critique: #e8909d; --critique-soft: #3b2429;
  --chrome: #0c1214; --chrome-fg: #e2e8e6; --chrome-line: #45545a; --shadow: rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--harbour); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--harbour); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 14px; }
.boot, .loading { color: var(--muted); padding: 32px; }
[hidden] { display: none !important; }

/* ---------- knapper og felter ---------- */
button { cursor: pointer; }
.primary, .secondary, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius); font-weight: 500; text-decoration: none;
  border: 1px solid transparent;
}
.primary, .button { background: var(--harbour); color: var(--on-accent); }
.primary:hover, .button:hover { background: var(--harbour-hover); }
.secondary { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.secondary:hover { border-color: var(--ink); }
.link { background: none; border: 0; padding: 0; color: var(--harbour); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.link.quiet { color: var(--muted); }
button[disabled] { opacity: .6; cursor: progress; }
button[data-busy]::after { content: ''; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

input:not([type=checkbox]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--harbour); outline: 2px solid var(--harbour-soft); }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-weight: 500; }
.field small { color: var(--muted); font-size: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--harbour); }
.check small { display: block; color: var(--muted); font-size: 14px; }
.stack { display: grid; gap: 20px; }
.stack-tight { display: grid; gap: 10px; }
.inline-form { display: flex; gap: 8px; margin-top: 12px; }
.inline-form input { flex: 1; }
.inline-form select { width: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- ramme ---------- */
.demo-bar { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: center; padding: 8px 16px; background: var(--chrome); color: var(--chrome-fg); font-size: 14px; }
.demo-bar select { width: auto; min-height: 32px; padding: 2px 8px; margin-left: 6px; background: transparent; color: inherit; border-color: var(--chrome-line); }
.top { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 14px; padding-left: max(16px, env(safe-area-inset-left, 0px), calc((100vw - 1280px) / 2)); padding-right: max(16px, env(safe-area-inset-right, 0px), calc((100vw - 1280px) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.mark { font: 600 18px/1.2 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.org { color: var(--muted); padding-left: 16px; border-left: 1px solid var(--line); }
.top nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.top nav a { padding: 8px 14px; border-radius: var(--radius); color: var(--ink); text-decoration: none; white-space: nowrap; }
.top nav a:hover { background: var(--paper); }
.top nav a[aria-current=page] { background: var(--ink); color: var(--surface); }
.trial { max-width: 1280px; margin: 14px auto 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); color: var(--muted); font-size: 14px; }
.trial-over { color: var(--critique); }
main { max-width: 1280px; margin: 0 auto; padding-block: 24px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.page-title { font: 600 30px/1.2 var(--serif); letter-spacing: -.015em; margin-bottom: 16px; }
.summary { margin: -6px 0 20px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.panel h2 { font-size: 19px; margin-bottom: 10px; }
.panel h3 { font-size: 16px; margin: 22px 0 8px; }
.panel > p + p { margin-top: 8px; }

/* ---------- indgang (login, opstart) ---------- */
.entry { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.entry-card { width: min(100%, 460px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; }
.entry-card.wide { width: min(100%, 600px); }
.entry-card .mark { display: block; margin-bottom: 28px; }
.entry-card .mark a { color: inherit; text-decoration: none; }
.entry-card h1 { font: 600 30px/1.2 var(--serif); letter-spacing: -.015em; }
.lead { color: var(--muted); margin: 10px 0 24px; }
.aside { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.sent { padding: 14px 16px; background: var(--harbour-soft); border-radius: var(--radius); }
.place-row { display: grid; grid-template-columns: 1fr 190px; gap: 8px; }

/* ---------- indbakke ---------- */
.inbox { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 28px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.group { margin-bottom: 26px; }
.group h2 { font-size: 15px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.group summary { cursor: pointer; list-style: none; }
.group summary::-webkit-details-marker { display: none; }
.group summary h2::after { content: 'Vis'; font-weight: 400; color: var(--harbour); font-size: 14px; text-decoration: underline; }
.group[open] summary h2::after { content: 'Skjul'; }
.count { font-weight: 400; color: var(--muted); }
.group .hint { margin-bottom: 8px; }
.items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.item { display: grid; gap: 2px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.item:hover { background: var(--surface); }
.item.is-selected { background: var(--surface); border-left-color: var(--harbour); }
.item-who { display: flex; justify-content: space-between; gap: 8px; }
.item-where { font-size: 13px; color: var(--muted); }
.item-text { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { color: var(--muted); font-size: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.empty-state { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 24px; }
.empty-state h2 { font: 600 20px var(--serif); margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 16px; }

.score { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.score-good { color: var(--praise); }
.score-mixed { color: var(--mixed); }
.score-poor { color: var(--critique); }

.detail-pane { position: sticky; top: 16px; }
.detail-empty { padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.back { display: none; margin-bottom: 12px; }

/* Gæstens brev: det eneste sted, der har plads til at være smukt */
.letter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px 26px; }
.letter-meta { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.letter-title { font: 600 23px/1.3 var(--serif); margin-bottom: 10px; }
.letter-body { margin: 0; font: 400 19px/1.7 var(--serif); max-width: 62ch; }
.letter-body p + p { margin-top: 12px; }
.letter-sign { display: flex; align-items: baseline; gap: 14px; margin-top: 20px; font: italic 400 17px var(--serif); }
.letter-sign .score { font-style: normal; font-family: var(--sans); font-size: 16px; }
.note-line { margin-top: 16px; font-size: 14px; color: var(--mixed); }

/* Svaret står under brevet, rykket ind som et svar */
.reply { margin: 16px 0 0 28px; padding: 18px 0 4px 22px; border-left: 2px solid var(--harbour); }
.reply h2 { font-size: 15px; margin-bottom: 8px; }
.reply .hint { margin-bottom: 10px; }
.reply textarea { font: 400 16px/1.65 var(--sans); }
.reply textarea[readonly] { background: var(--harbour-soft); border-color: transparent; }
.reply.posted .reply-text { font-size: 16px; }
.reply.posted .reply-text p + p { margin-top: 8px; }
.reply.posted .hint { margin-top: 10px; }
.reply.hold { border-left-color: var(--critique); }
.reply.hold h2 { color: var(--critique); }
.reply.hold p { margin-bottom: 12px; }
.quiet-box { margin: 18px 0 0 28px; padding-left: 24px; }
.quiet-box summary { cursor: pointer; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.quiet-box .hint { margin-top: 8px; }
.notes { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.notes h2 { font-size: 15px; margin-bottom: 8px; }
.notes ul { list-style: none; margin: 0 0 6px; padding: 0; }
.notes li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- overblik ---------- */
.scores { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.scores th, .scores td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.scores thead th { font-size: 13px; font-weight: 500; color: var(--muted); }
.scores tbody th { font-weight: 500; }
.scores .up { color: var(--praise); }
.scores .down { color: var(--critique); }
.spark { display: block; overflow: visible; }
.spark-line { fill: none; stroke: var(--harbour); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-end { fill: var(--harbour); stroke: var(--surface); stroke-width: 2; }
.spark-hit { fill: transparent; }
.spark-hit:hover { fill: var(--harbour-soft); }

/* ---------- indstillinger ---------- */
.settings { max-width: 820px; }
.address { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.address code { font: 500 17px/1.3 ui-monospace, 'SF Mono', Menlo, monospace; padding: 10px 14px; background: var(--harbour-soft); border-radius: var(--radius); word-break: break-all; }
.guide { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; font-size: 15px; }
.guide dt { font-weight: 500; }
.guide dd { margin: 0; color: var(--muted); }
.log, .members, .places-list, .tone { list-style: none; margin: 0; padding: 0; }
.log li, .members li, .places-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.places-list li { justify-content: flex-start; }
.members select { width: auto; min-height: 36px; }
.tone li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.tone p { white-space: pre-line; font-size: 15px; margin-bottom: 4px; }
.tone .muted { font-size: 13px; margin-right: 12px; }
.map-row { display: grid; grid-template-columns: 1fr 240px; gap: 12px; align-items: center; }
.map-row small { display: block; color: var(--muted); }

/* ---------- besked nederst ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(92vw, 520px); padding: 12px 18px; border-radius: var(--radius); background: var(--ink); color: var(--surface); box-shadow: 0 6px 24px var(--shadow); z-index: 10; }
.toast-error { background: var(--critique); color: var(--surface); }

/* ---------- mobil ---------- */
@media (max-width: 900px) {
  .inbox { grid-template-columns: 1fr; }
  .inbox.has-selection .list-pane { display: none; }
  .inbox:not(.has-selection) .detail-pane { display: none; }
  .detail-pane { position: static; }
  .back { display: inline-block; }
  .letter { padding: 22px 20px; }
  .letter-body { font-size: 18px; }
  .reply, .quiet-box { margin-left: 8px; padding-left: 16px; }
  .top nav { margin-left: 0; width: 100%; }
  .org { border: 0; padding: 0; }
  .guide { grid-template-columns: 1fr; gap: 4px; }
  .guide dd { margin-bottom: 10px; }
  .map-row, .place-row { grid-template-columns: 1fr; }
  .inline-form { flex-wrap: wrap; }
  .scores:not(.keep-cols) th:nth-child(3), .scores:not(.keep-cols) td:nth-child(3) { display: none; }
  .panel { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
.stack > button, .stack-tight > button { justify-self: start; }
.entry-card .stack > button { justify-self: stretch; }
.scores { table-layout: fixed; }
.scores th:nth-child(1) { width: 24%; } .scores th:nth-child(2) { width: 20%; } .scores th:nth-child(3) { width: 16%; } .scores th:nth-child(4) { width: 18%; }
.warn { color: var(--critique); font-weight: 500; }
#plan .plan-btn, #plan #portal { margin-top: 14px; }
.competitor-block + .competitor-block { margin-top: 28px; }
.competitor-block h3 { margin: 20px 0 8px; font-size: 16px; }
.scores tr.own th, .scores tr.own td { background: var(--harbour-soft); }
.scores th small { display: block; font-weight: 400; }
.search-results { list-style: none; padding: 0; margin: 10px 0 0; }
.search-results li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.search-results li small { display: block; }
.scores td:last-child { overflow: hidden; } .spark { max-width: 100%; height: auto; }
@media (max-width: 640px) {
  .scores { table-layout: auto; font-size: 15px; }
  .scores th, .scores td { padding-right: 8px; }
  .scores th:nth-child(n), .scores td:nth-child(n) { width: auto; }
  .scores thead th { white-space: normal; }
  .scores td:nth-child(2) { white-space: nowrap; }
  .scores .trend-col { display: none; }
}
.topics { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.topic { font-size: 13px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); }
.topic-pos { color: var(--praise); }
.topic-neg { color: var(--critique); background: var(--critique-soft); border-color: transparent; }
.removal { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-left: 3px solid var(--harbour); border-radius: var(--radius); background: var(--surface); }
.removal h2 { font-size: 17px; margin-bottom: 6px; }
.removal-rules { margin: 8px 0 12px; padding-left: 20px; }
.removal textarea { width: 100%; font-size: 14px; }
.removal .actions { margin-top: 10px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.removal-none { margin-top: 12px; font-size: 14px; color: var(--muted); }
.topic-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 10px; }
@media (max-width: 640px) { .topic-cols { grid-template-columns: 1fr; gap: 16px; } }
.topic-cols h3 { font-size: 15px; margin: 0 0 8px; }
.topic-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.topic-bars li { display: grid; grid-template-columns: 12em 1fr 2em; align-items: center; gap: 10px; font-size: 14px; }
.topic-bars .bar { display: block; height: 10px; border-radius: 5px; width: var(--w); min-width: 4px; }
.bar-pos { background: var(--praise); } .bar-neg { background: var(--critique); }
.topic-n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.getting-started { margin: 4px 0 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.getting-started h2 { font-size: 16px; margin: 0 0 8px; }
.getting-started ol { margin: 0 0 8px; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.getting-started li.is-done { color: var(--muted); text-decoration: line-through; }

/* Sæt en anmeldelse ind */
.new-review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.new-review h2 { font: 600 22px/1.3 var(--serif); margin-bottom: 4px; }
.new-review .hint { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.button-link { align-self: center; color: var(--muted); }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.list-head .page-title { margin-bottom: 16px; }
.add-review { font-weight: 500; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Steder: ret og arkivér */
.places-list li { display: grid; gap: 6px; }
.place-edit summary { cursor: pointer; color: var(--harbour); font-size: 15px; }
.place-edit form { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }

/* Ekkoly-administration */
.admin-note { margin-bottom: 20px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 28px; }
.admin-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.admin-stats dt { color: var(--muted); font-size: 14px; }
.admin-stats dd { font: 600 28px/1.2 var(--serif); margin: 4px 0 0; }
.admin-stats small { display: block; font: 400 14px var(--sans); color: var(--muted); }
.admin-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.admin-org { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.admin-head h2 { font: 600 20px/1.3 var(--serif); margin: 0; }
.admin-status { font-size: 13px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.admin-active, .admin-ending { color: var(--praise); border-color: currentColor; }
.admin-expired, .admin-past_due, .admin-canceled { color: var(--critique); border-color: currentColor; }
.admin-pilotmark { color: var(--harbour); border-color: currentColor; }
.admin-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; }
.admin-facts dt { color: var(--muted); font-size: 13px; }
.admin-facts dd { margin: 0; font-weight: 500; }

.place-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }

/* Indsigt */
.insight-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filter-row select { width: auto; min-width: 200px; }
.ask-panel textarea { font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
.chip:hover { background: var(--harbour-soft); }
.ask-answer { margin-top: 18px; border-left: 3px solid var(--harbour); padding: 4px 0 4px 16px; }
.ask-answer p { margin: 0 0 10px; }
.ask-answer h3 { font-size: 15px; margin: 14px 0 8px; }
.ask-examples { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.ask-examples li { display: grid; gap: 2px; }
.ask-examples q { font-style: italic; }
.table-scroll { overflow-x: auto; }
.compare tfoot th, .compare tfoot td { border-top: 2px solid var(--line-strong); }
.topic-pick { max-width: 320px; margin-bottom: 12px; }
.topic-chart { margin: 0; }
.topic-chart svg { width: 100%; height: auto; max-height: 240px; display: block; }
.topic-chart .bar-up { fill: var(--praise); }
.topic-chart .bar-down { fill: var(--critique); }
.topic-chart .baseline { stroke: var(--line-strong); stroke-width: 1; }
.topic-chart .axis { fill: var(--muted); font-size: 12px; font-family: var(--sans); }
.topic-chart .hit { fill: transparent; }
.topic-chart .bar-group:hover .hit { fill: var(--harbour-soft); }
.legend { display: flex; gap: 18px; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.key-up { background: var(--praise); }
.key-down { background: var(--critique); }
.scores.small { font-size: 14px; max-width: 480px; }
.topic-chart details, .month-scores { margin-top: 10px; }
.topic-chart summary, .month-scores summary { cursor: pointer; color: var(--harbour); font-size: 15px; }

/* Månedsrapport */
.report { max-width: 860px; }
.report-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 18px; }
.report-tools .month-nav { display: flex; gap: 16px; margin-left: auto; }
.report-head .eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--muted); margin: 0; }
.report-head h1 { font: 600 32px/1.2 var(--serif); margin: 4px 0; }
.report section { margin-top: 28px; }
.report h2 { font: 600 21px/1.3 var(--serif); margin-bottom: 10px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 22px 0 0; }
.kpis div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpis dt { color: var(--muted); font-size: 14px; }
.kpis dd { font: 600 30px/1.2 var(--serif); margin: 4px 0 0; }
.delta { display: block; font: 400 13px var(--sans); color: var(--muted); margin-top: 4px; }
.delta.up { color: var(--praise); }
.delta.down { color: var(--critique); }
.topic-rank { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.topic-rank li span:first-child { margin-right: 6px; }
.report-quotes blockquote { margin: 0 0 12px; padding: 10px 14px; background: var(--surface); border-left: 3px solid var(--praise); border-radius: 0 var(--radius) var(--radius) 0; }
.report-quotes blockquote.critical { border-left-color: var(--critique); }
.report-quotes blockquote p { margin: 0 0 6px; }
.report-quotes footer { font-size: 13px; color: var(--muted); }
.report-foot { margin-top: 28px; }
@media print {
  .top, .demo-bar, .trial, .no-print, #toast { display: none !important; }
  body, main { background: #fff !important; color: #000; }
  .report { max-width: none; }
  .kpis div, .report-quotes blockquote { break-inside: avoid; }
  .report section { break-inside: avoid-page; }
  a { color: inherit; text-decoration: none; }
}
.scores.keep-cols { table-layout: auto; }
.scores.keep-cols th:nth-child(n) { width: auto; }

/* Logo: det andet k er et ekko af det første */
.logo { font: 600 22px/1 var(--sans); letter-spacing: -0.035em; color: var(--ink); display: inline-flex; }
.logo .echo { color: var(--harbour); opacity: .7; }

.logo-mark { width: 30px; height: 30px; flex: none; margin-right: 10px; --logo-bg: #1d5a73; --logo-fg: #fff; --logo-echo: #86b9d3; }
.brand, .mark, .mark a { display: inline-flex; align-items: center; text-decoration: none; }

/* =====================================================================
   Plakatstil (samme som websitet): papir, dybt hav, havskum og koral.
   Overskrifter, knapper og menu i Bricolage Grotesque med versaler,
   tykke blæk-kanter og hårde skygger. Gæstens ord står stadig i Literata.
   ===================================================================== */
@font-face { font-family: 'Bricolage'; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url(fonts/bricolage-grotesque-latin-standard-normal.woff2) format('woff2'); }
:root {
  --paper: #f5eddd; --surface: #fffaf0; --ink: #12304a; --muted: #3e5669;
  --line: #d9cfbc; --line-strong: #12304a;
  --harbour: #12304a; --harbour-hover: #0a2236; --harbour-soft: #dcefec; --on-accent: #f5eddd;
  --foam: #acd9d5; --coral: #ec6a43; --coral-ink: #12304a;
  --praise: #2c6a4b; --mixed: #85560c; --critique: #9a2f2a; --critique-soft: #f9e0d8;
  --chrome: #12304a; --chrome-fg: #f5eddd; --chrome-line: #5f7a8c; --shadow: rgba(18, 48, 74, .3);
  --display: 'Bricolage', 'Arial Narrow', Impact, sans-serif;
  --edge: 3px; --hard: 5px 5px 0 var(--ink);
  --radius: 0px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f2233; --surface: #16304a; --ink: #f5eddd; --muted: #b9c8cf; --line: #2b4a63; --line-strong: #f5eddd;
    --harbour: #acd9d5; --harbour-hover: #c8e8e5; --harbour-soft: #1d4552; --on-accent: #0f2233;
    --foam: #1d4552; --coral: #f07a55; --coral-ink: #0f2233;
    --praise: #8fd0aa; --mixed: #ecc070; --critique: #f2a08f; --critique-soft: #3d2420;
    --chrome: #081624; --chrome-fg: #f5eddd; --chrome-line: #3e5669; --hard: 5px 5px 0 #000;
  }
}
:root[data-theme="dark"] {
  --paper: #0f2233; --surface: #16304a; --ink: #f5eddd; --muted: #b9c8cf; --line: #2b4a63; --line-strong: #f5eddd;
  --harbour: #acd9d5; --harbour-hover: #c8e8e5; --harbour-soft: #1d4552; --on-accent: #0f2233;
  --foam: #1d4552; --coral: #f07a55; --coral-ink: #0f2233;
  --praise: #8fd0aa; --mixed: #ecc070; --critique: #f2a08f; --critique-soft: #3d2420;
  --chrome: #081624; --chrome-fg: #f5eddd; --chrome-line: #3e5669; --hard: 5px 5px 0 #000;
}
a { color: var(--ink); text-decoration-thickness: 2px; text-decoration-color: var(--coral); }
:focus-visible { outline-color: var(--coral); }

/* Plakatskriften til overskrifter */
.page-title, .entry-card h1, .panel h2, .empty-state h2, .new-review h2, .admin-head h2, .report-head h1, .report h2,
.detail-empty strong, .group h2, .reply h2, .notes h2, .removal h2, .getting-started h2, .competitor-block h3, .topic-cols h3 {
  font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: 0; line-height: .95;
}
.page-title { font-size: clamp(40px, 5vw, 64px); margin-bottom: 18px; }
.entry-card h1, .report-head h1 { font-size: clamp(38px, 5vw, 52px); }
.panel h2, .new-review h2, .admin-head h2, .report h2 { font-size: 30px; margin-bottom: 12px; }
.empty-state h2 { font-size: 30px; }
.group h2, .reply h2, .notes h2, .removal h2, .getting-started h2, .competitor-block h3, .topic-cols h3 { font-size: 21px; }
.kpis dd, .admin-stats dd { font: 800 46px/1 var(--display); font-stretch: 75%; color: var(--coral); }
.mini-kpis strong { color: var(--coral); }

/* Knapper */
.primary, .secondary, .button {
  border-radius: 0; border: var(--edge) solid var(--ink); min-height: 46px; padding: 0 20px;
  font: 800 18px/1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .02em;
  transition: transform .12s, box-shadow .12s;
}
.primary, .button { background: var(--coral); color: var(--coral-ink); }
.primary:hover, .button:hover { background: var(--coral); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.secondary { background: var(--surface); color: var(--ink); }
.secondary:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .primary:hover, .secondary:hover, .button:hover { transform: none; } }
.link { color: var(--ink); text-decoration-color: var(--coral); text-decoration-thickness: 2px; }

/* Felter */
input:not([type=checkbox]), select, textarea { border: 2px solid var(--ink); border-radius: 0; background: var(--surface); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid var(--coral); outline-offset: 0; }
.check input { accent-color: var(--coral); }

/* Ramme */
.top { background: var(--foam); border-bottom: var(--edge) solid var(--ink); }
.top nav a { border-radius: 0; font: 800 18px/1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .02em; padding: 10px 12px; }
.top nav a:hover { background: var(--surface); }
.top nav a[aria-current=page] { background: var(--ink); color: var(--paper); }
.org { border-left: 2px solid var(--ink); color: var(--ink); font-weight: 500; }
.demo-bar { border-bottom: var(--edge) solid var(--ink); }

/* Kort og flader: tyk kant og hård skygge */
.panel, .letter, .new-review, .entry-card, .admin-org, .getting-started {
  border: var(--edge) solid var(--ink); border-radius: 0; box-shadow: var(--hard);
}
.panel, .new-review, .getting-started { margin-bottom: 22px; }
.kpis div, .admin-stats div { border: var(--edge) solid var(--ink); border-radius: 0; }
.empty-state, .detail-empty { border: var(--edge) dashed var(--ink); border-radius: 0; }
.entry { background: var(--foam); }
.lead, .aside { color: var(--muted); }
.aside { border-top: 2px solid var(--ink); }
.sent { background: var(--harbour-soft); border: 2px solid var(--ink); border-radius: 0; }

/* Indbakken */
.chip { border: 2px solid var(--ink); border-radius: 0; background: var(--surface); color: var(--ink); font-weight: 600; }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip:hover { background: var(--foam); }
.items { border-top: var(--edge) solid var(--ink); }
.item { border-bottom: 1px solid var(--line); border-left: 5px solid transparent; }
.item.is-selected { background: var(--surface); border-left-color: var(--coral); }
.item-who strong, .item-who > span:first-child { font-weight: 600; }
.group summary h2::after { color: var(--ink); text-decoration-color: var(--coral); font: 600 14px var(--sans); text-transform: none; }
.reply { border-left: var(--edge) solid var(--ink); }
.reply.hold { border-left-color: var(--critique); }
.reply textarea[readonly] { background: var(--harbour-soft); border-color: var(--ink); }
.removal { border: var(--edge) solid var(--ink); border-left-width: 8px; border-left-color: var(--coral); border-radius: 0; }
.topic { border-radius: 0; border: 2px solid currentColor; font-weight: 500; }
.topic-neg { border-color: currentColor; }
.address code { border-radius: 0; border: 2px solid var(--ink); background: var(--harbour-soft); }
.admin-status { border-radius: 0; border-width: 2px; }
.topic-bars .bar { border-radius: 0; height: 12px; }
.key { border-radius: 0; }
.scores thead th { color: var(--ink); font: 800 15px/1.1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .02em; border-bottom: 2px solid var(--ink); }
.scores tr.own th, .scores tr.own td { background: var(--harbour-soft); }
.spark-line { stroke: var(--coral); stroke-width: 2.5; }
.spark-end { fill: var(--coral); }
.ask-answer { border-left: var(--edge) solid var(--coral); }
.report-quotes blockquote { border-radius: 0; border: 2px solid var(--ink); border-left-width: 6px; }
.report-head .eyebrow { color: var(--ink); font-weight: 600; }
.toast { border-radius: 0; border: var(--edge) solid var(--ink); box-shadow: var(--hard); }
.toast-error { background: var(--critique); color: #fff; }

/* Logo i plakatstil */
.logo { font: 800 28px/1 var(--display); font-stretch: 75%; letter-spacing: 0; color: var(--ink); }
.logo .echo { color: var(--coral); opacity: 1; }
.logo-mark { --logo-bg: #12304a; --logo-echo: #acd9d5; }
@media print { .panel, .letter, .kpis div { box-shadow: none !important; } }

/* Enkel udgave: ingen skygger, tynde kanter, papir i toppen. Plakatskriften kun til overskrifter og knapper. */
:root { --hard: none; }
.top { background: var(--paper); border-bottom: 2px solid var(--ink); }
.top nav a { font: 600 15px/1 var(--sans); text-transform: none; letter-spacing: 0; padding: 9px 12px; }
.panel, .letter, .new-review, .entry-card, .admin-org, .getting-started { box-shadow: none; border-width: 2px; }
.kpis div, .admin-stats div { border-width: 2px; }
.empty-state, .detail-empty { border-width: 2px; }
.primary, .secondary, .button { border-width: 2px; }
.primary:hover, .secondary:hover, .button:hover { transform: none; box-shadow: none; }
.primary:hover, .button:hover { background: color-mix(in srgb, var(--coral) 88%, #000); }
.secondary:hover { background: var(--paper); }
.chip { border-width: 1.5px; font-weight: 500; }
.items { border-top-width: 2px; }
.reply { border-left-width: 2px; }
.removal { border-width: 2px; border-left-width: 6px; }
.scores thead th { border-bottom-width: 2px; }
.page-title { font-size: clamp(36px, 4vw, 52px); }
.panel h2, .new-review h2, .admin-head h2, .report h2, .empty-state h2 { font-size: 26px; }
.group h2, .reply h2, .notes h2, .removal h2, .getting-started h2, .competitor-block h3, .topic-cols h3 { font-size: 19px; }
.entry { background: var(--paper); }
.entry-card { border-width: 2px; }
.toast { box-shadow: none; border-width: 2px; }
.demo-bar { border-bottom: 0; }

/* Opsætning */
.setup { max-width: 820px; }
.setup-steps { margin: 16px 0 18px; padding-left: 22px; display: grid; gap: 10px; }
.setup-steps li::marker { font: 800 18px var(--display); font-stretch: 75%; color: var(--coral); }
.setup-steps code, .place-pick code { font: 500 15px ui-monospace, 'SF Mono', Menlo, monospace; background: var(--harbour-soft); padding: 1px 6px; word-break: break-all; }
.code-box { margin: 4px 0 18px; padding: 16px 18px; border: 2px solid var(--ink); background: var(--harbour-soft); }
.code-box.waiting { background: var(--surface); border-style: dashed; }
.code-label { font-weight: 600; }
.code { font: 800 44px/1.1 var(--display); font-stretch: 75%; letter-spacing: .06em; color: var(--ink); margin: 6px 0 4px; }
.button-plain { display: inline-flex; align-items: center; }
.senders { margin-bottom: 10px; }
.senders textarea { font: 500 14px/1.5 ui-monospace, 'SF Mono', Menlo, monospace; background: var(--paper); }
.checklist { list-style: none; margin: 14px 0 10px; padding: 0; border-top: 2px solid var(--ink); }
.checklist li { display: grid; grid-template-columns: 28px minmax(110px, 160px) 1fr; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist .tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--line-strong); font-weight: 700; color: var(--praise); }
.checklist li.ok .tick { border-color: var(--praise); background: color-mix(in srgb, var(--praise) 12%, transparent); }
.checklist .pl { font-weight: 600; }
@media (max-width: 560px) { .checklist li { grid-template-columns: 28px 1fr; } .checklist .muted { grid-column: 2; } }

/* Vælg sted på en anmeldelse */
.place-pick { margin: 0 0 18px; padding: 14px 16px; border: 2px dashed var(--coral); display: grid; gap: 12px; }
.place-pick select { max-width: 320px; }
.place-pick button { justify-self: start; }
