/* Karträknare — ljus orienteringstema.
   Färgerna är lånade från kartan: kartpapper, skogsgrönt, övertrycksmagenta,
   kurvbrunt och vattenblått. */

:root {
  /* Grund */
  --paper: #f6f4ec;
  --paper-2: #efece1;
  --surface: #ffffff;
  --ink: #1b2016;
  --ink-2: #3c4436;
  --muted: #6d7568;
  --line: #ddd8c8;
  --line-strong: #c6c0ac;

  /* Kartfärger */
  --forest: #2f6b3c;
  --forest-dark: #1e4526;
  --forest-light: #e6efe4;
  --overprint: #d6006e;
  --overprint-light: #fde5f0;
  --contour: #b0672c;
  --contour-light: #f7ead9;
  --water: #63aecf;
  --water-light: #e3f2f8;
  --open: #fbe66a;

  /* Nivåer */
  --ok: #2f8f4e;
  --ok-bg: #e7f5ea;
  --warn: #b97407;
  --warn-bg: #fdf1dc;
  --crit: #c22d2d;
  --crit-bg: #fbe6e6;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(27, 32, 22, .06), 0 4px 16px rgba(27, 32, 22, .05);
  --shadow-lg: 0 2px 6px rgba(27, 32, 22, .08), 0 12px 32px rgba(27, 32, 22, .10);
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, var(--forest-light) 0%, transparent 45%),
    radial-gradient(circle at 100% 0%, var(--water-light) 0%, transparent 40%),
    var(--paper);
  background-attachment: fixed;
  font-size: 15px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--forest); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 650; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
small { font-size: .8rem; }
code, .mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -.02em;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand .mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: #fff;
  flex: 0 0 auto;
}
.brand .mark svg { display: block; }

.comp-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.comp-meta .name {
  font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 42ch;
}
.comp-meta .sub { color: var(--muted); font-size: .78rem; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Livepuls */
.live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.live .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 0 rgba(47, 143, 78, .5);
}
.live[data-conn="live"] .dot { background: var(--ok); animation: pulse 2.4s infinite; }
.live[data-conn="polling"] .dot { background: var(--water); }
.live[data-conn="down"] .dot { background: var(--crit); }
.live[data-conn="stale"] .dot { background: var(--warn); }
.live[data-conn="paused"] .dot { background: var(--line-strong); }
.live[data-conn="demo"] .dot { background: var(--overprint); }
.live .clock { font-family: var(--mono); color: var(--muted); font-weight: 500; }
.live .flash-on { animation: flashbg .8s ease-out; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 143, 78, .45); }
  70% { box-shadow: 0 0 0 7px rgba(47, 143, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 143, 78, 0); }
}
@keyframes flashbg {
  from { background: var(--forest-light); }
  to { background: transparent; }
}

/* ---------------------------------------------------------------- nav */
.nav {
  display: flex;
  gap: 2px;
  padding: 0 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .72);
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 9px 13px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: .87rem;
  font-weight: 600;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.nav a:hover { color: var(--forest); background: rgba(47, 107, 60, .05); }
.nav a.active { color: var(--forest-dark); border-bottom-color: var(--overprint); }
.nav a .pill {
  font-size: .7rem; font-weight: 700;
  padding: 1px 6px; border-radius: 999px;
  background: var(--crit-bg); color: var(--crit);
}
.nav a .pill.warn { background: var(--warn-bg); color: var(--warn); }

/* --------------------------------------------------------------- main */
main { padding: 18px; max-width: 1800px; margin: 0 auto; }
main.wide { max-width: none; }

.page-head {
  display: flex; align-items: flex-end; gap: 14px;
  flex-wrap: wrap; margin-bottom: 16px;
}
.page-head .lead { color: var(--muted); font-size: .9rem; margin: 0; }
.page-head .spacer { margin-left: auto; }

/* ------------------------------------------------------------- knappar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit; font-size: .87rem; font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: var(--paper-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--forest); border-color: var(--forest-dark); color: #fff;
}
.btn-primary:hover { background: var(--forest-dark); }
.btn-magenta { background: var(--overprint); border-color: #a80057; color: #fff; }
.btn-magenta:hover { background: #a80057; }
.btn-danger { color: var(--crit); border-color: #e2b7b7; background: #fff; }
.btn-danger:hover { background: var(--crit-bg); border-color: var(--crit); }
.btn-sm { padding: 4px 9px; font-size: .78rem; }
.btn-icon { padding: 6px 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------ formulär */
label { font-size: .82rem; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 3px; }
label .hint { font-weight: 400; color: var(--muted); }
/* Fristående hjälptext, t.ex. statusraden under tävlingsnamnet. */
.hint {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
  min-height: 1.15em;   /* håller höjden så fältet inte hoppar */
}
label .hint { display: inline; margin-top: 0; min-height: 0; }
input[type=text], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit; font-size: .9rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(47, 107, 60, .35);
  outline-offset: 1px;
  border-color: var(--forest);
}
input[type=number] { font-family: var(--mono); }
textarea { resize: vertical; min-height: 70px; }
.field { margin-bottom: 12px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.field-row > .field { flex: 1 1 140px; margin-bottom: 0; }
.w-90 { max-width: 90px; }
.w-140 { max-width: 140px; }

/* --------------------------------------------------------------- kort */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}
.card > h2, .card > h3 { display: flex; align-items: center; gap: 8px; }
.card-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.card-head .spacer { margin-left: auto; }
.card-sub { color: var(--muted); font-size: .84rem; margin: -6px 0 12px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* --------------------------------------------------------- KPI-brickor */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.kpi .k-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.kpi .k-value {
  font-family: var(--mono); font-size: 2rem; font-weight: 700;
  line-height: 1.1; letter-spacing: -.02em;
}
.kpi .k-sub { font-size: .78rem; color: var(--muted); }
.kpi.ok { border-left-color: var(--ok); }
.kpi.warn { border-left-color: var(--warn); background: linear-gradient(180deg, var(--warn-bg), var(--surface) 60%); }
.kpi.crit { border-left-color: var(--crit); background: linear-gradient(180deg, var(--crit-bg), var(--surface) 60%); }
.kpi.magenta { border-left-color: var(--overprint); }
.kpi.water { border-left-color: var(--water); }
.kpi.contour { border-left-color: var(--contour); }
.kpi .k-value.ok { color: var(--ok); }
.kpi .k-value.warn { color: var(--warn); }
.kpi .k-value.crit { color: var(--crit); }

/* ---------------------------------------------------------- varningar */
.banners { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .9rem;
}
.banner .ico { flex: 0 0 auto; font-size: 1rem; }
.banner .txt { flex: 1 1 auto; }
.banner .act {
  flex: 0 0 auto;
  font-weight: 700; text-decoration: none; font-size: .82rem;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid currentColor;
}
.banner.crit { background: var(--crit-bg); border-color: #eec4c4; color: #8c1f1f; }
.banner.crit .act { color: var(--crit); }
.banner.warn { background: var(--warn-bg); border-color: #eddcb8; color: #7d4f05; }
.banner.warn .act { color: var(--warn); }
.banner.ok { background: var(--ok-bg); border-color: #c9e6d2; color: #1f6b39; }
.banner.info { background: var(--water-light); border-color: #c6e2ee; color: #1c5570; }
.banner.error { background: var(--crit-bg); border-color: #eec4c4; color: #8c1f1f; }

/* -------------------------------------------------------- banor: kort */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}
.course {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 15px 12px;
  position: relative;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.course:hover { box-shadow: var(--shadow-lg); }
.course::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: var(--ok);
}
.course.warn::before { background: var(--warn); }
.course.crit::before { background: var(--crit); }
.course.crit { background: linear-gradient(115deg, var(--crit-bg) 0%, var(--surface) 55%); }
.course.warn { background: linear-gradient(115deg, var(--warn-bg) 0%, var(--surface) 55%); }

.course .c-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.course .c-name {
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em;
  text-decoration: none; color: var(--ink);
}
.course .c-name:hover { color: var(--forest); }
.course .c-margin {
  margin-left: auto; text-align: right; flex: 0 0 auto;
  font-family: var(--mono); font-weight: 700; font-size: 1.55rem; line-height: 1;
  padding: 4px 10px; border-radius: var(--radius-sm);
}
.course .c-margin small { display: block; font-family: var(--sans); font-size: .62rem;
  letter-spacing: .07em; text-transform: uppercase; font-weight: 700; opacity: .75; }
.m-ok { color: var(--ok); background: var(--ok-bg); }
.m-warn { color: var(--warn); background: var(--warn-bg); }
.m-crit { color: var(--crit); background: var(--crit-bg); }

.course .c-nums {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; margin-bottom: 10px;
}
.course .c-nums div { text-align: center; padding: 5px 2px; border-radius: 6px; background: var(--paper); }
.course .c-nums .n { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; display: block; }
.course .c-nums .l {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700;
}

.bar {
  height: 12px; border-radius: 6px; overflow: hidden;
  background: var(--paper-2); display: flex; margin-bottom: 8px;
  border: 1px solid var(--line);
}
.bar span { display: block; height: 100%; }
.bar .b-taken { background: var(--overprint); }
.bar .b-waiting { background: repeating-linear-gradient(45deg, var(--water) 0 5px, #8fc6de 5px 10px); }
.bar .b-spare { background: var(--forest-light); }
.bar .b-short { background: var(--crit); }

.course .c-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .78rem; color: var(--muted);
}
.course .c-foot .spacer { margin-left: auto; }
.eta { font-weight: 700; }
.eta.crit { color: var(--crit); }
.eta.warn { color: var(--warn); }
.eta.ok { color: var(--ok); }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .7rem; font-weight: 700; letter-spacing: .03em;
  padding: 2px 7px; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.tag.manual { background: var(--contour-light); color: #7d4610; border-color: #e6cfb2; }
.tag.magenta { background: var(--overprint-light); color: #9c0050; border-color: #f4c3da; }
.tag.crit { background: var(--crit-bg); color: var(--crit); border-color: #eec4c4; }
.tag.warn { background: var(--warn-bg); color: var(--warn); border-color: #eddcb8; }
.tag.ok { background: var(--ok-bg); color: var(--ok); border-color: #c9e6d2; }
.tag.water { background: var(--water-light); color: #1c5570; border-color: #c6e2ee; }

.sparkline { display: block; width: 100%; height: 34px; }

/* -------------------------------------------------------------- tabell */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 8px 11px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700; background: var(--paper);
  position: sticky; top: 0; z-index: 1;
}
tbody tr:hover { background: rgba(47, 107, 60, .035); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
tr.row-crit { background: var(--crit-bg); }
tr.row-warn { background: var(--warn-bg); }
tr.row-muted td { color: var(--muted); }
.cell-ok { color: var(--ok); font-weight: 700; }
.cell-warn { color: var(--warn); font-weight: 700; }
.cell-crit { color: var(--crit); font-weight: 700; }

/* -------------------------------------------------------------- grafer */
.chart-card { padding: 14px 16px 8px; }
.chart-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.chart-head h3 { margin: 0; }
.chart-head .spacer { margin-left: auto; }
.chart { width: 100%; display: block; }
.chart-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  font-size: .78rem; color: var(--ink-2); margin-top: 6px;
}
.chart-legend i {
  width: 11px; height: 11px; border-radius: 3px; display: inline-block;
  margin-right: 5px; vertical-align: -1px;
}
.chart-empty {
  display: grid; place-items: center; height: 160px;
  color: var(--muted); font-size: .88rem; text-align: center;
  border: 1px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper);
}
.chart svg text { font-family: var(--sans); }

/* --------------------------------------------------------- storbild */
body.kiosk {
  background: var(--paper);
}
body.kiosk .display-wrap { padding: 20px 24px; }
.display-head {
  display: flex; align-items: center; gap: 18px; margin-bottom: 14px;
}
.display-head h1 { font-size: clamp(1.4rem, 2.4vw, 2.4rem); margin: 0; }
.display-head .sub { color: var(--muted); font-size: clamp(.8rem, 1.1vw, 1.1rem); }
.display-head .spacer { margin-left: auto; }
.display-clock {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 3.4rem); line-height: 1;
}
.display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(260px, 22vw, 460px), 1fr));
  gap: clamp(10px, 1vw, 18px);
}
.dcard {
  background: var(--surface); border: 2px solid var(--line);
  border-radius: 14px; padding: clamp(10px, 1.1vw, 20px);
  box-shadow: var(--shadow);
}
.dcard.warn { border-color: var(--warn); background: var(--warn-bg); }
.dcard.crit { border-color: var(--crit); background: var(--crit-bg); }
.dcard .d-name {
  font-weight: 750; font-size: clamp(1rem, 1.5vw, 1.7rem);
  margin-bottom: 4px; letter-spacing: -.01em;
}
.dcard .d-margin {
  font-family: var(--mono); font-weight: 800; line-height: .95;
  font-size: clamp(2.6rem, 6.5vw, 6.5rem);
}
.dcard .d-margin.ok { color: var(--ok); }
.dcard .d-margin.warn { color: var(--warn); }
.dcard .d-margin.crit { color: var(--crit); }
.dcard .d-row {
  display: flex; gap: clamp(8px, 1vw, 20px); flex-wrap: wrap;
  font-family: var(--mono); font-size: clamp(.8rem, 1.15vw, 1.25rem);
  color: var(--ink-2); margin-top: 4px;
}
.dcard .d-row b { font-weight: 700; }
.dcard .d-eta { font-size: clamp(.78rem, 1vw, 1.1rem); font-weight: 700; margin-top: 6px; }

/* Varningar på storbilden: läsbara på avstånd, och de tonar in när de dyker
   upp så man ser att något hänt utan att stirra på skärmen. */
.display-banner {
  font-size: clamp(.95rem, 1.5vw, 1.6rem);
  padding: clamp(8px, 1vw, 16px) clamp(12px, 1.2vw, 22px);
  border-width: 2px;
  font-weight: 600;
  animation: banner-in .35s ease-out;
}
.display-banner .ico { font-size: clamp(1.1rem, 1.7vw, 1.9rem); }
#display-warnings:empty { display: none; }

@keyframes banner-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------- misc */
.muted { color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sep { height: 1px; background: var(--line); margin: 14px 0; border: 0; }
.hidden { display: none !important; }
.scroll-y { max-height: 380px; overflow-y: auto; }
.pre {
  font-family: var(--mono); font-size: .78rem; white-space: pre-wrap;
  word-break: break-all; background: var(--paper); padding: 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  max-height: 320px; overflow: auto;
}
details summary { cursor: pointer; font-weight: 600; font-size: .88rem; padding: 4px 0; }
details[open] summary { margin-bottom: 8px; }
.checkbox-inline { display: flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; }
.checkbox-inline input { width: auto; }
.progress-track {
  height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden;
  border: 1px solid var(--line);
}
.progress-track span { display: block; height: 100%; background: var(--overprint); }

.legend-status { display: flex; gap: 10px; flex-wrap: wrap; font-size: .78rem; }

/* ------------------------------------------------------------ mobilt */
@media (max-width: 760px) {
  body { font-size: 15px; }
  main { padding: 12px; }
  .topbar-inner { padding: 8px 12px; gap: 8px; }
  .comp-meta { border-left: 0; padding-left: 0; flex-basis: 100%; order: 3; }
  .comp-meta .name { max-width: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi { padding: 9px 11px; }
  .kpi .k-value { font-size: 1.6rem; }
  .course-grid { grid-template-columns: 1fr; gap: 10px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .course .c-margin { font-size: 1.35rem; }
  .page-head { margin-bottom: 10px; }
  .page-head .spacer { margin-left: 0; flex-basis: 100%; }
  th, td { padding: 7px 8px; }
  .hide-sm { display: none !important; }
  .display-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .course .c-nums { grid-template-columns: repeat(2, 1fr); }
}

/* Fullskärm */
:fullscreen main, :fullscreen .display-wrap { max-width: none; }
:fullscreen .topbar, :fullscreen .nav { display: none; }
body.fs-hide-chrome .topbar, body.fs-hide-chrome .nav { display: none; }

/* Siffra som just ändrats blinkar kort, så man ser att livedatan rör sig. */
.just-changed { animation: changed 1.1s ease-out; }
@keyframes changed {
  0% { background: var(--overprint-light); box-shadow: 0 0 0 3px var(--overprint-light); }
  100% { background: transparent; box-shadow: 0 0 0 3px transparent; }
}

tr.row-ok { background: var(--ok-bg); }

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