/* .MOV — design tokens (shadcn/ui-stijl: semantische tokens, HSL-kanalen), Friday-merk: monochroom + koraal */
:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 4%;
  --surface: 240 5% 97.6%;          /* sidebar / kolommen */
  --card: 0 0% 100%;
  --muted: 240 5% 95.5%;
  --muted-foreground: 240 4% 44%;
  --border: 240 6% 90%;
  --input: 240 6% 88%;
  --primary: 240 10% 4%;
  --primary-foreground: 0 0% 100%;
  --accent: 4 100% 76%;             /* Friday-koraal #ff8f86 */
  --accent-strong: 4 78% 58%;
  --ring: 240 10% 4%;
  --success: 152 60% 36%;
  --warning: 34 92% 42%;
  --destructive: 0 72% 50%;
  --info: 217 80% 52%;
  --violet: 262 60% 56%;
  --radius: 8px;
  --shadow-sm: 0 1px 2px hsl(240 10% 4% / .05);
  --shadow: 0 1px 3px hsl(240 10% 4% / .07), 0 1px 2px hsl(240 10% 4% / .04);
  --shadow-lg: 0 16px 48px -12px hsl(240 10% 4% / .25), 0 4px 12px -4px hsl(240 10% 4% / .08);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --background: 240 6% 6%;
  --foreground: 0 0% 96%;
  --surface: 240 5% 8.5%;
  --card: 240 5% 10%;
  --muted: 240 4% 14%;
  --muted-foreground: 240 4% 62%;
  --border: 240 4% 17%;
  --input: 240 4% 21%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 10% 4%;
  --ring: 0 0% 85%;
  --success: 152 55% 48%;
  --warning: 38 92% 56%;
  --destructive: 0 75% 62%;
  --info: 217 85% 65%;
  --violet: 262 75% 72%;
  --shadow-sm: 0 1px 2px hsl(0 0% 0% / .4);
  --shadow: 0 1px 3px hsl(0 0% 0% / .5);
  --shadow-lg: 0 24px 60px -12px hsl(0 0% 0% / .7);
  color-scheme: dark;
}

* { box-sizing: border-box; border-color: hsl(var(--border)); }
html, body { margin: 0; height: 100%; }
body {
  background: hsl(var(--background)); color: hsl(var(--foreground));
  font: 14px/1.5 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; letter-spacing: -0.006em;
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; border-radius: 4px; }
a { color: inherit; }
[hidden] { display: none !important; }
.ico { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.sm { width: 14px; height: 14px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- form controls ---------- */
input, textarea, select {
  font: inherit; color: hsl(var(--foreground)); background: hsl(var(--background));
  border: 1px solid hsl(var(--input)); border-radius: calc(var(--radius) - 2px);
  padding: 8px 11px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: hsl(var(--muted-foreground) / .8); }
textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: hsl(var(--ring) / .6); box-shadow: 0 0 0 3px hsl(var(--ring) / .08); }
select { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; }
label, .label { display: block; font-size: 13px; font-weight: 500; margin: 16px 0 6px; }
.hint { color: hsl(var(--muted-foreground)); font-size: 13px; margin: 2px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px;
  border-radius: calc(var(--radius) - 2px); font-size: 13px; font-weight: 500; white-space: nowrap;
  border: 1px solid hsl(var(--input)); background: hsl(var(--background)); box-shadow: var(--shadow-sm);
  transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: hsl(var(--muted)); }
.btn:disabled { opacity: .55; pointer-events: none; }
.btn.primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.btn.primary:hover { opacity: .88; }
.btn.ghost { border-color: transparent; box-shadow: none; background: none; }
.btn.ghost:hover { background: hsl(var(--muted)); }
.btn.success { background: hsl(var(--success)); border-color: hsl(var(--success)); color: #fff; }
.btn.success:hover { opacity: .9; }
.btn.danger { color: hsl(var(--destructive)); }
.btn.danger:hover { background: hsl(var(--destructive) / .08); border-color: hsl(var(--destructive) / .3); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
.btn.icon { width: 30px; padding: 0; height: 30px; }
.btn.icon.sm { width: 26px; height: 26px; }

/* ---------- layout ---------- */
#app { display: grid; grid-template-columns: 248px 1fr auto; height: 100vh; }

/* sidebar */
#sidebar { background: hsl(var(--surface)); border-right: 1px solid hsl(var(--border)); display: flex; flex-direction: column; min-height: 0; }
.brand { display: flex; align-items: center; gap: 8px; padding: 18px 18px 14px; }
.wordmark { font-weight: 700; font-size: 17px; letter-spacing: -0.04em; }
.wordmark i { font-style: normal; color: hsl(var(--accent-strong)); }
.brand .tag { font-size: 11px; font-weight: 500; color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border)); border-radius: 999px; padding: 1px 8px; background: hsl(var(--background)); }
#clients { flex: 1; overflow-y: auto; padding: 4px 10px; display: flex; flex-direction: column; gap: 1px; }
.side-label { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; font-weight: 500; color: hsl(var(--muted-foreground)); padding: 14px 8px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 6px; text-align: left; font-size: 13.5px; color: hsl(var(--muted-foreground)); transition: background .12s, color .12s; position: relative; }
.nav-item:hover { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.nav-item[aria-current="page"] { background: hsl(var(--background)); color: hsl(var(--foreground)); font-weight: 500; box-shadow: var(--shadow); }
.nav-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 10px; font-weight: 600; flex: none; color: #fff; letter-spacing: 0; }
.avatar.neutral { background: hsl(var(--muted)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); }
.count-badge { font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: hsl(var(--accent)); color: hsl(240 10% 8%); }
.count-badge.info { background: hsl(var(--info)); color: #fff; }
.count-badge + .count-badge { margin-left: 4px; }
.busy-dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--success)); box-shadow: 0 0 0 3px hsl(var(--success) / .18); animation: pulse 2s infinite; }
.side-foot { border-top: 1px solid hsl(var(--border)); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.agent-state { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: hsl(var(--muted-foreground)); padding: 2px 8px; }
.agent-state .dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--muted-foreground) / .5); }
.agent-state.on .dot { background: hsl(var(--success)); animation: pulse 2s infinite; }
.user-row { display: flex; align-items: center; gap: 8px; padding: 4px 4px 0 8px; }
.user-row .nm { flex: 1; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }

/* main */
#main { overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: hsl(var(--background)); }
.empty-state { margin: auto; text-align: center; color: hsl(var(--muted-foreground)); max-width: 340px; }
.empty-state h3 { color: hsl(var(--foreground)); font-size: 15px; margin: 12px 0 4px; }
.empty-icon { width: 44px; height: 44px; border-radius: 10px; display: inline-grid; place-items: center; background: hsl(var(--muted)); color: hsl(var(--foreground)); }
#clientView { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.main-head { padding: 18px 28px 0; border-bottom: 1px solid hsl(var(--border)); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.head-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.head-row h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { color: hsl(var(--muted-foreground)); font-size: 13.5px; margin: 3px 0 0; max-width: 760px; }
.tabs { display: flex; gap: 2px; margin-top: 14px; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px 11px; font-size: 13.5px; font-weight: 500; color: hsl(var(--muted-foreground)); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .12s; }
.tab:hover { color: hsl(var(--foreground)); }
.tab[aria-selected="true"] { color: hsl(var(--foreground)); border-color: hsl(var(--foreground)); }
.menu-btn { display: none; }

/* ---------- board ---------- */
.board { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(208px, 1fr)); gap: 12px; padding: 20px 28px 24px; overflow: auto; min-height: 0; align-items: start; }
.col { background: hsl(var(--surface)); border: 1px solid hsl(var(--border) / .7); border-radius: 12px; display: flex; flex-direction: column; max-height: 100%; min-height: 160px; transition: background .15s, border-color .15s; }
.col.drop { background: hsl(var(--muted)); border-color: hsl(var(--foreground) / .35); border-style: dashed; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 11px 12px 9px; font-size: 13px; font-weight: 600; }
.col-head .sdot { width: 8px; height: 8px; border-radius: 50%; }
.col-head .count { color: hsl(var(--muted-foreground)); font-weight: 500; }
.col-head .spacer { flex: 1; }
.col-hint { font-size: 12px; color: hsl(var(--muted-foreground)); padding: 0 12px 8px; margin-top: -4px; }
.col-body { overflow-y: auto; padding: 2px 8px 8px; display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.col-empty { border: 1px dashed hsl(var(--border)); border-radius: var(--radius); padding: 18px 10px; text-align: center; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.col-empty button { color: hsl(var(--foreground)); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px; cursor: pointer; transition: box-shadow .15s, border-color .15s, transform .15s; outline: none; }
.card:hover { box-shadow: var(--shadow); border-color: hsl(var(--foreground) / .18); }
.card:focus-visible { box-shadow: 0 0 0 2px hsl(var(--ring)); }
.card.dragging { opacity: .45; transform: rotate(1deg); }
.card.attn { border-left: 3px solid hsl(var(--accent)); padding-left: 10px; }
.card.info { border-left: 3px solid hsl(var(--info)); padding-left: 10px; }
/* melding #409 stap B: blauw en rood tegelijk = twee strepen (rood buiten, blauw binnen) */
.card.info.attn { border-left: 3px solid hsl(var(--accent)); box-shadow: inset 3px 0 0 hsl(var(--info)); padding-left: 13px; }
.card-title { font-weight: 500; font-size: 13.5px; line-height: 1.4; margin-bottom: 9px; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; border-radius: 999px; padding: 1px 8px; height: 20px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); border: 1px solid transparent; }
.chip.type { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.chip.outline { background: none; border-color: hsl(var(--border)); }
.status { margin-top: 11px; font-size: 12px; color: hsl(var(--muted-foreground)); display: flex; flex-direction: column; gap: 6px; }
.status .row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.status .row span.t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status .row .pct { margin-left: auto; font-weight: 500; color: hsl(var(--foreground)); }
.bar { height: 4px; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; }
.bar > i { display: block; height: 100%; background: hsl(var(--foreground)); border-radius: 999px; transition: width .5s ease; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--success)); flex: none; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.pill { margin-top: 11px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; border-radius: 6px; padding: 5px 8px; background: hsl(var(--muted)); color: hsl(var(--foreground)); }
.pill .ico { color: hsl(var(--accent-strong)); }
.pill.ready .ico { color: inherit; }
.pill.ready { background: hsl(var(--success) / .1); color: hsl(var(--success)); }
.pill.err { background: hsl(var(--destructive) / .08); color: hsl(var(--destructive)); }
.last { margin-top: 9px; font-size: 12px; color: hsl(var(--muted-foreground)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.card-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.card-foot .spacer { flex: 1; }
.fb { margin-top: 11px; border-top: 1px solid hsl(var(--border)); padding-top: 10px; cursor: default; }
.fb-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; cursor: pointer; margin: 0; user-select: none; }
.fb-check input { width: 16px; height: 16px; margin: 0; accent-color: hsl(var(--foreground)); cursor: pointer; }
.fb textarea { margin-top: 9px; min-height: 70px; font-size: 13px; }
.fb .row { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* skeleton */
.skel { background: linear-gradient(90deg, hsl(var(--muted)) 0%, hsl(var(--muted) / .45) 50%, hsl(var(--muted)) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- profiel / learnings ---------- */
.profile { overflow-y: auto; padding: 24px 28px 60px; }
.profile-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(340px, 1.15fr); gap: 20px; max-width: 1180px; }
.panel { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow-sm); }
.panel h2 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.panel-head { display: flex; align-items: flex-start; gap: 12px; }
.panel-head > div { flex: 1; }
.style-item { border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 12px; margin-top: 12px; background: hsl(var(--background)); transition: border-color .15s; }
.style-item:focus-within { border-color: hsl(var(--foreground) / .3); }
.style-item .top { display: flex; gap: 8px; align-items: flex-start; }
.style-item input { font-weight: 600; }
.style-item textarea { margin-top: 8px; }
.meta-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.saved { font-size: 12px; color: hsl(var(--success)); display: inline-flex; align-items: center; gap: 4px; }
.learn-add { display: flex; gap: 8px; margin-top: 16px; }
.learn-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid hsl(var(--border)); }
.learn-item:first-child { border-top: 0; }
.learn-item .num { width: 22px; height: 22px; border-radius: 6px; background: hsl(var(--muted)); display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; margin-top: 7px; }
.learn-item .body { flex: 1; min-width: 0; }
.learn-item textarea { min-height: 38px; border-color: transparent; padding: 6px 8px; margin-left: -8px; background: none; resize: none; }
.learn-item textarea:hover { border-color: hsl(var(--border)); }
.learn-item textarea:focus { background: hsl(var(--background)); }
.src { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; padding: 0 7px; border-radius: 999px; height: 18px; background: hsl(var(--muted)); }
.src.agent { background: hsl(var(--violet) / .12); color: hsl(var(--violet)); }

/* ---------- drawer (sheet) ---------- */
#drawer { width: min(540px, 100vw); background: hsl(var(--background)); border-left: 1px solid hsl(var(--border)); display: flex; flex-direction: column; min-height: 0; box-shadow: var(--shadow-lg); animation: slidein .2s ease; }
@keyframes slidein { from { transform: translateX(16px); opacity: .4; } }
.dr-head { padding: 16px 20px 14px; border-bottom: 1px solid hsl(var(--border)); }
.dr-top { display: flex; align-items: center; gap: 8px; color: hsl(var(--muted-foreground)); font-size: 12.5px; }
.dr-top .spacer { flex: 1; }
.dr-title { font-size: 18px; font-weight: 600; border: 1px solid transparent; padding: 4px 8px; margin: 8px 0 0 -9px; width: calc(100% + 9px); background: none; letter-spacing: -0.02em; }
.dr-title:hover { border-color: hsl(var(--border)); }
.props { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; align-items: center; margin-top: 12px; font-size: 13px; }
.props > span { color: hsl(var(--muted-foreground)); display: inline-flex; align-items: center; gap: 7px; }
.props select { height: 32px; padding-top: 4px; padding-bottom: 4px; border-color: transparent; background-color: transparent; margin-left: -11px; width: calc(100% + 11px); }
.props select:hover { border-color: hsl(var(--border)); background-color: hsl(var(--muted) / .5); }
.props .val { display: flex; align-items: center; gap: 7px; min-height: 32px; }
.links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.links a { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; font-size: 12.5px; font-weight: 500; text-decoration: none; border: 1px solid hsl(var(--border)); border-radius: 6px; background: hsl(var(--background)); box-shadow: var(--shadow-sm); }
.links a:hover { background: hsl(var(--muted)); }
.dr-body { flex: 1; overflow-y: auto; padding: 18px 20px; background: hsl(var(--surface)); }
.notes { white-space: pre-wrap; background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 11px 13px; font-size: 13px; margin-bottom: 18px; }
.aanp-kop { display: flex; align-items: baseline; gap: 8px; } .aanp-meta { font-weight: 400; text-transform: none; letter-spacing: 0; color: hsl(var(--muted-foreground)); }
.aanp { background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 10px 13px; font-size: 13px; margin-bottom: 18px; }
.aanp ul { margin: 0; padding-left: 18px; } .aanp li { margin: 2px 0; overflow-wrap: anywhere; } .aanp-leeg { color: hsl(var(--muted-foreground)); }
.notes a, .ev .txt a { text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.ev { display: flex; gap: 10px; margin-bottom: 16px; }
.ev .av { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; font-size: 10.5px; font-weight: 600; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); }
.ev .av.agent { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: transparent; }
.ev .av.agent .ico { width: 14px; height: 14px; }
.ev .main { flex: 1; min-width: 0; }
.ev .who { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ev .when { font-weight: 400; color: hsl(var(--muted-foreground)); }
.ev .kind { font-size: 10.5px; font-weight: 600; border-radius: 4px; padding: 0 5px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.ev .kind.question, .ev .kind.feedback { background: hsl(var(--accent) / .18); color: hsl(var(--accent-strong)); }
.ev .kind.ready { background: hsl(var(--success) / .12); color: hsl(var(--success)); }
.ev .txt { white-space: pre-wrap; margin-top: 4px; line-height: 1.55; word-wrap: break-word; background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 2px 10px 10px 10px; padding: 9px 12px; font-size: 13.5px; }
.ev.feedback .txt, .ev.msg .txt, .ev.antwoord .txt { background: hsl(var(--muted)); border-color: transparent; }
.ev.question .txt { border-color: hsl(var(--accent) / .55); }
.ev.ready .txt { border-color: hsl(var(--success) / .4); }
.ev-sys { display: flex; align-items: center; gap: 10px; color: hsl(var(--muted-foreground)); font-size: 11.5px; margin: 4px 0 16px; }
.ev-sys::before, .ev-sys::after { content: ""; flex: 1; height: 1px; background: hsl(var(--border)); }
.ev video { width: 100%; max-height: 380px; border-radius: var(--radius); margin-top: 8px; background: #000; display: block; }
.ev img { max-width: 100%; border-radius: var(--radius); margin-top: 8px; display: block; }
.file { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; margin-top: 6px; text-decoration: none; color: hsl(var(--muted-foreground)); }
.file:hover { color: hsl(var(--foreground)); }
.dr-foot { border-top: 1px solid hsl(var(--border)); padding: 12px 16px 14px; background: hsl(var(--background)); }
.composer { border: 1px solid hsl(var(--input)); border-radius: 10px; background: hsl(var(--background)); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: hsl(var(--ring) / .6); box-shadow: 0 0 0 3px hsl(var(--ring) / .08); }
.composer textarea { border: 0; box-shadow: none; min-height: 64px; resize: none; padding: 10px 12px 4px; background: none; }
.composer textarea:focus { box-shadow: none; }
.composer .bar2 { display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px; }
.composer .bar2 .spacer { flex: 1; }
.composer .kbd { font-size: 11px; color: hsl(var(--muted-foreground)); }
.dr-actions { display: flex; gap: 6px; margin-top: 10px; }
.dr-actions .spacer { flex: 1; }

/* ---------- dialog ---------- */
.modal { position: fixed; inset: 0; background: hsl(240 10% 4% / .45); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 40; padding: 16px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal-card { background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 14px; width: min(540px, 100%); max-height: 90vh; overflow-y: auto; padding: 24px; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(6px) scale(.985); opacity: 0; } }
.modal-card h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: hsl(var(--muted)); border-radius: calc(var(--radius) - 1px); padding: 3px; gap: 3px; }
.seg button { height: 30px; border-radius: 5px; font-size: 13px; font-weight: 500; color: hsl(var(--muted-foreground)); transition: background .12s, color .12s; }
.seg button[aria-pressed="true"] { background: hsl(var(--background)); color: hsl(var(--foreground)); box-shadow: var(--shadow); }
/* melding #433: het witte vlak schuift naar de gekozen knop (app.js segZet); bij minder beweging springt het */
.seg.met-vlak { position: relative; }
.seg.met-vlak > button { position: relative; z-index: 1; }
.seg.met-vlak > button[aria-pressed="true"] { background: transparent; box-shadow: none; }
.seg-vlak { position: absolute; left: 0; top: 0; border-radius: 5px; background: hsl(var(--background)); box-shadow: var(--shadow); pointer-events: none; opacity: 0;
  transition: transform .2s var(--ease, ease), width .2s var(--ease, ease), height .2s var(--ease, ease); }
.seg-vlak.stil { transition: none; }
@media (prefers-reduced-motion: reduce) { .seg-vlak, .ml-f .ml-fchev { transition: none; } }
.drop-zone { border: 1px dashed hsl(var(--input)); border-radius: var(--radius); padding: 14px; display: flex; align-items: center; gap: 10px; color: hsl(var(--muted-foreground)); font-size: 13px; cursor: pointer; margin: 0; font-weight: 400; }
.drop-zone:hover { background: hsl(var(--muted) / .6); color: hsl(var(--foreground)); }
.drop-zone input { display: none; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.check { display: flex; gap: 9px; align-items: center; margin-top: 16px; font-size: 13px; font-weight: 400; }
.check input { width: 16px; height: 16px; accent-color: hsl(var(--foreground)); margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* toast */
.toast { position: fixed; bottom: 20px; right: 20px; background: hsl(var(--foreground)); color: hsl(var(--background)); padding: 11px 16px; border-radius: 10px; z-index: 60; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; animation: pop .2s ease; max-width: calc(100vw - 40px); }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: hsl(var(--border)) transparent; }

@media (max-width: 900px) {
  #app { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .main-head { padding: 14px 16px 0; }
  .head-row .btn .lbl { display: none; }
  #sidebar { position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 30; display: none; box-shadow: var(--shadow-lg); }
  #sidebar.open { display: flex; }
  .board { grid-template-columns: repeat(5, 84vw); padding: 14px 16px; scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  #drawer { position: fixed; inset: 0; width: 100%; z-index: 35; }
  .profile { padding: 16px; }
  .profile-grid, .field-row { grid-template-columns: 1fr; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}

.txt.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.txt.typing i { width: 6px; height: 6px; border-radius: 50%; background: hsl(var(--muted-foreground)); animation: blink 1.2s infinite; }
.txt.typing i:nth-child(2) { animation-delay: .2s; } .txt.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

/* ---------- caption-preview (telefoon) ---------- */
.phone { position: relative; width: 270px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #111; box-shadow: var(--shadow-lg); border: 5px solid #0b0b0c; flex: none; }
.phone.sm { width: 108px; border-radius: 12px; border-width: 3px; box-shadow: var(--shadow); }
.ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-cap { position: absolute; left: 6%; right: 6%; transform: translateY(-50%); text-align: center; line-height: 1.12; font-family: "Inter", sans-serif; }
.ph-cap .ln { display: block; }
.ph-cap .ln.big { font-size: 1.35em; }
.ph-cap .hl { color: var(--hl); }
.ph-hook { position: absolute; top: 12%; left: 8%; right: 8%; text-align: center; font-weight: 800; color: #111; background: #fff; border-radius: 6px; padding: .25em .4em; line-height: 1.15; }
.cap-row { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 12px; border-radius: var(--radius); background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); }
.cap-thumb { cursor: pointer; flex: none; }
.cap-empty { width: 108px; aspect-ratio: 9 / 16; border-radius: 12px; border: 1px dashed hsl(var(--input)); display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; font-size: 11px; color: hsl(var(--muted-foreground)); padding: 6px; }
.cap-info { min-width: 0; }

/* ---------- bijlagen ---------- */
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.att { display: flex; align-items: center; gap: 8px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 4px 4px 4px 4px; background: hsl(var(--background)); max-width: 260px; }
.att img, .att video { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; display: block; background: #000; }
.att-ic { width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; background: hsl(var(--muted)); }
.att-name { font-size: 12.5px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.att-name:hover { text-decoration: underline; }
.att-add { display: inline-flex; align-items: center; gap: 6px; height: 50px; padding: 0 12px; margin: 0; border: 1px dashed hsl(var(--input)); border-radius: var(--radius); font-size: 12.5px; font-weight: 500; color: hsl(var(--muted-foreground)); cursor: pointer; }
.att-add:hover { color: hsl(var(--foreground)); background: hsl(var(--muted) / .6); }
.learn-item .atts { margin-top: 8px; }

/* ---------- caption-editor ---------- */
.modal-card.wide { width: min(1040px, 100%); }
.cap-editor { display: grid; grid-template-columns: 1fr 290px; gap: 28px; }
.presets { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 8px; }
.preset { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; flex: none; border-radius: 12px; padding: 6px; }
.preset:hover { background: hsl(var(--muted)); }
.preset .phone.sm { width: 76px; border-radius: 9px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.cf .label { margin: 12px 0 6px; }
.rng { display: flex; align-items: center; gap: 10px; }
.rng input { padding: 0; border: 0; box-shadow: none; accent-color: hsl(var(--foreground)); height: 32px; }
.rng span { font-size: 12.5px; min-width: 52px; text-align: right; color: hsl(var(--muted-foreground)); }
.colr { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12.5px; font-weight: 400; color: hsl(var(--muted-foreground)); height: 34px; }
.colr input { width: 34px; height: 34px; padding: 2px; border-radius: 8px; cursor: pointer; }
.ce-right { display: flex; flex-direction: column; align-items: stretch; gap: 12px; position: sticky; top: 0; }
.ce-right #cePrev { display: flex; justify-content: center; }
.ce-real video { width: 100%; border-radius: 14px; background: #000; display: block; max-height: 420px; }
.cf-grid .seg button { font-size: 12px; padding: 0 6px; }
/* 'Dit krijg je' onder de stijlknoppen (melding #233): één rustige regel, loopt door op de telefoon */
.nt-krijg { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.nt-krijg b { font-weight: 500; color: hsl(var(--foreground)); margin-right: 2px; }
.nt-krijg span:not(:last-child)::after { content: " · "; }
#ntFilesLbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-cap { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 10px; border-radius: var(--radius); background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); }
@media (max-width: 900px) {
  .cap-editor { grid-template-columns: 1fr; }
  .ce-right { position: static; order: -1; }
  .cf-grid { grid-template-columns: 1fr; }
}

/* ---------- profielfoto's ---------- */
.avatar.img { padding: 0; overflow: hidden; background: hsl(var(--muted)); }
.avatar.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; vertical-align: middle; margin-right: 10px; display: inline-grid; }
.avatar.xl { width: 64px; height: 64px; border-radius: 14px; font-size: 20px; }
.head-row h1 { display: flex; align-items: center; }
.av-row { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 12px; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--surface)); }
.panel.learned { border-color: hsl(var(--violet) / .35); background: linear-gradient(180deg, hsl(var(--violet) / .05), transparent 60%), hsl(var(--card)); }
.panel.learned textarea { margin-top: 12px; }
.profile-grid > .panel:first-child { grid-row: span 2; }

/* ---------- zoeken / deadlines ---------- */
.search { width: 200px; height: 34px; }
.dl { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; color: hsl(var(--muted-foreground)); }
.dl.today { color: hsl(var(--warning)); }
.dl.late { color: hsl(var(--destructive)); }
input[type="date"] { height: 34px; }
.props input[type="date"] { height: 32px; border-color: transparent; margin-left: -11px; width: calc(100% + 11px); background: transparent; }
.props input[type="date"]:hover { border-color: hsl(var(--border)); }

/* ---------- overzicht ---------- */
.ov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; max-width: 1400px; }
.ov-grid h2 { display: flex; align-items: center; gap: 8px; }
.ov-grid h2 .count { color: hsl(var(--muted-foreground)); font-weight: 500; }
.ov-list { margin-top: 10px; display: flex; flex-direction: column; }
.ov-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; padding: 10px 8px; border-radius: 8px; border-top: 1px solid hsl(var(--border)); }
.ov-row:first-child { border-top: 0; }
.ov-row:hover { background: hsl(var(--muted)); }
.ov-k { font-size: 11.5px; color: hsl(var(--muted-foreground)); font-weight: 500; grid-column: 1; }
.ov-t { font-weight: 500; grid-column: 1; }
.ov-s { grid-column: 1; font-size: 12px; color: hsl(var(--muted-foreground)); display: flex; align-items: center; gap: 6px; }
.ov-row .dl { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
@media (max-width: 900px) { .search { width: 120px; } .profile-grid > .panel:first-child { grid-row: auto; } }

/* ---------- learnings gegroepeerd ---------- */
.ln-group { margin-top: 14px; }
.ln-cat { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: hsl(var(--muted-foreground)); padding: 6px 0; border-bottom: 1px solid hsl(var(--border)); display: flex; gap: 6px; }
.ln-group .learn-item:first-of-type { border-top: 0; }
select.mini { height: 24px; padding: 0 22px 0 8px; font-size: 11.5px; width: auto; border-radius: 6px; background-position: right 5px center; background-size: 12px; color: hsl(var(--muted-foreground)); }
select.mini:hover { color: hsl(var(--foreground)); }
.meta-line { flex-wrap: wrap; }
.learn-add select.mini { height: 38px; font-size: 12.5px; }

/* ---------- opleverlinks met logo's ---------- */
.delivery { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.delivery.compact { margin-top: 9px; gap: 6px; }
.fio-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 8px; text-decoration: none;
  background: linear-gradient(135deg, #7B6BFF, #5B4BFF); color: #fff; font-weight: 600; font-size: 13px; box-shadow: 0 2px 8px -2px rgba(91, 75, 255, .55); transition: filter .15s, transform .15s; }
.fio-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fio-btn svg { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); }
.fio-btn.sm { height: 30px; font-size: 12px; padding: 0 10px 0 5px; gap: 6px; }
.fio-btn.sm svg { width: 20px; height: 20px; }
.tool-ics { display: flex; gap: 6px; }
.tool-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s; }
.tool-ic:hover { transform: translateY(-1px); border-color: hsl(var(--foreground) / .25); }
.tool-ic svg { width: 22px; height: 22px; }
.delivery.compact .tool-ic { width: 30px; height: 30px; }
.delivery.compact .tool-ic svg { width: 19px; height: 19px; }
.delivery.compact { flex-direction: column; align-items: stretch; }
.delivery.compact .fio-btn { justify-content: center; white-space: nowrap; width: 100%; }
.delivery.compact .tool-ics { justify-content: center; }

/* ---------- chat / systeem / muziek ---------- */
.chat-page { max-width: 860px; display: flex; flex-direction: column; height: calc(100vh - 190px); padding: 0; overflow: hidden; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 20px; background: hsl(var(--surface)); }
.chat-page .composer { margin: 12px; }
.sys-st { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.sys-st.ok { color: hsl(var(--success)); } .sys-st.wait { color: hsl(var(--accent-strong)); } .sys-st.run { color: hsl(var(--foreground)); }
.mu-top { display: flex; gap: 10px; }
.mu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mu-tags .chip { cursor: pointer; height: 26px; padding: 0 10px; font-size: 12px; }
.mu-list { border-top: 1px solid hsl(var(--border)); }
.mu-row { display: grid; grid-template-columns: 34px 1fr auto auto 30px 30px; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid hsl(var(--border)); }
.mu-row.off { opacity: .45; }
.mu-row:hover { background: hsl(var(--surface)); }
.mu-name { font-weight: 500; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-meta { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.mu-meta .chip { height: 18px; font-size: 10.5px; padding: 0 6px; }
.mu-num { font-size: 12px; color: hsl(var(--muted-foreground)); min-width: 48px; text-align: right; }
.mu-play { width: 30px; height: 30px; border-radius: 50%; }
.btn.on { color: #e0a100; } .btn.on .ico { fill: #e0a100; }
.btn.on-red { color: hsl(var(--destructive)); }
@media (max-width: 900px) { .mu-row { grid-template-columns: 34px 1fr 30px 30px; } .mu-num { display: none; } }

/* ---------- microfoon ---------- */
.mic-fab { position: fixed; z-index: 70; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: hsl(var(--background)); color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow); transition: color .15s, background .15s; }
.mic-fab:hover { color: hsl(var(--foreground)); border-color: hsl(var(--foreground) / .3); }
.mic-fab.rec { background: #e5484d; color: #fff; border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .25); animation: micpulse 1.2s infinite; }
.mic-fab.rec::after { content: attr(data-t); position: absolute; right: 34px; top: 50%; transform: translateY(-50%); font-size: 11.5px; font-weight: 600;
  color: #e5484d; background: hsl(var(--background)); padding: 2px 7px; border-radius: 6px; box-shadow: var(--shadow); white-space: nowrap; }
.mic-fab.busy { color: hsl(var(--foreground)); }
.mic-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid hsl(var(--border)); border-top-color: hsl(var(--foreground)); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes micpulse { 50% { box-shadow: 0 0 0 8px rgba(229, 72, 77, .08); } }
textarea { padding-right: 40px; }

/* ---------- call 10-11: opdrachtscherm met video bovenaan ---------- */
#drawer { width: min(620px, 100vw); }
.dr-head { padding: 14px 18px 12px; }
.dr-core { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.dr-core .mini, input.mini { height: 28px; font-size: 12.5px; padding: 0 24px 0 9px; width: auto; border-radius: 6px; }
input.mini { padding: 0 9px; }
input[type="date"].mini { width: 140px; }
.dr-media { background: #0b0b0c; padding: 0 0 10px; border-bottom: 1px solid hsl(var(--border)); flex: none; }
.dr-media video { display: block; width: 100%; max-height: 44vh; background: #000; }
.dr-mbar { display: flex; align-items: center; gap: 8px; padding: 8px 14px 0; color: #e4e4e7; font-size: 12.5px; }
.dr-mbar .spacer { flex: 1; } .dr-mbar select.mini { max-width: 60%; background-color: #1c1c1f; color: #e4e4e7; border-color: #2e2e33; }
.dr-vname { opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-media .delivery { padding: 8px 14px 0; margin: 0; }
.dr-novid .spacer { flex: 1; } .dr-vclose { color: #a1a1aa; }
.dr-novid { display: flex; align-items: center; gap: 8px; padding: 12px 18px 2px; color: #a1a1aa; font-size: 12.5px; }
.dr-media:has(.dr-novid) { background: hsl(var(--surface)); } .dr-media:has(.dr-novid) .dr-novid { color: hsl(var(--muted-foreground)); }
.vf-btn.rec { background: hsl(var(--destructive)); color: #fff; border-color: transparent; animation: pulse 1.6s infinite; }
.dr-tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid hsl(var(--border)); flex: none; background: hsl(var(--background)); }
.dr-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 10px; font-size: 13px; font-weight: 500; color: hsl(var(--muted-foreground)); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dr-tabs button[aria-selected="true"] { color: hsl(var(--foreground)); border-bottom-color: hsl(var(--foreground)); }
.dr-chat, .dr-details { flex: 1; min-height: 120px; overflow-y: auto; padding: 14px 18px; background: hsl(var(--surface)); overscroll-behavior: contain; }
.dr-chat { overflow-anchor: none; }  /* scrollpositie houdt watchChat() vast; geen content-visibility: placeholderhoogtes lieten de chat verspringen */
.dr-log { font-size: 12px; color: hsl(var(--muted-foreground)); }
.log-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid hsl(var(--border)); }
.dr-status { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: hsl(var(--muted-foreground)); margin: -2px 2px 8px; min-height: 18px; }
.dr-status b { color: hsl(var(--foreground)); font-weight: 600; }
.file.vid { border: 1px solid hsl(var(--border)); border-radius: 6px; padding: 3px 8px; background: hsl(var(--background)); color: hsl(var(--foreground)); }
.up-prog { display: inline-block; width: 90px; height: 4px; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; vertical-align: middle; }
.up-prog.wide { display: block; width: 100%; margin-top: 8px; } .up-prog[hidden] { display: none; }
.up-prog i { display: block; height: 100%; width: 0; background: hsl(var(--foreground)); transition: width .2s; }
.chip.prio-hi { background: hsl(var(--accent) / .22); color: hsl(var(--accent-strong)); }
/* overzicht */
.ov-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; max-width: 1400px; margin-bottom: 16px; }
.ov-stat { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ov-stat b { font-size: 22px; letter-spacing: -0.02em; } .ov-stat span { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.ov-stat.hot { border-color: hsl(var(--accent)); } .ov-stat.hot b { color: hsl(var(--accent-strong)); }
/* systeem-feedback bijlagen */
.sys-drop { margin-top: 10px; } .drop-zone.over { background: hsl(var(--muted)); border-color: hsl(var(--foreground) / .4); }
.sys-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sys-th { position: relative; border: 1px solid hsl(var(--border)); border-radius: 8px; overflow: hidden; background: hsl(var(--muted)); }
.sys-th img { display: block; height: 72px; width: auto; max-width: 160px; object-fit: cover; }
.sys-th > span { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 12px; max-width: 200px; }
.sys-th button { position: absolute; top: 2px; right: 2px; background: hsl(var(--background) / .85); }
/* stijlbibliotheek */
.lib-wrap { display: grid; gap: 16px; max-width: 1100px; }
.lib-intro { font-size: 13.5px; line-height: 1.55; }
.lib-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-top: 12px; }
.lib-list .style-item { margin: 0; }
.style-item .top select.mini { flex: none; }
.style-item.is-test { border-color: hsl(var(--accent) / .6); }
.test-note { display: flex; align-items: center; gap: 6px; color: hsl(var(--accent-strong)); margin: 6px 0 2px; font-size: 12px; }
.col-in { display: flex; align-items: center; gap: 8px; } .swatches { display: flex; gap: 4px; flex: none; }
.swatches i { width: 18px; height: 18px; border-radius: 5px; border: 1px solid hsl(var(--border)); }
/* learning-video's */
.lv-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.lv-form textarea, .lv-form .drop-zone, .lv-form .actions { grid-column: 1 / -1; }
.lv-form input:only-of-type { grid-column: 1 / -1; }
.lv-form select.mini { height: 38px; font-size: 12.5px; }
.lv-list { margin-top: 10px; }
.lv-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-top: 1px solid hsl(var(--border)); font-size: 13px; }
.lv-ic { width: 30px; height: 30px; border-radius: 8px; background: hsl(var(--muted)); display: grid; place-items: center; flex: none; }
.lv-main { flex: 1; min-width: 0; } .lv-t { font-weight: 600; }
/* muziek: tags bewerken, bulk */
.mu-row { grid-template-columns: 18px 34px 1fr auto auto 30px 30px; }
.mu-row.sel { background: hsl(var(--muted) / .6); }
.mu-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 10px; border: 1px solid hsl(var(--border)); border-radius: 8px; font-size: 12.5px; }
.mu-bulk.on { border-color: hsl(var(--foreground) / .35); background: hsl(var(--surface)); }
.mu-edit { height: 28px; font-size: 12.5px; flex: 1; min-width: 200px; }
.mu-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
@media (max-width: 900px) { .mu-row { grid-template-columns: 18px 34px 1fr 30px 30px; } .lv-form { grid-template-columns: 1fr; } .dr-media video { max-height: 38vh; } }
.atts.over { outline: 2px dashed hsl(var(--foreground) / .4); outline-offset: 4px; border-radius: 8px; }
#drawer.drop-over { outline: 3px dashed hsl(var(--accent-strong)); outline-offset: -6px; }
.dr-mbar .btn { background: #1c1c1f; color: #f4f4f5; border-color: #2e2e33; box-shadow: none; }
.dr-mbar .btn:hover { background: #2a2a2e; }
/* inspiratie */
.insp-wrap { display: grid; gap: 16px; max-width: 1100px; }
.insp-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 12px; }
.insp-form textarea, .insp-form .drop-zone, .insp-form .actions { grid-column: 1 / -1; }
.insp-form select.mini { height: 38px; font-size: 12.5px; }
.insp-form .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.research-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.insp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.insp-item { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.insp-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; } .insp-head .spacer { flex: 1; }
.insp-link { display: flex; align-items: center; gap: 6px; font-size: 12.5px; word-break: break-all; color: hsl(var(--foreground)); }
.insp-item video { width: 100%; max-height: 360px; background: #000; border-radius: 8px; }
.insp-note { margin: 0; font-size: 13px; white-space: pre-wrap; }
.insp-an summary { cursor: pointer; font-size: 12.5px; font-weight: 600; }
.insp-an div { white-space: pre-wrap; font-size: 13px; line-height: 1.55; margin-top: 6px; }
@media (max-width: 900px) { .insp-form { grid-template-columns: 1fr; } }
.ph-cap .ln.big { line-height: .95; letter-spacing: -0.02em; }
.ph-cap .ln.sm { font-size: 1em; }
.font-row { display: flex; gap: 6px; align-items: center; } .font-row select { flex: 1; min-width: 0; }
.preset.on { outline: 2px solid hsl(var(--foreground)); outline-offset: 2px; border-radius: 10px; }
/* B-roll-bibliotheek */
.br-head { margin-bottom: 14px; } .br-status { font-size: 12.5px; }
.br-link, .br-tools { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.br-link input { flex: 1; min-width: 240px; } .br-tools input { flex: 1; min-width: 220px; }
.br-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; max-width: 1300px; }
.br-item { position: relative; text-align: left; border: 1px solid hsl(var(--border)); border-radius: 10px; overflow: hidden; background: hsl(var(--card)); display: flex; flex-direction: column; }
.br-item:hover { border-color: hsl(var(--foreground) / .4); }
.br-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; display: block; }
.br-item.off { opacity: .4; } .br-item.bad img { filter: grayscale(.8); }
.br-dur { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; background: rgba(0,0,0,.7); color: #fff; border-radius: 5px; padding: 1px 6px; }
.br-txt { font-size: 12px; padding: 7px 9px 2px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.br-tags { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px 9px 8px; } .br-tags i { font-style: normal; font-size: 10.5px; background: hsl(var(--muted)); border-radius: 4px; padding: 0 5px; color: hsl(var(--muted-foreground)); }
.br-view { width: 100%; max-height: 60vh; object-fit: contain; background: #000; border-radius: 8px; display: block; margin-top: 10px; }
.mu-yt { margin-top: 10px; }
.mu-yt input { flex: 1; }

/* ---------- iPhone-app (homescreen, Twan 2026-11-10) ---------- */
.mnav { display: none; }
.col-pills { display: none; }
@media (max-width: 760px) {
  html, body { overscroll-behavior-y: none; }
  #app { height: 100dvh; }
  input, select, textarea { font-size: 16px !important; }  /* iOS zoomt anders in bij typen */
  .main-head { padding: calc(10px + env(safe-area-inset-top)) 14px 0; }
  .crumbs { display: none; }
  .head-row { gap: 8px; }
  .head-row h1 { font-size: 20px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #search { width: 34vw !important; min-width: 0; }
  #clientSub, .sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; word-break: break-word; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin: 10px -14px 0; padding: 0 10px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: none; padding: 9px 10px 11px; }
  /* board: één kolom per scherm, swipen, met kolomknoppen bovenin */
  .col-pills { display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px 0; scrollbar-width: none; flex: none; }
  .col-pills::-webkit-scrollbar { display: none; }
  .col-pills button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
    background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
  .col-pills button.on { background: hsl(var(--foreground)); color: hsl(var(--background)); }
  .col-pills .n { font-variant-numeric: tabular-nums; opacity: .7; }
  .col-pills .vraag-dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--info)); flex: none; }  /* melding #387 */
  .col-pills .rood-dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--accent)); flex: none; margin-left: 3px; }  /* melding #409 */
  .board { display: flex; grid-template-columns: none; gap: 10px; padding: 10px 14px calc(84px + env(safe-area-inset-bottom)); scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
  .board .col { flex: 0 0 calc(100vw - 28px); scroll-snap-align: center; max-height: none; }
  .profile { padding: 14px 14px calc(90px + env(safe-area-inset-bottom)); }
  .panel { padding: 16px; border-radius: 14px; }
  /* onderste navigatie */
  .mnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: hsl(var(--background) / .88); backdrop-filter: saturate(1.6) blur(16px);
    -webkit-backdrop-filter: saturate(1.6) blur(16px); border-top: 1px solid hsl(var(--border)); }
  .mnav button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: hsl(var(--muted-foreground)); padding: 4px 0; position: relative; }
  .mnav button .ico { width: 22px; height: 22px; }
  .mnav button.on { color: hsl(var(--foreground)); }
  .mnav .badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 999px; background: hsl(var(--accent-strong)); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
  .mnav .badge.info { left: auto; right: calc(50% + 6px); background: hsl(var(--info)); }
  #sidebar { width: min(300px, 86vw); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); z-index: 45; }
  #sidebar.open + #main::after { content: ""; position: fixed; inset: 0; background: hsl(240 10% 4% / .4); z-index: 29; }
  /* melding #216: menu/vel open = pagina ligt stil, lijst geeft vegen niet door (app.js houdt de rest tegen) */
  body.menu-open, body.sheet-open { overflow: hidden; }
  #sidebar.open + #main::after { touch-action: none; }
  #sidebar { overscroll-behavior: none; }
  #clients, .modal-card { overscroll-behavior: contain; }
  /* opdrachtscherm */
  #drawer { z-index: 50; padding-top: env(safe-area-inset-top); }
  .modal { z-index: 55; }  /* #358 blok 5: een dialoog uit het opdrachtscherm (muziek per clip, projectbestanden) ligt boven het scherm, niet erachter */
  .dr-head { padding: 10px 14px 10px; }
  .dr-title { font-size: 17px; }
  .dr-core { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .dr-core .mini, .dr-core input.mini { width: 100% !important; height: 34px; }
  .dr-media video { max-height: 32vh; }
  .dr-chat, .dr-details { padding: 12px 14px; }
  .dr-foot { padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); }
  .composer textarea { min-height: 52px; }
  .bar2 .kbd { display: none; }
  /* dialogen als sheet van onderen */
  .modal { place-items: end center; padding: 0; }
  .modal-card { width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .ov-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ov-stat { padding: 12px; } .ov-stat b { font-size: 20px; }
  .mic-fab { z-index: 60; }
}
@media (max-width: 760px) and (display-mode: standalone) {
  .main-head { padding-top: calc(6px + env(safe-area-inset-top)); }
}
/* inspiratie: één lijst (melding #47) */
.insp-add { display: flex; gap: 8px; align-items: center; }
.insp-add input { flex: 1; min-width: 0; }
.insp-add.over { outline: 2px dashed hsl(var(--ring, var(--border))); outline-offset: 4px; border-radius: 8px; }
.insp-more { margin-top: -8px; } .insp-more summary { cursor: pointer; width: max-content; }
.insp-more .insp-form { grid-template-columns: auto auto 1fr; align-items: center; }
.insp-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .insp-bar .spacer { flex: 1; }
.insp-bar select.mini { height: 32px; }
/* sidebar: "Meer" inklapbaar */
.nav-more > summary { list-style: none; cursor: pointer; } .nav-more > summary::-webkit-details-marker { display: none; }
.nav-more[open] > summary { color: hsl(var(--foreground)); }
.nav-more > .nav-item { padding-left: 20px; }
/* short form / long form per klant */
.tabs .fmt-switch { margin-left: auto; align-self: center; flex: none; }
.tabs .fmt-switch button { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 0 10px; height: 28px; }
@media (max-width: 760px) { .tabs .fmt-switch { margin-left: 8px; } .tabs .fmt-switch .ico { display: none; } }
.nav-sub { display: flex; flex-direction: column; gap: 1px; margin: 1px 0 4px 18px; padding-left: 10px; border-left: 1px solid hsl(var(--border)); }
.nav-item.sub { padding: 5px 8px; font-size: 13px; }
.nav-item.sub .ico { width: 14px; height: 14px; }
.nav-item.sub[aria-current="page"] { background: hsl(var(--muted)); color: hsl(var(--foreground)); font-weight: 600; }
.sub-n { font-size: 11px; color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.fmt-pill { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); margin-left: 8px; vertical-align: middle; letter-spacing: 0; }

/* inspiratie: video + twee knoppen (Twan 2026-11-11) */
.iv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.iv { display: flex; flex-direction: column; gap: 8px; }
.iv-media { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 9 / 16; }
.iv-media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.iv-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; color: #fff; font-size: 12px; padding: 12px; text-align: center; word-break: break-all; }
.iv-del { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .12s; }
.iv:hover .iv-del, .iv-del:focus-visible { opacity: 1; }
@media (hover: none) { .iv-del { opacity: .8; } }
.iv-busy { position: absolute; top: 10px; left: 10px; background: rgb(0 0 0 / .55); border-radius: 999px; padding: 6px; display: grid; place-items: center; }
.iv-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.iv-btns .btn { justify-content: center; padding: 0 6px; font-size: 13px; white-space: nowrap; }
.iv-drop { flex-direction: column; text-align: center; padding: 22px 14px; margin-top: 4px; }
.iv-drop b { color: hsl(var(--foreground)); font-weight: 500; }

/* templates: tegels (Twan 2026-11-11) */
.st-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-seg { min-width: 360px; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, 124px); gap: 22px 18px; margin-top: 18px; }
.st-tile { position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left; border-radius: 12px; padding: 0; background: none; cursor: pointer; }
.st-prev { display: grid; place-items: center; width: 124px; height: 220px; background: #0b0b0c; border-radius: 12px; overflow: hidden; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); transition: transform .12s, box-shadow .12s; }
.st-prev .phone { border-radius: 10px; }
.st-prev .cap-empty { display: grid; place-items: center; color: hsl(var(--muted-foreground)); }
.st-prev .st-beeld { width: 100%; height: 100%; object-fit: cover; display: block; } .st-prev .st-beeld.breed { object-fit: contain; background: #0b0b0c; } /* liggende clip: heel beeld */ /* #462: stilstaand beeld uit de laatst opgeleverde clip */
.st-prev .st-leeg { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; padding: 10px; font-size: 12px; line-height: 1.3; }
.st-tile:hover .st-prev { transform: translateY(-2px); box-shadow: var(--shadow); }
.st-name { font-size: 13px; font-weight: 500; line-height: 1.3; }
.st-test { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: hsl(var(--accent-strong, 12 90% 55%)); color: #fff; }
.st-modal .style-item { border: 0; padding: 0; box-shadow: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) { .st-seg { min-width: 0; width: 100%; } .st-grid:not(:has(.ap-tile)) { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; justify-content: start; }
  .st-grid:not(:has(.ap-tile)) .st-prev { width: 100%; height: auto; aspect-ratio: 9 / 16; } } /* #462: tegels lijnen uit met de koppen */

/* muziek: kaarten (Twan 2026-11-11) */
.mu2 { max-width: 1200px; }
.mu-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mu-bar .mu-soort { width: 300px; }
.mu-bar #muQ { flex: 1; min-width: 160px; }
.mu-add { display: grid; grid-template-columns: 220px 1fr; gap: 10px; margin-top: 12px; }
.mu-add .mu-yt { display: flex; gap: 8px; align-items: center; } .mu-add .mu-yt input { flex: 1; }
.mu2 .mu-tags { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; flex-wrap: nowrap; }
.mu2 .mu-tags .chip { white-space: nowrap; }
.mu2 .mu-bulk { margin-top: 8px; }
.mu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 14px; margin-top: 14px; }
.mu-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mu-card.off { opacity: .45; }
.mu-art { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 45) 65% 32%)); }
.mu-card.sel .mu-art { outline: 3px solid hsl(var(--foreground)); outline-offset: 2px; }
.mu-art .mu-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: rgb(255 255 255 / .92);
  color: #111; display: grid; place-items: center; box-shadow: 0 4px 18px rgb(0 0 0 / .25); transition: transform .12s; }
.mu-art .mu-play:hover { transform: scale(1.06); }
.mu-card.playing .mu-play { background: #111; color: #fff; }
.mu-art .mu-cb { position: absolute; top: 9px; left: 9px; width: 18px; height: 18px; opacity: 0; transition: opacity .12s; }
.mu-art .mu-acts { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.mu-art .mu-acts .btn { background: rgb(0 0 0 / .35); color: #fff; border-radius: 50%; }
.mu-art .mu-acts .btn.on { opacity: 1; color: #ffd400; } .mu-art .mu-acts .btn.on-red { color: #ff6b6b; }
.mu-card:hover .mu-cb, .mu-card:hover .mu-acts, .mu-card.sel .mu-cb, .mu2.has-sel .mu-cb { opacity: 1; }
.mu-art:has(.on, .on-red) .mu-acts { opacity: 1; }
@media (hover: none) { .mu-art .mu-acts, .mu-art .mu-cb { opacity: .9; } }
.mu-bpm { position: absolute; bottom: 8px; right: 10px; font-size: 11px; font-weight: 600; color: rgb(255 255 255 / .9); }
.mu-bpm::after { content: " bpm"; font-weight: 400; opacity: .8; }
.mu-card .mu-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mu-card .mu-meta { display: flex; align-items: center; gap: 4px; min-height: 26px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.mu-card .mu-tg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mu-card .mu-meta .btn { opacity: .55; } .mu-card:hover .mu-meta .btn { opacity: 1; }
.mu-card .mu-edit { flex: 1; min-width: 0; height: 28px; font-size: 12px; }
.mu-k { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: hsl(var(--foreground)); color: hsl(var(--background)); white-space: nowrap; }
@media (max-width: 640px) { .mu-bar .mu-soort { width: 100%; } .mu-add { grid-template-columns: 1fr; } .mu-grid { grid-template-columns: repeat(2, 1fr); } }
.mu2 .mu-row.mu-card { display: flex; grid-template-columns: none; padding: 0; border-bottom: 0; background: none; }
.mu2 .mu-row.mu-card.sel { background: none; }
.mu2 .mu-card .mu-meta { flex-wrap: nowrap; margin-top: 0; }
@media (max-width: 900px) { .mu2 .mu-row.mu-card { grid-template-columns: none; } }
.mu2 .mu-art { width: 100%; flex: none; height: auto; min-height: 120px; }
.mu2 .mu-card .mu-name { max-width: 100%; text-align: left; } .mu2 .mu-card > * { min-width: 0; max-width: 100%; }

.ap-tile { cursor: default; } .ap-tile .ap-use { justify-content: center; }
#libBack svg { transform: rotate(180deg); }

.mu-art .mu-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mu-art .mu-play, .mu-art .mu-cb, .mu-art .mu-acts, .mu-art .mu-bpm { z-index: 1; }
.mu-art:has(.mu-cover) .mu-bpm { text-shadow: 0 1px 4px rgb(0 0 0 / .6); }

/* overzicht (Twan 2026-11-11) */
.ov2 { max-width: 1200px; display: flex; flex-direction: column; gap: 28px; }
.ov-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: hsl(var(--muted-foreground)); margin: 0 0 12px; }
.ov-h .tnum { font-weight: 500; } .ov-h.late { color: hsl(var(--destructive)); }
.ov-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ov2 .ov-row { display: flex; text-align: left; border: 1px solid hsl(var(--border)); background: hsl(var(--card, var(--background))); border-radius: 12px; cursor: pointer; transition: box-shadow .12s, transform .12s; padding: 0; grid-template-columns: none; }
.ov2 .ov-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.ov-card { flex-direction: column; gap: 8px; padding: 14px !important; min-height: 118px; }
.ov-card.late { border-color: hsl(var(--destructive) / .5); }
.ov-who { display: flex; align-items: center; gap: 8px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.ov-av { width: 22px; height: 22px; border-radius: 6px; font-size: 11px; flex: none; }
.ov-title { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ov-pills { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.ov-pill { align-self: flex-start; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: hsl(var(--accent-strong, 12 90% 55%) / .12); color: hsl(var(--accent-strong, 12 90% 45%)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-dl { font-size: 12px; color: hsl(var(--muted-foreground)); display: flex; gap: 4px; align-items: center; }
.ov-card.late .ov-dl { color: hsl(var(--destructive)); }
.ov-lives { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.ov-live { align-items: center; gap: 12px; padding: 12px 14px !important; }
.ov-live .ov-av { width: 32px; height: 32px; border-radius: 8px; }
.ov-lt { display: flex; flex-direction: column; min-width: 0; flex: 1; } .ov-lt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-lt span { font-size: 12px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-bar { width: 70px; height: 6px; border-radius: 99px; background: hsl(var(--muted)); overflow: hidden; flex: none; }
.ov-bar i { display: block; height: 100%; background: hsl(142 60% 42%); border-radius: 99px; }
.ov-lines { display: flex; flex-direction: column; gap: 6px; }
.ov-line { align-items: center; gap: 10px; padding: 8px 12px !important; } .ov-n { width: 18px; color: hsl(var(--muted-foreground)); font-size: 12px; }
.ov-line .ov-title { -webkit-line-clamp: 1; flex: 1; font-weight: 500; }

/* kaart (Twan 2026-11-11) */
.card .chips:empty { display: none; }
.card .fb-acts { display: flex; gap: 6px; }
.card .delivery.compact { margin-top: 8px; }

.card .fb .row.fb-acts { flex-wrap: nowrap; align-items: center; }
.card .fb-acts .btn { white-space: nowrap; }
/* profiel: geen uitlegteksten (Twan 2026-11-11: te veel tekst) */
.profile-grid p.hint { display: none; }
.profile-grid .panel { box-shadow: none; }

/* pipeline-label v1/v2 (Twan 2026-11-11) */
.pv { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; vertical-align: 1px;
  background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); letter-spacing: .02em; }
.pv.v2 { background: hsl(262 80% 60% / .15); color: hsl(262 70% 50%); }

/* === FRIDAY-OPMAAK BEGIN (Cross Management, 13-11-2026): chat en templates === */
/* Chat: gesprek in het midden, eigen berichten rechts en donker, antwoorden van de agent links */
@media (min-width: 761px) {
  .chat-page { max-width: 900px; margin: 0 auto; height: calc(100vh - 168px); border-radius: 18px; }
  .chat-body { padding: 30px 32px 14px; }
  .chat-page .composer { margin: 0 22px 22px; }
}
.chat-body { background: hsl(var(--background)); display: flex; flex-direction: column; gap: 22px; }
.chat-body > .ev { margin: 0; gap: 12px; }
.chat-body > .btn { flex: none; }
.chat-body .ev .av { width: 30px; height: 30px; border-radius: 50%; font-size: 11px; margin-top: 2px; }
.chat-body .ev .main { display: flex; flex-direction: column; align-items: flex-start; }
.chat-body .ev .who { font-size: 12px; font-weight: 500; color: hsl(var(--muted-foreground)); gap: 8px; }
.chat-body .ev .when { font-size: 11.5px; }
.chat-body .ev .txt { width: fit-content; max-width: min(70ch, 100%); margin-top: 6px; padding: 12px 16px; font-size: 14.5px; line-height: 1.62;
  border-radius: 6px 18px 18px 18px; background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); }
.chat-body .ev:not(:has(.av.agent)) { flex-direction: row-reverse; }
.chat-body .ev:not(:has(.av.agent)) .main { align-items: flex-end; }
.chat-body .ev:not(:has(.av.agent)) .who { flex-direction: row-reverse; }
.chat-body .ev:not(:has(.av.agent)) .txt { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: transparent; border-radius: 18px 6px 18px 18px; }
.chat-body .ev:not(:has(.av.agent)) .txt a { color: inherit; }
.chat-body .ev .typing { background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: 6px 18px 18px 18px; margin-top: 6px; }
.chat-body > .hint { display: block; margin: auto; max-width: 44ch; text-align: center; font-size: 14px; line-height: 1.6; }
.chat-page .composer { border-radius: 18px; box-shadow: var(--shadow); }
.chat-page .composer textarea { min-height: 58px; padding: 15px 18px 4px; font-size: 14.5px; line-height: 1.5; }
.chat-page .composer .bar2 { padding: 6px 10px 10px; }
.chat-page .composer .btn.primary { border-radius: 999px; padding-inline: 16px; min-height: 34px; }

/* Templates: elke goedgekeurde stijl als kaart met een grotere voorvertoning */
.lib-wrap:has(.ap-tile) { max-width: 1180px; gap: 20px; }
.lib-wrap:has(.ap-tile)::before { content: "Captionstijlen die al bij een klant zijn goedgekeurd. Kies er een om hem ook bij een andere klant te gebruiken."; max-width: 62ch; font-size: 14px; line-height: 1.55; color: hsl(var(--muted-foreground)); }
.st-grid:has(.ap-tile) { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 18px; margin-top: 0; justify-content: start; }
.ap-tile { padding: 14px; gap: 12px; border-radius: 16px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.ap-tile:hover { border-color: hsl(var(--foreground) / .28); box-shadow: var(--shadow); }
.ap-tile .st-prev { width: 100%; height: 252px; border: 0; border-radius: 12px; background: hsl(var(--muted)); }
.ap-tile:hover .st-prev { transform: none; box-shadow: none; }
.ap-tile .st-prev .phone { transform: scale(1.2); box-shadow: var(--shadow-lg); }
.ap-tile .st-name { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.ap-tile .st-name::after { content: "Goedgekeurde captionstijl"; display: block; margin-top: 2px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: hsl(var(--muted-foreground)); }
.ap-tile .ap-use { width: 100%; min-height: 36px; border-radius: 10px; }
.lib-wrap:has(.ap-tile) #libManage { justify-self: start; margin-top: 4px !important; padding-inline: 14px; min-height: 36px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: 10px; }
.lib-wrap:has(.ap-tile) #libManage:hover { border-color: hsl(var(--foreground) / .28); }
@media (max-width: 760px) {
  .chat-body { padding: 18px 14px 8px; gap: 18px; }
  .chat-body .ev .txt { max-width: 100%; font-size: 15px; }
  .st-grid:has(.ap-tile) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ap-tile { padding: 10px; } .ap-tile .st-prev { height: 216px; } .ap-tile .st-prev .phone { transform: none; }
}
/* === FRIDAY-OPMAAK EIND === */
.nav-sub, .fmt-pill { display: none !important; } /* .MOV: geen splitsing short/long per klant */
.agent-state { cursor: pointer; border-radius: 8px; } .agent-state:hover { background: hsl(var(--muted)); } /* .MOV: klikbaar, toont wat de agent doet */

/* Belastingmeter in het agent-paneel (beheer 2026-11-16) */
.meter { margin-top: 14px; padding: 14px 16px; border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--muted) / .5); display: grid; gap: 9px; }
.meter-kop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; margin-bottom: 2px; }
.meter-kop .hint { margin-left: auto; }
.meter-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: hsl(var(--success)); }
.meter-dot.geel { background: hsl(var(--warning)); } .meter-dot.rood { background: hsl(var(--destructive)); }
.meter-r { display: grid; grid-template-columns: 92px 1fr minmax(120px, auto); align-items: center; gap: 12px; font-size: 13px; }
.meter-n { color: hsl(var(--muted-foreground)); }
.meter-v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter-b { height: 8px; border-radius: 999px; background: hsl(var(--border)); overflow: hidden; }
.meter-b i { display: block; height: 100%; border-radius: 999px; background: hsl(var(--success)); transition: width .6s ease; }
.meter-b i.geel { background: hsl(var(--warning)); } .meter-b i.rood { background: hsl(var(--destructive)); }
@media (max-width: 520px) { .meter-r { grid-template-columns: 76px 1fr; } .meter-v { grid-column: 1 / -1; text-align: left; margin-top: -4px; color: hsl(var(--muted-foreground)); white-space: normal; } }

/* Opdracht open naast het bord (beheer 2026-11-16): de kolommen schuiven in en worden iets kleiner, zodat alle vijf zichtbaar blijven */
@media (min-width: 1101px) {
  #app:has(#drawer:not([hidden])) .board { grid-template-columns: repeat(5, minmax(124px, 1fr)); gap: 8px; padding: 16px 14px 20px; zoom: .88; }
  #app:has(#drawer:not([hidden])) .board .col-head { padding: 10px 9px 8px; gap: 6px; }
  #app:has(#drawer:not([hidden])) .board .col-body { padding: 2px 6px 6px; }
  #app:has(#drawer:not([hidden])) .main-head { padding-inline: 18px; }
}

/* === Indeling en beweging netter (beheer 2026-11-16, desktop eerst) === */
:root { --ease: cubic-bezier(.22, 1, .36, 1); }
/* paneel: velden met een label erboven in een vast raster */
.dr-head { padding: 16px 22px 16px; }
.dr-title { font-size: 19px; margin-top: 6px; }
.dr-core { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 10px; margin-top: 12px; }
.dr-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; }
.dr-f.s4 { grid-column: span 4; } .dr-f.s2 { grid-column: span 2; }
.dr-f > span { font-size: 11px; font-weight: 500; letter-spacing: .02em; color: hsl(var(--muted-foreground)); }
.dr-core .dr-f .mini, .dr-core .dr-f input.mini { width: 100%; height: 32px; font-size: 13px; border-radius: 8px; color: hsl(var(--foreground)); }
/* oplevering: Frame links, daarna de projectbestanden met naam */
.dr-media .delivery { padding: 10px 16px 2px; gap: 10px 14px; }
.delivery:not(.compact) .tool-ics { align-items: center; flex-wrap: wrap; }
.dlv-sep { width: 1px; height: 22px; background: hsl(var(--border)); margin: 0 2px; }
.dr-media:not(:has(.dr-novid)) .dlv-sep { background: #2e2e33; }
.dlv-l { font-size: 11.5px; color: hsl(var(--muted-foreground)); }
.dr-media:not(:has(.dr-novid)) .dlv-l { color: #a1a1aa; }
.tool-ic.named { width: auto; height: 34px; padding: 0 11px 0 7px; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: hsl(var(--foreground)); text-decoration: none; }
.dr-media:has(.delivery:not(.compact) .fio-btn:only-child) .dlv-sep { display: none; }
.dr-mbar { padding: 10px 16px 0; }
.dr-novid { padding: 12px 22px 2px; }
.dr-tabs { padding: 0 18px; } .dr-chat, .dr-details { padding: 16px 22px; }
.dr-foot { padding: 12px 18px 16px; }
/* kaarten op het bord: titel, labels en stand elk op een eigen rustige regel */
.card { padding: 12px 12px 11px; border-radius: 10px; }
.card-title { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 8px; line-height: 1.38; }
.card-title .pv { flex: none; margin-left: auto; margin-top: 1px; }
.card .chips { gap: 5px; margin-bottom: 2px; }
.card .status, .card .pill, .card .delivery.compact, .card .last, .card .fb { margin-top: 9px; }
.card-foot { margin-top: 9px; }
.col { border-radius: 14px; } .col-head { padding: 12px 12px 9px; }
/* beweging: zelfde curve als de OFM-kaarten in JARVIS */
#drawer { animation: slidein .28s var(--ease); }
@keyframes slidein { from { transform: translateX(28px); opacity: 0; } }
.modal { animation: fade .2s ease; } .modal-card { animation: pop .3s var(--ease); }
@keyframes pop { from { transform: translateY(10px) scale(.97); opacity: 0; } }
.card { transition: box-shadow .2s ease, border-color .2s ease, transform .2s var(--ease); }
.card:hover { transform: translateY(-1px); } .card:active { transform: scale(.985); }
.btn { transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s var(--ease), box-shadow .15s ease; }
.btn:active { transform: scale(.97); }
@supports (view-transition-name: none) {
  @media (min-width: 901px) and (prefers-reduced-motion: no-preference) { #drawer { animation: none; } }
  ::view-transition-group(dr-wissel) { animation-duration: .36s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  ::view-transition-old(dr-wissel), ::view-transition-new(dr-wissel) { height: 100%; width: 100%; object-fit: fill; animation-duration: .24s; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
}
@media (prefers-reduced-motion: reduce) { #drawer, .modal, .modal-card { animation: none; } .card:hover, .card:active, .btn:active { transform: none; } }
@media (max-width: 900px) { .dr-core { grid-template-columns: repeat(4, minmax(0, 1fr)); } .dr-f.s4 { grid-column: span 4; } .dlv-l, .dlv-sep { display: none; } .tool-ic.named span { display: none; } .tool-ic.named { width: 34px; padding: 0; justify-content: center; } }

/* Knoppen Goedkeuren en Feedback op de kaart blijven binnen de kaart (Edgar 2026-11-16) */
.card .fb { min-width: 0; }
.card .fb .row.fb-acts { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; }
.card .fb-acts .btn { flex: 1 1 auto; min-width: 0; justify-content: center; padding-inline: 10px; gap: 5px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.card .fb-acts .btn.ghost { border: 1px solid hsl(var(--border)); }
.col-body { overflow-x: hidden; }
@media (min-width: 1101px) { #app:has(#drawer:not([hidden])) .board .card .fb .row.fb-acts { flex-wrap: wrap; } #app:has(#drawer:not([hidden])) .board .card .fb-acts .btn { flex: 1 1 100%; } }

/* === Voorstellen, glans en kortere teksten (beheer 2026-11-16) === */
.dlv-l { font-size: 11.5px; font-weight: 500; margin-right: -2px; }
.delivery:not(.compact) .tool-ics { gap: 6px; }
/* de Frame-knop glanst zolang er feedback nodig is */
.fio-btn.glans { position: relative; overflow: hidden; box-shadow: 0 2px 14px -2px rgba(91, 75, 255, .75), 0 0 0 1px rgba(255, 255, 255, .14) inset; }
.fio-btn.glans::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); transform: translateX(-130%); animation: glans 3.2s var(--ease, ease) infinite; pointer-events: none; }
@keyframes glans { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@media (prefers-reduced-motion: reduce) { .fio-btn.glans::after { animation: none; display: none; } }
/* voorstel van de agent: beheer beslist */
.vb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 11px 13px; margin: 0 0 10px; border-radius: 12px; border: 1px solid hsl(var(--accent-strong) / .35); background: hsl(var(--accent-strong) / .06); }
.vb.stil { border-color: hsl(var(--border)); background: hsl(var(--muted) / .6); }
.vb.uitgevoerd, .vb.akkoord { border-color: hsl(var(--success) / .35); background: hsl(var(--success) / .07); }
.vb-t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 220px; font-size: 13px; }
.vb-t span { font-size: 12px; color: hsl(var(--muted-foreground)); }
.vb-k { display: flex; gap: 6px; flex-wrap: wrap; }
.btn.vb-ja { background: hsl(var(--success)); border-color: hsl(var(--success)); color: #fff; }
.btn.vb-ja:hover { filter: brightness(1.07); }
.btn.vb-nee:hover { color: hsl(var(--destructive)); }
.rol { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; background: hsl(var(--foreground)); color: hsl(var(--background)); margin-left: 4px; vertical-align: 1px; }

/* Lange labels op een kaart breken niet meer door de titel heen (Edgar 2026-11-16) */
.card .chips { min-width: 0; }
.card .chip { max-width: 100%; min-width: 0; display: inline-block; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.card .chip .ico { vertical-align: -2px; margin-right: 3px; }
.card-title { overflow-wrap: anywhere; }
.card-foot { flex-wrap: wrap; row-gap: 2px; }

/* Projectbestanden bij een learning-video (beheer 2026-11-16) */
.drop-zone.lv-proj { margin-top: 8px; padding-block: 10px; font-size: 13px; }

/* === Projectbestanden op verzoek (beheer 2026-11-16) === */
.tool-ic.named.maak { background: transparent; border-style: dashed; color: hsl(var(--muted-foreground)); box-shadow: none; cursor: pointer; font-family: inherit; }
.tool-ic.named.maak svg { filter: grayscale(1); opacity: .6; transition: filter .15s, opacity .15s; }
.tool-ic.named.maak:hover { color: hsl(var(--foreground)); border-style: solid; }
.tool-ic.named.maak:hover svg { filter: none; opacity: 1; }
.tool-ic.named.maak.fout { border-color: hsl(var(--destructive) / .5); color: hsl(var(--destructive)); }
.tool-ic.named.bezig { border-style: solid; color: hsl(var(--foreground)); cursor: progress; }
.tool-ic .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid hsl(var(--border)); border-top-color: hsl(var(--foreground)); animation: draai .8s linear infinite; margin-left: 2px; }
@keyframes draai { to { transform: rotate(360deg); } }
.dlv-sep2 { width: 1px; height: 20px; background: hsl(var(--border)); margin: 0 2px; }
.dr-media:not(:has(.dr-novid)) .tool-ic.named.maak { color: #a1a1aa; border-color: #3f3f46; }
.dr-media:not(:has(.dr-novid)) .tool-ic.named.maak:hover { color: #f4f4f5; }
.dr-media:not(:has(.dr-novid)) .tool-ic.named.bezig { color: #f4f4f5; background: #1c1c1f; border-color: #3f3f46; }
.pk-top { display: flex; align-items: center; gap: 6px; margin-top: 14px; } .pk-top .spacer { flex: 1; }
.pk-lijst { margin-top: 8px; max-height: 46vh; overflow: auto; border: 1px solid hsl(var(--border)); border-radius: 10px; }
.pk-rij { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 0; font-size: 13.5px; cursor: pointer; border-top: 1px solid hsl(var(--border)); }
.pk-rij:first-child { border-top: 0; } .pk-rij:hover { background: hsl(var(--muted)); }
.pk-rij input { width: 16px; height: 16px; flex: none; accent-color: hsl(var(--foreground)); }
.pk-rij span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Keuzelijst projectbestanden als tegels met een voorbeeldplaatje (Edgar 2026-11-16) */
.modal-card.pk-kaart { width: min(880px, 100%); }
.pk-raster { margin-top: 10px; max-height: 58vh; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; padding: 2px; }
.pk-rij.pk-tegel { display: flex; flex-direction: column; align-items: stretch; gap: 7px; padding: 0; border: 0; background: none; cursor: pointer; }
.pk-rij.pk-tegel:hover { background: none; }
.pk-tegel input { position: absolute; opacity: 0; pointer-events: none; }
.pk-beeld { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #0b0b0c; border: 2px solid transparent; box-shadow: 0 0 0 1px hsl(var(--border)); transition: transform .18s var(--ease, ease), box-shadow .18s ease, border-color .18s ease; }
.pk-beeld img { width: 100%; height: 100%; object-fit: contain; display: block; opacity: .62; transition: opacity .18s ease; }
.pk-tegel:hover .pk-beeld { transform: translateY(-2px); box-shadow: 0 0 0 1px hsl(var(--foreground) / .3), var(--shadow); }
.pk-tegel:hover .pk-beeld img { opacity: .85; }
.pk-vink { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: hsl(0 0% 100% / .18); border: 1.5px solid hsl(0 0% 100% / .7); color: transparent; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .18s var(--ease, ease); }
.pk-tegel input:checked ~ .pk-beeld { border-color: hsl(var(--success)); box-shadow: 0 0 0 1px hsl(var(--success)); }
.pk-tegel input:checked ~ .pk-beeld img { opacity: 1; }
.pk-tegel input:checked ~ .pk-beeld .pk-vink { background: hsl(var(--success)); border-color: hsl(var(--success)); color: #fff; transform: scale(1.08); }
.pk-tegel input:focus-visible ~ .pk-beeld { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.pk-naam { font-size: 12.5px; line-height: 1.3; color: hsl(var(--muted-foreground)); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-transform: none; }
.pk-tegel input:checked ~ .pk-naam { color: hsl(var(--foreground)); font-weight: 500; }

/* Stappenbalk: waar zit de opdracht in het hele proces (Edgar 2026-11-16) */
.stp { margin: 0 2px 10px; }
.stp-kop { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; margin-bottom: 7px; }
.stp-kop b { font-weight: 600; white-space: nowrap; }
.stp-kop span { color: hsl(var(--muted-foreground)); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stp-rij { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.stp-s { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.stp-s i { height: 5px; border-radius: 999px; background: hsl(var(--border)); display: block; transition: background .3s ease; }
.stp-s em { font-style: normal; font-size: 10.5px; line-height: 1.2; color: hsl(var(--muted-foreground)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stp-s.af i { background: hsl(var(--success)); }
.stp-s.af em { color: hsl(var(--foreground) / .75); }
.stp-s.nu i { background: hsl(var(--foreground)); }
.stp-s.nu em { color: hsl(var(--foreground)); font-weight: 600; }
.stp.loopt .stp-s.nu i { background: linear-gradient(90deg, hsl(var(--foreground)) 0 40%, hsl(var(--foreground) / .35) 60% 100%); background-size: 250% 100%; animation: stpLoop 1.6s linear infinite; }
@keyframes stpLoop { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .stp.loopt .stp-s.nu i { animation: none; background: hsl(var(--foreground)); } }
.stp.klein { margin: 7px 0 0; max-width: 320px; }
.stp.klein .stp-kop { margin-bottom: 5px; font-size: 12px; } .stp.klein .stp-kop b { font-weight: 500; color: hsl(var(--foreground) / .85); }
.stp.klein .stp-s i { height: 4px; }
.ov-row .stp { display: block; text-align: left; }

/* Meter: werk (processor, renders) is geen waarschuwing: altijd groen; alleen geheugen, uitwijk en schijf kleuren oranje of rood (Edgar 2026-11-16) */
.meter-b i.werk { background: hsl(var(--success)); }

/* Claude-tegoed onderin de zijbalk (Edgar 2026-11-16); wens Edgar 01-12: een knop die de regels per account open- en dichtklapt */
.tegoed { display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: calc(100% - 12px); margin: 0 6px 6px; padding: 4px 6px 4px 24px;
  font: inherit; font-size: 11.5px; text-align: left; color: hsl(var(--muted-foreground)); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.tegoed:hover { background: hsl(var(--muted)); }
.tegoed:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 0; border-radius: 8px; }
.tegoed .tg-r { display: flex; align-items: center; gap: 8px; }
.tegoed .tg-w { font-size: 11px; line-height: 1.4; }
.tegoed .tg-pijl { flex: none; width: 6px; height: 6px; margin: 0 2px 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .15s ease; }
.tegoed[aria-expanded="true"] .tg-pijl { transform: rotate(-135deg); margin-bottom: -2px; }
.tegoed .tg-b { flex: 1; height: 4px; border-radius: 999px; background: hsl(var(--border)); overflow: hidden; min-width: 30px; }
.tegoed .tg-b i { display: block; height: 100%; border-radius: 999px; background: hsl(var(--success)); transition: width .6s ease; }
.tegoed.geel .tg-b i { background: hsl(var(--warning)); } .tegoed.rood .tg-b i { background: hsl(var(--destructive)); }
.tegoed.rood .tg-v, .tegoed.geel .tg-v { color: hsl(var(--foreground)); font-weight: 500; }
.tegoed .tg-v, .tegoed .tg-l { white-space: nowrap; }
.tegoed-acc { padding: 0 12px 8px 30px; font-size: 11px; color: hsl(var(--muted-foreground)); line-height: 1.5; } /* melding #513 */
.tegoed-acc .tg-a + .tg-a { margin-top: 3px; }
.tegoed-acc b { font-weight: 500; color: hsl(var(--foreground)); } .tegoed-acc .op b, .tegoed-acc .op { color: hsl(var(--destructive)); }

/* Zijbalk: groene bolletjes en rode cijfers elk in een eigen vaste kolom (Edgar 2026-11-16) */
.nav-item .slot-dot { flex: none; width: 10px; display: flex; justify-content: center; align-items: center; }
.nav-item .slot-num { flex: none; min-width: 24px; display: flex; justify-content: center; align-items: center; gap: 3px; }
.nav-item .slot-num .count-badge + .count-badge { margin-left: 0; }
.nav-item { gap: 8px; }

/* Projectbestand kan niet gemaakt worden: knop blijft staan, grijs, met de reden (Edgar 2026-11-16) */
.tool-ic.named.maak.uit { cursor: not-allowed; opacity: .5; }
.tool-ic.named.maak.uit:hover { border-style: dashed; color: hsl(var(--muted-foreground)); transform: none; }
.tool-ic.named.maak.uit:hover svg { filter: grayscale(1); opacity: .6; }

/* Taak toegewezen aan een teamlid: letter op de kaart (beheer 2026-11-17) */
.card-tags { display: inline-flex; align-items: center; gap: 5px; flex: none; margin-left: auto; }
.wie { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
  background: hsl(var(--foreground)); color: hsl(var(--background)); font-size: 11px; font-weight: 600; line-height: 1; flex: none; letter-spacing: .01em; }
/* Beperkte rol: alleen het bord. De server weigert de rest ook; dit haalt alleen de knoppen weg. */
.rol-beperkt [data-chat], .rol-beperkt [data-insp], .rol-beperkt [data-styles], .rol-beperkt [data-music], .rol-beperkt .nav-more,
.rol-beperkt [data-drtab="details"], .rol-beperkt .stp, .rol-beperkt .card .status, .rol-beperkt .pv,
.opsl-balk { margin-top: 12px; }
.opsl-kop { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 13.5px; margin-bottom: 5px; }
.opsl-kop span { color: hsl(var(--muted-foreground)); }
.opsl-balk .bar { height: 8px; border-radius: 4px; background: hsl(var(--muted)); overflow: hidden; }
.opsl-balk .bar i { display: block; height: 100%; background: hsl(var(--foreground)); }
.opsl-balk .bar.vol i { background: hsl(var(--destructive, 0 72% 51%)); }
.opsl-rij { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid hsl(var(--border)); }
.opsl-wat { flex: 1 1 300px; min-width: 0; overflow-wrap: anywhere; }
.opsl-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rol-beperkt [data-opslag] { display: none !important; }
.toegang { margin-top: 18px; padding-top: 16px; border-top: 1px solid hsl(var(--border)); }
.toegang h3 { margin: 0 0 4px; font-size: 14.5px; }
.toegang-lijst { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px 14px; margin-top: 10px; }
.toegang-lijst .check { margin: 0; }
.toegang-pw { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.toegang-pw input { flex: 1 1 220px; min-width: 0; }
.rol-beperkt #newClient, .rol-beperkt #addClient, .rol-beperkt #drDel, .rol-beperkt #tegoed, .rol-beperkt #tegoedAcc, .rol-beperkt .side-label button { display: none !important; }

/* Nieuw systeem stap 2: feedback via één weg */
#oefenBalk { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; background: #f59e0b; color: #1c1917; font-weight: 600; font-size: 13px; text-align: center; padding: calc(4px + env(safe-area-inset-top, 0px)) 12px 4px; }
body.oefen { padding-top: 28px; }
.mee { border-top: 1px solid hsl(var(--border)); padding: 10px 0; }
.mee > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.mee[open] > summary { margin-bottom: 8px; }
.mee-cat { font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); margin: 12px 0 4px; text-transform: none; }
.mee-regel { display: flex; gap: 10px; padding: 5px 0; font-size: 13.5px; overflow-wrap: anywhere; }
.mee-regel.oud { color: hsl(var(--muted-foreground)); }
.mee-nr { flex: none; min-width: 34px; color: hsl(var(--muted-foreground)); font-size: 12px; padding-top: 2px; }
.ops { padding: 14px 0; border-top: 1px solid hsl(var(--border)); display: flex; flex-direction: column; gap: 8px; }
.ops-kop { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.ops-soort { font-size: 11.5px; font-weight: 600; border-radius: 4px; padding: 1px 7px; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); white-space: nowrap; }
.ops-soort.botsing { background: hsl(var(--accent) / .18); color: hsl(var(--accent-strong)); }
.ops-regel { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid hsl(var(--border)); border-radius: 8px; }
.ops-regel.weg .ops-tekst { color: hsl(var(--muted-foreground)); }
.ops-tekst { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.ops-regel .btn { flex: none; }
.ops-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ev.regelvraag .txt { border-color: hsl(var(--accent) / .55); }
.ev .kind.regelvraag { background: hsl(var(--accent) / .18); color: hsl(var(--accent-strong)); }
.ev .rv { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ev .rv .row { display: flex; flex-wrap: wrap; gap: 6px; }
.ev .vk .btn { height: auto; min-height: 34px; max-width: 100%; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.ev .vk-nr { align-self: center; font-size: 13px; font-weight: 600; min-width: 16px; }
.ev .vk-t { font-weight: 400; margin-left: 6px; }
.ev .vk .hint { margin: 0; overflow-wrap: anywhere; }
.ev .tech { margin-top: 6px; }
.ev .tech .txt { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.ev .rv-klaar { margin-top: 8px; font-size: 12.5px; color: hsl(var(--muted-foreground)); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dr-acties { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px 10px; }
.fb .fb-frame { width: 100%; justify-content: center; margin-bottom: 8px; white-space: normal; height: auto; min-height: 32px; padding-block: 6px; line-height: 1.25; text-align: center; }
#oefenBalk a { color: inherit; text-decoration: underline; margin-left: 8px; white-space: nowrap; }
/* melding #217: knoppen staan in het venster, de kaart toont alleen informatie */
.dr-media .dr-acts { display: flex; gap: 8px; padding: 10px 16px 2px; flex-wrap: wrap; }
.board .card { min-height: 64px; }
/* n19: schakelaar Dit project / Systeem in het berichtvak, en de lijst met wijzigingen */
.sysw { display: inline-flex; border: 1px solid hsl(var(--input)); border-radius: 8px; overflow: hidden; flex: none; }
.sysw button { border: 0; background: none; font: inherit; font-size: 12.5px; padding: 5px 10px; color: hsl(var(--muted-foreground)); cursor: pointer; white-space: nowrap; }
.sysw button.on { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.sysw button[data-sys="1"].on { background: #b45309; color: #fff; }
.composer.sys { border-color: #b45309; box-shadow: 0 0 0 3px rgb(180 83 9 / .12); }
.composer .sysb { width: auto; max-width: 190px; height: 30px; padding: 2px 8px; font-size: 12.5px; }
.composer .bar2 { flex-wrap: wrap; }
.wz-lijst { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; }
.wz { border: 1px solid hsl(var(--border)); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.wz.uit { opacity: .55; }
.wz.nieuw { border-color: hsl(var(--accent) / .6); }
.wz-kop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.wz-kop b { color: hsl(var(--foreground)); font-size: 13px; }
.wz-txt { font-size: 13.5px; line-height: 1.45; }
/* Edgar 20-11: dicteerknop weg, het team dicteert met een eigen programma. De knop Feedback inspreken bij de video blijft. */
.mic-fab { display: none !important; }

/* Looptijd-tijdje (#228): klein en rustig, zelfde stijl als het percentage */
.lt { flex: none; white-space: nowrap; font-size: 12px; font-weight: 400; color: hsl(var(--muted-foreground)); margin-left: 6px; }
.status .row .t + .lt { margin-left: auto; }
.status .row .pct + .lt { margin-left: 2px; }
.status .row .pct + .lt::before, #drAgent .st-p + .lt::before { content: "· "; }
@media (max-width: 600px) { .lt { font-size: 11px; margin-left: 4px; } }
/* Wat gaat er vaak mis (melding #239) */
.fout-tab { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; }
.fout-tab th { text-align: left; font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); padding: 6px 8px; border-bottom: 1px solid hsl(var(--border)); }
.fout-tab td { padding: 9px 8px; border-top: 1px solid hsl(var(--border)); vertical-align: top; }
.fout-tab .n { text-align: right; width: 1%; white-space: nowrap; }
.fout-tab .kort { display: none; }
.fout-rij[data-fsoort] { cursor: pointer; }
.fout-rij[data-fsoort]:hover, .fout-rij[aria-expanded="true"] { background: hsl(var(--muted)); }
.fout-rij[data-fsoort]:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: -2px; }
.fout-rij.leeg td { color: hsl(var(--muted-foreground)); }
.fout-fw { display: block; font-size: 11.5px; color: hsl(var(--muted-foreground)); margin-top: 2px; }
.fout-open > td { padding: 0 0 8px; border-top: 0; background: hsl(var(--muted) / .5); }
.fout-lijst { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; }
.fout-punt { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 10px; border-top: 1px solid hsl(var(--border)); }
.fout-punt:first-child { border-top: 0; }
.fout-punt:hover { background: hsl(var(--muted)); }
.fout-txt { font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .fout-tab { font-size: 13px; }
  .fout-tab th, .fout-tab td { padding-left: 5px; padding-right: 5px; }
  .fout-tab .lang { display: none; }
  .fout-tab .kort { display: inline; }
}
/* herhaling in de chat en stijlregels bij de learnings (melding #239) */
.ev .herh { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.ev .herh-nu { font-size: 13px; color: hsl(var(--muted-foreground)); overflow-wrap: anywhere; }
.ev .herh-eerder > summary { cursor: pointer; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.ev .herh-r { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 0; font-size: 12.5px; overflow-wrap: anywhere; }
.ev .herh .row { display: flex; flex-wrap: wrap; gap: 6px; }
.mee-stijl { font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); margin: 12px 0 4px; }
.ln-stijl { margin-top: 14px; padding-top: 6px; border-top: 1px solid hsl(var(--border)); }
.ln-stijlregel { display: flex; gap: 10px; padding: 6px 0; font-size: 13.5px; overflow-wrap: anywhere; }

/* beheer 21-11 (#261, voorlopig): uitlijning van bord en statusregel */
.col-body > .card { flex: none; }                      /* kaarten krimpen niet: de regel 'Afgerond' blijft zichtbaar */
.col-head { flex: none; height: 46px; box-sizing: border-box; padding-block: 0 !important; } /* alle kolomkoppen exact even hoog (knop 28 px past erin), titel op één basislijn */
.col-head > button, .col-head > .btn { flex: none; height: 28px; }
.col-head > .btn.icon { width: 28px; }
.dr-status { align-items: flex-start; flex-wrap: nowrap; }
.dr-status .st-t { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.dr-status .st-p, .dr-status .lt, .dr-status .chip { flex: none; white-space: nowrap; }
.dr-status .live-dot { margin-top: 5px; }
.dr-status .chip { margin-left: 4px; }

/* Zo werkt MOV (melding #255) */
.zwm h2, .zwm h3, .zwm h4 { margin: 18px 0 6px; }
.zwm p, .zwm li { line-height: 1.55; }
.zwm ol, .zwm ul { padding-left: 22px; }
.zwm-tab { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 13.5px; }
.zwm-tab th, .zwm-tab td { border: 1px solid hsl(var(--border)); padding: 6px 9px; text-align: left; vertical-align: top; }
.zwm-tab th { background: hsl(var(--muted)); }
.ops-soort.afgedwongen, .ops-soort.ongeraakt { background: hsl(var(--muted)); }

/* Vraag van MOV (melding #266): blok bovenaan de chat van een opdracht, in Nieuwe opdracht en op het bord; één vraag tegelijk */
.tv-plek[hidden] { display: none; }
.tv-chat { flex: none; padding: 12px 18px 0; background: hsl(var(--surface)); max-height: 45vh; overflow-y: auto; }
.tv-chat:has(+ #drChat[hidden]) { display: none; }  /* alleen bij het tabblad Chat */
.tv-bord { padding: 16px 28px 0; max-width: 820px; }
.modal .tv-plek, #modalCard .tv-plek { margin: 4px 0 6px; }
.tv { border: 1px solid hsl(var(--warning) / .55); border-left: 3px solid hsl(var(--warning)); background: hsl(var(--card)); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; }
.tv-kop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tv-kop > .ico { color: hsl(var(--warning)); }
.tv-voor { color: hsl(var(--muted-foreground)); }
.tv-kop .spacer, .tv-acts .spacer { flex: 1; }
.tv-nog { margin-left: auto; }
.tv-tekst { margin: 6px 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.tv-in { width: 100%; min-height: 44px; resize: vertical; font-size: 13px; }
.tv-acts { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tv-file span { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-teller { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: hsl(var(--muted-foreground)); }
.tv-teller .ico { color: hsl(var(--warning)); }
@media (max-width: 760px) { .tv-bord { padding: 12px 14px 0; } .tv-chat { padding: 10px 14px 0; } .tv-file span { max-width: 140px; }
  .tv:not(.open) .tv-in, .tv:not(.open) .tv-file { display: none; } .tv:not(.open) .tv-tekst { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; }
  .tv:not(.open) .tv-acts { margin-top: 0; } }

/* melding #358 (blok 1): muziek als lijst, één regel per nummer, met paneel voor de categorieën */
.music.ml { max-width: 1240px; }
.music.ml.met-paneel { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.ml-main { min-width: 0; }
.ml .mu-bar .mu-soort { width: auto; }
/* melding #433: geen zijwaarts schuiven; wat niet past gaat naar de volgende regel */
.ml-f { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 6px; align-items: center; }
.ml-f > * { flex: none; max-width: 100%; }
.ml-f .ml-fchev { margin: 0 -2px 0 2px; transform: rotate(90deg); transition: transform .2s var(--ease); }
.ml-f #muFBtn[aria-expanded="true"] .ml-fchev { transform: rotate(-90deg); }
.ml .chip.ml-af { height: 30px; font-size: 12.5px; padding: 0 6px 0 11px; gap: 3px; background: hsl(var(--foreground) / .08); color: hsl(var(--foreground)); cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.ml .chip.ml-af .ico { width: 14px; height: 14px; opacity: .6; flex: none; }
.ml .chip.ml-af:hover { background: hsl(var(--foreground) / .14); } .ml .chip.ml-af:hover .ico { opacity: 1; }
.ml-fp { border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card, var(--background))); padding: 12px 14px; margin: 4px 0 10px; display: grid; gap: 10px; }
.ml-pg { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 8px; align-items: start; }
.ml-pn { font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); padding-top: 6px; }
.ml-pbs { display: flex; flex-wrap: wrap; gap: 6px; }
.ml-pb { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); font-size: 12.5px; color: hsl(var(--foreground)); display: inline-flex; align-items: center; gap: 6px; max-width: 100%; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.ml-pb span { font-size: 11px; color: hsl(var(--muted-foreground)); }
.ml-pb:hover { border-color: hsl(var(--foreground) / .4); }
.ml-pb[aria-pressed="true"] { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: transparent; }
.ml-pb[aria-pressed="true"] span { color: hsl(var(--background) / .7); }
.ml-pv { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid hsl(var(--border)); padding-top: 10px; }
@media (max-width: 640px) { .ml-pg { grid-template-columns: 1fr; gap: 4px; } .ml-pn { padding-top: 0; } .ml-fp { padding: 12px; } }
.ml-f .btn { white-space: nowrap; }
.ml-eigen { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 18px; margin: 14px 0 4px; max-height: 52vh; overflow: auto; }
.ml-er.check { margin: 0; padding: 7px 0; } .ml-er .hint { margin: 0 0 0 auto; } .ml-aan { margin-top: 8px; }
.ml-f .btn.on, .ml-f .ml-fs.on { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: transparent; }
.ml-f .btn.todo { border-color: hsl(var(--foreground) / .5); font-weight: 600; }
.ml-f .ml-fs { height: 30px; font-size: 12.5px; width: auto; max-width: 170px; }
.ml-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; color: hsl(var(--muted-foreground)); margin: 2px 0 8px; }
.ml-legend > span:last-child { margin-left: auto; }
.ml .chip { white-space: nowrap; flex: none; height: 22px; font-size: 11.5px; padding: 0 8px; }
.chip.ml-mov { background: none; border: 1px dashed hsl(var(--foreground) / .35); color: hsl(var(--muted-foreground)); }
.chip.ml-nog { background: hsl(var(--foreground) / .07); color: hsl(var(--foreground)); font-weight: 600; }
.chip.ml-k { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.chip.ml-nk { background: none; border: 1px solid hsl(0 70% 55% / .6); color: hsl(0 70% 45%); }
.ml-h, .ml-r { display: grid; grid-template-columns: 22px 32px minmax(160px, 1.5fr) 2.2fr 48px 66px; align-items: center; gap: 10px; padding: 0 8px; }
.ml-h { font-size: 11.5px; color: hsl(var(--muted-foreground)); height: 30px; border-bottom: 1px solid hsl(var(--border)); }
.ml-r { min-height: 50px; border-bottom: 1px solid hsl(var(--border) / .6); font-size: 13.5px; }
.ml-r:hover, .ml-r.cur { background: hsl(var(--muted) / .7); }
.ml-r.sel { background: hsl(var(--foreground) / .06); }
.ml-r.off { opacity: .5; }
.ml-play { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: inherit; cursor: pointer; padding: 0; }
.ml-r.playing .ml-play { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: transparent; }
.ml-t { all: unset; cursor: pointer; min-width: 0; }
.ml-t b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-t span { display: block; font-size: 12px; color: hsl(var(--muted-foreground)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-c { display: flex; gap: 4px; flex-wrap: nowrap; overflow: hidden; cursor: pointer; min-width: 0; }
.ml-d { color: hsl(var(--muted-foreground)); font-size: 12.5px; text-align: right; }
.ml-a { display: flex; gap: 2px; justify-content: flex-end; }
.ml-a .btn { opacity: .45; } .ml-r:hover .ml-a .btn, .ml-a .btn.on, .ml-a .btn.on-red { opacity: 1; }
.ml-a .btn.on { color: #d9a400; } .ml-a .btn.on-red { color: #e5484d; }
.ml-bulk { position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: hsl(var(--foreground)); color: hsl(var(--background)); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: 13px; }
.ml-bulk .mini { width: auto; max-width: 200px; }
.ml-bulk .btn { color: hsl(var(--background)); }
.ml-pane { position: sticky; top: 0; border: 1px solid hsl(var(--border)); border-radius: 12px; background: hsl(var(--card)); padding: 14px 16px; max-height: calc(100vh - 120px); overflow: auto; }
.ml-ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ml-ph h3 { margin: 0 0 2px; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-pane audio { width: 100%; height: 36px; margin: 10px 0 6px; }
.ml-grp { margin-top: 12px; }
.ml-gl { font-size: 11.5px; color: hsl(var(--muted-foreground)); margin-bottom: 5px; }
.ml-tg { display: flex; flex-wrap: wrap; gap: 5px; }
.ml-tg .chip { height: 28px; font-size: 12.5px; padding: 0 10px; cursor: pointer; background: none; border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); }
.ml-tg .chip.on { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: transparent; }
.ml-tg .chip.ml-mov { border-style: dashed; border-color: hsl(var(--foreground) / .4); color: hsl(var(--muted-foreground)); }
.ml-tg .chip.ml-k { background: hsl(var(--foreground)); color: hsl(var(--background)); border-color: transparent; }
.ml-tg .chip.ml-nk { border-color: hsl(0 70% 55% / .6); color: hsl(0 70% 45%); }
.ml-kl { display: flex; gap: 6px; margin-top: 6px; } .ml-kl .mini { flex: 1; min-width: 0; }
.ml-ext { display: flex; gap: 6px; flex-wrap: wrap; } .ml-ext .btn.on { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.ml-auto { margin-top: 12px; font-size: 11.5px; }
.ml-pf { display: flex; gap: 8px; margin-top: 14px; position: sticky; bottom: -14px; background: hsl(var(--card)); padding: 10px 0; }
.ml-pf .btn.primary { flex: none; } .ml-pf .btn:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin: 12px 0; max-height: 62vh; overflow: auto; }
.ml-cat { min-width: 0; border: 1px solid hsl(var(--border)); border-radius: 12px; padding: 10px 12px; }
.ml-cat h4 { margin: 0 0 6px; font-size: 14px; }
.ml-ci { display: flex; align-items: center; gap: 6px; min-height: 36px; border-bottom: 1px solid hsl(var(--border) / .5); font-size: 13.5px; }
.ml-ci > * { flex: none; } .ml-ci .ml-cn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-ci .ml-n { color: hsl(var(--muted-foreground)); font-size: 12px; min-width: 22px; text-align: right; }
.ml-ci .mini { flex: 1; min-width: 0; width: auto; }
.ml-ci .btn.ghost { font-size: 12px; padding: 0 6px; }
.ml-new { display: flex; gap: 6px; margin-top: 8px; } .ml-new .mini { flex: 1; min-width: 0; }
@media (max-width: 760px) {
  .music.ml.met-paneel { display: block; }
  .ml .mu-bar .mu-soort { width: 100%; }
  .ml-h { display: none; }
  .ml-r { grid-template-columns: 22px 32px minmax(0, 1fr) 40px; grid-template-rows: auto auto; row-gap: 4px; padding: 8px 2px; }
  .ml-r .ml-a { display: none; }
  .ml-r .ml-c { grid-column: 3 / 5; grid-row: 2; }
  .ml-r .ml-d { grid-column: 4; grid-row: 1; }
  .ml-legend > span:last-child { margin-left: 0; }
  .ml-pane { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; border-radius: 16px 16px 0 0; max-height: 82vh; box-shadow: 0 -10px 40px rgb(0 0 0 / .25); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .ml-pf { bottom: calc(-14px - env(safe-area-inset-bottom)); }
  .ml-cats { grid-template-columns: minmax(0, 1fr); max-height: 64vh; }
  .ml-ci .btn.ghost { padding: 0 4px; }
}

/* melding #358 (blok 2): toevoegen met voortgang per nummer */
.ml-add { display: block; margin-top: 12px; } .ml-add[hidden] { display: none; }
.ml-drop { display: flex; gap: 12px; align-items: center; border: 1.5px dashed var(--line, #ccc); border-radius: 10px; padding: 14px 16px; }
.ml-drop.over { border-color: var(--accent, #2563eb); background: color-mix(in srgb, var(--accent, #2563eb) 6%, transparent); }
.ml-drop > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ml-drop span { color: var(--muted, #777); font-size: 13px; }
.ml-drop span { display: block; } .ml-drop span label.ml-lnk { display: inline; margin: 0; padding: 0; font-size: inherit; }
.ml-lnk { color: var(--accent, #2563eb); cursor: pointer; text-decoration: underline; }
.ml-add .mu-yt { display: flex; gap: 8px; align-items: center; margin-top: 8px; } .ml-add .mu-yt input { flex: 1; min-width: 0; }
.ml-voor { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; color: var(--muted, #777); }
.ml-qt { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin: 12px 0 6px; font-size: 13px; color: var(--muted, #777); }
.ml-q { border-top: 1px solid var(--line, #e5e5e5); padding: 8px 0; }
.ml-qh { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.ml-qh b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ml-qs { font-size: 12px; color: var(--muted, #777); white-space: nowrap; }
.ml-q.fout .ml-qs, .ml-q.dubbel .ml-qs { color: #b45309; } .ml-q.opgeslagen .ml-qs, .ml-q.klaar .ml-qs { color: #15803d; }
.ml-q.overgeslagen, .ml-q.aanwezig { opacity: .6; }
.ml-bar { height: 3px; background: var(--line, #e5e5e5); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.ml-bar i { display: block; height: 100%; background: var(--accent, #2563eb); transition: width .2s; }
.ml-bar.los i { width: 30%; animation: mlLos 1.2s linear infinite; }
@keyframes mlLos { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.ml-qd, .ml-qc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: 13px; }
.ml-qc select { max-width: 160px; }
@media (max-width: 640px) {
  .ml-drop { padding: 12px; } .ml-add .mu-yt { flex-wrap: wrap; } .ml-add .mu-yt input { flex-basis: 100%; } .ml-add .mu-yt .btn { flex: 1; }
  .ml-qs { white-space: normal; text-align: right; max-width: 45%; }
  .ml-qc [data-qsave] { margin-left: auto; }
}

/* #358 blok 3: gebruik en feedback in het paneel */
.ml-geb ul { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12.5px; }
.ml-geb li { padding: 3px 0; border-bottom: 1px solid hsl(var(--border) / .5); overflow-wrap: anywhere; }
.ml-geb li .tnum { color: hsl(var(--muted-foreground)); margin-right: 4px; }
.ml-gd summary { cursor: pointer; font-size: 12.5px; color: hsl(var(--muted-foreground)); margin-top: 6px; }
.ml-geb .ml-gl + .ml-tg { margin-bottom: 2px; }
.ml-fb li { display: flex; flex-direction: column; gap: 2px; }
.ml-fb q { quotes: "‘" "’"; }

/* Als vlog behandeld of niet (#417) */
.vlog-regel { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.vlog-regel span { min-width: 0; overflow-wrap: anywhere; } .vlog-regel .btn { flex: none; }
.opzij { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; font-size: 12.5px; color: hsl(var(--muted-foreground)); cursor: default; }  /* melding #418 */
.opzij span { min-width: 0; flex: 1 1 110px; overflow-wrap: break-word; } .opzij .btn { flex: none; }
.ev .bundelvraag { margin-top: 12px; } .ev .bundelvraag + .hint { margin-top: 10px; } .ev .bundelvraag img { max-height: 260px; width: auto; }

/* Muziek per clip (#358 blok 5) */
.mw-bar { display: flex; gap: 8px; padding: 0 12px 8px; }
.mw-lijst { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; max-height: 62vh; overflow: auto; }
.mw-clip { border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 10px 12px; }
.mw-kop b { font-size: 14px; overflow-wrap: anywhere; }
.mw-nu, .mw-n { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; }
.mw-nt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mw-nt b { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-nt small { color: hsl(var(--muted-foreground)); font-size: 12px; }
#hkLijst .mw-nt b { white-space: normal; overflow: visible; }  /* #416: een hook lees je helemaal */
.mw-knop { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mw-niet.check { margin: 8px 0 0; font-size: 12px; font-weight: 400; color: hsl(var(--muted-foreground)); }
.mw-keus { margin-top: 8px; border-top: 1px solid hsl(var(--border)); padding-top: 8px; }
.mw-res { max-height: 260px; overflow: auto; }
.mw-zoek { width: 100%; }
.mw-wacht { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.mw-play.aan { color: hsl(var(--primary)); }
/* melding #432: tabblad Stijlen, alles op één pagina */
.st-kop { margin: 10px 0 -6px; font-size: 15px; font-weight: 600; }
.st-sub { display: block; margin-top: -6px; font-size: 12px; line-height: 1.3; color: hsl(var(--muted-foreground)); }
.st-archtoggle { justify-self: start; margin-top: 8px; }
.st-wie { margin: 0 0 8px; }
.st-regels { margin-top: 16px; }
.st-regellijst { margin: 6px 0 0; padding-left: 20px; max-height: 260px; overflow: auto; font-size: 13px; line-height: 1.45; }
.st-regellijst li { margin-bottom: 4px; }
.st-cat { font-size: 11px; color: hsl(var(--muted-foreground)); text-transform: uppercase; letter-spacing: .03em; }
.st-ctl { display: flex; gap: 6px; align-items: center; }
@media (max-width: 640px) { .panel-head:has(.st-ctl) { flex-wrap: wrap; } .st-ctl { flex-wrap: wrap; min-width: 0; } .st-ctl select { max-width: 100%; } }

/* ---------- Telefoon: opdrachtscherm, bord en klantpagina (melding #482 fase 1, alleen tot 760 breed) ---------- */
.dr-sam, .t-kort { display: none; }
@media (max-width: 760px) {
  /* opdrachtscherm volgt de zichtbare hoogte (toetsenbord, adresbalk); terugval 100dvh */
  #drawer { inset: auto 0 auto 0; top: var(--vvt, 0px); height: var(--vvh, 100dvh); max-height: none; overflow: hidden; }
  #drawer > .dr-head { flex: none; max-height: 58%; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
  .dr-head .dr-title { margin-top: 4px; }
  /* instellingen ingeklapt achter één regel met de stand in het kort */
  .dr-sam { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 36px; margin: 2px 0 0; padding: 0; background: none; border: 0;
    color: hsl(var(--muted-foreground)); font-size: 13.5px; text-align: left; cursor: pointer; }
  .dr-sam-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dr-sam .ico { flex: none; transform: rotate(90deg); transition: transform .15s; }
  .dr-head.open .dr-sam .ico { transform: rotate(-90deg); }
  .dr-head:not(.open) .dr-core, .dr-head:not(.open) .vlog-regel { display: none; }
  .dr-head.open .dr-core { margin-top: 6px; }
  /* Frame, Muziek per clip en Andere hook in één compacte rij */
  #drawer > .dr-media { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 14px 8px; flex: none; }
  .dr-media > #drVidOn, .dr-media > #drVidOff, .dr-media > .dr-novid { flex: 0 0 calc(100% + 28px); margin: 0 -14px; }
  .dr-media > .dr-novid { padding: 10px 14px 0; }
  .dr-media #drVidOn .dr-mbar { padding: 8px 14px 0; }
  #drawer > .dr-media { padding-top: 0; row-gap: 8px; }
  .dr-media > #drVidOn, .dr-media > #drVidOff, .dr-media > .dr-novid { margin-bottom: 0; }
  .dr-media .delivery, .dr-media .delivery .tool-ics, .dr-media .mw-bar { display: contents; }
  .dr-media .fio-btn { order: 1; } .dr-media .tool-ics > a.tool-ic { order: 2; } .dr-media .mw-bar > .btn { order: 3; }
  .dr-media .tool-ic.maak, .dr-media .tool-ic.bezig { order: 4; } .dr-media .dlv-sep2, .dr-media .dlv-l { display: none; }
  .dr-media .dr-acts { order: 5; flex: 1 0 100%; padding: 0; margin: 0; gap: 8px; }
  .dr-media > :is(#drVidOn, #drVidOff, .dr-novid) + * { margin-top: 0; }
  #drawer > .dr-media::after { content: ""; order: 9; flex: 0 0 100%; height: 0; }
  /* typbalk op één regel: Bestand en Versturen als icoon */
  #drawer .composer .bar2 { flex-wrap: nowrap; gap: 6px; }
  #drawer .composer .bar2 > label.btn, #drawer #msgSend { font-size: 0; gap: 0; width: 40px; height: 36px; padding: 0; justify-content: center; flex: none; }
  #drawer .composer .bar2 > label.btn .ico, #drawer #msgSend .ico { width: 18px; height: 18px; }
  .t-lang { display: none; } .t-kort { display: inline; }
  /* de chat krijgt alle overige hoogte */
  #drawer > .dr-tabs { flex: none; }
  #drawer > .dr-chat, #drawer > .dr-details { flex: 1 1 0; min-height: 64px; }
  /* een vraag aan het team en het typvak staan vast onderaan */
  #drawer > #drVraag { order: 5; max-height: 34%; border-top: 1px solid hsl(var(--border)); padding-bottom: 8px; }
  #drawer > .dr-foot { order: 6; flex: none; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .kb-open #drawer > .dr-foot { padding-bottom: 8px; }
  .kb-open #drawer > .dr-media, .kb-open #drawer #drStappen { display: none; }
  .kb-open #drawer #drAgent, .kb-open #drawer .dr-sam { display: none; }
  .kb-open #drawer #msgText { min-height: 44px; height: 44px; }
  /* stappenbalk: één regel met alleen de huidige stap voluit */
  #drStappen .stp { margin: 0 2px 6px; }
  #drStappen .stp-kop { margin-bottom: 4px; font-size: 13px; }
  #drStappen .stp-kop span, #drStappen .stp-s em { display: none; }
  #drStappen .stp-rij { gap: 3px; } #drStappen .stp-s { gap: 0; } #drStappen .stp-s i { height: 3px; }
  /* bord: elke kolom precies de schermbreedte min de marge en klikt per kolom vast */
  .board { scroll-padding-inline: 14px; }
  .board .col { flex: 0 0 calc(100vw - 28px); width: calc(100vw - 28px); min-width: 0; max-width: calc(100vw - 28px); scroll-snap-align: start; scroll-snap-stop: always; }
  .board .card { min-width: 0; max-width: 100%; }
  .board .status .row > span.t { min-width: 0; }
}

/* melding #482 fase 2: telefoon (tot 760 breed); op de computer verandert niets */
.zoek-btn, .dl-knop { display: none; }
.ml-cbw { display: flex; align-items: center; }
@media (max-width: 760px) {
  /* (4) klantnaam krijgt de regel; zoeken achter een vergrootglas, openen zet het veld op een eigen regel */
  .head-row { flex-wrap: wrap; row-gap: 8px; }
  .main-head:not(.zoek-open) #search:placeholder-shown { display: none; }
  #search:not([hidden]) { order: 9; flex: 0 0 100%; width: 100% !important; }
  .zoek-btn { display: inline-flex; flex: none; }
  #search[hidden] + .zoek-btn { display: none; }
  .main-head.zoek-open .zoek-btn, #search:not(:placeholder-shown) + .zoek-btn { color: hsl(var(--foreground)); background: hsl(var(--muted)); }

  /* (5) tikdoelen minstens 44 x 44, met een onzichtbaar raakvlak waar het ontwerp klein blijft */
  :is(.col-pills button, #drClose, #mpClose, .col-head .btn.icon, #addClientSmall, .ml-play, .ml-cbw, .seg button, #themeBtn, #logoutBtn,
      .opsl-acts .btn, #menuBtn, #zoekBtn) { position: relative; }
  :is(.col-pills button, #drClose, #mpClose, .col-head .btn.icon, #addClientSmall, .ml-play, .ml-cbw, .seg button, #themeBtn, #logoutBtn,
      .opsl-acts .btn, #menuBtn, #zoekBtn)::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
  .col-pills { padding-bottom: 8px; padding-top: 14px; }
  .ml-cbw { align-self: stretch; justify-content: center; }

  /* (6) deadline: dd-mm-jjjj en een eigen agenda in plaats van de kiezer van de browser */
  #drDeadline { display: none; }
  .dl-knop { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border: 1px solid hsl(var(--input)); border-radius: 8px;
    background: hsl(var(--background)); color: hsl(var(--foreground)); font-size: 16px; font-variant-numeric: tabular-nums; width: 100%; }
  .dl-knop .ico { color: hsl(var(--muted-foreground)); }
  .agenda-wrap { position: fixed; inset: 0; z-index: 60; background: hsl(240 10% 4% / .4); display: flex; align-items: flex-end; }
  .agenda { width: 100%; background: hsl(var(--background)); color: hsl(var(--foreground)); border-radius: 14px 14px 0 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); }
  .ag-kop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
  .ag-kop b { font-size: 16px; font-weight: 600; }
  .ag-pijl { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; color: inherit; }
  .ag-pijl[data-st="-1"] .ico { transform: rotate(180deg); }
  .ag-dagen { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
  .ag-dagen > span { font-size: 12px; color: hsl(var(--muted-foreground)); padding: 4px 0; }
  .ag-dagen button { height: 44px; border-radius: 10px; font-size: 16px; color: inherit; font-variant-numeric: tabular-nums; }
  .ag-dagen button.vandaag { box-shadow: inset 0 0 0 1.5px hsl(var(--foreground)); font-weight: 600; }
  .ag-dagen button.gekozen { background: hsl(var(--foreground)); color: hsl(var(--background)); font-weight: 600; }
  .ag-voet { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
  .ag-voet .btn { height: 44px; }

  /* (7) tekst in labels, bolletjes en de onderbalk minstens 12 */
  body :is(.chip, .count-badge, .card-foot, .ev .kind, .ev .av, .lt, .ov-k, .pv, .sub-n, .side-label, .brand .tag, .dr-f > span, .dl, .dlv-l, .src,
      .ml-h, .ml-gl, .ml-pb span, .mnav button, .mnav .badge, .mu-k, .rol, .st-cat, .ops-soort, .ev-sys, .tegoed, .tegoed-acc, .fout-fw, .composer .kbd, .avatar, .ov-av,
      .chat-body .ev .when, .learn-item .num, .br-tags i, .mu-meta .chip, .ml .chip, .stp-s em, .ev .when) { font-size: 12px; }
  .mnav .badge { min-width: 18px; height: 18px; }

  /* (8) Meer: een eigen lijst boven de onderbalk */
  .mmeer { position: fixed; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 40; background: hsl(var(--background));
    border: 1px solid hsl(var(--border)); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column; }
  .mmeer button { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 8px; font-size: 16px; color: inherit; text-align: left; }
  .mmeer button[aria-current="page"] { background: hsl(var(--muted)); font-weight: 600; }
  .mmeer button .count-badge { margin-left: auto; }

  /* (10) geen 'Nog geen video' als er via Frame is opgeleverd: de Frame-knop staat er al */
  .dr-novid.heeft-frame { display: none; }
}

/* melding #409 stap B: de stand van een vraag onder het bericht */
.ev .pv { margin-top: 8px; }
.ev .pv.open .row { align-items: center; gap: 10px; }
.ev .pv-t { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: hsl(var(--muted-foreground)); }
.ev .pv-t .vraag-dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--info)); display: inline-block; }

/* melding #616 (akkoord beheer Edgar 01-12): telefoon, onderbalk en kaarten op het Overzicht */
.ov-who .pv { margin-left: 0; }                 /* geen leeg stukje meer tussen klantnaam en v1 (ook op de computer) */
.avatar.img { color: hsl(var(--foreground)); }  /* letters (KB, BK) leesbaar als de foto ontbreekt; was wit op lichtgrijs */
@media (max-width: 760px) {
  /* 1. onderbalk: evenveel even brede kolommen als er knoppen zijn, over de hele breedte;
     3. helemaal dicht, zonder doorschijn of vervaging */
  .mnav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    background: hsl(var(--background)); backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* 2. bolletjes naast elkaar rechtsboven het icoon (22 breed, midden in de knop), zonder het icoon te raken */
  .mnav .badges { position: absolute; top: -2px; left: calc(50% + 13px); display: flex; gap: 2px; pointer-events: none; }
  .mnav .badges .badge { position: static; }
  /* 4. v1 op de lijn: overflow:hidden (van .ov-lt span) zette het label boven de titel; bij de kaarten direct achter de naam */
  .ov-lt .pv { overflow: visible; }
  .ov-card .ov-naam { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* 5. compacte kaarten (Wacht op jullie, Te laat): klant met v1, titel op één regel eronder, knop rechts in het midden */
  .ov-cards { gap: 8px; }
  .ov2 .ov-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who pills" "title pills" "dl pills";
    align-items: center; column-gap: 10px; row-gap: 2px; min-height: 0; padding: 10px 12px !important; }
  .ov-card .ov-who { grid-area: who; min-width: 0; }
  .ov-card .ov-title { grid-area: title; display: block; padding-left: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ov-card .ov-dl { grid-area: dl; padding-left: 30px; }
  .ov-card .ov-pills { grid-area: pills; margin-top: 0; flex-direction: column; align-items: flex-end; max-width: 44vw; }
  .ov-card .ov-pill { align-self: auto; }
}

/* ---------------- nieuwe opzet: klantkaart en bestemming van feedback ---------------- */
.kk { display: grid; gap: 16px; max-width: 1040px; }
.kk .panel { padding: 18px 20px; }
.kk-kop-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kk-kop h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.kk-intro { margin: 8px 0 12px; color: hsl(var(--muted-foreground)); font-size: 13.5px; line-height: 1.5; max-width: 760px; }
.kk-legenda, .kk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kk-chips { margin-top: 6px; }
.kk-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500;
  background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); border: 1px solid transparent; white-space: nowrap; }
.kk-chip.anders { background: hsl(var(--accent) / .2); color: hsl(var(--accent-strong)); }
.kk-chip.opdracht { background: hsl(var(--info) / .12); color: hsl(var(--info)); }
.kk-chip.wacht { background: hsl(var(--warning) / .14); color: hsl(var(--warning)); }
.kk-chip.nog, .kk-chip.vast { background: none; border-color: hsl(var(--border)); }
.kk-chip.aan { background: hsl(var(--success) / .12); color: hsl(var(--success)); }
.kk-chip.vs { background: hsl(var(--violet) / .12); color: hsl(var(--violet)); }
.kk-h { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.kk-rij { display: grid; grid-template-columns: minmax(220px, 0.9fr) 1.1fr; gap: 16px; padding: 12px 0; border-top: 1px solid hsl(var(--border)); }
.kk-rij:first-of-type { border-top: 0; }
.kk-naam { display: flex; gap: 10px; align-items: flex-start; }
.kk-nr { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: hsl(var(--muted)); font-size: 12px; font-weight: 600; color: hsl(var(--muted-foreground)); }
.kk-t { font-weight: 600; font-size: 13.5px; }
.kk-uitleg { color: hsl(var(--muted-foreground)); font-size: 12.5px; line-height: 1.45; margin-top: 2px; }
.kk-v { font-size: 13.5px; line-height: 1.45; }
.kk-basis { font-size: 12px; color: hsl(var(--muted-foreground)); margin-top: 4px; }
.kk-det { margin-top: 6px; font-size: 12px; color: hsl(var(--muted-foreground)); }
.kk-det summary { cursor: pointer; list-style: none; }
.kk-det summary::-webkit-details-marker { display: none; }
.kk-det summary::before { content: "▸ "; }
.kk-det[open] summary::before { content: "▾ "; }
.kk-waarom { margin: 6px 0; line-height: 1.45; }
.kk-hist, .kk-aan { font-size: 12.5px; line-height: 1.5; padding: 3px 0; }
.kk-vs { background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.kk-vs-kop { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.kk-wanneer { margin-left: auto; font-size: 12px; color: hsl(var(--muted-foreground)); }
.kk-vs-vraag { margin: 8px 0; font-size: 13.5px; }
.kk-oudnieuw { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.kk-oudnieuw > div { background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.kk-l { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: hsl(var(--muted-foreground)); margin-bottom: 2px; }
.kk-citaat { margin: 8px 0; padding: 8px 10px; background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 8px; font-size: 13px; }
.kk-vs-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.kk-keuzes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 8px; }
.kk-keuze { background: hsl(var(--surface)); border: 1px solid hsl(var(--border)); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; display: grid; gap: 2px; }
.kk-keuze span { color: hsl(var(--muted-foreground)); }
.best { width: 100%; margin: 2px 0 8px; }
.best-seg { display: grid; grid-template-columns: repeat(3, 1fr); background: hsl(var(--muted)); border-radius: 9px; padding: 3px; gap: 3px; }
.best-seg button { border: 0; background: none; border-radius: 7px; padding: 7px 6px; font: inherit; font-size: 12.5px; font-weight: 500; color: hsl(var(--muted-foreground)); cursor: pointer; line-height: 1.25; min-height: 34px; }
.best-seg button.on { background: hsl(var(--background)); color: hsl(var(--foreground)); box-shadow: var(--shadow-sm); }
.best-seg button:disabled { opacity: .45; cursor: not-allowed; }
.best-uitleg { margin: 6px 2px 0; font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.4; }
.best-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); }
.best-chip.b-klant { background: hsl(var(--info) / .12); color: hsl(var(--info)); }
.best-chip.b-iedereen { background: hsl(var(--violet) / .12); color: hsl(var(--violet)); }
@media (max-width: 760px) {
  .kk .panel { padding: 14px; }
  .kk-rij { grid-template-columns: 1fr; gap: 6px; }
  .kk-oudnieuw { grid-template-columns: 1fr; }
  .best-seg button { font-size: 12px; padding: 7px 4px; }
}

.ev .bestv .vk-t { margin-left: 0; font-weight: 500; }
.nt-check { margin-top: 10px; }
#ntKeuzes select { margin-top: 4px; }
