:root {
  /* Reflickers designsystem (se "Reflicker" under Design System i Claude):
     Poppins til overskrifter og tal, Inter til alt, man læser. Gråtonerne er
     varme, ikke neutrale, så de står rigtigt ved siden af både Reflickers
     orange og klubbernes egne farver. */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Poppins", "Century Gothic", system-ui, -apple-system, sans-serif;

  --surface: #ffffff;
  --page: #f7f4f0;
  --ink: #14161a;
  --ink-2: #4a4641;
  --muted: #6b6660;
  --grid: #eee9e2;
  --border: #e6e0d8;

  /* Topbjælke og fremhævningsfarve. Inde på en klubside bliver de
     overskrevet med klubbens egne (lib/render.js → brandStyleTag), for
     Reflickers orange hører ikke hjemme på en klubs side. Standarden her er
     Reflickers egen, til loginsiden og administrationscentret. */
  --club-black: #14161a;
  --accent: #8e5a12;
  --accent-dark: #6f460d;
  --brand: #c8821f;

  --good: #1e7a37;
  --warning: #e0a030;
  --critical: #b3122a;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 6px;

  /* Kort får en hårfin kant og kun et strejf af skygge; rigtig skygge er
     til det, der ligger oven på noget andet (menuer, dialoger). */
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.04);
  --shadow-md: 0 2px 6px rgba(20, 22, 26, 0.05), 0 10px 24px -12px rgba(20, 22, 26, 0.16);
  --shadow-lg: 0 4px 10px rgba(20, 22, 26, 0.08), 0 20px 40px -16px rgba(20, 22, 26, 0.24);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  letter-spacing: -0.005em;
  /* A notch larger than the old 14px default — reads less cramped, more 2026. */
  font-size: 15.5px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

a { color: var(--accent-dark); transition: color 0.15s var(--ease); }

.container {
  /* Bumped from 720px so pages have room to lay content out in side-by-side
     columns (see .grid-2/.grid-3 below) instead of everything stacking in a
     single narrow column. */
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

/* Top bar / nav — the club's black/red/white is back (it was solid black
   for a while; a stripe pattern tiled across the *whole* bar before that,
   which read as noisy once real nav content sat on top of it). This time
   the stripes live only in two slim bands — top and bottom, like a kit's
   collar and cuff — bookending a calm, solid-black middle where the brand
   name and nav tabs actually sit, so the pattern reads as a deliberate
   trim instead of a busy background fighting the text. */
.topbar {
  background: var(--club-black);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}
.topbar-stripe {
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    var(--club-black) 0, var(--club-black) 22px,
    #fff 22px, #fff 26px,
    var(--accent) 26px, var(--accent) 40px
  );
}
.topbar-trim {
  height: 7px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0, var(--accent) 14px,
    #fff 14px, #fff 18px,
    var(--club-black) 18px, var(--club-black) 40px
  );
}
.topbar-inner {
  /* Wider than .container (720px): with up to 8 staff nav tabs (incl. Staff
     for Klub admin) plus brand + user block, the nav needs more room than
     the page content column does. */
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.toptabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
  /* Its own full-width row below brand+user at every size — with up to 8
     tabs, sharing the first row left too little room and wrapped unevenly. */
  order: 3;
  flex-basis: 100%;
  width: 100%;
  padding-top: 6px;
}
@media (max-width: 640px) {
  .topbar-inner { padding: 10px 16px; }
  .topbar-user { margin-left: 0; }
}
.navlink {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.navlink.active { background: var(--accent); color: #fff; box-shadow: 0 2px 10px -2px color-mix(in srgb, var(--accent) 60%, transparent); }
.navlink:not(.active):hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Dropdown nav groups (Players / Staff) — a native <details> disclosure so
   it works with a tap on mobile and a click on desktop with no extra JS;
   layout() adds one small script to close it again on an outside click. */
.navdrop { position: relative; }
.navdrop > summary.navlink {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.navdrop > summary.navlink::-webkit-details-marker { display: none; }
.navdrop > summary.navlink::marker { content: ''; display: none; }
.navdrop-caret { font-size: 10px; opacity: 0.75; }
.navdrop[open] > summary.navlink:not(.active) { background: rgba(255,255,255,0.12); color: #fff; }
.navdrop-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #161616;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 6px;
  min-width: 200px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}
.navdrop-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #d8d8d6;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
  font-weight: 600;
  white-space: nowrap;
}
.navdrop-item:hover { background: rgba(255,255,255,0.12); color: #fff; }
.navdrop-item.active { background: var(--accent); color: #fff; }
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #fff;
  margin-left: auto;
}
.who-link { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.bell {
  position: relative; text-decoration: none; font-size: 16px; line-height: 1; display: inline-flex;
  align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.08); transition: background-color 0.15s var(--ease);
}
.bell:hover { background: rgba(255,255,255,0.16); }
.bell-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 800;
  border-radius: 999px; min-width: 16px; height: 16px; line-height: 16px; text-align: center;
  padding: 0 3px; box-shadow: 0 0 0 2px var(--club-black);
}
.who { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.avatar {
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}
.avatar-fallback {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.linklike {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s var(--ease);
}
.linklike:hover { color: #fff; }
.inline-form { display: inline; }

/* Typography — the exercise sheet's scale, used site-wide: a tall condensed
   headline, a calm lead paragraph under it, and condensed section headings.
   Condensed type is narrow, so a headline can be genuinely large without
   crowding the page, which is what gives these pages their shape. */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  margin: 34px 0 12px;
  letter-spacing: 0;
}
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 9px;
  letter-spacing: 0;
}
h4 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 16px 0 6px; }
p { line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--muted); }
/* The line under a page title — same role, and now the same look, as the
   exercise sheet's lead paragraph. */
.subtitle { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0 0 22px; }
/* Small uppercase label above a heading ("ØVELSE 3 · SKABELON 1"). Shared
   with .drill-meta below. */
.eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

/* Cards — soft layered shadow instead of a flat border alone; this is one of
   the biggest single levers for a "modern" (vs. flat/dated) surface look. */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
/* Dashboards: a full bordered "frame" around a whole section's data area,
   distinct from the smaller inline .card used for sub-widgets inside one. */
.dashboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 4px);
  padding: 24px;
  margin: 18px 0 26px;
  box-shadow: var(--shadow-md);
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.dashboard-header h2 { margin: 0; }
.dashboard-sub { color: var(--muted); font-size: 13px; }
.dashboard .card:last-child { margin-bottom: 0; }
.dashboard-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 14px;
  font-weight: 700;
}
.dashboard-summary .muted { font-weight: 400; }

/* Publish controls: Gem som kladde / Udgiv nu / Planlæg udgivelse — shared
   across Reflektioner, Tests, Udviklingsplan and Fysisk-test resultater. */
.publish-controls { margin-top: 14px; }
.publish-controls .schedule-field { margin-bottom: 10px; }
.publish-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}
@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
/* When a .card sits directly inside a grid column its own bottom margin is
   redundant (the grid gap already spaces it) and just doubles up spacing. */
.grid-2 > .card, .grid-3 > .card { margin-bottom: 0; }

/* Shown while an AI taktik board is being drawn in the background (see
   routes/trainingplan.js) — the page reloads itself when it's ready. */
.spinner {
  width: 34px;
  height: 34px;
  margin: 6px auto 0;
  border: 3px solid var(--grid);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
}

/* Squad-group tiles on the staff Spillere page — one per group (U13-1,
   U13-2, …), clicked to open that group's own player list. Each carries its
   own colour via the --group-color custom property set inline in
   routes/coach.js, so the tiles read as distinct teams rather than as a list
   of identical rows. */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.group-card {
  --group-color: var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s var(--ease);
}
/* The colour band down the left edge is what actually identifies the team. */
.group-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--group-color);
}
.group-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 6px 16px rgba(0, 0, 0, 0.10));
  border-color: var(--group-color);
}
.group-card-badge {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--group-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.group-card-text { display: flex; flex-direction: column; min-width: 0; }
.group-card-name { font-weight: 700; font-size: 17px; color: var(--ink); }
/* One line, ellipsised — otherwise a longer note ("ikke fordelt endnu")
   wraps and that one tile grows taller than the rest of the row. */
.group-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Badge text is usually 1-2 characters, but "Alle spillere" shows the squad
   size, which can be three digits. */
.group-card-badge { font-size: 18px; }
.group-card-badge:not(:empty) { padding: 0 4px; }
.group-card-arrow {
  margin-left: auto;
  color: var(--group-color);
  font-size: 18px;
  opacity: 0.55;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}
.group-card:hover .group-card-arrow { opacity: 1; transform: translateX(2px); }

/* One column of checkboxes per group on Indstillinger → "Hvad må hver gruppe
   se?". Wider min than .group-grid because each card holds a full list of
   tab names, not a one-line summary. */
.group-visibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  align-items: start;
}

/* The "du ser dit barns side" banner uses .flash info, but the child
   switcher inside it needs a little separation from the sentence. */
.guardian-switch { margin-left: 8px; }
.guardian-switch a { color: inherit; }

/* Dashboard columns (staff Overblik + player Forside). Unlike .grid-2, each
   column here is a *stack* of independent widgets whose placement staff
   choose under Indstillinger (see lib/dashboardLayout.js) — so the two
   columns hold different numbers of boxes and must each flow on their own
   rather than lining rows up with each other. Collapses to one column on
   narrow screens, same as every other 2-column layout in the app. */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}
.dash-col { min-width: 0; }
.dash-col > .card:last-child { margin-bottom: 0; }
/* In a half-width column a long training/event title would otherwise push
   its "Åbn →" link onto its own wrapped line. Keep the action on one line
   and let the title take the slack instead. */
.dash-col .flex-between > .small-link,
.dash-col .flex-between > .btn { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 720px) {
  .dash-grid { grid-template-columns: 1fr; }
}

/* Stat tiles */
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  flex: 1;
  min-width: 110px;
  box-shadow: var(--shadow-sm);
}
.stat-value { font-size: 26px; font-weight: 800; line-height: 1.1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.stat-sub { font-size: 11px; color: var(--ink-2); margin-top: 2px; }

/* Meter / progress bar */
.meter { margin-bottom: 12px; }
.meter-label { font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; margin-bottom: 4px; }
.meter-pct { font-weight: 700; color: var(--ink); }
.meter-track { background: var(--grid); border-radius: 999px; height: 8px; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 999px; }

/* Forms — fields/buttons sized a bit larger (was 10px/12px padding, 15px
   font) so they feel comfortably tappable rather than cramped, and date/
   datetime fields get their native picker icon tinted so it doesn't look
   like a leftover default-browser element. */
label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local], input[type=time], input[type=number], input[type=url], input[type=file], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15.5px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}
textarea { min-height: 90px; resize: vertical; }
/* Tint the native date/time picker icon so it echoes the accent color
   instead of sitting there as a flat grey system-default glyph (Chromium/
   Blink-based browsers only — Safari/Firefox fall back to their own icon,
   which is a harmless no-op here). */
input[type=date]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.65;
  filter: invert(14%) sepia(85%) saturate(4500%) hue-rotate(340deg) brightness(90%);
  transition: opacity 0.15s var(--ease);
}
input[type=date]:hover::-webkit-calendar-picker-indicator,
input[type=datetime-local]:hover::-webkit-calendar-picker-indicator,
input[type=time]:hover::-webkit-calendar-picker-indicator {
  opacity: 1;
}
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.radio-row, .check-row { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; }
.radio-row input, .check-row input { width: auto; }

button, .btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid transparent;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  box-shadow: 0 1px 2px rgba(11,11,11,0.06), 0 6px 14px -6px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
button:hover, .btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(11,11,11,0.08), 0 10px 20px -8px color-mix(in srgb, var(--accent-dark) 55%, transparent); }
button:active, .btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(11,11,11,0.06); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: #cfd3cc; box-shadow: none; }
.btn-secondary:hover { background: #f3f5f1; box-shadow: none; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: var(--critical); box-shadow: 0 1px 2px rgba(11,11,11,0.06), 0 6px 14px -6px rgba(208,59,59,0.45); }
/* A thin inset top highlight reads as a subtle sheen across every solid
   button (base, danger, and — because it's an inset shadow layered
   alongside each variant's own shadow rather than a replacement — it
   survives every combination of the modifier classes above). One more
   small "this wasn't flat-2016-CSS" cue. */
button, .btn, .btn-danger { box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 1px 2px rgba(11,11,11,0.06), 0 6px 14px -6px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn-danger { box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 1px 2px rgba(11,11,11,0.06), 0 6px 14px -6px rgba(208,59,59,0.45); }
.btn-secondary { box-shadow: none; }
.btn-danger:hover { background: #b53131; box-shadow: 0 2px 4px rgba(11,11,11,0.08), 0 10px 20px -8px rgba(181,49,49,0.55); }
button[disabled]:hover, .btn[disabled]:hover { transform: none; }
button[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-family: var(--font-body); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--grid); }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 0; }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background-color 0.12s var(--ease); }
tbody tr:hover { background: var(--page); }

/* Profile card grids (Spillere, Trænerteam) — "boxes side by side", one per
   person: a large photo (or a colored initial tile when there isn't one) up
   top, then name/role/contact info below, left-aligned — closer to a modern
   "team" page than a spreadsheet row. */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.person-card {
  display: block;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.person-card,
.person-card:link,
.person-card:visited,
.person-card:hover,
.person-card:focus,
.person-card:active {
  text-decoration: none;
  color: inherit;
}
.person-card:hover, .person-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 11, 11, 0.16);
}
.person-card-photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  background: var(--page);
  overflow: hidden;
}
.person-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-card-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.person-card-photo-fallback span { color: #fff; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.person-card-body { padding: 14px 16px 16px; }
.person-card-dash { display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 9px; }
.person-card-name { font-weight: 700; font-size: 15px; line-height: 1.3; margin-bottom: 2px; }
.person-card-name .muted { font-weight: 500; font-size: 12px; }
.person-card-meta { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.person-card-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 5px;
  min-width: 0;
}
.person-card-row svg { flex: 0 0 auto; color: var(--accent); opacity: 0.85; }
.person-card-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .people-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .person-card-photo { aspect-ratio: 1 / 1; }
}

/* Pills / badges */
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.pill-pending { background: #fdecc8; color: #7a5200; }
.pill-completed { background: #d6f1d6; color: #0a5c0a; }
.pill-danger { background: #fbdada; color: #8a1f1f; }

/* Birthday banner (Forside) — see lib/birthdays.js */
.birthday-banner { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.birthday-banner-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent), color-mix(in srgb, var(--accent) 3%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: var(--shadow-sm);
}
.birthday-banner-item svg { flex: 0 0 auto; border-radius: 3px; box-shadow: 0 0 0 1px rgba(11,11,11,0.08); }

/* Flash */
.flash { padding: 11px 15px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; font-weight: 600; border-left: 3px solid transparent; }
.flash.success { background: #d6f1d6; color: #0a5c0a; border-left-color: var(--good); }
.flash.error { background: #fbdada; color: #8a1f1f; border-left-color: var(--critical); }
.flash.info { background: #dcebfa; color: #144a80; border-left-color: #2f7ac7; }

/* Auth page */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(900px 500px at 50% -10%, color-mix(in srgb, var(--accent) 25%, transparent), transparent),
    var(--club-black);
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  width: 100%;
  max-width: 380px;
  border-top: 4px solid var(--accent);
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { text-align: center; }
.auth-card .subtitle { text-align: center; }

/* Empty state */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: 10px 0; border-bottom: 1px solid var(--grid); }
.list-plain li:last-child { border-bottom: none; }

.thumb-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 2px;
}

.q-block { margin-bottom: 20px; }
.q-block .q-text { font-weight: 600; margin-bottom: 8px; }

.chart-scroll { overflow-x: auto; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 900px; }
details > summary { cursor: pointer; }

.small-link { font-size: 13px; }
.mt0 { margin-top: 0; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* Calendar agenda */
.agenda-day { margin-bottom: 18px; }
.agenda-day-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 6px; }
.agenda-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 8px;
  margin: 0 -8px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--grid);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s var(--ease);
}
.agenda-item:hover { background: var(--page); }
.agenda-item:last-child { border-bottom: none; }
.agenda-time { min-width: 52px; font-weight: 700; font-size: 13px; color: var(--ink); }
.agenda-title { font-weight: 600; }
.agenda-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Chat — Messenger/Instagram-style: avatars on the conversation list and on
   the last bubble of each consecutive run, rounded pill bubbles, sticky
   pill-shaped compose bar. */
.chat-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.chat-page-head h1 { margin-bottom: 0; }
.chat-new-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}
.chat-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s var(--ease);
}
.chat-list-item:hover { background: var(--page); }
.chat-list-item-unread .chat-list-name { font-weight: 800; }
.chat-list-item-unread .chat-list-preview span:first-child { color: var(--ink); font-weight: 600; }
.chat-list-body { min-width: 0; flex: 1; }
.chat-list-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.chat-list-name {
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-list-time { font-size: 12px; color: var(--muted); flex: 0 0 auto; }
.chat-list-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}
.chat-list-preview span:first-child {
  font-size: 13.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-list-badge {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chat-avatar-team {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--club-black), #2a2a2a);
  color: #fff;
}
.chat-avatar-stack {
  flex: 0 0 auto;
  display: flex;
  width: 46px;
  height: 46px;
  position: relative;
}
.chat-avatar-stack .avatar {
  position: absolute;
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-sm);
}
.chat-avatar-stack .avatar:nth-child(1) { left: 0; top: 0; z-index: 3; }
.chat-avatar-stack .avatar:nth-child(2) { left: 14px; top: 12px; z-index: 2; }
.chat-avatar-stack .avatar:nth-child(3) { left: 4px; top: 20px; z-index: 1; }

.chat-thread-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.chat-thread-head h1 { margin-bottom: 0; }
.chat-back-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  flex: 0 0 auto;
}
.chat-back-link:hover { color: var(--ink); }

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 14px;
  max-height: 62vh;
  overflow-y: auto;
  padding: 8px 4px;
}
.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.chat-row.chat-row-grouped { margin-top: 2px; }
.chat-row-mine { flex-direction: row-reverse; }
.chat-avatar-slot { flex: 0 0 auto; width: 30px; height: 30px; }
.chat-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 72%;
}
.chat-row-mine .chat-col { align-items: flex-end; }
.chat-sender-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  margin: 0 2px 3px;
}
.chat-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 9px 14px;
  font-size: 14.5px;
  line-height: 1.45;
  word-wrap: break-word;
  box-shadow: var(--shadow-sm);
}
.chat-bubble-mine {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-color: var(--accent-dark);
  color: #fff;
}
.chat-time { font-size: 10.5px; color: var(--muted); margin: 3px 4px 0; }
.chat-row-mine .chat-time { text-align: right; }

/* "Læst af 3 af 5" under your own messages. Deliberately small and grey:
   it's a detail you look for, not something that should compete with the
   message itself. The expander only appears in group threads (see
   readReceiptHtml in routes/chat.js). */
.chat-read {
  font-size: 10.5px;
  color: var(--muted);
  margin: 2px 4px 0;
  text-align: right;
}
.chat-read > summary {
  cursor: pointer;
  list-style: none;
  display: inline-block;
}
.chat-read > summary::-webkit-details-marker { display: none; }
.chat-read > summary::after {
  content: " ▾";
  font-size: 9px;
  opacity: 0.7;
}
.chat-read[open] > summary::after { content: " ▴"; }
.chat-read-names {
  margin-top: 4px;
  padding: 6px 8px;
  background: var(--grid);
  border-radius: 8px;
  text-align: left;
  font-size: 11px;
  line-height: 1.45;
  max-width: 320px;
  margin-left: auto;
}
.chat-read-names strong { color: var(--ink-2); font-weight: 600; }

/* Sits under a bubble whose text the word filter masked (lib/wordfilter.js).
   Deliberately quiet rather than alarming — it's a note, not a telling-off,
   and the whole team can see it. */
.chat-filtered {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 4px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-filtered::before {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: var(--filter-icon) center / contain no-repeat;
  mask: var(--filter-icon) center / contain no-repeat;
}
.chat-row-mine .chat-filtered { justify-content: flex-end; }
:root {
  --filter-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3C/svg%3E");
}

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: var(--surface);
  padding-top: 6px;
}
.chat-compose-input {
  flex: 1;
  min-height: 42px;
  max-height: 120px;
  resize: none;
  border-radius: 21px;
  padding: 10px 16px;
  line-height: 1.4;
  overflow-y: auto;
}
.chat-send-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-sm);
}
.chat-send-btn:hover { background: var(--accent-dark); transform: none; }
@media (max-width: 480px) {
  .chat-col { max-width: 82%; }
}

/* Month calendar */
.cal-widget { margin-bottom: 14px; }
.cal-mini-card .cal-widget { margin-bottom: 0; }
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cal-nav-label { font-weight: 700; font-size: 14px; text-align: center; flex: 1; }
.cal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  background: var(--grid);
  flex: 0 0 auto;
  transition: background-color 0.15s var(--ease);
}
.cal-nav-btn:hover { background: #d5d4cb; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-weekday {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding-bottom: 4px;
}
.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-size: 12px;
  background: var(--surface);
  border: 1px solid transparent;
  transition: background-color 0.15s var(--ease);
}
a.cal-day:hover { background: var(--grid); }
.cal-day-outside { color: var(--muted); opacity: 0.5; }
.cal-day-today { border-color: var(--accent); font-weight: 700; }
.cal-day-selected { background: var(--accent); color: #fff; }
.cal-day-selected .cal-day-dot { background: var(--surface); }
.cal-day-num { line-height: 1; }
.cal-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 3px;
}
.cal-widget-compact .cal-day { font-size: 11px; }
.cal-mini-card { margin-bottom: 14px; }

/* Spillestil articles — wider container so the three-column reading layout
   (table of contents / body / images) has room to breathe on desktop; still
   collapses to a single column on narrow screens (see .article-layout). */
.container-wide { max-width: 1260px; }

.article-layout {
  display: grid;
  /* Right-hand column widened from 240px: it now carries the AI
     taktiktavler, and a full pitch with 22 players needs the room to stay
     readable at a glance. */
  grid-template-columns: 200px minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
}

.article-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}
.article-toc summary { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); }
.article-toc-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.article-toc-link { font-size: 13px; color: var(--ink-2); text-decoration: none; line-height: 1.35; transition: color 0.15s var(--ease); }
.article-toc-link:hover { color: var(--accent-dark); text-decoration: underline; }
.article-toc-level-1 { font-weight: 700; margin-top: 6px; }
.article-toc-level-1:first-child { margin-top: 0; }
.article-toc-level-2 { padding-left: 12px; }
.article-toc-level-3 { padding-left: 24px; font-size: 12px; color: var(--muted); }

.article-body { min-width: 0; }
.article-body h2 { margin-top: 28px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 20px; }
.article-body h4 { margin-top: 16px; font-size: 15px; }
.article-body p { margin: 12px 0; }
.article-body ul { margin: 12px 0; padding-left: 22px; }
.article-body li { margin-bottom: 6px; }

.article-callout {
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--page);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-callout p { margin: 0; font-style: italic; color: var(--ink-2); }

.article-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.article-table-wrap table { min-width: 480px; }

.article-images { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) {
  .article-images { flex-direction: row; flex-wrap: wrap; }
  .article-image-card { width: calc(50% - 7px); }
}
.article-image-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article-image-card img { width: 100%; display: block; }
.article-image-card figcaption { padding: 8px 10px; font-size: 12px; color: var(--muted); }

/* Nyheder feed — a single-column list of rows (headline + date + a short
   teaser line), styled after b1903.dk's own front-page news list rather
   than a card grid: a small square thumbnail on the left when the post has
   a cover image, plain text otherwise. Used both on the full /nyheder feed
   and the "latest 3" teaser on both dashboards. */
.news-list { display: flex; flex-direction: column; }
.news-row {
  display: flex;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--grid);
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s var(--ease);
}
.news-list .news-row:last-child { border-bottom: none; }
.news-row:hover { background: var(--page); }
.news-row-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--page);
}
.news-row-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: 1px solid var(--border);
}
.news-row-body { min-width: 0; }
/* Default weight is a plain, already-read look; .unread (set per-viewer in
   routes/news.js's newsRowHtml, from lib/news.js's per-user read tracking)
   bolds the headline until that specific viewer has opened the article. */
.news-row-title { font-weight: 400; color: var(--ink); }
.news-row-title.unread { font-weight: 700; }
.news-row-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.news-row-teaser {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------------------------------------------------------------------
   2026 aesthetic pass, sitewide (staff + player) — the earlier pass in
   this project set up the structural building blocks (cards, shadows,
   .grid-2/.grid-3, the topbar). This pass adds the small ambient details
   that make a surface read as current rather than merely "clean": a
   soft atmospheric wash behind content instead of one flat page color,
   tinted selection/scrollbar/focus states instead of raw browser
   defaults, and a gradient accent line on dashboards. Kept subtle and
   additive on purpose — none of this touches --accent/--accent-dark/
   --club-black or any layout already in place. */

/* A very soft two-color wash instead of a flat page background — fixed
   to the viewport so it reads as atmosphere behind the content rather
   than scrolling with it. Opacity is intentionally tiny (4-5%) so it
   never competes with content or touches text contrast. */
body {
  background:
    radial-gradient(900px 480px at 10% -10%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 60%),
    radial-gradient(760px 460px at 100% 0%, rgba(11, 11, 11, 0.045), transparent 55%),
    var(--page);
  background-attachment: fixed;
}

/* Tinted text selection instead of the raw platform default blue. */
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }

/* Slim, tinted scrollbar — a small detail, but raw system scrollbars are
   one of the fastest "this looks like an old app" tells. Falls back to
   the platform default anywhere unsupported (no visual regression). */
* { scrollbar-width: thin; scrollbar-color: var(--grid) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--grid); border-radius: 999px; border: 2px solid var(--page); }
::-webkit-scrollbar-thumb:hover { background: #cbc9bf; }

/* One deliberate keyboard-focus ring, used everywhere that doesn't
   already define its own focus treatment (inputs/textarea/select keep
   their existing accent box-shadow ring from above — adding this too
   would just double up). Only shows for keyboard navigation, not mouse
   clicks, via :focus-visible. */
a:focus-visible, button:focus-visible, .btn:focus-visible,
.navlink:focus-visible, .person-card:focus-visible, .chat-list-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Dashboards get a thin gradient accent line fading the club red into
   nothing across the top edge — echoes the topbar trim without
   repeating it verbatim, and reads as more "designed" than a flat
   border alone. */
.dashboard { position: relative; overflow: hidden; }
.dashboard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 0%, transparent) 75%);
}

/* ---------------------------------------------------------------------
   Kid-friendly player theme (body.role-player, set in lib/render.js for
   every signed-in player) — the same components as the staff view, just
   rounder, a little more colorful, and a touch more playful in its
   micro-interactions, since the actual end users are ~12 years old.
   Deliberately implemented as overrides on the existing shared --radius*
   tokens plus a handful of small additions, rather than a parallel set
   of player-only components — every card/button/input/tile a player
   sees is styled by the exact same rules staff get, just re-tuned. */
body.role-player {
  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 12px;
}

/* Slightly larger, rounder, more "tappable" buttons for younger hands on
   phones — and a small bounce on hover/press instead of just a flat
   lift, which reads as more playful without being childish. */
body.role-player button, body.role-player .btn {
  padding: 12px 22px;
  border-radius: 999px;
}
body.role-player button:hover, body.role-player .btn:hover { transform: translateY(-1px) scale(1.03); }
body.role-player button:active, body.role-player .btn:active { transform: scale(0.97); }
body.role-player .btn-sm { padding: 7px 14px; }

/* Stat tiles cycle through soft tinted backgrounds instead of uniform
   white — a common "friendly dashboard" pattern for younger users, and
   an easy way to make a page of numbers feel less like a spreadsheet. */
body.role-player .stat-tile { border: none; }
body.role-player .stat-row .stat-tile:nth-child(4n+1) { background: color-mix(in srgb, var(--accent) 8%, transparent); }
body.role-player .stat-row .stat-tile:nth-child(4n+2) { background: rgba(12, 163, 12, 0.08); }
body.role-player .stat-row .stat-tile:nth-child(4n+3) { background: rgba(250, 178, 25, 0.12); }
body.role-player .stat-row .stat-tile:nth-child(4n+4) { background: rgba(11, 11, 11, 0.05); }

/* A friendlier accent ring around the player's own avatar in the topbar
   — a small "this is you" touch aimed at a younger audience. */
body.role-player .who .avatar, body.role-player .who .avatar-fallback {
  box-shadow: 0 0 0 2px var(--club-black), 0 0 0 4px var(--accent);
}

/* Person-cards (teammates, coaches) get a slightly bouncier hover than
   the staff view's more restrained lift. */
body.role-player .person-card:hover, body.role-player .person-card:focus-visible {
  transform: translateY(-3px) scale(1.015);
}

/* ------------------------------------------------------------------
   Exercise page + drill board (routes/trainingplan.js, lib/drillBoard.js)
   Session-sheet layout: condensed headline, lead, board card, sections.
   ------------------------------------------------------------------ */
.drill-page { max-width: 760px; margin: 0 auto; font-family: var(--font-body); color: var(--ink); }
.drill-back { margin: 0 0 18px; font-size: 14px; }
.drill-back a { color: var(--ink-2); text-decoration: none; }
.drill-meta { margin: 0 0 4px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.drill-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 6vw, 48px); line-height: 1.02; letter-spacing: -.01em; margin: 0 0 10px; }
.drill-lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); margin: 0 0 22px; }
.drill-sec { margin-top: 34px; }
.drill-sec h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; margin: 0 0 10px; }
.drill-sec p { font-size: 16px; line-height: 1.65; margin: 0 0 10px; }
.drill-points, .drill-steps { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.6; }
.drill-points li, .drill-steps li { margin-bottom: 8px; }
.drill-steps strong { margin-right: 4px; }
.drill-dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; margin: 0; font-size: 15px; line-height: 1.55; }
.drill-dl dt { font-weight: 700; }
.drill-dl dd { margin: 0; }
@media (max-width: 560px) { .drill-dl { grid-template-columns: 1fr; } .drill-dl dd { margin-bottom: 8px; } }
.drill-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }

.db-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); font-family: var(--font-body); }
.db-card > h3, .db-card > p.mt0, .db-card > div { padding-left: 16px; padding-right: 16px; }
.db-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px 6px; }
.db-step-n { font-family: var(--font-display); font-weight: 700; font-size: 21px; }
.db-step-title { background: #fde2e2; color: #b91c1c; font-weight: 600; font-size: 14px; padding: 4px 10px; border-radius: 6px; }
.db-tag { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 500; }
.db-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 6px 16px 12px; font-size: 13px; color: var(--ink-2); }
.db-key { display: inline-flex; align-items: center; gap: 6px; }
.db-key-disc { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid; display: inline-block; }
.db-key-ring { width: 13px; height: 13px; border-radius: 50%; border: 2.5px solid; display: inline-block; }
.db-key-coach { background: #111; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }
.db-key-cone { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 11px solid #f2662b; display: inline-block; }
.db-key-zone { width: 18px; height: 11px; border: 1.5px dashed #7cc0f5; background: #e3f2fd; border-radius: 2px; display: inline-block; }
.db-pitch { background: #2f7343; padding: 0 !important; }
.db-pitch svg { display: block; width: 100%; height: auto; }
.db-pitch-empty { aspect-ratio: 100 / 72; display: flex; align-items: center; justify-content: center; }
.db-caption { margin: 0; padding: 14px 16px 4px; font-weight: 600; font-size: 16px; min-height: 2.6em; }
.db-controls { display: flex; align-items: center; gap: 10px; padding: 8px 16px 16px; }
.db-btn { font-family: var(--font-body); font-size: 14px; font-weight: 500; background: var(--surface); color: var(--ink); border: 1px solid #cfd3cc; border-radius: 8px; padding: 7px 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.db-btn:hover { background: #f3f5f1; }
.db-bar { flex: 1; height: 5px; background: #dfe2dc; border-radius: 3px; overflow: hidden; cursor: pointer; padding: 0 !important; }
.db-bar span { display: block; height: 100%; width: 0; background: var(--ink); }
.db-clock { font-size: 13px; color: var(--muted); min-width: 34px; text-align: right; }


/* ------------------------------------------------------------------
   Spillestil: the AI taktiktavler column (routes/spillestil.js)
   ------------------------------------------------------------------ */
.article-aside { display: flex; flex-direction: column; gap: 18px; }
.phase-column { display: flex; flex-direction: column; gap: 12px; }
.phase-column-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}
.phase-group-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 6px 0 0;
}
.phase-card { margin: 0; }
.phase-card .db-card { border-radius: 10px; }
.phase-card figcaption { margin-top: 6px; font-size: 13px; line-height: 1.35; }
.phase-open { display: block; text-decoration: none; }
/* The inline board is a thumbnail: the controls and step captions belong on
   the full-size page, not squeezed into a 330px column. */
.phase-card .db-controls,
.phase-card .db-legend,
.phase-card .db-caption,
.phase-card .db-head { display: none; }
.phase-card-empty {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.phase-card-empty figcaption { margin: 0 0 8px; }
@media (max-width: 900px) {
  /* Stacked on a phone the column is full width, so the thumbnails become
     full boards — give them their controls back. */
  .phase-card .db-controls, .phase-card .db-legend, .phase-card .db-caption { display: flex; }
  .phase-card .db-caption { display: block; }
}

/* ---- Test-resultat: bestået / ikke bestået ------------------------------ */
/* The box a player sees the moment they hand in a test. Deliberately the
   loudest thing on the page: one glance should say whether it went well. */
.test-result { border-radius: var(--radius); padding: 22px 18px; text-align: center; border: 2px solid; margin-bottom: 14px; }
.test-result.pass { background: #e8f7e8; border-color: #2e7d32; color: #0a5c0a; }
.test-result.fail { background: #fdeaea; border-color: #c62828; color: #8a1f1f; }
.test-result .test-verdict { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 2px; }
.test-result .test-score { font-size: 19px; font-weight: 700; margin: 0; }
.test-result .test-sub { margin: 6px 0 0; font-size: 14px; opacity: .85; }
@media (max-width: 480px) { .test-result .test-verdict { font-size: 27px; } }

/* Reflicker: afkrydsningslinje i admin-formularerne (fx "Skjult testbruger") */
.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 2px;
  font-weight: 600;
  cursor: pointer;
}
.check-line input[type="checkbox"] { width: 18px; height: 18px; margin: 0; cursor: pointer; }

/* Farvevælger med hex-felt ved siden af */
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type="color"] { width: 64px; height: 44px; padding: 4px; cursor: pointer; flex: none; }
.color-row .color-text { flex: 1; min-width: 0; }

/* Reflicker: mærket på en skjult profil, som klubben selv ikke kan se */
.pill-hidden {
  background: #E8EAED;
  color: #41464E;
  border: 1px solid #D4D8DD;
}

/* Den faste dagsorden i spillersamtalen, og forslagene til fokuspunkter */
ol.dagsorden { margin: 8px 0 14px; padding-left: 22px; }
ol.dagsorden li { margin-bottom: 7px; line-height: 1.45; }
ol.dagsorden li::marker { color: var(--accent); font-weight: 600; }

/* =====================================================================
   Reflickers administrationscenter (/reflicker/...) og supporten (/support)
   Alt herunder er nyt og har eget præfiks (rf-, sc-, support-bubble), så
   det ikke kan ændre noget på klubbernes egne sider.
   ===================================================================== */
input:not([type]), input[type=search], input[type=tel] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15.5px; font-family: inherit; background: var(--surface); color: var(--ink);
}
.nav-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 999px; background: #e8be98; color: #2a1a06; font-size: 11px; font-weight: 700; line-height: 1;
}

.rf-admin { --rf-ok: #0a7a3a; --rf-warn: #9a6400; --rf-bad: #b42828; }
.rf-admin h1 { margin-bottom: 6px; }
.rf-admin label { font-weight: 600; }
.rf-admin label > input, .rf-admin label > select { margin-top: 6px; font-weight: 400; }
.rf-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; }
.rf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.rf-head .subtitle { margin-bottom: 0; }
.rf-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rf-head-actions .inline-form { margin: 0; }
.rf-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.rf-card-head a { font-size: 14px; font-weight: 600; color: var(--accent); }
.rf-note { font-size: 13px; margin: 10px 0 0; }
.rf-small { display: block; font-size: 12px; margin-top: 2px; }

.rf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rf-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.rf-tile-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.rf-tile-label { font-size: 13px; font-weight: 600; margin-top: 4px; }
.rf-tile-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.rf-tile-warn { border-color: #f0d49a; background: #fffaf0; }
.rf-tile-bad { border-color: #f1b9b9; background: #fff6f6; }

.rf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rf-grid-2 > .card { margin-bottom: 14px; }
@media (max-width: 900px) { .rf-grid-2 { grid-template-columns: 1fr; } }

.rf-todos { display: flex; flex-direction: column; gap: 6px; }
.rf-todo { display: block; padding: 10px 12px 10px 14px; border-radius: 10px; background: var(--page); color: var(--ink); text-decoration: none; font-size: 14.5px; border-left: 3px solid var(--muted); }
.rf-todo:hover { background: var(--grid); }
.rf-todo-support { border-left-color: var(--accent); }
.rf-todo-lead { border-left-color: #2f7d4f; }
.rf-todo-club { border-left-color: var(--rf-bad); }
.rf-todo-sec { border-left-color: var(--rf-warn); }

.rf-table td, .rf-table th { vertical-align: middle; }
.rf-table tr.rf-row-quiet td { color: var(--muted); }
.rf-msg { max-width: 280px; font-size: 13.5px; white-space: pre-wrap; }
.rf-scroll-y { max-height: 420px; overflow: auto; }
.rf-club-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 2px rgba(0,0,0,.05); }

.rf-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rf-pill-ok { background: #dcf2e3; color: var(--rf-ok); }
.rf-pill-warn { background: #fcefd2; color: var(--rf-warn); }
.rf-pill-bad { background: #fbe0e0; color: var(--rf-bad); }
.rf-pill-info { background: #e3ecfb; color: #234a8a; }
.rf-pill-muted { background: var(--grid); color: var(--ink-2); }

.rf-meter { position: relative; height: 22px; background: var(--grid); border-radius: 6px; overflow: hidden; min-width: 90px; }
.rf-meter-fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; }
.rf-meter-ok { background: #9fd8b1; } .rf-meter-warn { background: #f3d38f; } .rf-meter-bad { background: #f0aaaa; }
.rf-meter span { position: relative; display: block; padding: 0 8px; font-size: 12px; font-weight: 700; line-height: 22px; font-variant-numeric: tabular-nums; }

.rf-seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; gap: 2px; }
.rf-seg a { padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.rf-seg a.on { background: var(--accent); color: #fff; }

.rf-chart svg { display: block; overflow: visible; }
.rf-bar-all { fill: #e6c9a6; }
.rf-bar-players { fill: var(--accent); }
.rf-axis { stroke: var(--border); }
.rf-axis-label { font-size: 11px; fill: var(--muted); }
.rf-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
.rf-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.rf-dot-players { background: var(--accent); } .rf-dot-all { background: #e6c9a6; }

.rf-features { display: flex; flex-direction: column; gap: 6px; }
.rf-feature { display: grid; grid-template-columns: 150px 1fr 52px; align-items: center; gap: 10px; font-size: 14px; }
.rf-feature b { text-align: right; font-variant-numeric: tabular-nums; }
.rf-stack { display: flex; height: 14px; background: var(--grid); border-radius: 4px; overflow: hidden; }
.rf-stack i { display: block; height: 100%; }
.s1 { background: var(--accent); } .s2 { background: #3e6e8e; } .s3 { background: #e6c9a6; }

.rf-kv { list-style: none; margin: 0; padding: 0; }
.rf-kv li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--grid); font-size: 14.5px; }
.rf-kv li:first-child { border-top: 0; }
.rf-kv b { font-variant-numeric: tabular-nums; }

.rf-log { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.rf-log li { padding: 7px 0; border-top: 1px solid var(--grid); }
.rf-log li:first-child { border-top: 0; }

.rf-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 900px) { .rf-checks { grid-template-columns: 1fr; } }
.rf-check { position: relative; padding: 12px 14px 12px 42px; border-radius: 10px; background: var(--page); font-size: 14px; }
.rf-check b { display: block; margin-bottom: 2px; }
.rf-check span { color: var(--ink-2); }
.rf-check::before { position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.rf-check.ok::before { content: "✓"; background: var(--rf-ok); }
.rf-check.warn::before { content: "!"; background: var(--rf-warn); }
.rf-check.bad::before { content: "!"; background: var(--rf-bad); }

.rf-steps { padding-left: 20px; font-size: 14.5px; }
.rf-steps li { margin-bottom: 4px; }
.rf-secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 17px; letter-spacing: .06em; padding: 12px 14px; border-radius: 10px; background: var(--page); border: 1px dashed var(--border); word-break: break-all; }
.rf-form-tight label:first-child { margin-top: 0; }
.rf-form-tight button { margin-top: 12px; }
.rf-form-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.rf-form-inline input, .rf-form-inline select { width: auto; flex: 1 1 140px; padding: 8px 10px; font-size: 14px; }
.rf-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; margin-bottom: 14px; }
.rf-status-line { font-size: 14.5px; }
.rf-status-line code { font-size: 13px; background: var(--page); padding: 2px 6px; border-radius: 5px; }

/* --------------------------------------------------- supportknap og chat */
.support-bubble {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: 999px; background: var(--club-black); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); transition: transform .15s var(--ease);
}
.support-bubble:hover { transform: translateY(-2px); color: #fff; }
.support-bubble-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; }
@media print { .support-bubble { display: none; } }

.sc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 860px) { .sc-wrap { grid-template-columns: 1fr; } }
.sc-list { display: flex; flex-direction: column; }
.sc-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 6px; border-top: 1px solid var(--grid); color: var(--ink); text-decoration: none; }
.sc-item:first-child { border-top: 0; }
.sc-item:hover { background: var(--page); }
.sc-item b { font-size: 15px; display: flex; align-items: center; }
.sc-item .muted { grid-column: 1 / -1; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-when { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.sc-unread b { color: var(--accent); }
.sc-dot { grid-row: 1; grid-column: 2; justify-self: end; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.sc-chat { padding: 0; overflow: hidden; }
.sc-log { height: min(58vh, 560px); overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--page); }
.sc-msg { max-width: 76%; display: flex; flex-direction: column; }
.sc-mine { align-self: flex-end; align-items: flex-end; }
.sc-theirs { align-self: flex-start; }
.sc-bubble { padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: normal; word-wrap: break-word; overflow-wrap: anywhere; }
.sc-mine .sc-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.sc-theirs .sc-bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.sc-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; padding: 0 4px; }
.sc-compose { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); align-items: flex-end; }
.sc-compose textarea { min-height: 46px; max-height: 180px; margin: 0; }
.sc-compose button { flex: none; }

/* ------------------------------------------------ Reflickers udseende
   Poppins står bredere end den gamle smalle overskriftsskrift, så de største
   overskrifter er skruet en anelse ned og vægten sat til 600. */
h1, h2, h3, h4, .brand, .drill-title, .test-result .test-verdict { font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 4.2vw, 36px); line-height: 1.15; }
.card { border-radius: var(--radius); }
.stat-value { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.app-footer { max-width: 1180px; margin: 0 auto; padding: 8px 16px 40px; display: flex; justify-content: center; }
.app-footer a { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.app-footer a:hover { color: var(--ink); }
.app-footer img { width: 18px; height: 18px; }
h2 { font-size: 22px; } h3 { font-size: 18px; }


/* =====================================================================
   Reflickers mørke udseende — det samme som reflicker.dk
   Mørke flader, Poppins/Inter, runde pille-knapper og bløde kort. Klubbens
   egen farve sidder stadig på knapper, links og aktive faner på klubbens
   sider; på Reflickers egne sider (login, administrationscenter) er det
   Reflickers amber.
   ===================================================================== */
:root {
  color-scheme: dark;
  --page: #141416;
  --surface: #1f1f23;
  --panel2: #26262b;
  --field: #1a1a1d;
  --ink: #f4f1ec;
  --ink-2: #d6d2cb;
  --muted: #a39e96;
  --grid: #2a2a30;
  --border: #2e2e34;
  --border-strong: #3a3a41;
  --good: #4fbf7a;
  --warning: #e8b04b;
  --critical: #ff7a8a;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --on-accent: #fff;
  --link: color-mix(in srgb, var(--accent) 55%, #ffffff);
  --shadow-sm: none;
  --shadow-md: 0 20px 40px -14px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
html, body { background: var(--page); color: var(--ink); font-size: 16px; }
body::before {
  content: ""; position: fixed; width: 900px; height: 900px; right: -320px; top: -420px; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%);
}
a { color: var(--link); }
a:hover { color: var(--ink); }
p { color: var(--ink-2); }
.subtitle, .muted { color: var(--muted); }
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); color: #fff; }

/* Topbjælken: glas som på reflicker.dk */
.topbar {
  background: color-mix(in srgb, var(--club-black) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: none; border-bottom: 1px solid var(--border);
}
.navlink { border-radius: 999px; color: var(--muted); font-weight: 500; }
.navlink:not(.active):hover { color: #fff; background: rgba(255,255,255,0.06); }
.navlink.active { color: var(--on-accent); box-shadow: none; }
.navdrop-menu { background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); border-radius: 14px; }
.navdrop-item { color: var(--ink-2); }
.navdrop-item:hover, .navdrop-item.active { background: var(--panel2); color: var(--ink); }

/* Kort */
.card, .dashboard, .stat-tile, .rf-tile, .person-card, .auth-card {
  background: var(--surface); border: 1px solid var(--border); box-shadow: none;
}
.card { border-radius: var(--radius); padding: 22px; }
.card:hover { border-color: #47474f; }
.stat-tile, .rf-tile { border-radius: 16px; }
h1, h2, h3, h4 { color: var(--ink); }
h1 { font-size: clamp(30px, 4.4vw, 42px); letter-spacing: -0.02em; }

/* Knapper som piller */
button, .btn { border-radius: 999px; box-shadow: none; font-weight: 600; padding-left: 20px; padding-right: 20px; }
button:hover, .btn:hover { box-shadow: none; }
.btn-sm { padding: 6px 14px; }
.btn-secondary, .db-btn { background: transparent; color: var(--ink); border: 1px solid var(--border-strong); box-shadow: none; }
.btn-secondary:hover, .db-btn:hover { background: transparent; border-color: #e8be98; color: var(--ink); box-shadow: none; }
.btn-danger { background: #c23a4a; color: #fff; box-shadow: none; }
.btn-danger:hover { background: #a92f3e; }
.linklike { color: var(--muted); }

/* Felter */
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local],
input[type=time], input[type=number], input[type=url], input[type=file], input[type=search], input[type=tel],
input:not([type]), textarea, select {
  background: var(--field); border: 1px solid var(--border-strong); color: var(--ink); border-radius: 12px;
}
input::placeholder, textarea::placeholder { color: #6f6a64; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
select option { background: var(--surface); color: var(--ink); }
input[type=date]::-webkit-calendar-picker-indicator, input[type=datetime-local]::-webkit-calendar-picker-indicator,
input[type=time]::-webkit-calendar-picker-indicator { filter: invert(0.85); }

/* Tabeller */
th { color: var(--muted); }
td, th { border-color: var(--border) !important; }
tr:hover td { background: transparent; }

/* Status: mørke, gennemsigtige felter i stedet for lyse */
.pill-pending { background: rgba(232,176,75,0.15); color: #f0c879; }
.pill-completed { background: rgba(79,191,122,0.15); color: #7fd69c; }
.pill-danger { background: rgba(255,122,138,0.14); color: #ff9aa6; }
.flash.success { background: rgba(79,191,122,0.12); color: #8fe0aa; }
.flash.error { background: rgba(255,122,138,0.12); color: #ffa3ae; }
.flash.info { background: rgba(110,160,230,0.12); color: #a9c8f5; }
.test-result.pass { background: rgba(79,191,122,0.12); color: #8fe0aa; }
.test-result.fail { background: rgba(255,122,138,0.12); color: #ffa3ae; }
.db-step-title { background: rgba(255,122,138,0.14); color: #ff9aa6; }
.db-key-zone { background: rgba(124,192,245,0.15); }
.db-bar { background: var(--grid); }
.cal-nav-btn:hover { background: var(--panel2); }
::-webkit-scrollbar-thumb { background: #3a3a41; }
::-webkit-scrollbar-thumb:hover { background: #4a4a52; }

/* Administrationscentret */
.rf-admin { --rf-ok: #7fd69c; --rf-warn: #f0c879; --rf-bad: #ff9aa6; }
.rf-tile-warn { border-color: rgba(232,176,75,0.4); background: rgba(232,176,75,0.07); }
.rf-tile-bad { border-color: rgba(255,122,138,0.4); background: rgba(255,122,138,0.07); }
.rf-pill-ok { background: rgba(79,191,122,0.15); } .rf-pill-warn { background: rgba(232,176,75,0.15); }
.rf-pill-bad { background: rgba(255,122,138,0.14); } .rf-pill-info { background: rgba(110,160,230,0.15); color: #a9c8f5; }
.rf-pill-muted { background: var(--panel2); color: var(--muted); }
.rf-meter { background: var(--panel2); }
.rf-meter-ok { background: rgba(79,191,122,0.55); } .rf-meter-warn { background: rgba(232,176,75,0.55); } .rf-meter-bad { background: rgba(255,122,138,0.5); }
.rf-bar-all, .rf-dot-all, .s3 { fill: #6b5a45; background: #6b5a45; }
.s2 { background: #5f8fb0; }
.rf-todo { background: var(--panel2); }
.rf-todo:hover { background: #2e2e34; }
.rf-check { background: var(--panel2); }
.rf-secret, .rf-status-line code { background: var(--field); }
.rf-seg { background: var(--surface); border-color: var(--border-strong); }
.rf-seg a.on { color: var(--on-accent); }
.nav-badge { background: #e8be98; color: #160f05; }

/* Supporten */
.sc-log { background: var(--field); }
.sc-theirs .sc-bubble { background: var(--panel2); border-color: var(--border-strong); color: var(--ink); }
.sc-mine .sc-bubble { color: var(--on-accent); }
.sc-item:hover { background: var(--panel2); }
.sc-compose { background: var(--surface); }
.support-bubble { background: var(--surface); border: 1px solid var(--border-strong); color: var(--ink); }
.support-bubble:hover { color: var(--ink); border-color: #e8be98; }
.app-footer a { color: var(--muted); }

.rf-eyebrow, .rf-card-head a { color: var(--link); }
.rf-admin a:not(.btn):not(.rf-todo):not(.sc-item) { color: var(--link); }

/* Båndet, når Reflicker er inde i en klubs app som usynlig administrator */
.ghost-bar {
  position: relative; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  padding: 8px 16px; background: #C8821F; color: #160f05; font-size: 14px; font-weight: 500;
}
.ghost-bar img { vertical-align: -3px; margin-right: 4px; }
.ghost-bar .btn { background: #141416; color: #f4f1ec; padding: 6px 14px; }
.ghost-bar .btn:hover { background: #000; }
