@font-face { font-family: "Schibsted"; src: url(/static/fonts/schibsted.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #0b0b0c;
  --card: #161618;
  --card-2: #212124;
  --line: #2b2b30;
  --text: #f4f4f1;
  --dim: #8e8e95;
  --faint: #5c5c63;
  --lime: #d4ff3a;
  --lime-ink: #11140a;
  --orange: #ff6a2b;
  --red: #ff5a52;
  --green: #7be38f;
  --display: "Schibsted", ui-sans-serif, system-ui, sans-serif;
  --sans: "Schibsted", ui-sans-serif, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.45 var(--sans); }
a { color: var(--lime); }
button, input, textarea, select { font: inherit; color: inherit; }
[x-cloak] { display: none !important; }
::selection { background: var(--lime); color: var(--lime-ink); }

.disp { font-family: var(--display); font-weight: 800; letter-spacing: -.015em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 4px 16px 140px; }
.muted { color: var(--dim); }
.small { font-size: 14px; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--dim); }
h1 { font: 800 34px/1.05 var(--display); letter-spacing: -.03em; margin: 14px 0 16px; }
h2 { font-size: 15px; font-weight: 700; color: var(--dim); margin: 26px 2px 10px; display: flex; gap: 8px; align-items: center; }
h2 .n { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--card-2); color: var(--text); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }

/* Knapper */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 10px 20px;
  border-radius: 999px; border: 0; background: var(--card-2); color: var(--text); cursor: pointer; font-weight: 700; font-size: 16px;
  text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.97); }
.btn.primary, .btn.solid { background: var(--lime); color: var(--lime-ink); }
.btn.bad { color: var(--red); }
.btn.ok { color: var(--green); }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.btn[disabled] { opacity: .4; cursor: default; filter: none; }

/* Top */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11,11,12,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top .in { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.mark { font: 900 23px/1 var(--display); letter-spacing: -.045em; color: var(--text); text-decoration: none; }
.mark b { color: var(--lime); }
.top .sess { color: var(--dim); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.menu { position: relative; }
.menu > button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card-2); cursor: pointer; font-size: 20px; line-height: 1; }
.menu .sheet { position: absolute; right: 0; top: 52px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 6px; min-width: 200px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.menu .sheet a { display: block; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--text); font-weight: 600; }
.menu .sheet a:hover, .menu .sheet a.on { background: var(--card-2); }
.menu .sheet hr { border: 0; border-top: 1px solid var(--line); margin: 6px; }

/* Status-pille */
.status { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.status > span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--dim); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; }
.dot.live { background: var(--lime); box-shadow: 0 0 0 3px rgba(212,255,58,.2); }
.dot.test { background: var(--orange); }
.notice { padding: 12px 14px; border-radius: 16px; background: rgba(255,106,43,.1); color: #ffb08c; font-size: 14px; margin: 8px 0; font-weight: 600; }
.err { color: var(--red); }
.empty { color: var(--faint); padding: 14px 4px; font-size: 15px; }

/* Hold øje */
.watch { margin: 8px 0 4px; padding: 14px; border-radius: 24px; border: 2px solid var(--orange); background: rgba(255,106,43,.06); }
.watch .head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.watch .count { width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.watch .item { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 10px; padding: 14px; border-radius: 16px; background: var(--card); }
.watch .item .t { font-size: 17px; font-weight: 600; }
.watch .item .why { font-size: 13px; color: var(--dim); margin-top: 2px; }

/* Baner */
.lanes { display: grid; gap: 0 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .lanes { grid-template-columns: 1fr 1fr; } }
.lane-list { display: flex; flex-direction: column; gap: 10px; }

/* Kort */
.card { position: relative; background: var(--card); border-radius: 26px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card .row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--card-2); color: var(--text); white-space: nowrap; }
.pill.lime { background: var(--lime); color: var(--lime-ink); }
.pill.white { background: var(--text); color: var(--bg); }
.pill.orange { background: var(--orange); color: #fff; }
.pill.ghost { background: transparent; color: var(--dim); padding: 0 4px; }
.card .q { font: 700 23px/1.22 var(--display); letter-spacing: -.02em; }
.card .side { margin-left: auto; text-align: right; line-height: 1; }
.card .big { font: 900 36px/0.9 var(--display); letter-spacing: -.04em; color: var(--lime); }
.card .big small { display: block; font: 600 12px/1.4 var(--sans); color: var(--dim); }
.card .anchor { font-size: 14px; color: var(--dim); }
.card .anchor em { font-style: normal; color: var(--text); }
.card .foot { display: flex; gap: 6px; flex-wrap: wrap; }
.card .foot button { all: unset; cursor: pointer; }
.card.pinned { box-shadow: inset 0 0 0 2px var(--lime); }
.actions { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; }
.actions .btn { width: 100%; padding: 8px 6px; min-height: 52px; }
.items { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 16px; background: var(--card-2); font-size: 15px; }
.items .src { font-size: 12px; font-weight: 700; color: var(--dim); margin-right: 6px; }

/* Små rækker */
.slip { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--card); }
.slip .t { font-size: 17px; font-weight: 600; }
.slip .reason { color: var(--orange); font-size: 13px; font-weight: 600; }
.slip .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
details { margin-top: 18px; }
details > summary { cursor: pointer; list-style: none; padding: 14px 4px 8px; font-size: 15px; font-weight: 700; color: var(--dim); }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "  ›"; }
details[open] > summary::after { content: "  ˅"; }
.slips { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

/* Faneblade på telefon */
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--card); margin: 14px 0 0; }
.seg button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--text); color: var(--bg); }
@media (min-width: 900px) { .seg { display: none; } }

/* Bundbar */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; padding: 24px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(11,11,12,0), var(--bg) 40%); }
.bottom .in { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; }
.bottom .btn { min-height: 62px; font-size: 17px; }
.toggle { justify-content: space-between !important; padding: 8px 8px 8px 20px !important; background: var(--card-2) !important; }
.switch { width: 52px; height: 32px; border-radius: 999px; background: #3a3a40; position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--lime); }
.switch.on::after { transform: translateX(20px); background: var(--lime-ink); }
.thinking { display: inline-flex; gap: 4px; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.1s infinite; }
.thinking i:nth-child(2) { animation-delay: .18s; } .thinking i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 50% { opacity: .2; } }

/* Formularer og undersider */
label { display: block; font-weight: 700; margin: 16px 0 6px; font-size: 15px; }
.help { color: var(--dim); font-size: 13px; margin-top: 6px; }
input[type=text], input[type=number], input[type=password], textarea, select {
  width: 100%; background: var(--card-2); border: 2px solid transparent; border-radius: 16px; padding: 13px 15px; outline: none; color: var(--text); }
input:focus, textarea:focus, select:focus { border-color: var(--lime); }
textarea { min-height: 130px; resize: vertical; }
.row2 { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr 1fr; } }
.box { background: var(--card); border-radius: 26px; padding: 18px; margin: 12px 0; }
.box > h2:first-child { margin-top: 0; }
code { background: var(--card-2); padding: 2px 7px; border-radius: 8px; font-size: 14px; word-break: break-all; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 700; }
.tablewrap { overflow-x: auto; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; }
.chips button { flex: none; min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 0; background: var(--card); color: var(--dim); font-weight: 700; cursor: pointer; }
.chips button.on { background: var(--text); color: var(--bg); }
.toast { position: fixed; left: 50%; bottom: 108px; transform: translateX(-50%); background: var(--lime); color: var(--lime-ink); padding: 12px 18px; border-radius: 999px; z-index: 20; font-weight: 700; white-space: nowrap; }
.lanes > section > h2 { display: none; }
@media (min-width: 900px) { .lanes > section > h2 { display: flex; } }
