/* ==================================================================
   TIG Academy — planningsprototype
   Palet ontleend aan aanloopkleuren: de kleuren die staal aanneemt
   naarmate het warmer wordt. Koud zink → strogeel → brons → paars →
   staalblauw. Datzelfde verloop codeert overal in dit prototype
   "hoe vol zit het".
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  /* oppervlak */
  --zinc:      #E4E6E1;
  --zinc-deep: #D5D8D1;
  --sheet:     #FAFAF8;
  --sheet-2:   #F1F2EE;
  --line:      #CDD1C9;
  --line-soft: #E0E3DC;

  /* inkt */
  --ink:       #14171B;
  --graphite:  #454C55;
  --muted:     #767D86;

  /* aanloopkleuren */
  --t0: #C9CCC4;
  --t1: #E3C77A;
  --t2: #D8A32B;
  --t3: #B4682A;
  --t4: #7E4468;
  --t5: #2E4C86;

  /* functie */
  --straw:  #C9941F;
  --arc:    #2743B8;
  --oxide:  #B23A22;
  --patina: #2F7A63;
  --plum:   #6B3F63;

  --radius: 3px;
  --rail: 232px;

  --shadow-1: 0 1px 0 rgba(20,23,27,.06), 0 1px 3px rgba(20,23,27,.07);
  --shadow-2: 0 8px 28px rgba(20,23,27,.14), 0 2px 6px rgba(20,23,27,.08);

  --f-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--zinc);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Fijne rasterachtergrond — de vloer van een werkplaats, niet decoratie:
   het raster loopt door in de planbordkolommen. */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, rgba(20,23,27,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,23,27,.035) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; letter-spacing: -.015em; }

a { color: var(--arc); }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--arc);
  outline-offset: 2px;
}

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==================================================================
   Applicatieschil
   ================================================================== */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  min-height: 100vh;
}

/* ---------- linkerrail ---------- */
.rail {
  background: var(--ink);
  color: #C6CBD2;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.brand svg { flex: none; margin-top: 2px; }

.brand-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .01em;
  color: #fff;
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7E8894;
  margin-top: 4px;
}

.nav { padding: 14px 10px; overflow-y: auto; flex: 1; }
.nav-group { margin-bottom: 18px; }
.nav-group > .eyebrow { padding: 0 10px 7px; display: block; color: #5F6874; }

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  border-radius: var(--radius);
  cursor: pointer;
  color: #C6CBD2;
  font-size: 13.5px;
  text-align: left;
  transition: background .12s ease, color .12s ease;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item[aria-current='true'] {
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--t2);
}
.ico { width: 15px; height: 15px; flex: none; }
.nav-item .ico { opacity: .8; }
.nav-item[aria-current='true'] .ico { opacity: 1; }
.nav-badge {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  background: var(--t2);
  color: #1a1408;
  border-radius: 20px;
  padding: 1px 6px;
  font-weight: 600;
}

.rail-foot {
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.09);
}
.persona-label { display: block; margin-bottom: 7px; color: #5F6874; }
.persona {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 2px;
  gap: 2px;
}
.persona button {
  border: 0; background: transparent; color: #A8B0BA;
  padding: 6px 2px; border-radius: 2px; cursor: pointer;
  font-size: 11.5px; font-weight: 500;
}
.persona button[aria-pressed='true'] { background: var(--sheet); color: var(--ink); font-weight: 600; }

/* ---------- hoofdkolom ---------- */
.main { min-width: 0; display: flex; flex-direction: column; }
.view > * { min-width: 0; }
table.data { table-layout: auto; }
.card-body { overflow-wrap: anywhere; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(228,230,225,.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.topbar h1 { font-size: 19px; font-weight: 700; }
.topbar .sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.view { padding: 22px 26px 60px; flex: 1; }

/* ==================================================================
   Bouwstenen
   ================================================================== */
.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.card-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px;
}
.card-head h3 { font-size: 14.5px; font-weight: 700; }
.card-head .spacer { margin-left: auto; }
.card-body { padding: 16px; max-width: 100%; overflow-x: auto; }

.btn {
  border: 1px solid var(--line);
  background: var(--sheet);
  padding: 7px 13px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .12s, border-color .12s, transform .06s;
}
.btn:hover { background: #fff; border-color: var(--graphite); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.btn-primary:hover { background: #262B32; border-color: #262B32; }
.btn-accent {
  background: var(--t2); border-color: #B98D1C; color: #1a1408; font-weight: 600;
}
.btn-accent:hover { background: #E4B33C; border-color: #B98D1C; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: rgba(20,23,27,.06); border-color: transparent; }
.btn-sm { padding: 4px 9px; font-size: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sheet); }
.seg button { border: 0; background: transparent; padding: 6px 12px; cursor: pointer; font-size: 12.5px; border-right: 1px solid var(--line-soft); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed='true'] { background: var(--ink); color: #fff; font-weight: 600; }

.select, .input, .textarea {
  border: 1px solid var(--line);
  background: var(--sheet);
  border-radius: var(--radius);
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  width: 100%;
}
.textarea { resize: vertical; min-height: 74px; }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; color: var(--graphite); }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 2px;
  background: var(--sheet-2); color: var(--graphite);
  border: 1px solid var(--line-soft);
}
/* Namen zijn geen codes: geen kapitalen, gewone letter. */
.tag-name   { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: 11.5px; }
.tag-tig    { background: #EAF0FF; color: #22409E; border-color: #C6D4F5; }
.tag-mig    { background: #E9F3EF; color: #226352; border-color: #C3DDD3; }
.tag-mma    { background: #FBF0DC; color: #8A6410; border-color: #EBD8AE; }
.tag-oxy    { background: #FCEDE9; color: #96331E; border-color: #F1CDC3; }
.tag-plasma { background: #F2EAF1; color: #5D3557; border-color: #DCC9D9; }
.tag-ok     { background: #E6F2EC; color: #22684F; border-color: #BFDDD0; }
.tag-warn   { background: #FBF0DC; color: #8A6410; border-color: #EBD8AE; }
.tag-bad    { background: #FBE9E5; color: #93301C; border-color: #F0C6BB; }

.kv { display: grid; grid-template-columns: 118px 1fr; gap: 5px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left; font-family: var(--f-mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  font-weight: 500; padding: 0 12px 8px; border-bottom: 1px solid var(--line);
}
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--sheet-2); }

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

.empty {
  padding: 34px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.empty strong { display: block; color: var(--ink); font-family: var(--f-display); font-size: 15px; margin-bottom: 4px; }

/* ==================================================================
   Handtekening: de aanloopschaal
   ================================================================== */
.heat {
  height: 5px; border-radius: 3px; background: var(--t0);
  overflow: hidden; position: relative;
}
.heat > i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--t1), var(--t2) 42%, var(--t3) 72%, var(--t4) 92%, var(--t5));
}
.heat-legend { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.heat-legend .ramp {
  width: 132px; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, var(--t0), var(--t1) 20%, var(--t2) 40%, var(--t3) 60%, var(--t4) 80%, var(--t5));
  border: 1px solid var(--line);
}

/* ==================================================================
   Planbord
   ================================================================== */
.board-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); box-shadow: var(--shadow-1); }

.board {
  display: grid;
  grid-template-columns: 176px repeat(6, minmax(168px, 1fr));
  min-width: 1120px;
}

.board-corner, .board-day, .board-station, .board-cell { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.board > *:nth-child(7n) { border-right: 0; }

.board-corner { background: var(--sheet-2); padding: 10px 12px; position: sticky; left: 0; z-index: 3; }
.board-day {
  background: var(--sheet-2);
  padding: 9px 12px;
  position: sticky; top: 0; z-index: 2;
}
.board-day .d-name { font-family: var(--f-display); font-weight: 700; font-size: 13px; text-transform: capitalize; }
.board-day .d-date { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.board-day.is-today { background: #FBF3DE; box-shadow: inset 0 -2px 0 var(--t2); }

.board-station {
  background: var(--sheet);
  padding: 10px 12px;
  position: sticky; left: 0; z-index: 1;
  display: flex; flex-direction: column; gap: 6px;
}
.board-station .st-name { font-family: var(--f-display); font-weight: 700; font-size: 13px; }
.board-station .st-machines { font-size: 11px; color: var(--muted); line-height: 1.35; }
.board-station.dimmed { opacity: .38; }

.board-cell { padding: 5px; display: flex; flex-direction: column; gap: 4px; background: transparent; }

.slot {
  min-height: 30px;
  border: 1px dashed transparent;
  border-radius: 2px;
  position: relative;
  transition: background .12s, border-color .12s;
}
.slot.empty-slot { border-color: var(--line-soft); }
.slot.empty-slot::after {
  content: attr(data-part);
  position: absolute; inset: 0;
  display: flex; align-items: center; padding-left: 8px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .08em;
  text-transform: uppercase; color: #C3C7BF;
  pointer-events: none;
}
.slot.closed { background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(20,23,27,.05) 5px 6px); border-color: transparent; }
.slot.closed::after { content: 'gesloten'; color: #B5BAB3; }

.slot.drop-ok { background: #E4F1EA; border-color: var(--patina); border-style: solid; }
.slot.drop-warn { background: #FBF2DE; border-color: var(--t2); border-style: solid; }
.slot.drop-bad { background: #FBE8E4; border-color: var(--oxide); border-style: solid; }
.slot.drop-bad::before {
  content: ''; position: absolute; inset: -1px; border-radius: 2px;
  background: radial-gradient(circle at 50% 50%, rgba(178,58,34,.32), transparent 62%);
  animation: strike .5s steps(3) infinite;
  pointer-events: none;
}
@keyframes strike { 0%,100% { opacity: .25 } 50% { opacity: .8 } }

/* ---------- lesblok ---------- */
.chip {
  border: 1px solid var(--line);
  border-left: 3px solid var(--graphite);
  background: var(--sheet);
  border-radius: 2px;
  padding: 5px 7px 6px;
  cursor: grab;
  display: block; width: 100%; text-align: left;
  box-shadow: 0 1px 0 rgba(20,23,27,.05);
  transition: box-shadow .12s, transform .06s, border-color .12s;
}
.chip:hover { box-shadow: var(--shadow-1); border-color: var(--graphite); }
.chip:active { cursor: grabbing; }
.chip.dragging { opacity: .35; }
.chip.is-selected { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(39,67,184,.28); }
.chip.conflicted { border-left-color: var(--oxide); background: #FDF3F1; }

.chip-kind-workshop  { border-left-color: var(--t2); }
.chip-kind-cursus    { border-left-color: var(--arc); }
.chip-kind-opleiding { border-left-color: var(--plum); }

.chip .c-top { display: flex; align-items: baseline; gap: 6px; }
.chip .c-time { font-family: var(--f-mono); font-size: 9.5px; color: var(--muted); letter-spacing: .04em; }
.chip .c-name { font-weight: 600; font-size: 12px; line-height: 1.25; margin-top: 1px; display: block; }
.chip .c-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 10.5px; color: var(--graphite); }
.chip .c-seats { font-family: var(--f-mono); margin-left: auto; color: var(--muted); }
.chip .c-note { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--t2); }

.avatar {
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--sheet-2); border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 8.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--graphite); flex: none;
}
.avatar-lg { width: 34px; height: 34px; font-size: 12px; }

/* ---------- detailpaneel ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 384px; max-width: 92vw;
  background: var(--sheet); border-left: 1px solid var(--line);
  box-shadow: var(--shadow-2); z-index: 60;
  display: flex; flex-direction: column;
  animation: slidein .18s ease-out;
}
@keyframes slidein { from { transform: translateX(14px); opacity: 0 } }
.drawer-head { padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 14px 18px; border-top: 1px solid var(--line-soft); display: flex; gap: 8px; }
.drawer h2 { font-size: 16px; font-weight: 700; line-height: 1.25; }
.drawer-close { position: absolute; top: 13px; right: 14px; }

.section { margin-bottom: 22px; }
.section > .eyebrow { display: block; margin-bottom: 9px; }

.note-box {
  background: #FBF3DE; border: 1px solid #EBD8AE;
  border-left: 3px solid var(--t2);
  padding: 10px 12px; border-radius: 2px; font-size: 13px;
}

.person-row { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.person-row:last-child { border-bottom: 0; }
.person-row .r-company { margin-left: auto; font-size: 11px; color: var(--muted); }

/* ---------- meldingen ---------- */
.alert {
  border-radius: 2px; padding: 9px 11px; font-size: 12.5px;
  border: 1px solid; display: flex; gap: 9px; align-items: flex-start;
  margin-bottom: 7px;
}
.alert .a-code { font-family: var(--f-mono); font-size: 10px; font-weight: 600; padding-top: 1px; flex: none; }
.alert strong { display: block; }
.alert-bad  { background: #FBE9E5; border-color: #F0C6BB; color: #7A2818; }
.alert-warn { background: #FBF3DE; border-color: #EBD8AE; color: #6E4E0C; }
.alert-ok   { background: #E6F2EC; border-color: #BFDDD0; color: #1E5A45; }

.toast-stack { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: #fff; padding: 11px 15px; border-radius: var(--radius);
  box-shadow: var(--shadow-2); font-size: 13px; max-width: 460px;
  display: flex; gap: 10px; align-items: flex-start;
  animation: pop .16s ease-out;
}
.toast .t-bar { width: 3px; align-self: stretch; border-radius: 2px; background: var(--t2); flex: none; }
.toast.bad .t-bar { background: var(--oxide); }
.toast.ok .t-bar { background: var(--patina); }
.toast .t-code { font-family: var(--f-mono); font-size: 10px; color: #9AA3AE; letter-spacing: .08em; }
@keyframes pop { from { transform: translateY(6px); opacity: 0 } }

/* ==================================================================
   Statistiek
   ================================================================== */
.stat { padding: 14px 16px; }
.stat .s-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stat .s-value { font-family: var(--f-display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 6px 0 3px; }
.stat .s-value small { font-size: 15px; font-weight: 600; color: var(--muted); }
.stat .s-foot { font-size: 12px; color: var(--muted); }

/* heatmap — schuift binnen de kaart, de pagina zelf schuift nooit */
.hm-scroll { overflow-x: auto; }
.hm { display: grid; gap: 3px; min-width: 540px; }
.hm-row { display: grid; grid-template-columns: 108px repeat(6, 1fr) 62px; gap: 3px; align-items: center; }
.hm-label { font-size: 12px; font-weight: 600; }
.hm-head { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
.hm-cell {
  height: 34px; border-radius: 2px; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; border: 1px solid rgba(20,23,27,.06);
}
.hm-total { font-family: var(--f-mono); font-size: 12px; text-align: right; }

.bar-row { display: grid; grid-template-columns: 148px 1fr 54px; gap: 12px; align-items: center; padding: 7px 0; }
.bar-track { display: block; height: 9px; background: var(--zinc-deep); border-radius: 5px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 5px; }

/* ==================================================================
   Suggesties
   ================================================================== */
.sugg { border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); overflow: hidden; }
.sugg + .sugg { margin-top: 12px; }
.sugg-head { padding: 12px 15px 8px; display: flex; gap: 11px; align-items: flex-start; }
.sugg-mark {
  width: 26px; height: 26px; border-radius: 2px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  background: var(--sheet-2); border: 1px solid var(--line);
}
.sugg h4 { font-size: 14px; font-weight: 700; }
.sugg .s-why { font-size: 12.5px; color: var(--graphite); margin-top: 4px; }
.sugg-body { padding: 0 15px 9px 52px; }
.sugg-foot { padding: 0 15px 12px 52px; display: flex; gap: 8px; align-items: center; }
.sugg.done { opacity: .55; }
.move-line { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-family: var(--f-mono); background: var(--sheet-2); border: 1px solid var(--line-soft); padding: 8px 10px; border-radius: 2px; }
.move-line .arrow { color: var(--t2); font-weight: 700; }

/* ==================================================================
   WhatsApp-voorbeeld
   ================================================================== */
.phone {
  width: 296px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: #ECE5DD; box-shadow: var(--shadow-2);
}
.phone-bar { background: #0F5C4C; color: #fff; padding: 11px 14px; display: flex; align-items: center; gap: 9px; }
.phone-bar .p-name { font-weight: 600; font-size: 13px; }
.phone-bar .p-sub { font-size: 10.5px; opacity: .75; }
.phone-body { padding: 14px 12px 18px; min-height: 250px; background-image: radial-gradient(rgba(0,0,0,.028) 1px, transparent 1px); background-size: 14px 14px; }
.bubble {
  background: #fff; border-radius: 8px 8px 8px 2px; padding: 9px 11px;
  font-size: 12.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.09);
  white-space: pre-wrap; max-width: 100%;
}
.bubble + .bubble { margin-top: 8px; }
.bubble .b-time { display: block; text-align: right; font-size: 9.5px; color: #8A9096; margin-top: 4px; }

/* ==================================================================
   Publiek boeken / portaal
   ================================================================== */
.public {
  --zinc: #ECEDE8;
  background: var(--zinc);
}
.pub-hero {
  background: var(--ink); color: #fff; padding: 44px 34px 40px; position: relative; overflow: hidden;
}
.pub-hero::after {
  content: ''; position: absolute; right: -70px; top: -70px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(216,163,43,.30), rgba(216,163,43,0) 62%);
  pointer-events: none;
}
.pub-hero.bleed { margin: -22px -26px 22px; }
@media (max-width: 1080px) { .pub-hero.bleed { margin: -18px -16px 18px; padding: 32px 20px 30px; } }
.pub-hero h1 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; line-height: .98; letter-spacing: -.03em; max-width: 15ch; }
.pub-hero p { max-width: 46ch; color: #B9C0C9; margin: 14px 0 0; font-size: 14.5px; }
.pub-hero .eyebrow { color: var(--t2); }

.step-rail { display: flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sheet); }
.step {
  flex: 1; padding: 11px 14px; border-right: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--muted); display: flex; gap: 9px; align-items: center;
}
.step:last-child { border-right: 0; }
.step .n {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 10px;
}
.step.active { color: var(--ink); font-weight: 600; background: var(--sheet-2); }
.step.active .n { background: var(--ink); color: #fff; border-color: var(--ink); }
.step.done .n { background: var(--patina); color: #fff; border-color: var(--patina); }

.course-card {
  border: 1px solid var(--line); background: var(--sheet); border-radius: var(--radius);
  padding: 16px; cursor: pointer; text-align: left; width: 100%;
  transition: border-color .12s, box-shadow .12s, transform .08s;
  border-top: 3px solid var(--t2);
  display: flex; flex-direction: column; height: 100%;
}
.course-card:hover { border-color: var(--graphite); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.course-card[aria-pressed='true'] { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(39,67,184,.25); }
.course-card.kind-cursus { border-top-color: var(--arc); }
.course-card.kind-opleiding { border-top-color: var(--plum); }
.course-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.25; }
.course-card .cc-desc { font-size: 12.5px; color: var(--graphite); min-height: 34px; }
.course-card .cc-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.course-card .cc-desc { margin-bottom: 12px; }
.course-card .cc-price { margin-left: auto; font-family: var(--f-mono); font-weight: 600; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; }
.slot-card {
  border: 1px solid var(--line); background: var(--sheet); border-radius: var(--radius);
  padding: 10px 12px; cursor: pointer; text-align: left;
  transition: border-color .12s, background .12s;
}
.slot-card:hover { border-color: var(--patina); background: #F2F8F5; }
.slot-card[aria-pressed='true'] { border-color: var(--patina); background: #E4F1EA; box-shadow: inset 3px 0 0 var(--patina); }
.slot-card .sc-day { font-family: var(--f-display); font-weight: 700; font-size: 13px; text-transform: capitalize; }
.slot-card .sc-time { font-family: var(--f-mono); font-size: 11.5px; color: var(--graphite); margin-top: 2px; }
.slot-card .sc-meta { font-size: 11px; color: var(--muted); margin-top: 6px; }

.quote-doc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-1); max-width: 620px;
}
.quote-doc h3 { font-size: 18px; font-weight: 800; }
.quote-line { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.quote-line .q-amt { margin-left: auto; font-family: var(--f-mono); }
.quote-total { display: flex; padding: 13px 0 0; font-family: var(--f-display); font-weight: 700; font-size: 16px; }
.quote-total .q-amt { margin-left: auto; font-family: var(--f-mono); }

/* ---------- docentportaal ---------- */
.day-card { border: 1px solid var(--line); background: var(--sheet); border-radius: var(--radius); overflow: hidden; }
.day-card + .day-card { margin-top: 12px; }
.day-card-head { background: var(--sheet-2); padding: 10px 15px; display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line-soft); }
.day-card-head .dc-day { font-family: var(--f-display); font-weight: 700; font-size: 14px; text-transform: capitalize; }
.day-card-head .dc-date { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.lesson { padding: 13px 15px; border-bottom: 1px solid var(--line-soft); display: flex; gap: 14px; }
.lesson:last-child { border-bottom: 0; }
.lesson .l-time { font-family: var(--f-mono); font-size: 11.5px; color: var(--graphite); width: 92px; flex: none; padding-top: 2px; }
.lesson h4 { font-size: 14px; font-weight: 700; }
.lesson .l-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }

/* ==================================================================
   Responsief
   ================================================================== */
@media (max-width: 1080px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: minmax(0, 1fr) !important; }
  .rail { position: static; height: auto; flex-direction: column; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .nav-group { margin: 0; display: contents; }
  .nav-group > .eyebrow { display: none; }
  .nav-item { width: auto; }
  .view { padding: 18px 16px 50px; }
  .topbar { padding: 12px 16px; }
  .drawer { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .rail, .topbar-right, .drawer { display: none; }
  body::before { display: none; }
}
