/* PulseID location web admin + platform admin — "Daylight" redesign.
   Rules below the marker are taken from the PulseID Redesign, Round 2 design
   canvas (class names kept so pages can be compared with their artboards);
   the additions at the bottom cover what static mockups don't need: real
   form controls, focus, flash messages, empty states and narrow screens. */
:root {
  --bg: #ffffff; --bg2: #f3f3f1; --ink: #15171a; --body: #474c54; --mute: #676c75;
  --line: #e2e1de; --blue: #0369a1; --sky: #0ea5e9; --navy: #0f172a;
  --go: #15803d; --only: #b45309; --rev: #c2410c; --no: #c81e1e;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fff; color: var(--ink); font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #0284c7; outline-offset: 2px; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-brand { display: flex; align-items: center; }
.a-brand img { height: 30px; width: auto; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- from the design canvas ---- */
.part { padding: 26px 24px 8px; color: var(--r-mute); font-weight: 600; font-size: 13px; }
.mk { width: 28px; height: 28px; border-radius: 7px; background: var(--navy, #0f172a); display: grid; place-items: center; flex: none; }
.mk svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
.q-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.q-row:last-child { border-bottom: 0; }
.q-row h5 { margin: 0 0 2px; font-size: 15px; font-weight: 600; }
.q-row p { margin: 0; font-size: 14px; color: var(--body); }
.q-row p.meta { font-size: 13px; color: var(--mute); margin-top: 2px; }
.q-row .q-btns { display: flex; gap: 8px; }
.q-btn { height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid #cfcec9; background: #fff; font-weight: 600; font-size: 14px; color: var(--ink); }
.q-btn.go { background: var(--ink); border-color: var(--ink); color: #fff; }
.aa { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 860px; font-size: 14px; }
.aa-side { background: #f6f6f4; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 16px 12px; }
.aa-side .a-brand { padding: 4px 8px 18px; }
.aa-loc { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin-bottom: 14px; color: var(--ink); }
.aa-loc b { display: block; font-weight: 600; font-size: 14px; }
.aa-loc span { font-size: 12.5px; color: var(--mute); }
.aa-nav { display: flex; flex-direction: column; gap: 1px; }
.aa-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--body); font-weight: 500; }
.aa-nav a .i { color: #80858d; }
.aa-nav a.on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.aa-nav a.on .i { color: var(--ink); }
.aa-nav .cnt { margin-left: auto; font-size: 13px; font-weight: 600; color: #9a3412; }
.aa-nav hr { border: 0; border-top: 1px solid var(--line); margin: 12px 4px; }
.aa-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; border-top: 1px solid var(--line); }
.av { width: 32px; height: 32px; border-radius: 50%; background: #dfe7ef; color: #1e3a5f; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.aa-me b { display: block; font-size: 13.5px; font-weight: 600; }
.aa-me span { font-size: 12.5px; color: var(--mute); }
.aa-main { padding: 0 28px 28px; min-width: 0; }
.aa-bar { height: 68px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); margin: 0 -28px 22px; padding: 0 28px; }
.aa-bar h1 { font-size: 22px; margin: 0; font-weight: 700; letter-spacing: -.01em; }
.aa-bar .when { color: var(--mute); font-size: 14px; }
.aa-search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 260px; height: 38px; border: 1px solid #d6d5d1; border-radius: 7px; padding: 0 10px; color: var(--mute); background: #fff; }
.aa-search input { border: 0; outline: 0; font: inherit; font-size: 14px; flex: 1; min-width: 0; background: transparent; color: var(--ink); }
.aa-search kbd { font: 500 11.5px "JetBrains Mono", monospace; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--mute); }
.aa-out { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid #d6d5d1; border-radius: 7px; background: #fff; font-weight: 600; font-size: 14px; color: var(--ink); }
.aa-sum { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.aa-sum p { margin: 0; font-size: 18px; color: var(--body); letter-spacing: -.005em; }
.aa-sum p b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.aa-sum p b.r { color: var(--no); }
.aa-sum p b.o { color: var(--rev); }
.aa-hours { display: flex; align-items: flex-end; gap: 14px; }
.aa-hours svg { display: block; }
.aa-hours span { font-size: 12.5px; color: var(--mute); }
.aa-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.aa-panel { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.aa-panel + .aa-panel { margin-top: 18px; }
.aa-ph { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.aa-ph b { font-size: 14.5px; font-weight: 600; }
.aa-ph span { color: var(--mute); font-size: 13px; }
.aa-ph .r { margin-left: auto; display: flex; gap: 6px; }
.chip { height: 28px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--body); font-weight: 500; }
.chip.on { border-color: var(--ink); color: var(--ink); }
.aa .q-row { padding: 12px 16px; }
.aa .q-row h5 { font-size: 14px; }
.aa .q-row p { font-size: 13.5px; }
.aa .q-btn { height: 32px; font-size: 13.5px; padding: 0 12px; }
.aa-t th { text-align: left; font-weight: 500; color: var(--mute); font-size: 12.5px; padding: 9px 10px; border-bottom: 1px solid var(--line); background: #fafaf9; white-space: nowrap; }
.aa-t th .i { width: 12px; height: 12px; vertical-align: -1px; }
.aa-t td { padding: 9px 10px; border-bottom: 1px solid #efeeeb; white-space: nowrap; font-variant-numeric: tabular-nums; }
.aa-t tr:last-child td { border-bottom: 0; }
.aa-t td.t { color: var(--mute); }
.aa-t td.n { font-weight: 500; }
.aa-t tr.sel td { background: #eef5fb; }
.res { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.res.go { color: var(--go); }
.res.only { color: var(--only); }
.res.rev { color: var(--rev); }
.res.no { color: var(--no); }
.res em { font-style: normal; color: var(--body); font-weight: 400; }
.aa-pg { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 13px; color: var(--mute); border-top: 1px solid var(--line); }
.aa-det { position: sticky; top: 0; }
.aa-det .img { padding: 14px 14px 0; }
.aa-det .img img { border-radius: 6px; border: 1px solid var(--line); width: 100%; height: 190px; object-fit: cover; }
.aa-det .img p { margin: 6px 0 0; font-size: 12px; color: var(--mute); }
.aa-det-b { padding: 14px 16px 16px; }
.aa-det-b h3 { margin: 0; font-size: 17px; font-weight: 700; }
.aa-det-b .v { color: var(--rev); font-weight: 600; font-size: 14px; margin: 3px 0 12px; }
.aa-det-b dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; }
.aa-det-b dt { font-size: 12px; color: var(--mute); }
.aa-det-b dd { margin: 1px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.aa-det-b dd.m { font-family: "JetBrains Mono", monospace; font-size: 13px; }
.aa-mm { margin: 14px 0 0; border-top: 1px solid #efeeeb; padding-top: 12px; }
.aa-mm .h { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.aa-mm table { width: 100%; border-collapse: collapse; font-size: 13px; }
.aa-mm th { text-align: left; font-weight: 500; color: var(--mute); padding: 4px 0; }
.aa-mm td { padding: 5px 0; border-top: 1px solid #efeeeb; }
.aa-mm td.m { font-family: "JetBrains Mono", monospace; font-size: 12.5px; }
.aa-mm td.bad { color: var(--rev); font-weight: 600; }
.aa-mm td.ok { color: var(--go); }
.aa-tl { margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--body); }
.aa-tl li { display: grid; grid-template-columns: 62px 1fr; padding: 6px 0; border-top: 1px solid #efeeeb; }
.aa-tl time { color: var(--mute); font-variant-numeric: tabular-nums; }
.aa-det-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.aa-det-btns .q-btn { height: 38px; }
.aa-det-btns .full { grid-column: 1 / -1; }
.ad-page { padding: 0 28px 40px; }
.ad-crumb { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-size: 14px; font-weight: 500; margin: 18px 0 4px; }
.ad-crumb .i { width: 16px; height: 16px; }
.ad-h { display: flex; align-items: flex-end; gap: 16px; padding: 22px 0 18px; }
.ad-h h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.015em; }
.ad-h p { margin: 4px 0 0; color: var(--mute); font-size: 14.5px; }
.ad-h .act { margin-left: auto; display: flex; gap: 8px; }
.ad-btn { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border-radius: 7px; border: 1px solid #d6d5d1; background: #fff; font: 600 14px "Schibsted Grotesk", sans-serif; color: var(--ink); text-decoration: none; white-space: nowrap; }
.ad-btn.p { background: var(--ink); border-color: var(--ink); color: #fff; }
.ad-btn.d { color: var(--no); }
.ad-btn .i { width: 16px; height: 16px; }
.ad-sum { font-size: 16px; color: var(--body); margin: 0 0 18px; }
.ad-sum b { color: var(--ink); font-weight: 700; }
.ad-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px 10px 0 0; background: #fafaf9; border-bottom: 0; }
.ad-filters .aa-search { margin: 0; width: 230px; height: 36px; }
.ad-sel { white-space: nowrap; height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 12px; border: 1px solid #d6d5d1; border-radius: 7px; background: #fff; font-size: 14px; color: var(--ink); }
.ad-sel span { color: var(--mute); }
.ad-sel .i { width: 14px; height: 14px; color: var(--mute); }
.ad-filters .sp { flex: 1; }
.ad-filters a { color: var(--blue); font-size: 14px; font-weight: 500; }
.ad-tbl { border: 1px solid var(--line); border-radius: 0 0 10px 10px; overflow: hidden; background: #fff; }
.ad-tbl.solo { border-radius: 10px; }
.ad-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ad-tbl th { text-align: left; font-weight: 500; color: var(--mute); font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafaf9; white-space: nowrap; }
.ad-tbl td { padding: 10px 12px; border-bottom: 1px solid #efeeeb; vertical-align: top; }
.ad-tbl tr:last-child td { border-bottom: 0; }
.ad-tbl td.t { color: var(--mute); white-space: nowrap; }
.ad-tbl td.n { font-weight: 600; white-space: nowrap; }
.ad-tbl td.m { font-family: "JetBrains Mono", monospace; font-size: 13px; white-space: nowrap; }
.ad-tbl td small { display: block; color: var(--mute); font-size: 12.5px; margin-top: 1px; font-weight: 400; }
.ad-tbl td a { color: var(--blue); font-weight: 500; }
.ad-tbl td.why { max-width: 300px; }
.ad-selbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #eef5fb; border: 1px solid #cfe1ef; border-bottom: 0; font-size: 14px; color: var(--body); }
.ad-selbar b { color: var(--ink); font-weight: 600; }
.ad-selbar .sp { flex: 1; }
.ad-selbar .ad-btn { height: 32px; }
.ad-selbar a:not(.ad-btn) { color: var(--blue); font-weight: 500; }
.ad-tbl td.who { max-width: 140px; }
.ad-tbl .clip { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-tbl td.why .clip { display: inline-block; max-width: calc(100% - 44px); vertical-align: bottom; }
.ad-tbl a.more { font-size: 13px; margin-left: 6px; vertical-align: bottom; }
.ad-tbl .cb { width: 16px; height: 16px; border: 1.5px solid #b9bcc2; border-radius: 4px; display: inline-block; vertical-align: -3px; }
.ad-tbl .cb.on { background: var(--ink); border-color: var(--ink); color: #fff; display: inline-grid; place-items: center; }
.ad-tbl .cb.on .i { width: 12px; height: 12px; stroke-width: 3.2; }
.ad-pg { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 13.5px; color: var(--mute); border-top: 1px solid var(--line); background: #fff; }
.ad-pg .r { display: flex; gap: 6px; }
.v-go { color: var(--go); font-weight: 600; }
.v-only { color: var(--only); font-weight: 600; }
.v-rev { color: var(--rev); font-weight: 600; }
.v-no { color: var(--no); font-weight: 600; }
.c-t { color: var(--no); font-weight: 600; }
.c-b { color: var(--rev); font-weight: 600; }
.c-w { color: var(--only); font-weight: 600; }
.ad-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.ad-2e { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ad-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ad-card + .ad-card { margin-top: 18px; }
.ad-card-h { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.ad-card-h h2 { margin: 0; font-size: 15.5px; font-weight: 600; }
.ad-card-h span { color: var(--mute); font-size: 13px; }
.ad-card-h .r { margin-left: auto; display: flex; gap: 8px; }
.ad-card-b { padding: 16px 18px; }
.ad-dl { display: grid; grid-template-columns: 160px 1fr; margin: 0; font-size: 14.5px; }
.ad-dl dt { color: var(--mute); padding: 9px 0; border-top: 1px solid #efeeeb; }
.ad-dl dd { margin: 0; padding: 9px 0; border-top: 1px solid #efeeeb; }
.ad-dl > :nth-child(1), .ad-dl > :nth-child(2) { border-top: 0; }
.ad-dl dd.m { font-family: "JetBrains Mono", monospace; font-size: 13.5px; }
.ad-chk { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid #efeeeb; font-size: 14.5px; }
.ad-chk:first-child { border-top: 0; }
.ad-chk .i { width: 18px; height: 18px; margin-top: 1px; stroke-width: 2.6; }
.ad-chk.ok .i { color: var(--go); }
.ad-chk.bad .i { color: var(--no); }
.ad-chk.warn .i { color: var(--rev); }
.ad-chk small { display: block; color: var(--mute); font-size: 13px; }
.ad-chk.bad small { color: var(--no); }
.ad-f { margin-bottom: 14px; }
.ad-f label, .ad-lbl { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
.ad-f label small, .ad-lbl small { font-weight: 400; color: var(--mute); }
.ad-in { width: 100%; height: 40px; border: 1px solid #d6d5d1; border-radius: 7px; padding: 0 12px; font: 400 14.5px "Schibsted Grotesk", sans-serif; color: var(--ink); background: #fff; display: flex; align-items: center; justify-content: space-between; }
.ad-in.ta { height: auto; min-height: 84px; padding: 10px 12px; align-items: flex-start; line-height: 1.5; }
.ad-in .phd { color: #9ea2a8; }
.ad-in .i { width: 15px; height: 15px; color: var(--mute); }
.ad-help { font-size: 12.5px; color: var(--mute); margin-top: 5px; }
.ad-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ad-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.ad-seg { display: inline-flex; border: 1px solid #d6d5d1; border-radius: 7px; overflow: hidden; }
.ad-seg span { padding: 8px 16px; font-size: 14px; font-weight: 500; border-left: 1px solid #d6d5d1; background: #fff; }
.ad-seg span:first-child { border-left: 0; }
.ad-seg span.on { background: var(--ink); color: #fff; }
.ad-tog { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid #efeeeb; font-size: 14.5px; }
.ad-tog:first-child { border-top: 0; }
.ad-tog small { display: block; font-size: 13px; color: var(--mute); }
.ad-box { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid #b9bcc2; flex: none; margin-top: 2px; display: grid; place-items: center; }
.ad-box.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ad-box .i { width: 13px; height: 13px; stroke-width: 3; }
.ad-sec { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; padding: 28px 0; border-top: 1px solid var(--line); }
.ad-sec:first-of-type { border-top: 0; }
.ad-sec h2 { margin: 0 0 6px; font-size: 16.5px; font-weight: 600; }
.ad-sec > div > p { margin: 0; font-size: 14px; color: var(--mute); }
.ad-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.ad-log { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.ad-log li { padding: 11px 0; border-top: 1px solid #efeeeb; }
.ad-log li:first-child { border-top: 0; }
.ad-log b { font-weight: 600; }
.ad-log time { color: var(--mute); font-size: 12.5px; margin-left: 6px; }
.ad-log p { margin: 2px 0 0; color: var(--body); }
.ad-empty { border: 1.5px dashed #cfd1d5; border-radius: 8px; padding: 22px; text-align: center; color: var(--mute); font-size: 14px; }
.ad-empty .ad-btn { margin-top: 10px; }
.ad-figs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.ad-figs > div { padding: 14px 18px 16px 0; }
.ad-figs > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.ad-figs span { display: block; font-size: 13px; color: var(--mute); }
.ad-figs b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin: 2px 0; }
.ad-figs small { font-size: 13px; color: var(--body); }
.ad-figs small.up { color: var(--go); }
.ad-chart text { font: 400 11.5px "Schibsted Grotesk", sans-serif; fill: #676c75; }
.ad-hbar { display: grid; grid-template-columns: 120px 1fr 60px; gap: 10px; align-items: center; font-size: 14px; padding: 6px 0; }
.ad-hbar i { display: block; height: 14px; background: #9cc6e4; border-radius: 2px; }
.ad-hbar b { font-weight: 600; text-align: right; }
.ad-paper { background: #fff; width: 100%; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 32px rgba(15,23,42,.10); padding: 48px 52px; font-family: "Source Serif 4", Georgia, serif; color: #111; font-size: 13.5px; line-height: 1.6; }
.ad-paper .lh { display: flex; justify-content: space-between; border-bottom: 2px solid #111; padding-bottom: 12px; font-family: "Schibsted Grotesk", sans-serif; }
.ad-paper .lh b { font-size: 18px; display: block; }
.ad-paper .lh span { font-size: 12px; color: #444; display: block; }
.ad-paper h3 { font-family: "Schibsted Grotesk", sans-serif; text-align: center; font-size: 20px; letter-spacing: .08em; margin: 22px 0 16px; }
.ad-paper .to { display: grid; grid-template-columns: 110px 1fr; font-size: 13px; margin-bottom: 14px; font-family: "Schibsted Grotesk", sans-serif; }
.ad-paper .to span:nth-child(odd) { color: #555; }
.ad-paper p { margin: 0 0 12px; }
.ad-paper .sig { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 64px; font-family: "Schibsted Grotesk", sans-serif; font-size: 12px; color: #444; }
.ad-paper .sig div { border-top: 1px solid #111; padding-top: 5px; position: relative; }
.ad-paper .sig svg { position: absolute; bottom: 8px; left: 6px; width: 170px; height: 48px; }
.ad-paper .ft { margin-top: 24px; font-size: 11.5px; color: #555; border-top: 1px solid #ccc; padding-top: 8px; font-family: "Schibsted Grotesk", sans-serif; }
.ad-pad { border: 1px solid #d6d5d1; border-radius: 8px; height: 120px; background: #fff; position: relative; }
.ad-pad svg { position: absolute; left: 30px; top: 26px; width: 260px; height: 70px; }
.ad-pad::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 26px; border-top: 1px solid #d6d5d1; }
.ad-plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.ad-plan > div { padding: 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ad-plan > div:first-child { border-left: 0; }
.ad-plan > div.cur { background: #f5f9fc; }
.ad-plan h3 { margin: 0; font-size: 15px; font-weight: 600; }
.ad-plan .pp { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.ad-plan .pp small { font-size: 13px; color: var(--mute); font-weight: 400; }
.ad-plan p { margin: 0 0 8px; font-size: 13.5px; color: var(--body); flex: 1; }
.ad-login { display: grid; grid-template-columns: 560px 1fr; min-height: 820px; background: #fff; }
.ad-login-f { padding: 64px 80px; display: flex; flex-direction: column; }
.ad-login-f h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 72px 0 6px; }
.ad-login-f > p { margin: 0 0 28px; color: var(--mute); }
.ad-login-f .ad-in { height: 46px; }
.ad-login-f .ad-btn { height: 46px; justify-content: center; width: 100%; font-size: 15px; }
.ad-login-f .sub { margin-top: auto; font-size: 14.5px; color: var(--mute); }
.ad-login-f .sub a { color: var(--blue); font-weight: 600; }
.ad-login-side { background: #0f172a; display: grid; place-items: center; }
.st-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: -4px 0 22px; }
.st-tabs a { padding: 10px 14px; font-size: 14.5px; font-weight: 500; color: var(--body); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.st-tabs a.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.st-sec { margin: 36px 0 0; }
.st-sec > h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 4px; }
.st-sec > p { margin: 0 0 16px; color: var(--mute); font-size: 14.5px; max-width: 70ch; }
.st-nights { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.st-nights > div { padding: 14px 14px 10px; border-left: 1px solid var(--line); }
.st-nights > div:first-child { border-left: 0; }
.st-nights > div.now { background: #f5f9fc; }
.st-nights .d { font-size: 13px; font-weight: 600; }
.st-nights .d span { color: var(--mute); font-weight: 400; }
.st-nights b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 0; }
.st-nights .cmp { font-size: 12.5px; color: var(--mute); }
.st-nights .cmp em { font-style: normal; font-weight: 600; }
.st-nights .up { color: var(--go); }
.st-nights .dn { color: #b45309; }
.st-leg { display: flex; gap: 18px; font-size: 13px; color: var(--body); margin: 10px 0 0; }
.st-leg span { display: inline-flex; align-items: center; gap: 7px; }
.st-leg i { display: inline-block; width: 16px; height: 0; border-top: 2px solid #0369a1; }
.st-leg i.base { border-top: 2px dashed #9a9ea6; }
.st-leg i.sw { width: 12px; height: 12px; border: 0; border-radius: 3px; }
.st-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.st-grid3 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.st-heat { border-collapse: separate; border-spacing: 3px; font-size: 12.5px; }
.st-heat th { font-weight: 500; color: var(--mute); padding: 0 6px; text-align: right; }
.st-heat thead th { text-align: center; padding-bottom: 4px; }
.st-heat td { width: 76px; height: 34px; border-radius: 4px; text-align: center; font-variant-numeric: tabular-nums; }
.st-scale { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute); margin-top: 10px; }
.st-scale i { width: 26px; height: 10px; border-radius: 2px; display: inline-block; }
.st-note { font-size: 14px; color: var(--body); margin: 10px 0 0; }
.st-note b { color: var(--ink); }
.st-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.st-tbl th { text-align: left; font-weight: 500; color: var(--mute); font-size: 12.5px; padding: 0 8px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.st-tbl td { padding: 9px 8px; border-bottom: 1px solid #efeeeb; }
.st-tbl tr:last-child td { border-bottom: 0; }
.st-tbl td.r, .st-tbl th.r { text-align: right; }
.st-seg { display: flex; height: 28px; gap: 2px; margin: 6px 0 10px; }
.st-seg i { display: block; height: 100%; border-radius: 4px; }
.st-tiles { display: grid; grid-template-columns: repeat(12, 34px); grid-auto-rows: 30px; gap: 3px; justify-content: center; }
.st-tiles span { border-radius: 3px; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
.pa { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 860px; font-size: 14px; }
.pa-side { background: #0f172a; color: #c9cfda; display: flex; flex-direction: column; padding: 18px 12px; }
.pa-side .lg { padding: 2px 8px 6px; }
.pa-side .role { font-size: 12.5px; color: #8e97a8; padding: 0 8px 18px; }
.pa-side nav { display: flex; flex-direction: column; gap: 1px; }
.pa-side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: #c9cfda; font-weight: 500; }
.pa-side nav a .i { color: #8e97a8; }
.pa-side nav a.on { background: #1e293b; color: #fff; }
.pa-side nav a.on .i { color: #fff; }
.pa-side nav .cnt { margin-left: auto; font-size: 13px; font-weight: 600; color: #fdba74; }
.pa-side hr { border: 0; border-top: 1px solid #1f2a3d; margin: 12px 4px; }
.pa-me { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid #1f2a3d; font-size: 13px; }
.pa-me b { display: block; color: #fff; font-weight: 600; }
.pa-me a { color: #93c5fd; font-size: 13px; }
.pa-view { display: flex; align-items: center; gap: 12px; margin: 0 -28px; padding: 10px 28px; background: #0f172a; color: #e2e8f0; font-size: 14px; }
.pa-view b { color: #fff; }
.pa-view a { margin-left: auto; color: #93c5fd; font-weight: 600; }
.st-ok { color: var(--go); font-weight: 600; }
.st-wait { color: var(--only); font-weight: 600; }
.st-off { color: var(--no); font-weight: 600; }
.st-mute { color: var(--mute); }
.paper { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 32px rgba(15,23,42,.10); padding: 44px 52px; font-size: 13.5px; color: #111; }
.paper .ph1 { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 18px; }
.paper .ph1 b { font-size: 22px; display: block; }
.paper .ph1 span { font-size: 12.5px; color: #444; }
.paper table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 20px; }
.paper th { text-align: left; font-weight: 600; font-size: 12px; color: #444; border-bottom: 1px solid #111; padding: 6px 8px 6px 0; }
.paper td { padding: 8px 8px 8px 0; border-bottom: 1px solid #d9d9d9; vertical-align: top; }
.paper h3 { font-size: 14px; margin: 18px 0 4px; text-transform: none; }
.paper .r { text-align: right; }
.paper .ini { width: 44px; height: 54px; background: #ececec; display: grid; place-items: center; font-weight: 700; color: #555; font-size: 13px; }
.gd-list { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.gd-list a { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid #efeeeb; font-size: 14.5px; color: var(--ink); }
.gd-list a:first-child { border-top: 0; }
.gd-list a.on { background: #eef5fb; font-weight: 600; }
.gd-list a span { color: var(--mute); font-size: 12.5px; }
.ck { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; border-top: 1px solid var(--line); }
.ck:first-child { border-top: 0; }
.ck .n { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #c4c7cc; display: grid; place-items: center; font-weight: 700; color: var(--mute); }
.ck .n.done { background: var(--go); border-color: var(--go); color: #fff; }
.ck .n.done .i { width: 16px; height: 16px; stroke-width: 3; }
.ck b { display: block; font-size: 16px; font-weight: 600; }
.ck p { margin: 2px 0 0; font-size: 14.5px; color: var(--body); }

/* ---- additions ---- */
.aa { min-height: 100vh; }
.aa-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.aa-nav a:hover { color: var(--ink); background: #efefec; }
.aa-nav a.on:hover { background: #fff; }
.aa-loc { cursor: default; }
.aa-me { flex-wrap: wrap; }
.aa-me form { flex-basis: 100%; margin: 2px 0 0 42px; }
.aa-me button { border: 0; background: none; color: var(--blue); font-size: 13px; font-weight: 600; padding: 2px 0; }
.aa-banner { margin: 0 -28px; padding: 10px 28px; background: #0f172a; color: #e2e8f0; font-size: 14px; }
.aa-banner a { color: #93c5fd; font-weight: 600; }
.ad-btn { cursor: pointer; }
.ad-btn:hover { background: #f6f6f4; }
.ad-btn.p:hover { background: #2a2d32; }
.ad-btn.sm { height: 32px; padding: 0 11px; font-size: 13.5px; }
.ad-btn[disabled] { opacity: .5; cursor: not-allowed; }
input.ad-in, select.ad-in, textarea.ad-in { display: block; }
textarea.ad-in { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
select.ad-in { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='none' stroke='%23676c75' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; padding-right: 34px; }
.ad-in:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(2,132,199,.22); }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); width: 17px; height: 17px; margin: 2px 0 0; flex: none; }
.ad-tog input { margin-top: 3px; }
label.ad-tog { cursor: pointer; }
.ad-filters select.ad-sel, .ad-filters input.ad-sel { font: inherit; font-size: 14px; color: var(--ink); }
.ad-filters select.ad-sel { appearance: none; padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='14' height='14' fill='none' stroke='%23676c75' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center; }
.ad-filters .lbl { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 13.5px; }
.ad-tbl tbody tr[data-row-href] { cursor: pointer; }
.ad-tbl tbody tr[data-row-href]:hover td { background: #f8f8f6; }
.ad-tbl-scroll { overflow-x: auto; }
.ad-tbl .empty td { text-align: center; color: var(--mute); padding: 36px 12px; }
.ad-pg a { color: var(--blue); font-weight: 500; }
.ad-pg .off { color: #a4a8ae; }
.flash { margin: 0 0 18px; padding: 11px 14px; border-radius: 8px; font-size: 14px; border: 1px solid; }
.flash.ok { background: #f0f8f2; border-color: #cfe6d5; color: #14532d; }
.flash.err { background: #fdf2f2; border-color: #f2d0d0; color: #8f1414; }
.flash.warn { background: #fff7e6; border-color: #f1dfb8; color: #6b4300; }
.muted { color: var(--mute); }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; }
.lnk { color: var(--blue); font-weight: 500; }
.lnk:hover { text-decoration: underline; text-underline-offset: 3px; }
.ad-thumb { width: 100%; border-radius: 6px; border: 1px solid var(--line); display: block; cursor: zoom-in; }
.lb { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(9,10,12,.92); align-items: center; justify-content: center; padding: 24px; }
.lb img { max-width: 95vw; max-height: 92vh; border-radius: 6px; }
.lb button { position: absolute; top: 16px; right: 16px; height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid #4a4d52; background: rgba(21,23,26,.9); color: #fff; font-weight: 600; }

@media (max-width: 900px) {
  .aa { grid-template-columns: minmax(0, 1fr); }
  .aa-side { position: static; height: auto; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .aa-side .a-brand { padding: 2px 4px 10px; }
  .aa-nav { flex-direction: row; flex-wrap: wrap; gap: 2px; }
  .aa-nav hr { display: none; }
  .aa-me { margin-top: 10px; }
  .aa-main, .ad-page { padding: 0 16px 28px; }
  .aa-banner { margin: 0 -16px; padding: 10px 16px; }
  .ad-h { flex-wrap: wrap; align-items: flex-start; }
  .ad-h .act { margin-left: 0; flex-wrap: wrap; }
  .ad-2, .ad-2e, .aa-cols, .st-grid2, .st-grid3 { grid-template-columns: minmax(0, 1fr); }
  .ad-sec { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ad-row2, .ad-row3 { grid-template-columns: minmax(0, 1fr); }
  .ad-dl { grid-template-columns: 120px 1fr; }
  .ad-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-tbl { overflow-x: auto; }
  .ad-login { grid-template-columns: minmax(0, 1fr); }
  .ad-login-f { padding: 32px 20px; }
  .ad-login-f h1 { margin-top: 40px; }
  .ad-login-side { display: none; }
  .ad-plan { grid-template-columns: minmax(0, 1fr); }
  .ad-plan > div { border-left: 0; border-top: 1px solid var(--line); }
}
@media print {
  .aa-side, .ad-h .act, .no-print { display: none !important; }
  .aa { display: block; }
}

/* Segmented control built from real radio inputs: .ad-seg.rad > label > input + span */
.ad-seg.rad { display: inline-flex; flex-wrap: wrap; }
.ad-seg.rad label { position: relative; cursor: pointer; }
.ad-seg.rad input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ad-seg.rad label span { display: block; padding: 8px 16px; font-size: 14px; font-weight: 500; border-left: 1px solid #d6d5d1; background: #fff; }
.ad-seg.rad label:first-child span { border-left: 0; }
.ad-seg.rad input:checked + span { background: var(--ink); color: #fff; }
.ad-seg.rad input:focus-visible + span { outline: 2px solid #0284c7; outline-offset: -2px; }

/* Users: table + new-user card side by side only when there's room. */
.users-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.users-grid > .ad-card { max-width: 560px; }
@media (min-width: 1500px) { .users-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.ad-tbl, .ad-tbl-scroll, .ad-card { position: relative; }

/* Dropdown menu built on <details>: .ad-menu > summary.ad-btn + .ad-menu-p */
.ad-menu { position: relative; }
.ad-menu > summary { list-style: none; }
.ad-menu > summary::-webkit-details-marker { display: none; }
.ad-menu-p { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(15,23,42,.10); padding: 6px; display: grid; }
.ad-menu-p a, .ad-menu-p button { padding: 8px 10px; border-radius: 5px; color: var(--ink); font-size: 14px; text-align: left; border: 0; background: none; }
.ad-menu-p a:hover, .ad-menu-p button:hover { background: var(--bg2); }
details:not([open]) > .ad-menu-p { display: none; }
/* "More filters" disclosure inside .ad-filters */
.ad-more > summary { cursor: pointer; color: var(--blue); font-size: 14px; font-weight: 500; list-style: none; }
.ad-more > summary::-webkit-details-marker { display: none; }
.ad-more[open] { flex-basis: 100%; order: 10; }
.ad-more[open] > summary { margin-bottom: 10px; }
.ad-more-p { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ad-more-p a { color: var(--blue); font-size: 14px; font-weight: 500; }
tr.muted td, tr.muted td.n a { color: var(--mute) !important; }

/* Flag photos */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.ph-grid.wide { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.ph-grid figure { margin: 0; }
.ph-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; cursor: zoom-in; }
.ph-grid figcaption { font-size: 12.5px; color: var(--mute); margin-top: 4px; }
.ph-act { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.ph-act button { border: 0; background: none; padding: 0; color: var(--blue); font-size: 12.5px; font-weight: 500; }
.ph-act button.d { color: var(--no); }
.ph-up { margin-top: 16px; padding-top: 14px; border-top: 1px solid #efeeeb; }
/* Crop dialog */
.crop { display: none; position: fixed; inset: 0; z-index: 9998; background: rgba(9,10,12,.75); align-items: center; justify-content: center; padding: 20px; }
.crop-b { background: #fff; border-radius: 10px; max-width: 560px; width: 100%; padding: 18px; }
.crop-b h2 { margin: 0 0 2px; font-size: 16px; }
.crop-b p { margin: 0 0 10px; color: var(--mute); font-size: 13.5px; }
.crop-img { max-height: 60vh; background: #000; border-radius: 6px; overflow: hidden; }
.crop-img img { max-width: 100%; display: block; }
.crop-f { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

/* Issue-notice page: form + paper preview */
.notice-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1100px) { .notice-grid { grid-template-columns: minmax(0, 1fr); } .ad-paper { padding: 28px 22px; } }
[hidden] { display: none !important; }
details:not([open]) > .ad-more-p { display: none; }
@media (max-width: 900px) {
  .aa-bar { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 14px; margin: 0 -16px 18px; padding-left: 16px; padding-right: 16px; }
  .aa-bar .aa-search { margin-left: 0; width: 100%; }
  .aa-sum { flex-wrap: wrap; }
}
.q-row h5 a { color: inherit; }
.q-row h5 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.q-btns { margin: 0; }
table.aa-t { width: 100%; border-collapse: collapse; }

/* Age-band builder (rules-builder.js, daylight mode) */
.rules-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.rules-top .ad-f { margin-bottom: 12px; }
.rules-top .ad-f .ad-in { width: 120px; }
.rules-top .ad-f select.ad-in { width: 170px; }
.rules-top .ad-btn { margin: 0 0 12px auto; }
.rules-color { width: 56px !important; padding: 3px; height: 40px; }

/* Event categories: tag box */
.cat-box { height: auto; min-height: 40px; flex-wrap: wrap; gap: 6px; justify-content: flex-start; padding: 5px 8px; }
.cat-box input[type=text] { border: 0; outline: 0; flex: 1; min-width: 140px; font: inherit; font-size: 14.5px; padding: 4px; background: transparent; }
.cat-tag { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #c4c3bf; border-radius: 5px; padding: 2px 4px 2px 8px; font-size: 13.5px; }
.cat-tag button { border: 0; background: none; font-size: 16px; line-height: 1; padding: 0 2px; color: var(--mute); cursor: pointer; }

/* ID guide */
.gd-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.gd-list { max-height: calc(100vh - 220px); overflow-y: auto; }
.gd-gal { margin-bottom: 16px; }
.gd-gal figure { margin: 0; }
.gd-gal img { width: 100%; border-radius: 6px; border: 1px solid var(--line); display: block; cursor: zoom-in; }
.gd-gal figcaption { font-size: 13px; color: var(--mute); margin-top: 6px; }
.gd-gal-nav { display: flex; gap: 8px; margin-top: 8px; }
.gd-ul { margin: 0; padding-left: 18px; color: var(--body); font-size: 14px; }
.gd-ul li + li { margin-top: 6px; }
@media (max-width: 1280px) { .gd-wrap { grid-template-columns: 220px minmax(0, 1fr); } .gd-wrap > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .gd-wrap { grid-template-columns: minmax(0, 1fr); } .gd-list { max-height: 260px; } }

/* Statistics jump-nav */
.st-tabs { position: sticky; top: 0; background: #fff; z-index: 5; overflow-x: auto; }
.st-tabs a { white-space: nowrap; }
[id^="st-"] { scroll-margin-top: 56px; }
@media (max-width: 900px) { .st-nights { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-nights > div { border-top: 1px solid var(--line); } }
.ad-figs small span { display: inline; font-size: inherit; color: inherit; }
.stats-page button:not(.ad-btn) { font: 500 12.5px "Schibsted Grotesk", system-ui, sans-serif; border: 1px solid #d6d5d1; background: #fff; border-radius: 6px; padding: 4px 10px; color: var(--ink); cursor: pointer; }
.stats-page button:not(.ad-btn):hover { background: #f6f6f4; }
.stats-page select, .stats-page input { font: inherit; }
.pf-lnk { border: 0; background: none; padding: 0; font: inherit; font-weight: 500; color: var(--blue); cursor: pointer; } .pf-lnk.d { color: var(--no); }
.ad-figs.figs4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } @media (max-width: 900px) { .ad-figs.figs4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ad-figs > div:nth-child(odd) { padding-left: 0; border-left: 0; } }
.pa { min-height: 100vh; }
.pa-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.pa-side nav a:hover { background: #1e293b; color: #fff; }
@media (max-width: 900px) {
  .pa { grid-template-columns: minmax(0, 1fr); }
  .pa-side { position: static; height: auto; padding: 12px; }
  .pa-side nav { flex-direction: row; flex-wrap: wrap; }
  .pa-side hr { display: none; }
  .pa-view { margin: 0 -16px; padding: 10px 16px; flex-wrap: wrap; }
  .ad-filters label.lbl { flex-wrap: wrap; }
}
