/* Grundtokens från prototypens mörka testutseende (prototype/public/index.html).
   Kioskens skärmar och Justera-utseendet porteras därifrån — ingen Tabler/Bootstrap. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #0e1116;
  --panel: #171c24;
  --panel-2: #1f2630;
  --line: #2b3440;
  --ink: #eef2f7;
  --muted: #93a1b2;
  --accent: #3d8bfd;
  --ok: #2ea36b;
  --warn: #d98324;
  --bad: #d9534f;
}
html, body { min-height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.5 "Segoe UI", system-ui, -apple-system, sans-serif;
}
a { color: var(--accent); }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

.topbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.topbar .brand { color: var(--ink); font-weight: 700; text-decoration: none; }
.topbar .spacer { flex: 1 1 auto; }
.topbar form { margin: 0; }

.page {
  display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 40px 16px;
}
.card {
  width: 100%; max-width: 480px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 20px; padding: 32px;
}
.page.wide .card { max-width: 860px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 0 0 14px; }
h3 { font-size: 16px; margin: 22px 0 10px; }
p.lead { color: var(--muted); margin: 0 0 22px; }
.muted { color: var(--muted); }
.center { text-align: center; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, select, button, .button { font: inherit; }
input, select {
  width: 100%; color: var(--ink); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button, .button {
  display: inline-block; text-align: center; text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 18px;
}
.primary { background: var(--accent); border-color: transparent; color: #fff; font-weight: 600; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); }

.alert { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; }
.alert.bad { background: rgba(217, 83, 79, .14); color: #f1a09d; }
.alert.ok { background: rgba(46, 163, 107, .14); color: #8be0b6; }
.alert ul { margin: 0; padding-left: 18px; }
.validation-summary-valid { display: none; }
.field-validation-error { color: #f1a09d; font-size: 13px; }
.copy { margin-top: 10px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

.qr { background: #fff; border-radius: 14px; padding: 14px; width: 240px; margin: 0 auto 12px; line-height: 0; }
.qr svg { width: 100%; height: auto; }
.key { display: inline-block; margin-top: 6px; letter-spacing: .06em; color: var(--ink); }
.codes { columns: 2; list-style: none; padding: 0; margin: 0 0 22px; }
.codes li { padding: 4px 0; }

table.list { width: 100%; border-collapse: collapse; font-size: 15px; }
table.list th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; }
table.list th, table.list td { padding: 10px 8px; border-bottom: 1px solid var(--line); }

.right { text-align: right; }
tr.muted td { color: var(--muted); }
button.danger { background: transparent; border-color: var(--bad); color: #f1a09d; padding: 6px 12px; font-size: 14px; }
.form.inline { grid-template-columns: 1fr auto; align-items: end; }
.paircode { font-size: 20px; letter-spacing: .12em; color: var(--ink); }
.paircode-input { font: 600 34px/1 ui-monospace, Consolas, monospace; letter-spacing: .14em; text-align: center; text-transform: uppercase; }

.small { font-size: 13px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; }
.tag.ok { background: rgba(46, 163, 107, .16); color: #63d69c; }
.tag.warn { background: rgba(217, 131, 36, .16); color: #f0ad4e; }
.secret { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.secret:first-of-type { border-top: 0; padding-top: 4px; }
.secret-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.secret p { margin: 4px 0 10px; }
.secret form + form { margin-top: 8px; }
