* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Calm — warm neutral */
  --a-bg: oklch(0.985 0.005 85);
  --a-surface: #ffffff;
  --a-surface-2: oklch(0.975 0.006 85);
  --a-border: oklch(0.92 0.008 85);
  --a-border-strong: oklch(0.86 0.01 85);
  --a-text: oklch(0.22 0.015 250);
  --a-text-dim: oklch(0.55 0.02 250);
  --a-text-faint: oklch(0.72 0.015 250);
  --a-orange: oklch(0.68 0.17 55);
  --a-indigo: oklch(0.55 0.2 275);
  --a-blue:   oklch(0.62 0.17 240);
  --a-green:  oklch(0.66 0.15 155);
  --a-red:    oklch(0.62 0.2 25);
  --a-violet: oklch(0.6 0.18 305);
  --a-amber:  oklch(0.78 0.15 85);

  --bga-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'><g fill='black'><rect x='48.5' y='58.1' width='383.8' height='38.4'/><polygon points='48.5,403.5 182.8,403.5 168,441.9 48.5,441.9'/><path d='M322.9,173.2h61.4l-0.3,31.7c-10,9-28.6,17.6-49.7,17.6c-41.8,0-72.1-32.1-72.1-75.6c0-4.2,0.5-8.1,1.1-12.1h-50.9c-0.3,3.9-0.6,8-0.6,12.1c0,72.5,55.2,119.4,122.5,119.4c41.8,0,74.5-17.3,98-43.5v-88H322.6L322.9,173.2z'/><polygon points='400.4,309.3 352,309.3 370.1,359.9 294,359.9 312.3,309.3 263.9,309.3 212.6,441.9 266.4,441.9 280.9,402.2 383.6,402.2 398.1,441.9 451.5,441.9'/><path d='M146.6,246.3c21.7-4.5,39.7-23.8,39.7-52.8c0-30.7-22.4-58.7-66.3-58.7H48.5v38.4h57.6c16.6,0,30.1,14.4,30.1,28.6c0,14.8-13.6,29-30.1,29H48.5v38.3H111c19.3,0,29.7,12.4,29.7,26.9c0,16.6-6.4,30.7-25,30.7H48.5v38.3h75.3c43.8,0,66.9-27.6,66.9-62.1C190.7,273.9,171.1,250.1,146.6,246.3z'/></g></svg>");
  --warn-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3L1 21h22L12 3zm0 5l7.5 12h-15L12 8zm-1 3v5h2v-5h-2zm0 6v2h2v-2h-2z' fill='black'/></svg>");
}

html, body { width: 100%; background: #000; }
html { overflow-x: hidden; overflow-y: auto; }
body { margin: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* 2160×3840 portrait canvas, scaled to viewport */
.stage {
  min-height: 100vh;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.canvas-wrap {
  /* Dimensions set by JS to match the scaled canvas so the layout reserves space */
  position: relative;
  flex-shrink: 0;
}
.canvas {
  width: 2160px;
  height: 3840px;
  position: relative;
  transform-origin: 0 0;
  flex-shrink: 0;
  background: var(--a-bg);
  color: var(--a-text);
  font-family: 'Inter', system-ui, sans-serif;
  padding: 80px 72px 72px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 48px;
}

/* Header */
.a-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 2px solid var(--a-border);
}
.a-brand { display: flex; align-items: center; gap: 32px; }
.a-logo {
  width: 112px; height: 112px;
  background: var(--a-text);
  -webkit-mask: var(--bga-mask) center/contain no-repeat;
          mask: var(--bga-mask) center/contain no-repeat;
}
.a-brand-text { display: flex; flex-direction: column; gap: 8px; }
.a-brand-name {
  font-size: 56px; font-weight: 700; letter-spacing: -0.015em;
  line-height: 1.05;
}
.a-brand-sub {
  font-size: 26px; font-weight: 500;
  color: var(--a-text-dim);
  letter-spacing: 0.01em;
}
.a-live {
  display: flex; align-items: center; gap: 16px;
  font-size: 30px; font-weight: 600;
  color: var(--a-text-dim);
}
.a-live .dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--a-green);
  box-shadow: 0 0 0 8px color-mix(in oklch, var(--a-green) 22%, transparent);
}
.a-shift {
  padding: 24px 32px;
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.a-shift-label {
  font-size: 18px; color: var(--a-text-dim);
  text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700;
}
.a-shift-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.01em;
}

/* Hero */
.a-hero {
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 40px;
  padding: 72px 80px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 48px;
  box-shadow: 0 2px 4px rgba(20,20,20,0.02), 0 24px 72px -24px rgba(20,20,20,0.08);
  position: relative;
  overflow: hidden;
}
.a-hero-head {
  display: flex; align-items: center; justify-content: space-between;
}
.a-hero-label {
  font-size: 28px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--a-text-dim);
}
.a-chip {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 28px; font-weight: 600;
  background: color-mix(in oklch, var(--a-green) 14%, transparent);
  color: oklch(0.4 0.13 155);
  border: 2px solid color-mix(in oklch, var(--a-green) 30%, transparent);
  letter-spacing: 0.01em;
}
.a-chip.is-warning {
  background: color-mix(in oklch, var(--a-amber) 20%, transparent);
  color: oklch(0.4 0.13 75);
  border-color: color-mix(in oklch, var(--a-amber) 40%, transparent);
}
.a-chip.is-danger {
  background: color-mix(in oklch, var(--a-red) 14%, transparent);
  color: oklch(0.4 0.17 25);
  border-color: color-mix(in oklch, var(--a-red) 35%, transparent);
}
.a-chip .ch-dot { width: 14px; height: 14px; border-radius: 50%; background: currentColor; }

.a-hero-body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 80px;
}
.a-ring { width: 680px; height: 680px; position: relative; flex-shrink: 0; }
.a-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.a-ring .track { fill: none; stroke: var(--a-surface-2); stroke-width: 44; }
.a-ring .fill  {
  fill: none; stroke: url(#calmGrad); stroke-width: 44; stroke-linecap: round;
  transition: stroke-dashoffset 0.9s cubic-bezier(.2,.7,.1,1);
}
.a-ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
}
.a-ring-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 220px; font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}
.a-ring-pct .unit { font-size: 110px; color: var(--a-text-dim); font-weight: 500; }
.a-ring-sub {
  font-size: 26px; font-weight: 700;
  color: var(--a-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.a-hero-numbers { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.a-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 300px; font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}
.a-big .sep { color: var(--a-text-faint); font-weight: 400; }
.a-big-total {
  color: var(--a-text-dim);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  border-bottom: 4px dashed transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.a-big-total:hover {
  color: var(--a-text);
  border-bottom-color: var(--a-border-strong);
}
.a-hero-caption {
  font-size: 34px;
  color: var(--a-text-dim);
  line-height: 1.35;
  max-width: 1200px;
}

.a-progress {
  display: flex; flex-direction: column; gap: 16px;
}
.a-progress-track {
  height: 30px;
  background: var(--a-surface-2);
  border: 1px solid var(--a-border);
  border-radius: 999px;
  overflow: hidden;
}
.a-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, oklch(0.7 0.13 175), var(--a-green));
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(.2,.7,.1,1);
}
.a-progress-ticks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  color: var(--a-text-faint);
  font-variant-numeric: tabular-nums;
}
.a-progress-ticks span:nth-child(2),
.a-progress-ticks span:nth-child(3),
.a-progress-ticks span:nth-child(4) { text-align: center; }
.a-progress-ticks span:last-child { text-align: right; }

/* Status cards grid (2 cols × 3 rows) */
.a-status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 28px;
}
.a-card {
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 30px;
  padding: 42px 48px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
  text-align: left;
  color: inherit;
}
.a-card:hover { transform: translateY(-3px); border-color: var(--a-border-strong); }
.a-card::before {
  content: '';
  position: absolute;
  top: 42px; bottom: 42px; left: 0;
  width: 8px;
  background: var(--card-accent);
  border-radius: 0 6px 6px 0;
}
.a-card-head {
  display: flex; align-items: center; justify-content: space-between;
}
.a-card-label {
  font-size: 34px; font-weight: 700;
  letter-spacing: -0.005em;
}
.a-card-kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px; font-weight: 700;
  padding: 8px 16px;
  border: 1.5px solid var(--a-border-strong);
  border-radius: 10px;
  color: var(--a-text-faint);
  background: var(--a-surface-2);
}
.a-card-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 200px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--card-accent);
  font-variant-numeric: tabular-nums;
  align-self: end;
  text-align: right;
}
.a-card-meta {
  font-size: 24px;
  color: var(--a-text-dim);
  line-height: 1.3;
  font-weight: 500;
}
.a-card[data-kind="notpicked"]   { --card-accent: var(--a-orange); }
.a-card[data-kind="pickingnow"]  { --card-accent: var(--a-indigo); }
.a-card[data-kind="picked"]      { --card-accent: var(--a-blue); }
.a-card[data-kind="packed"]      { --card-accent: var(--a-green); }
.a-card[data-kind="problem"]     { --card-accent: var(--a-red); }
.a-card[data-kind="unallocated"] { --card-accent: var(--a-violet); }

/* Stats strip (3 cols × 2 rows) */
.a-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.a-stat {
  background: var(--a-surface);
  border: 1px solid var(--a-border);
  border-radius: 24px;
  padding: 36px 40px;
  display: flex; flex-direction: column; gap: 16px;
}
.a-stat-label {
  font-size: 20px; font-weight: 700;
  color: var(--a-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.a-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 88px; font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.a-stat-value .unit {
  font-size: 24px; color: var(--a-text-dim);
  font-weight: 500; margin-left: 8px;
  letter-spacing: 0;
}
.a-stat-value.is-positive { color: oklch(0.5 0.14 155); }
.a-stat-value.is-warning  { color: oklch(0.55 0.17 55); }
.a-stat-value.is-danger   { color: oklch(0.5 0.2 25); }
.a-stat-trend {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  color: var(--a-text-faint);
  font-variant-numeric: tabular-nums;
}

/* Footer */
.a-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  font-size: 22px;
  color: var(--a-text-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  gap: 24px;
}
.a-footer .pulse {
  display: inline-block;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--a-green);
  margin-right: 14px;
  animation: pulse 2s infinite;
}
.a-footer-error {
  color: oklch(0.5 0.2 25);
  flex: 1;
  text-align: center;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* Warning banner */
.a-warning {
  position: absolute;
  top: -2px; left: 0; right: 0;
  display: none;
  align-items: center; gap: 28px;
  padding: 28px 48px;
  background: oklch(0.97 0.03 25);
  border-bottom: 3px solid var(--a-red);
  z-index: 5;
}
.a-warning.is-on { display: flex; }
.a-warning-icon {
  width: 56px; height: 56px;
  background: var(--a-red);
  -webkit-mask: var(--warn-mask) center/contain no-repeat;
          mask: var(--warn-mask) center/contain no-repeat;
  flex-shrink: 0;
}
.a-warning-text { color: oklch(0.38 0.14 25); font-size: 28px; line-height: 1.4; }
.a-warning-text strong { font-weight: 800; }

/* Confetti */
.confetti {
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 500;
}
.confetti-piece {
  position: absolute;
  width: 16px; height: 22px;
  top: -30px;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(2200px) rotate(720deg); opacity: 0; }
}

/* Goal banner */
.goal-banner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--a-surface);
  border: 4px solid var(--a-green);
  border-radius: 48px;
  padding: 72px 120px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 60px 160px -20px rgba(20,20,20,0.3);
  z-index: 600;
  text-align: center;
}
.goal-banner.is-on { display: flex; }
.goal-banner-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 160px; font-weight: 800;
  color: var(--a-green);
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.goal-banner-sub {
  font-size: 40px;
  color: var(--a-text-dim);
}

/* ─── Responsiv layout — allt utom kiosken ───────────────────────────────
   Träffar allt som inte är kiosken (portrait ≥ 2000px). Layouten är fluid
   och adapterar via auto-fit grids + flex-wrap, så den funkar på laptop
   landscape, desktop, tablet och telefon utan separata layout-block. */
@media (max-width: 1999px), (orientation: landscape) {
  html, body { height: auto; overflow-y: auto; }
  .stage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: clamp(8px, 1.2vw, 18px);
  }
  .canvas-wrap {
    width: 100% !important;
    height: auto !important;
    flex: 1;
    display: flex;
    justify-content: center;
  }
  .canvas {
    width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    height: auto;
    min-height: calc(100vh - 2 * clamp(8px, 1.2vw, 18px));
    transform: none !important;
    padding: clamp(14px, 1.6vw, 24px);
    gap: clamp(10px, 1.2vw, 18px);
    grid-template-rows: auto auto auto auto auto;
    align-content: start;
    border-radius: clamp(0px, 1vw, 18px);
  }

  /* Header */
  .a-header {
    grid-template-columns: auto 1fr auto;
    gap: clamp(10px, 1.4vw, 20px);
    padding-bottom: clamp(10px, 1.4vw, 18px);
  }
  .a-brand { gap: clamp(10px, 1.2vw, 18px); }
  .a-logo { width: clamp(40px, 4vw, 64px); height: clamp(40px, 4vw, 64px); }
  .a-brand-text { gap: 2px; }
  .a-brand-name { font-size: clamp(18px, 1.9vw, 30px); line-height: 1.1; }
  .a-brand-sub { font-size: clamp(11px, 1vw, 15px); }
  .a-live {
    font-size: clamp(11px, 1vw, 15px);
    gap: 8px;
  }
  .a-live .dot { width: 10px; height: 10px; box-shadow: 0 0 0 5px color-mix(in oklch, var(--a-green) 22%, transparent); }
  .a-shift {
    padding: clamp(8px, 0.9vw, 14px) clamp(12px, 1.3vw, 20px);
    border-radius: 12px;
    flex-direction: row;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
  }
  .a-shift-label { font-size: clamp(9px, 0.85vw, 12px); letter-spacing: 0.12em; }
  .a-shift-val { font-size: clamp(16px, 1.6vw, 24px); }

  /* Hero — ring + numbers via flex-wrap, vrider sig naturligt */
  .a-hero {
    padding: clamp(14px, 1.6vw, 26px);
    border-radius: clamp(14px, 1.4vw, 22px);
    gap: clamp(12px, 1.4vw, 20px);
    grid-template-rows: auto auto auto;
  }
  .a-hero-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .a-hero-label { font-size: clamp(11px, 1.1vw, 16px); letter-spacing: 0.14em; }
  .a-chip {
    font-size: clamp(12px, 1.1vw, 16px);
    padding: clamp(5px, 0.6vw, 9px) clamp(10px, 1.1vw, 16px);
    border-width: 1.5px;
    gap: 8px;
  }
  .a-chip .ch-dot { width: 8px; height: 8px; }

  .a-hero-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: clamp(14px, 1.8vw, 28px);
  }
  .a-ring {
    width: clamp(140px, 18vw, 320px);
    height: clamp(140px, 18vw, 320px);
    flex-shrink: 0;
  }
  .a-ring .track { stroke-width: 36; }
  .a-ring .fill { stroke-width: 36; }
  .a-ring-center { gap: 8px; }
  .a-ring-pct { font-size: clamp(44px, 6vw, 100px); }
  .a-ring-pct .unit { font-size: clamp(22px, 3vw, 50px); }
  .a-ring-sub { font-size: clamp(9px, 1vw, 16px); letter-spacing: 0.14em; }

  .a-hero-numbers {
    flex: 1 1 280px;
    align-items: flex-start;
    gap: clamp(8px, 1vw, 16px);
    min-width: 0;
  }
  .a-big {
    font-size: clamp(56px, 8vw, 160px);
    justify-content: flex-start;
    text-align: left;
    line-height: 0.9;
  }
  .a-big-total { border-bottom-width: 2px; }
  .a-hero-caption {
    font-size: clamp(12px, 1.3vw, 22px);
    text-align: left;
    max-width: 100%;
    line-height: 1.4;
  }

  .a-progress { gap: 10px; }
  .a-progress-track { height: clamp(10px, 1.2vw, 22px); }
  .a-progress-ticks { font-size: clamp(9px, 1vw, 16px); }

  /* Status cards — auto-fit: 5–6 kolumner på desktop, ned till 1 på telefon */
  .a-status-grid {
    grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 15vw, 240px), 1fr));
    grid-template-rows: auto;
    gap: clamp(8px, 0.9vw, 16px);
  }
  .a-card {
    padding: clamp(14px, 1.6vw, 28px) clamp(14px, 1.6vw, 28px) clamp(12px, 1.4vw, 22px);
    border-radius: clamp(12px, 1.2vw, 22px);
    gap: 8px;
    min-height: 0;
  }
  .a-card:hover { transform: none; }
  .a-card::before {
    top: 18px;
    bottom: 18px;
    width: 5px;
    border-radius: 0 5px 5px 0;
  }
  .a-card-label { font-size: clamp(13px, 1.4vw, 24px); }
  .a-card-kbd { font-size: clamp(10px, 0.95vw, 15px); padding: 4px 8px; border-radius: 8px; }
  .a-card-count { font-size: clamp(40px, 5.5vw, 130px); }
  .a-card-meta { font-size: clamp(11px, 1.1vw, 17px); }

  /* Stats — samma auto-fit */
  .a-stats {
    grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 15vw, 240px), 1fr));
    gap: clamp(8px, 0.9vw, 16px);
  }
  .a-stat {
    padding: clamp(12px, 1.4vw, 24px) clamp(14px, 1.5vw, 26px);
    border-radius: clamp(10px, 1.1vw, 20px);
    gap: 10px;
  }
  .a-stat-label { font-size: clamp(10px, 0.95vw, 16px); letter-spacing: 0.12em; }
  .a-stat-value { font-size: clamp(24px, 3vw, 60px); }
  .a-stat-value .unit { font-size: clamp(11px, 1.1vw, 18px); margin-left: 6px; }
  .a-stat-trend { font-size: clamp(10px, 1vw, 15px); }

  /* Footer */
  .a-footer {
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(8px, 1vw, 16px);
    font-size: clamp(10px, 0.9vw, 13px);
    text-align: left;
  }
  .a-footer-error { order: 2; min-width: 0; }

  /* Warning + goal banner */
  .a-warning {
    position: static;
    padding: clamp(10px, 1.1vw, 16px) clamp(12px, 1.3vw, 20px);
    gap: clamp(8px, 1vw, 14px);
    border-radius: 12px;
    border-bottom-width: 2px;
    margin: -4px 0 4px;
  }
  .a-warning-icon { width: clamp(24px, 2.4vw, 36px); height: clamp(24px, 2.4vw, 36px); }
  .a-warning-text { font-size: clamp(12px, 1.1vw, 16px); }

  .goal-banner {
    position: fixed;
    padding: clamp(24px, 2.4vw, 40px) clamp(20px, 2.6vw, 48px);
    border-radius: clamp(18px, 1.6vw, 28px);
    width: calc(100% - 32px);
    max-width: 560px;
  }
  .goal-banner-title { font-size: clamp(56px, 7vw, 110px); }
  .goal-banner-sub { font-size: clamp(13px, 1.4vw, 20px); }
}

/* Tablet/litet fönster — när hero-ringen och siffrorna inte längre får
   plats sida vid sida, dölj live-text och centrera hero-innehållet. */
@media (max-width: 720px) {
  .a-live { display: none; }
  .a-header { grid-template-columns: auto 1fr; }
  .a-shift { grid-column: auto; }
  .a-hero-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .a-hero-body { justify-content: center; }
  .a-hero-numbers { align-items: center; text-align: center; flex-basis: 100%; }
  .a-big { justify-content: center; text-align: center; }
  .a-hero-caption { text-align: center; }
  .a-footer { flex-direction: column; text-align: center; align-items: center; }
  .a-footer-error { order: 3; }
}

/* Väldigt smala skärmar — header stackas, knappar tar full bredd. */
@media (max-width: 440px) {
  .a-header { grid-template-columns: 1fr; gap: 8px; }
  .a-brand { gap: 10px; }
  .a-shift { width: 100%; justify-content: space-between; }
  .a-card-count { font-size: clamp(48px, 14vw, 80px); }
}
