/* MAN5046 Krisekommunikasjon. Sections 2.1 to 2.6 are the lecture style
   sheet, entered as specified. App-specific rules follow under «Appen» and
   use only these tokens. */

@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/caveat-500.woff2) format("woff2"); }

/* ---------- 2.1 Designtokens ---------- */
:root {
  /* Flater */
  --bg: #1E2A3B;        /* sidebakgrunn, som slidene */
  --card: #283649;      /* kort */
  --card2: #30405A;     /* callout-bokser (litt lysere kort) */
  --line: #3C4C63;      /* skillelinjer, rammer, akser */
  /* Tekst */
  --white: #FFFFFF;     /* titler og overskrifter */
  --text: #E6ECF2;      /* brødtekst */
  --muted: #A9B7C6;     /* sekundær tekst */
  --dim: #7D8CA0;       /* bunntekst, hjelpetekst, fotnoter */
  /* Aksenter */
  --accent: #18B1FF;    /* lyseblå: overskrifter i kort, ikoner, lenker, primærknapp */
  --blue: #006AB3;      /* fylte bokser, sekundære flater */
  --deep: #00457F;      /* tabellhode, dypeste blå */
  --ice: #CFE8F8;       /* lys tekst på blå flater, undertitler */
  --amber: #F2A93B;     /* tagger, trinn-sirkler, interaksjon, advarsel */
  --green: #4CC38A;     /* fasit, riktig, offer-klyngen */
  --red: #F26B6B;       /* hendelse, forebyggbar-klyngen, feil */
  --gold: #C5A769;      /* Øystein-økter, blandede kategorier */
  /* Form */
  --radius: 10px;       /* alle kort og bokser (tilsvarer 0,1 tomme på slidene) */
  --radius-sm: 8px;     /* tagger, små bokser, knapper */
  --gap: 16px;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* ---------- 2.2 Typografi ---------- */
html { font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
body { margin: 0; line-height: 1.35; }
h1 { font-size: 28px; font-weight: 700; color: var(--white); margin: 0; letter-spacing: 0; }  /* slidetittel */
h2 { font-size: 16px; font-weight: 700; color: var(--white); margin: 0; }                      /* kortoverskrift */
h3 { font-size: 14px; font-weight: 700; color: var(--accent); margin: 0; }                     /* callout-overskrift */
p, li { font-size: 14px; color: var(--text); margin: 0; }
.muted { color: var(--muted); } .dim { color: var(--dim); font-size: 12px; } .ice { color: var(--ice); }
.lead { font-size: 18px; color: var(--ice); font-style: italic; text-align: center; }           /* oppsummeringssetning nederst */
ul { padding-left: 18px; } li { margin-bottom: 6px; }

/* ---------- 2.3 Sidens ramme ---------- */
.page { min-height: 100vh; display: flex; flex-direction: column; padding: 24px 24px 56px; box-sizing: border-box; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); margin-bottom: 20px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--amber); color: var(--bg);
       font-size: 11px; font-weight: 700; white-space: nowrap; }
.tag.accent { background: var(--accent); } .tag.gold { background: var(--gold); } .tag.green { background: var(--green); }
.grid { display: grid; gap: var(--gap); } .grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.footer { position: fixed; left: 0; right: 0; bottom: 0; height: 40px; display: flex; align-items: center; gap: 12px;
          padding: 0 24px; font-size: 11px; color: var(--dim); background: var(--bg); }
.footer .logo { height: 22px; }

/* ---------- 2.4 Komponenter ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 18px 20px; }
.card .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 10px; }
.card h2 { margin-bottom: 8px; }
.card.offer { border-top: 4px solid var(--green); } .card.utilsiktet { border-top: 4px solid var(--amber); }
.card.forebyggbar { border-top: 4px solid var(--red); }

.callout { background: var(--card2); border-radius: var(--radius); padding: 16px 20px; }
.callout h3 { margin-bottom: 8px; }

.step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; margin-bottom: 14px; }
.step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--amber); color: var(--bg);
             font-weight: 700; display: grid; place-items: center; }
.step b { color: var(--white); }

.box { border-radius: var(--radius-sm); padding: 14px 16px; color: var(--white); text-align: center; }
.box.blue { background: var(--blue); } .box.deep { background: var(--deep); } .box.red { background: var(--red); }
.box.amber { background: var(--amber); } .box.green { background: var(--green); }
.box small { display: block; color: var(--ice); font-size: 12px; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { background: var(--deep); color: var(--white); text-align: left; padding: 10px 12px; font-weight: 700; }
td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:nth-child(even) td { background: var(--card); } td:first-child { color: var(--white); font-weight: 700; }

.btn { font: inherit; font-weight: 700; border: 0; border-radius: var(--radius-sm); padding: 12px 18px; cursor: pointer;
       background: var(--accent); color: var(--bg); min-height: 48px; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.amber { background: var(--amber); } .btn.danger { background: var(--red); color: var(--white); }
.btn:disabled { opacity: .45; cursor: default; }
input, textarea, select { font: inherit; width: 100%; box-sizing: border-box; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 12px 14px; min-height: 48px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 6px; }
.status { font-size: 12px; color: var(--dim); } .status.ok { color: var(--green); } .status.wait { color: var(--amber); }

.choice { display: block; width: 100%; text-align: left; background: var(--card); color: var(--text); border: 1px solid var(--line);
          border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; font: inherit; cursor: pointer; }
.choice.selected { border-color: var(--accent); background: var(--card2); color: var(--white); }

.bar { height: 34px; border-radius: var(--radius-sm); background: var(--blue); color: var(--white); display: flex; align-items: center;
       padding: 0 12px; font-weight: 700; margin-bottom: 8px; }
.bar.correct { background: var(--green); color: var(--bg); }
.bar-label { font-size: 13px; color: var(--muted); margin-bottom: 4px; }

/* ---------- 2.5 Bevegelse ---------- */
.fade-in { animation: fade .4s ease-out both; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } }

/* ---------- 2.6 Veggen i modul A ---------- */
.wall { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 70vh;
  background-color: #C9A16B;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,.08) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,.07) 0 1px, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,.10) 0 1px, transparent 2px),
    linear-gradient(180deg, #D2AB76, #BE945F);
  background-size: 9px 9px, 13px 13px, 11px 11px, 100% 100%;
  box-shadow: inset 0 0 60px rgba(0,0,0,.25); }
.zone { position: absolute; top: 0; bottom: 26%; width: 33.333%; border-right: 2px dashed rgba(60,40,20,.35); }
.zone.sak { left: 33.333%; } .zone.endring { left: 66.666%; border-right: 0; }
.zone.grenseland { top: 74%; bottom: 0; left: 0; width: 100%; border-top: 2px dashed rgba(60,40,20,.35); border-right: 0; }
.zone h2 { position: absolute; top: 10px; left: 14px; font-family: "Caveat", "Patrick Hand", cursive; font-size: 30px;
           color: #3B2A14; text-transform: uppercase; letter-spacing: 1px; }
.zone .count { position: absolute; top: 14px; right: 14px; font-size: 13px; color: #3B2A14; opacity: .8; }

.note { position: absolute; width: 150px; min-height: 150px; padding: 26px 14px 14px; box-sizing: border-box;
  font-family: "Caveat", "Patrick Hand", cursive; font-size: 24px; line-height: 1.15; color: #1F2430;
  box-shadow: 2px 4px 10px rgba(0,0,0,.28); transform: rotate(var(--rot, 0deg)); cursor: grab; }
.note::before {
  content: ""; position: absolute; top: -8px; left: 50%; width: 56px; height: 18px; margin-left: -28px;
  background: rgba(255,255,255,.45); transform: rotate(-2deg); }
.note.gul { background: #FFF08A; } .note.rosa { background: #FFB7C9; } .note.blaa { background: #BFE3FF; } .note.groenn { background: #C9F2C0; }
.note.dragging { cursor: grabbing; box-shadow: 6px 10px 18px rgba(0,0,0,.35); z-index: 10; }
.wall.many .note { font-size: 20px; width: 128px; min-height: 128px; }

/* ================= Appen ================= */

/* Storskjerm (over 1200 px): lesbart fra 8 meter */
@media (min-width: 1201px) {
  html { font-size: 112.5%; }
  h1 { font-size: 36px; }
  h2 { font-size: 22px; }
  p, li { font-size: 19px; }
  .big-screen .tag { font-size: 14px; padding: 7px 14px; }
  .big-screen .bar { height: 46px; font-size: 19px; }
  .big-screen .bar-label { font-size: 19px; }
  .big-screen .note { width: 172px; min-height: 172px; font-size: 27px; }
  .big-screen .wall.many .note { width: 146px; min-height: 146px; font-size: 23px; }
  .big-screen .zone h2 { font-size: 38px; }
  .big-screen .zone .count { font-size: 17px; }
}

[hidden] { display: none !important; }
a { color: var(--accent); }
.svg-icon { width: 20px; height: 20px; vertical-align: -4px; flex: none; }
.card .icon.svg-icon { display: block; }
.btn .svg-icon { margin-right: 6px; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack > * + * { margin-top: var(--gap); }
.spacer { flex: 1; }
.head-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.footer .room { margin-left: auto; color: var(--muted); font-weight: 700; }
.footer .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.err { color: var(--red); font-size: 13px; min-height: 1em; margin-top: 8px; }
.center { text-align: center; }
.kicker { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }

/* Telefon */
.phone { max-width: 560px; margin: 0 auto; width: 100%; }
.phone .page-head { align-items: flex-start; }
.phone h1 { font-size: 24px; }
.zone-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zone-btn { font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .04em; min-height: 64px; border-radius: var(--radius-sm);
  border: 2px solid var(--line); background: var(--card); color: var(--white); cursor: pointer; border-top-width: 6px; }
.zone-btn.hendelse { border-top-color: var(--red); } .zone-btn.sak { border-top-color: var(--blue); }
.zone-btn.endring { border-top-color: var(--amber); } .zone-btn.grenseland { border-top-color: var(--gold); }
.zone-btn.selected { border-color: var(--accent); background: var(--card2); }
.zone-help { margin-top: 10px; }
.zone-help p { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.zone-help b { color: var(--white); }
.counter { text-align: right; font-size: 12px; color: var(--dim); margin-top: 4px; }
.my-note { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.my-note:last-child { border-bottom: 0; }
.my-note .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.zchip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-sm); color: var(--bg); }
.zchip.hendelse { background: var(--red); } .zchip.sak { background: var(--blue); color: var(--white); }
.zchip.endring { background: var(--amber); } .zchip.grenseland { background: var(--gold); }
.netbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.wait-card { text-align: center; padding: 40px 20px; }
.wait-card .icon { margin: 0 auto 12px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-block; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--card2); color: var(--white); font-weight: 700; font-size: 14px; }
.pill.done { background: var(--green); color: var(--bg); }
.pill.missing { background: transparent; border: 1px solid var(--line); color: var(--dim); }
.group-btns .choice { font-weight: 700; }
.casebox textarea { min-height: 96px; resize: vertical; }
.casebox .step { margin-bottom: 20px; }
.casebox .step .num { margin-top: 2px; }
.cl-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.checkline { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text); margin: 12px 0 0; }
.checkline input { width: 22px; height: 22px; min-height: 0; }
.help { font-size: 12px; color: var(--dim); margin-top: 2px; }

/* Storskjerm */
.big-screen .page { padding-bottom: 52px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px;
  padding: 10px 12px; background: var(--card); border-radius: var(--radius); }
.controls .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.controls .sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
body.present .controls, body.present .admin-only { display: none !important; }
.join-mini { display: flex; align-items: center; gap: 12px; cursor: pointer; background: var(--card); border-radius: var(--radius-sm); padding: 6px 10px 6px 6px; }
.join-mini img { width: 64px; height: 64px; border-radius: 4px; background: var(--white); padding: 3px; box-sizing: border-box; }
.join-mini .code { font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: .08em; }
.join-mini .url { font-size: 12px; color: var(--muted); }
.overlay { position: fixed; inset: 0; background: rgba(30,42,59,.94); z-index: 50; display: grid; place-items: center; padding: 24px; }
.join-big { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; max-width: 1300px; }
.join-big img { width: min(46vh, 520px); height: auto; background: var(--white); padding: 14px; border-radius: var(--radius); }
.join-big .code { font-size: 96px; font-weight: 700; letter-spacing: .12em; color: var(--white); line-height: 1; }
.join-big .url { font-size: 30px; color: var(--accent); word-break: break-all; }
.join-big p { font-size: 24px; }
.waitroom { display: grid; place-items: center; flex: 1; }
.summary { margin-top: 12px; font-size: 20px; color: var(--ice); text-align: center; }
.wall-wrap { flex: 1; display: flex; flex-direction: column; }
.wall { flex: 1; touch-action: none; user-select: none; }
.wall .note { transition: left .3s ease, top .3s ease; }
.wall .note.dragging { transition: none; }
.note-in { animation: notein .3s ease-out both; }
@keyframes notein { from { opacity: 0; transform: rotate(var(--rot, 0deg)) scale(1.12) translateY(-10px); } to { opacity: 1; transform: rotate(var(--rot, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .note-in { animation: none; } .wall .note { transition: none; } }
.zone.drop-target { background: rgba(255,255,255,.12); }
.note-big { position: relative; width: min(70vmin, 640px); min-height: min(70vmin, 640px); padding: 64px 48px 40px; box-sizing: border-box;
  font-family: "Caveat", "Patrick Hand", cursive; font-size: 64px; line-height: 1.12; color: #1F2430;
  box-shadow: 6px 12px 30px rgba(0,0,0,.4); transform: rotate(var(--rot, 0deg)); }
.note-big::before { content: ""; position: absolute; top: -14px; left: 50%; width: 140px; height: 40px; margin-left: -70px;
  background: rgba(255,255,255,.45); transform: rotate(-2deg); }
.note-big.gul { background: #FFF08A; } .note-big.rosa { background: #FFB7C9; } .note-big.blaa { background: #BFE3FF; } .note-big.groenn { background: #C9F2C0; }
.note-big .zone-name { position: absolute; bottom: 18px; right: 26px; font-family: var(--font); font-size: 18px; color: #3B2A14; opacity: .7; text-transform: uppercase; }

.q-layout { display: grid; grid-template-columns: 300px 1fr; gap: var(--gap); flex: 1; align-items: start; }
body.present .q-layout { grid-template-columns: 1fr; }
.q-list .q-item { display: block; width: 100%; text-align: left; background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 8px; font: inherit; font-size: 14px; cursor: pointer; }
.q-list .q-item.sel { border-color: var(--accent); background: var(--card2); color: var(--white); }
.q-list .q-item .tag { font-size: 10px; padding: 3px 8px; margin-left: 6px; }
.q-list .q-item .qt { display: block; margin-top: 6px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.q-main .q-text { font-size: 30px; color: var(--white); font-weight: 700; line-height: 1.25; }
.q-main .q-sub { font-size: 22px; color: var(--ice); margin-top: 10px; }
.q-main .opts { margin-top: 16px; }
.q-main .opts li { font-size: 22px; }
.spread .bar { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spread .bar.zero { background: transparent; border: 1px dashed var(--line); color: var(--dim); font-weight: 400; }
.spread .bar-row { margin-bottom: 12px; }
.fasit { border-left: 6px solid var(--green); }
.fasit h3 { color: var(--green); font-size: 20px; }
.fasit p { font-size: 22px; }
.numline { position: relative; height: 210px; margin: 10px 18px 0; }
.numline .axis { position: absolute; left: 0; right: 0; top: 150px; height: 2px; background: var(--line); }
.numline .tick { position: absolute; top: 156px; transform: translateX(-50%); font-size: 16px; color: var(--muted); white-space: nowrap; }
.numline .tickmark { position: absolute; top: 144px; width: 2px; height: 14px; background: var(--line); }
.numline .pt { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.numline .pt .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.numline .pt.hit .dot { background: var(--green); }
.numline .pt .lbl { font-size: 15px; font-weight: 700; color: var(--white); white-space: nowrap; margin-bottom: 4px; }
.numline .pt .val { font-size: 13px; color: var(--muted); }
.numline .band { position: absolute; top: 132px; height: 38px; background: rgba(76,195,138,.25); border-left: 2px solid var(--green); border-right: 2px solid var(--green); }
.numline .key { position: absolute; top: 0; bottom: 30px; width: 3px; background: var(--green); transform: translateX(-50%); }
.numline .key span { position: absolute; top: -4px; left: 8px; white-space: nowrap; font-weight: 700; color: var(--green); font-size: 18px; }
.editor .opt-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-bottom: 6px; }
.editor .opt-row label { margin: 0; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.editor .opt-row input[type=radio] { width: 20px; min-height: 0; }
.modal { background: var(--card); border-radius: var(--radius); padding: 22px 24px; width: min(760px, 100%); max-height: 90vh; overflow: auto; box-sizing: border-box; }
.modal h2 { margin-bottom: 8px; }

.debrief .case-text { font-size: 26px; color: var(--text); line-height: 1.35; }
.debrief .callout h3 { font-size: 22px; }
.debrief .card { position: relative; }
.debrief .card h2 { font-size: 30px; margin-bottom: 14px; }
.debrief .ans p, .debrief .ans li { font-size: 28px; line-height: 1.3; }
.debrief .ans .lbl { display: block; font-size: 18px; font-weight: 700; color: var(--accent); margin-top: 14px; text-transform: uppercase; letter-spacing: .05em; }
.debrief .ans .lbl:first-child { margin-top: 0; }
.debrief .ans q { quotes: "«" "»"; color: var(--white); }
.debrief .card .full-btn { position: absolute; top: 14px; right: 14px; }
.cl-word { font-weight: 700; } .cl-word.offer { color: var(--green); } .cl-word.utilsiktet { color: var(--amber); } .cl-word.forebyggbar { color: var(--red); }
.cl-word.none { color: var(--dim); font-weight: 400; }
.case-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.case-nav .btn { min-width: 48px; }
.fullcard { width: min(1500px, 100%); max-height: 94vh; overflow: auto; }
.fullcard .ans p { font-size: 36px; }
.progress { font-size: 13px; color: var(--muted); }
.progress.full { color: var(--green); }
.assign-table select { min-height: 40px; padding: 6px 10px; }

/* Oversikt */
.day-card { display: flex; flex-direction: column; gap: 12px; }
.day-card .qr { width: 150px; height: 150px; background: var(--white); padding: 6px; border-radius: var(--radius-sm); box-sizing: border-box; }
.day-card .top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.day-card .code { font-size: 28px; font-weight: 700; letter-spacing: .1em; color: var(--white); }
.day-card .link { font-size: 12px; word-break: break-all; }
.login-card { max-width: 420px; margin: 8vh auto 0; }

/* Personvern */
.privacy-gate { position: fixed; inset: 0; background: var(--bg); z-index: 100; overflow: auto; padding: 24px 16px; box-sizing: border-box; }
.privacy-gate .card { max-width: 560px; margin: 0 auto; }
.privacy-gate p, details.privacy p { margin-bottom: 10px; font-size: 14px; }
.privacy-gate strong, details.privacy strong { color: var(--white); }
body.privacy-open { overflow: hidden; }
details.privacy { margin-top: 24px; }
details.privacy summary { cursor: pointer; color: var(--muted); font-size: 13px; margin-bottom: 10px; }

/* Eksport: bildet tas med fast bredde så det blir minst 1920 px */
.exporting .note { transition: none !important; animation: none !important; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; box-sizing: border-box; }

/* ================= Dag 2: livssykluskurven og issue-matrisen (2.6) ================= */
.lc-box { width: 100%; position: relative; }
.lc-svg { display: block; touch-action: none; user-select: none; }
.lc-svg text { font-family: var(--font); }
.lc-marker { cursor: pointer; }
.lc-marker.faded circle { opacity: .5; }
.lc-mlabel { cursor: pointer; }
.lc-near { font-size: 15px; color: var(--white); font-weight: 700; margin-top: 6px; }
.lc-layout { display: grid; grid-template-columns: 1fr; gap: var(--gap); flex: 1; align-items: start; }
.lc-layout.with-card { grid-template-columns: minmax(0, 1fr) 520px; }
.lc-box { overflow: hidden; }
.lc-card p, .lc-card li { font-size: 24px; line-height: 1.3; }
.lc-card .lbl { display: block; font-size: 16px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 4px; }
.lc-card h2 { font-size: 30px; }

.matrix { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; row-gap: 6px; width: 100%; }
.mx-y { grid-row: 1; grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center;
  font-size: 13px; font-weight: 700; color: var(--muted); }
.mx-x { grid-row: 2; grid-column: 2; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.mx-box { grid-row: 1; grid-column: 2; position: relative; aspect-ratio: 1 / 1; display: grid;
  grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; background: var(--bg); }
.mq { padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; }
.mq.parker, .mq.overvak { justify-content: flex-end; }
.mq b { font-size: 16px; font-weight: 700; } .mq small { font-size: 13px; margin-top: 2px; }
.mq.forbered { background: var(--amber); color: var(--bg); } .mq.handle { background: var(--red); color: var(--bg); }
.mq.parker { background: var(--card2); color: var(--white); } .mq.overvak { background: var(--blue); color: var(--white); }
.mx-chips { position: absolute; inset: 0; pointer-events: none; }
.mx-chips .chip { position: absolute; pointer-events: auto; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 4px 8px 4px 4px; max-width: 150px; font-size: 13px; color: var(--white);
  box-sizing: border-box; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; width: max-content; }
.chip .ct { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.chip.identity { border: 2px solid var(--amber); }
.chip.dragging { position: fixed !important; z-index: 60; transform: translate(-50%, -50%) !important; cursor: grabbing; }
.lt { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; }
.lt.blue { background: var(--blue); color: var(--white); } .lt.deep { background: var(--deep); color: var(--white); }
.lt.accent { background: var(--accent); color: var(--bg); } .lt.green { background: var(--green); color: var(--bg); }
.lt.amber { background: var(--amber); color: var(--bg); } .lt.gold { background: var(--gold); color: var(--bg); }
.lt.big { width: 32px; height: 32px; font-size: 15px; }
.tray { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 10px; border: 1px dashed var(--line); border-radius: var(--radius-sm); margin-top: 14px; }
.tray .chip { position: static; transform: none; }
.matrix.big .mq b { font-size: 22px; } .matrix.big .mq small { font-size: 16px; }
.matrix.big .chip { font-size: 16px; max-width: 46%; padding: 5px 10px 5px 5px; }
.matrix.big .lt { width: 26px; height: 26px; font-size: 14px; }
.matrix.big .mx-x, .matrix.big .mx-y { font-size: 17px; }
.step-tabs { display: flex; gap: 6px; margin-bottom: 14px; overflow-x: auto; }
.step-tabs .btn { min-height: 44px; padding: 6px 10px; font-size: 13px; flex: none; }
.pestel-row { display: grid; grid-template-columns: 32px 1fr; gap: 10px; margin-bottom: 18px; }
.pestel-row .item-line { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 6px; }
.id-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.id-row input { width: 22px; height: 22px; min-height: 0; }
.indiv-list { margin: 6px 0 8px; padding-left: 0; list-style: none; }
.indiv-list li { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.radar-all .card h2 { font-size: 26px; }
.radar-sum { margin-top: 14px; font-size: 22px; color: var(--ice); text-align: center; }
.legend { display: flex; flex-direction: column; gap: 10px; }
.legend .sw { display: inline-block; width: 18px; height: 18px; border-radius: 4px; vertical-align: -3px; margin-right: 8px; }
.radar-group p, .radar-group li { font-size: 21px; }
.radar-group .lbl { display: block; font-size: 15px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 4px; }
.radar-group .sw-list { list-style: none; padding: 0; margin: 0; }
.radar-group .sw-list li { margin-bottom: 8px; } .radar-group .sw-list b { color: var(--white); }
.wall-ref { margin-top: 14px; font-size: 13px; }

/* ================= Dag 3 ================= */
.tl-card { display: flex; flex-direction: column; }
.tl-card.winner { box-shadow: inset 0 0 0 3px var(--amber); }
.tl-text { font-size: 26px; line-height: 1.35; color: var(--white); margin-top: 10px; }
.ft-q { font-size: 20px; color: var(--white); font-weight: 700; }
.ft-track { position: relative; height: 48px; background: var(--blue); border-radius: var(--radius-sm); overflow: hidden; margin-top: 14px; }
.ft-yes { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.ft-label { display: block; margin-top: 10px; font-size: 26px; font-weight: 700; color: var(--white); }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 26px; padding: 24px 10px; min-height: 260px; }
.cw { font-weight: 700; line-height: 1.1; font-family: var(--font); }
.dot { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); margin-right: 12px; vertical-align: middle; box-sizing: border-box; }
.dot.s1 { background: var(--amber); border-color: var(--amber); } .dot.s2 { background: var(--green); border-color: var(--green); }
.present-only { display: none; } body.present .present-only { display: inline; }
.ws-plenum { grid-template-columns: 2fr 1fr; align-items: start; }
.ws-message { font-size: 30px; line-height: 1.4; color: var(--white); white-space: pre-wrap; }
.ws-plenum .lbl { display: block; font-size: 15px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 8px; }
.comp-list { list-style: none; padding: 0; margin: 0; }
.comp-list li { display: flex; gap: 10px; align-items: center; font-size: 21px; }
.comp-list .svg-icon { width: 26px; height: 26px; } .comp-list .ok { color: var(--green); } .comp-list .no { color: var(--dim); }
.ws-right .hh { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ws-right .hh p { font-size: 16px; } .ws-right .hh b { color: var(--white); }
table.plan { font-size: 15px; }
.ws-row { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }

/* ================= Dag 4 ================= */
.cm-box svg, .cm-slot svg { display: block; max-width: 100%; height: auto; }
.cm-hit { cursor: pointer; }
.arrow-row { margin-top: 6px; }
.arrow-row input { margin: -4px 0 8px; }
.cm-card .cm-slot { margin-top: 10px; }
.cm-one { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.cm-details p { font-size: 19px; margin-bottom: 6px; }
.cm-details .lbl, .st-card .lbl { display: block; font-size: 15px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 6px; }
.st-card h2 { font-size: 26px; }
.st-card p { font-size: 22px; line-height: 1.3; }
.st-card .lbl:first-of-type { margin-top: 8px; }
.tp-row { margin-bottom: 12px; }
.tp-row .bar { height: 30px; }
.tp-n { font-size: 26px; font-weight: 700; color: var(--white); min-width: 2ch; }
.tp-list .bar-label { font-size: 18px; color: var(--text); }
.tp-row .bar.zero { background: transparent; border: 1px dashed var(--line); }
#cmOneSlot svg { margin: 0 auto; }
