/* Dynamic-it Cookie | admin */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --ink: #0d1b2a;
  --ink-2: #33415a;
  --muted: #66738a;
  --line: #e4e8ef;
  --line-2: #d5dbe5;
  --brand: #2f6096;
  --brand-ink: #1d3f66;
  --brand-soft: #eaf1f9;
  --ok: #0f8a4f;
  --ok-soft: #e6f5ec;
  --warn: #a75a00;
  --warn-soft: #fff3e0;
  --bad: #c0362c;
  --bad-soft: #fdecea;
  --violet: #6b4fc6;
  --violet-soft: #f0ecfb;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(16, 24, 40, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 620; }
p { margin: 0; }

code, .mono { font-family: var(--mono); font-size: 0.88em; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 20px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ */
/* Topbar og sidehoved                                                 */
/* ------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { height: 30px; width: auto; display: block; }
.brand__product {
  font-size: 13px;
  font-weight: 650;
  color: var(--brand-ink);
  padding-left: 12px;
  border-left: 1px solid var(--line-2);
}

.topnav { display: flex; gap: 4px; }
.topnav a {
  color: var(--ink-2);
  font-weight: 550;
  padding: 7px 12px;
  border-radius: 9px;
}
.topnav a:hover { background: var(--surface-2); color: var(--ink); }
.topnav a.is-active { background: var(--brand-soft); color: var(--brand-ink); }

.user-chip { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 550; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), #4a83c0);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

.page { max-width: 1200px; margin: 0 auto; padding: 32px 24px 64px; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.page-head__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; color: var(--muted); }

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Kort og grid                                                        */
/* ------------------------------------------------------------------ */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card--flush { padding: 0; overflow: hidden; }
.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.card__head p { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.card__head { flex-wrap: wrap; }
#cookie-search { width: 220px; }
.card--flush .card__head { padding: 22px 24px 0; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.grid--design { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.kpi__label { font-size: 13px; color: var(--muted); font-weight: 550; }
.kpi__value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi__hint { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kpi--bad .kpi__value { color: var(--bad); }
.kpi--ok .kpi__value { color: var(--ok); }

/* ------------------------------------------------------------------ */
/* Knapper                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.12s var(--ease);
}
.btn:hover { background: var(--brand-ink); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { background: var(--surface-2); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink-2); box-shadow: none; }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--danger { background: transparent; color: var(--bad); box-shadow: none; border-color: transparent; }
.btn--danger:hover { background: var(--bad-soft); color: var(--bad); }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* ------------------------------------------------------------------ */
/* Formularer                                                          */
/* ------------------------------------------------------------------ */

.field { display: block; }
.field + .field, .field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 16px; }
.field-row > .field { margin-top: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.input, .select, .textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { resize: vertical; min-height: 96px; }
.select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2366738a' stroke-width='2.5' stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.input:hover, .select:hover, .textarea:hover { border-color: #c2cad7; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(47, 96, 150, 0.14);
}
.input--sm, .select--sm { min-height: 34px; padding: 6px 10px; font-size: 13.5px; border-radius: 8px; }
.select--sm { padding-right: 30px; background-position: right 10px center; }

.color-field { display: flex; align-items: center; gap: 10px; }
.color-field input[type="color"] {
  width: 44px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line-2);
  cursor: pointer;
  padding: 0;
}
.swatch:hover { transform: scale(1.08); }

.choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__box {
  display: block;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.choice__box strong { display: block; font-size: 13px; margin-top: 8px; }
.choice input:checked + .choice__box { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 96, 150, 0.16); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--brand); outline-offset: 2px; }
.mini {
  display: block;
  position: relative;
  height: 54px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.mini i { position: absolute; display: block; background: var(--ink-2); border-radius: 4px; opacity: 0.8; }
.mini--card i { left: 6px; bottom: 6px; width: 46%; height: 22px; }
.mini--bar i { left: 0; right: 0; bottom: 0; height: 14px; border-radius: 0; }
.mini--center { background: #dfe3ea; }
.mini--center i { left: 30%; right: 30%; top: 14px; height: 26px; }
.mini--light i { background: #fff; box-shadow: 0 0 0 1px var(--line-2); }
.mini--dark i { background: #141821; }
.mini--auto i { background: linear-gradient(90deg, #fff 50%, #141821 50%); box-shadow: 0 0 0 1px var(--line-2); }
.mini--auto i, .mini--light i, .mini--dark i { left: 18%; right: 18%; top: 12px; bottom: 12px; height: auto; }

.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.divider { height: 1px; background: var(--line); margin: 22px 0; border: 0; }
.section-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }

/* ------------------------------------------------------------------ */
/* Faner                                                               */
/* ------------------------------------------------------------------ */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}
.tab .count { font-size: 11.5px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp 0.35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ */
/* Badges og status                                                    */
/* ------------------------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge--ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge--bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge--brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge svg { width: 13px; height: 13px; }

.count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}
.count--bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }

.cat { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; }
.cat::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
.cat--necessary { color: #475569; }
.cat--preferences { color: var(--violet); }
.cat--statistics { color: var(--brand); }
.cat--marketing { color: var(--warn); }
.cat--unclassified { color: var(--bad); }

/* Tjekliste */
.checklist { list-style: none; margin: 0; padding: 0; }
.check {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.check:first-child { border-top: 0; padding-top: 4px; }
.check__icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.check__icon svg { width: 16px; height: 16px; }
.check--ok .check__icon { background: var(--ok-soft); color: var(--ok); }
.check--warn .check__icon { background: var(--warn-soft); color: var(--warn); }
.check--bad .check__icon { background: var(--bad-soft); color: var(--bad); }
.check__title { font-weight: 620; }
.check__text { color: var(--muted); font-size: 13.5px; margin-top: 2px; }

.status-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 14px;
  margin-bottom: 8px;
}
.status-hero--ok { background: var(--ok-soft); }
.status-hero--bad { background: var(--bad-soft); }
.status-hero--warn { background: var(--warn-soft); }
.status-hero__ring {
  --p: 0;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(currentColor calc(var(--p) * 1%), rgba(16, 24, 40, 0.08) 0);
  font-weight: 750;
  font-size: 14px;
}
.status-hero__ring span {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--ink);
}
.status-hero--ok .status-hero__ring { color: var(--ok); }
.status-hero--bad .status-hero__ring { color: var(--bad); }
.status-hero--warn .status-hero__ring { color: var(--warn); }

/* ------------------------------------------------------------------ */
/* Tabeller                                                            */
/* ------------------------------------------------------------------ */

.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 0.15s; }
.table tbody tr:hover { background: #fafbfc; }
.table td code { white-space: nowrap; color: var(--ink); }
.table .wrap { max-width: 360px; min-width: 220px; overflow-wrap: anywhere; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-flagged { background: #fffafa; }
.table .actions { text-align: right; white-space: nowrap; }

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.empty__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
}
.empty__icon svg { width: 20px; height: 20px; }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* Filtre */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { background: var(--surface-2); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active .count { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: transparent; }

/* Inline-redigering af cookies */
.cookie-edit { display: none; }
.cookie-edit.is-open { display: table-row; background: var(--surface-2); }
.cookie-edit td { padding: 18px 16px 20px; }

/* ------------------------------------------------------------------ */
/* Kodeboks, alerts, toast                                             */
/* ------------------------------------------------------------------ */

.code-box {
  position: relative;
  background: #0d1b2a;
  color: #dbe7f5;
  border-radius: 12px;
  padding: 16px 18px;
  padding-right: 124px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.code-box .tag { color: #8fb8e8; }
.code-box .attr { color: #f2c27a; }
.code-box .str { color: #9fd8a8; }
.code-box .btn { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.code-box .btn:hover { background: rgba(255, 255, 255, 0.18); }

.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 13.5px;
}
.callout svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.callout--warn { background: var(--warn-soft); color: #7a4300; }
.callout--bad { background: var(--bad-soft); color: #8f241c; }
.callout strong { color: inherit; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translate(-50%, 20px);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 550;
  box-shadow: 0 16px 40px -12px rgba(13, 27, 42, 0.5);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: #6fdc9f; }
.toast--error svg { color: #ff9b91; }

/* Scanningsoverblik */
.scan-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.scan-stats > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); }
.scan-stats span { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.scan-stats strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.scan-stats small { display: block; font-size: 12px; color: var(--muted); }
.scan-stats .is-bad strong { color: var(--bad); }
.scan-stats .is-ok strong { color: var(--ok); }
.kpi__plus { font-size: 18px; color: var(--muted); margin-left: 2px; }
.pill-code { background: var(--bad-soft); color: #8f241c; border-radius: 6px; padding: 2px 6px; font-size: 12px; }
@media (max-width: 860px) { .scan-stats { grid-template-columns: 1fr 1fr; } }

/* Fremdrift for scanning */
.progress { height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #5b95d1); transition: width 0.6s var(--ease); }
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid var(--line-2);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Forhåndsvisning af banner */
.preview {
  position: sticky;
  top: 88px;
}
.preview__frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.preview__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.preview__bar i { width: 10px; height: 10px; border-radius: 999px; background: var(--line-2); }
.preview__url {
  margin-left: 10px;
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 0 10px;
  overflow: hidden;
  white-space: nowrap;
}
.preview iframe { display: block; width: 100%; height: 560px; border: 0; background: #fff; }

/* Login */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.auth__side {
  position: relative;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(91, 149, 209, 0.35), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(47, 96, 150, 0.45), transparent 60%),
    #0d1b2a;
  color: #e7eef7;
  overflow: hidden;
}
.auth__side h2 { color: #fff; font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; max-width: 440px; }
.auth__side p { color: #b6c6da; max-width: 420px; margin-top: 14px; }
.auth__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.auth__points li { display: flex; gap: 10px; color: #dbe5f1; }
.auth__points svg { width: 18px; height: 18px; color: #7fb3e8; flex-shrink: 0; margin-top: 2px; }
.auth__logo { background: #fff; border-radius: 12px; padding: 8px 12px; display: inline-flex; align-self: flex-start; }
.auth__logo img { height: 34px; display: block; }
.auth__main { display: grid; place-items: center; padding: 48px 24px; background: var(--surface); }
.auth__form { width: min(380px, 100%); }
.auth__form h1 { font-size: 28px; }
.auth__form > p { color: var(--muted); margin-top: 6px; margin-bottom: 28px; }
.auth__alt { margin-top: 20px; font-size: 13.5px; color: var(--muted); text-align: center; }

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 18px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.alert--error { background: var(--bad-soft); color: #8f241c; }

.site-list { display: grid; gap: 12px; }
.site-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.site-row:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); color: var(--ink); }
.site-row__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 750;
  font-size: 16px;
  text-transform: uppercase;
}
.site-row__name { font-weight: 650; }
.site-row__domain { font-size: 13px; color: var(--muted); }
.site-row__stats { display: flex; gap: 8px; flex-wrap: wrap; }

.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 0 24px 32px; }

/* ------------------------------------------------------------------ */
/* Responsivt                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1020px) {
  .grid--main, .grid--design { grid-template-columns: 1fr; }
  .preview { position: static; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .site-row { grid-template-columns: 44px minmax(0, 1fr); }
  .site-row__stats, .site-row > :last-child { grid-column: 2; }
}

@media (max-width: 640px) {
  .topbar__inner { padding: 0 16px; gap: 12px; }
  .brand__product, .user-chip__name { display: none; }
  .page { padding: 24px 16px 48px; }
  .card { padding: 18px; }
  .field-row, .field-row--3, .choice-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi__value { font-size: 22px; }
  h1 { font-size: 22px; }
  .card--flush .card__head { padding: 18px 18px 0; }
  .card__head > .row { width: 100%; }
  #cookie-search { flex: 1; width: auto; min-width: 0; }
  .site-row { padding: 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
