/* SKATbreaker – kontopanel. Bygger oven på ../styles.css (samme sorte, hvide neon og Jost). */

[hidden] { display: none !important; }

.k-main {
  max-width: var(--max); margin: 0 auto; min-height: 70vh;
  padding-block: 56px 88px;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.k-loading { text-align: center; color: var(--text-faint); letter-spacing: .2em; text-transform: uppercase; font-size: 13px; padding-top: 80px; }

.k-title { font-style: italic; font-weight: 300; font-size: clamp(34px, 8vw, 52px); }
.k-lead { margin-top: 12px; color: var(--text-dim); }
.k-text { color: var(--text-dim); font-size: 16px; }

/* ---------- Log ind / opret ---------- */
.k-auth { display: flex; justify-content: center; }
.k-box {
  width: 100%; max-width: 480px; padding: 36px 22px;
  border-radius: calc(var(--radius) + 6px);
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.07), transparent 60%), rgba(10,10,10,.72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 0 60px rgba(255,255,255,.05);
}
.k-form { margin-top: 26px; display: grid; gap: 16px; }
.k-field { display: grid; gap: 8px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.k-field small { text-transform: none; letter-spacing: 0; color: var(--text-faint); font-size: 13px; }
.k-field input {
  width: 100%; min-height: 50px; padding: 0 18px;
  border-radius: 12px; border: 0;
  background: #000; color: #fff;
  font: 300 17px var(--font); letter-spacing: 0; text-transform: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: box-shadow .2s;
}
.k-field input:focus { outline: none; box-shadow: inset 0 0 0 1px #fff, 0 0 18px rgba(255,255,255,.2); }
.k-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #ff5a5a; }
.k-form .consent { margin-top: 0; }
.k-submit { width: 100%; margin-top: 4px; }
.k-submit[disabled] { opacity: .5; cursor: wait; }
.k-msg { min-height: 1.4em; font-size: 15px; color: #fff; }
.k-msg.is-error { color: #ff8a8a; }
.k-alt { margin-top: 22px; font-size: 15px; color: var(--text-faint); text-align: center; }
.k-alt a { color: #fff; }

/* ---------- Oversigt ---------- */
.k-dash__head { margin-bottom: 32px; }
.k-banner {
  margin-top: 20px; padding: 14px 18px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 0 22px rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
}
.k-grid { display: grid; gap: 16px; }
.k-card {
  padding: 26px 22px 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01)), rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}
.k-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.k-card h2 { font-size: 14px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; color: var(--text-dim); }
.k-big { font-size: 28px; font-weight: 300; font-style: italic; line-height: 1.2; }

.k-badge {
  flex: 0 0 auto;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px #fff, 0 0 12px rgba(255,255,255,.35);
  color: #fff; text-shadow: 0 0 8px rgba(255,255,255,.5);
}
.k-badge--dim { box-shadow: inset 0 0 0 1px var(--line); color: var(--text-dim); text-shadow: none; }
.k-badge--warn { box-shadow: inset 0 0 0 1px #ff8a8a; color: #ffb3b3; text-shadow: none; }

.k-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.k-facts dt { color: var(--text-faint); }
.k-facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.k-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.k-actions .btn { flex: 1 1 auto; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--line); text-shadow: none; }
.btn[disabled]:hover { background: transparent; color: var(--text-dim); }
.btn--danger { background: transparent; color: #ffb3b3; box-shadow: inset 0 0 0 1px rgba(255,138,138,.7); }
.btn--danger:hover { background: #ff8a8a; color: #000; }
.k-note { font-size: 14px; color: var(--text-faint); }
.k-note:empty { display: none; }
.k-mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12px; color: var(--text-faint); overflow-wrap: anywhere; }

.k-devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.k-device {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
  background: rgba(0,0,0,.5);
}
.k-device__icon { flex: 0 0 34px; width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(255,255,255,.45)); }
.k-device__body { flex: 1 1 auto; min-width: 0; }
.k-device__name { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-device__meta { font-size: 13px; color: var(--text-faint); }
.k-device .btn { flex: 0 0 auto; }
.k-device--empty { justify-content: center; color: var(--text-faint); font-size: 15px; border-style: dashed; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }

.k-details { border-top: 1px solid var(--line); }
.k-details:last-child { border-bottom: 1px solid var(--line); }
.k-details summary { cursor: pointer; list-style: none; padding: 16px 0; font-size: 17px; display: flex; justify-content: space-between; }
.k-details summary::-webkit-details-marker { display: none; }
.k-details summary::after { content: "+"; color: var(--text-faint); font-size: 22px; line-height: 1; transition: transform .2s; }
.k-details[open] summary::after { transform: rotate(45deg); color: #fff; }
.k-form--inline { margin: 0 0 22px; max-width: 460px; }

@media (min-width: 560px) {
  .k-box { padding: 48px 44px; }
  .k-submit { width: auto; justify-self: start; }
  .k-auth .k-submit { width: 100%; }
}
@media (min-width: 820px) {
  .k-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .k-card { padding: 30px 30px 32px; }
  .k-card--wide { grid-column: 1 / -1; }
  .k-main { padding-top: 72px; }
}
@media (max-width: 420px) {
  .k-device { flex-wrap: wrap; }
  .k-device .btn { width: 100%; }
}

/* ---------- Vilkår og privatliv ---------- */
.k-legal { max-width: 760px; }
.k-legal .k-banner { margin: 20px 0 8px; }
.k-legal h2 { margin-top: 40px; font-size: 22px; font-style: italic; font-weight: 300; }
.k-legal p, .k-legal li { margin-top: 12px; color: var(--text-dim); }
.k-legal ul { padding-left: 1.2em; margin: 0; }
.k-legal strong { color: var(--text); font-weight: 500; }
.consent a { color: #fff; }

/* ---------- Admin ---------- */
.k-admin-link { margin-top: 18px; }
.eyebrow a { color: inherit; }
.k-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.k-stat { padding: 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(0,0,0,.55); }
.k-stat b { display: block; font-size: 30px; font-weight: 300; font-style: italic; color: #fff; }
.k-stat span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.k-stat--alarm b { color: #ffb3b3; }
.k-search { margin: 26px 0 8px; max-width: 460px; }
.k-users { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.k-user { padding: 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: rgba(0,0,0,.55); display: grid; gap: 12px; }
.k-user__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.k-user__email { font-size: 17px; overflow-wrap: anywhere; }
.k-user__meta { font-size: 13px; color: var(--text-faint); }
.k-user__ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.k-user__ctl select, .k-user__ctl input {
  min-height: 38px; padding: 0 12px; border-radius: 999px; border: 0; background: #000; color: #fff;
  font: 300 14px var(--font); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.k-user__ctl input { width: 76px; }
.k-user__log { font-size: 13px; color: var(--text-faint); display: grid; gap: 4px; }
@media (min-width: 820px) { .k-stats { grid-template-columns: repeat(4, 1fr); } }
.k-banner--row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
