/* 02b — Tilesminds Mission Control in de hero: vijf tabbladen die vanzelf wisselen.
   Tilesminds-logo en productkleuren, verder de Juno-huid: blauwzwart, lucht-blauw, gebroken wit. Barlow.
   regenboog uit het logo. Eén lettertype: Barlow (zoals tilesminds.com). Vast formaat 1120 × 790, geschaald door js. */
.tm {
  --tm-creme: #F7F8FC; --tm-inkt: #111827; --tm-petrol: #111B38; --tm-geel: #8CC4E8; --tm-merk: #1E6FB8; --tm-lucht: linear-gradient(140deg, #EAF3FA 0%, #CFE3F3 55%, #3A8ACB 100%); --tm-groen: #00B67A;
  --tm-rood: #EF4B4B; --tm-paars: #B04BD6; --tm-oranje: #F59B2B; --tm-blauw: #3CA7E6; --tm-lijn: rgba(26, 26, 26, .08); --tm-grijs: #7A7A76;
  display: grid; grid-template-columns: 200px minmax(0, 1fr); width: 1120px; height: 790px; overflow: hidden;
  border-radius: 22px; background: var(--tm-creme); color: var(--tm-inkt); text-align: left;
  font-family: "Barlow TM", "Barlow", system-ui, sans-serif; font-size: 13px; line-height: 1.35; font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 60px 110px -40px rgba(0, 10, 20, .75);
}
.tm em, .tm i { font-style: normal; }
.tm ul { margin: 0; padding: 0; list-style: none; }
.tm p { margin: 0; }
.tm strong { font-weight: 700; font-variant-numeric: tabular-nums; }

/* zijbalk */
.tm-zij { background: var(--tm-petrol); color: rgba(255, 255, 255, .72); padding: 22px 14px; display: flex; flex-direction: column; }
.tm-logo { width: 146px; height: auto; margin: 2px 6px 26px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); }
.tm-zij-kop { margin: 0 8px 8px !important; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .38); }
.tm-menu { display: grid; gap: 3px; margin-bottom: 24px !important; }
.tm-menu li { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; overflow: hidden; transition: background-color .3s ease, color .3s ease; }
.tm-menu li:hover { color: #fff; }
.tm-menu li.is-actief { background: rgba(255, 255, 255, .12); color: #fff; }
.tm-menu li.is-actief::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--tm-geel); transform-origin: left; animation: tm-tijd var(--tm-duur, 7s) linear both; }
.tm.is-pauze .tm-menu li.is-actief::after { animation: none; transform: scaleX(0); }
@keyframes tm-tijd { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tm-menu li b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--tm-geel); color: var(--tm-inkt); }
.tm-kanalen { display: grid; gap: 1px; }
.tm-kanalen li { display: flex; justify-content: space-between; padding: 6px 10px; font-size: 13px; }
.tm-kanalen em { color: rgba(255, 255, 255, .45); font-variant-numeric: tabular-nums; }
.tm-trust { margin: 20px 4px 0; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.tm-trust span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.tm-trust b { font-size: 22px; font-weight: 700; color: #fff; grid-row: span 2; }
.tm-trust em { color: var(--tm-groen); letter-spacing: 1px; font-size: 12px; }
.tm-via { margin: auto 8px 0 !important; font-size: 10.5px; color: rgba(255, 255, 255, .38); }

/* hoofdvlak */
.tm-hoofd { padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.tm-balk { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--tm-lijn); }
.tm-groet { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.tm-sub { margin-top: 2px !important; color: var(--tm-grijs); font-size: 12.5px; }
.tm-status { padding: 6px 14px; border-radius: 999px; background: var(--tm-petrol); font-size: 12.5px; font-weight: 700; color: #fff; }
.tm-logo-mob, .tm-pills { display: none; }

.tm-views { position: relative; flex: 1; min-height: 0; }
.tm-view { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 11px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .45s ease, transform .55s var(--ease), visibility 0s .45s; }
.tm-view.is-actief { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .1s, transform .55s var(--ease) .1s, visibility 0s; }

/* kaarten */
.tm-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; flex: none; }
.tm-kpis.is-vier { grid-template-columns: repeat(4, 1fr); }
.tm-kpi { padding: 11px 13px; border-radius: 13px; background: #fff; border: 1px solid var(--tm-lijn); display: grid; gap: 1px; }
.tm-kpi span { font-size: 11.5px; color: var(--tm-grijs); white-space: nowrap; }
.tm-kpi strong { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; }
.tm-kpi em { font-size: 11px; color: var(--tm-groen); font-weight: 600; white-space: nowrap; }
.tm-kpi.is-accent { background: var(--tm-petrol); border-color: var(--tm-petrol); color: #fff; }
.tm-kpi.is-accent span { color: rgba(255, 255, 255, .62); }
.tm-kpi.is-accent em { color: var(--tm-geel); }

.tm-raster { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.08fr .92fr; gap: 10px; }
.tm-raster.is-twee { grid-template-columns: 1.15fr 1fr; }
.tm-raster.is-bestel { grid-template-columns: 1.7fr 1fr; }
.tm-kolom { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.tm-kaart { padding: 13px 15px; border-radius: 14px; background: #fff; border: 1px solid var(--tm-lijn); min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.tm-vul-kaart { flex: 1; }
.tm-vul { flex: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.tm-kaart-kop { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.tm-kaart-kop p { font-weight: 700; font-size: 14px; }
.tm-kaart-kop span { font-size: 11.5px; color: var(--tm-grijs); white-space: nowrap; }
.tm-live { font-size: 10.5px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-groen) !important; }
.tm-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-petrol); margin-bottom: 10px !important; }
.tm-sublabel { margin: 12px 0 6px !important; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-petrol); }
.tm-chip { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: #EEF3F6; color: var(--tm-petrol); justify-self: start; }
.tm-chip.is-groen { background: #E3F7EF; color: #007A52; }
.tm-chip.is-geel { background: #FBF3C2; color: #6B5A00; }
.tm-chip.is-rood { background: #FDE6E6; color: #C22E2E; }
.tm-chip.is-blauw { background: #E4F2FC; color: #1B6FA8; }
.tm-chip.is-grijs { background: #F1F1EE; color: #555; }

/* nu bezig */
.tm-nu { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 8px; margin-bottom: 4px !important; padding: 8px 10px; border-radius: 9px; background: var(--tm-creme); font-size: 12px; }
.tm-nu span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-petrol); white-space: nowrap; }
.tm-nu b { font-weight: 700; white-space: nowrap; }
.tm-nu i { color: var(--tm-grijs); line-height: 1.3; }

/* lijsten met producten */
.tm-lijst { position: relative; overflow: hidden; }
.tm-lijst li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--tm-lijn); }
.tm-lijst li:first-child { border-top: 0; }
.tm img { border-radius: 9px; object-fit: cover; background: #fff; box-shadow: inset 0 0 0 1px var(--tm-lijn); }
.tm-lijst img { width: 36px; height: 36px; }
.tm-lijst b { display: block; font-weight: 700; font-size: 13px; }
.tm-lijst span { font-size: 11.5px; color: var(--tm-grijs); }
.tm-lijst strong { font-size: 13px; }
.tm .is-nieuw { animation: tm-nieuw 1.6s ease both; }
@keyframes tm-nieuw { 0%, 35% { background: rgba(241, 222, 75, .45); } 100% { background: transparent; } }
.tm .is-weg { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transition: opacity .45s ease; }

/* advertenties in overzicht */
.tm-ads-top { display: grid; grid-template-columns: auto auto 1fr; gap: 16px; align-items: end; margin-bottom: 10px; }
.tm-ads-top span { display: block; font-size: 11px; color: var(--tm-grijs); }
.tm-ads-top strong { font-size: 20px; }
.tm-spark { width: 100%; height: 36px; }
.tm-spark-vlak, .tm-grafiek-vlak { fill: rgba(0, 182, 122, .14); }
.tm-spark-lijn, .tm-grafiek-lijn { fill: none; stroke: var(--tm-groen); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; }
.tm-campagnes { display: grid; gap: 8px; }
.tm-campagnes li { display: grid; grid-template-columns: 52px minmax(0, 1fr) 36px; gap: 9px; align-items: center; }
.tm-kanaal { font-size: 10.5px; font-weight: 700; text-align: center; padding: 3px 0; border-radius: 6px; }
.tm-kanaal.is-meta { background: #E7F0FF; color: #1D5BD6; }
.tm-kanaal.is-google { background: #FDF2DA; color: #8A5A00; }
.tm-campagnes b { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.tm-balk-mini { display: block; height: 5px; border-radius: 5px; background: rgba(26, 26, 26, .07); overflow: hidden; }
.tm-balk-mini i { display: block; height: 100%; border-radius: inherit; background: var(--tm-groen); transform: scaleX(var(--w)); transform-origin: left; }
.tm-campagnes em { text-align: right; font-weight: 700; font-size: 13px; color: var(--tm-groen); }
.tm-acties { position: relative; overflow: hidden; }
.tm-acties li { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--tm-lijn); font-size: 12px; color: #3D3D3A; line-height: 1.35; }
.tm-acties li:first-child { border-top: 0; }
.tm-acties time { color: #A5A5A0; font-variant-numeric: tabular-nums; }
.tm-acties b { color: #007A52; font-weight: 700; }

/* bestsellers en kanaalbalken */
.tm-top { display: grid; gap: 8px; }
.tm-top li { display: grid; grid-template-columns: 104px 1fr 26px; gap: 8px; align-items: center; font-size: 12.5px; }
.tm-top i { height: 8px; border-radius: 8px; transform: scaleX(var(--w)); transform-origin: left; background: var(--tm-rood); }
.tm-top li:nth-child(2) i { background: var(--tm-blauw); }
.tm-top li:nth-child(3) i { background: var(--tm-oranje); }
.tm-top li:nth-child(4) i { background: var(--tm-paars); }
.tm-top em { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-top.is-kanalen li { grid-template-columns: 70px 1fr 26px; }

/* voorraad in overzicht */
.tm-voorraad-tekst { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: #3D3D3A; line-height: 1.4; margin-bottom: 10px !important; }
.tm-voorraad-tekst img { flex: none; width: 42px; height: 42px; }
.tm-voorraad-tekst b { color: var(--tm-inkt); }
.tm-meter { display: grid; gap: 6px; padding: 9px 11px; border-radius: 10px; background: var(--tm-creme); }
.tm-meter-kop { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--tm-grijs); }
.tm-meter-kop b { color: var(--tm-rood); font-weight: 700; }
.tm-meter > i { display: block; height: 7px; border-radius: 7px; background: rgba(26,26,26,.08); position: relative; overflow: hidden; }
.tm-meter > i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--tm-rood); transform: scaleX(var(--w)); transform-origin: left; }
.tm-knoppen { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.tm-knoppen b { font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--tm-lijn); }
.tm-knoppen b:first-child { background: var(--tm-inkt); color: #fff; border-color: var(--tm-inkt); }

/* agent-team */
.tm-team { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; flex: none; }
.tm-agent { padding: 9px 11px; border-radius: 11px; background: #fff; border: 1px solid var(--tm-lijn); display: grid; gap: 1px; transition: background-color .4s ease, border-color .4s ease; }
.tm-agent b { font-size: 11px; font-weight: 700; color: var(--tm-grijs); text-transform: uppercase; letter-spacing: .06em; }
.tm-agent span { font-size: 11.5px; color: var(--tm-grijs); white-space: nowrap; }
.tm-agent strong { font-size: 16px; color: var(--tm-inkt); margin-right: 2px; }
.tm-agent.is-bezig { background: var(--tm-geel); border-color: var(--tm-geel); }
.tm-agent.is-bezig b, .tm-agent.is-bezig span { color: rgba(26, 26, 26, .72); }

/* tabellen */
.tm-tabel-kop { display: grid; gap: 10px; padding: 0 0 8px; border-bottom: 1px solid var(--tm-lijn); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9A9A95; }
.tm-tabel-kop, .tm-campagne-tabel li { grid-template-columns: 56px minmax(0, 1.6fr) .7fr .8fr .6fr 104px; }
.tm-campagne-tabel li { display: grid; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--tm-lijn); font-size: 12.5px; }
.tm-campagne-tabel li:first-child { border-top: 0; }
.tm-campagne-tabel b { font-weight: 600; }
.tm-campagne-tabel em { font-weight: 700; color: var(--tm-groen); }
.tm-campagne-tabel em.is-laag { color: var(--tm-rood); }
.tm-view > .tm-tabel { flex: none; }
.tm-tabel-kop.is-orders, .tm-order-tabel li { grid-template-columns: 36px minmax(0, 1.3fr) 1fr .8fr 88px 64px; }
.tm-order-tabel li, .tm-voorraad-tabel li { display: grid; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--tm-lijn); font-size: 12.5px; }
.tm-order-tabel li:first-child, .tm-voorraad-tabel li:first-child { border-top: 0; }
.tm-order-tabel img, .tm-voorraad-tabel img { width: 36px; height: 36px; }
.tm-order-tabel b, .tm-voorraad-tabel b { font-weight: 700; }
.tm-order-tabel span { color: #555; }
.tm-order-tabel strong { text-align: right; }
.tm-tabel-kop.is-voorraad, .tm-voorraad-tabel li { grid-template-columns: 36px minmax(0, 1.3fr) 1.2fr 84px 96px; }
.tm-balk-v { display: block; height: 8px; border-radius: 8px; background: rgba(26, 26, 26, .07); overflow: hidden; }
.tm-balk-v i { display: block; height: 100%; border-radius: inherit; background: var(--tm-groen); transform: scaleX(var(--w)); transform-origin: left; }
.tm-balk-v.is-rood i { background: var(--tm-rood); }
.tm-balk-v.is-geel i { background: #E0C21C; }
.tm-voorraad-tabel span { color: #555; font-variant-numeric: tabular-nums; }
.tm-stats li { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--tm-lijn); font-size: 12.5px; }
.tm-stats li:first-child { border-top: 0; }
.tm-stats span { color: #555; }
.tm-stats b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-stats b.is-groen { color: #007A52; }
.tm-sync li { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12.5px; }
.tm-sync span { color: #555; }
.tm-sync b { font-weight: 600; color: #007A52; font-variant-numeric: tabular-nums; }

/* grafiek advertenties */
.tm-grafiek { width: 100%; flex: 1; min-height: 120px; }
.tm-hulp line { stroke: rgba(26, 26, 26, .07); vector-effect: non-scaling-stroke; }
.tm-assen { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: #A5A5A0; }

/* klantservice */
.tm-tickets li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--tm-lijn); font-size: 12.5px; }
.tm-tickets li:first-child { border-top: 0; }
.tm-tickets b { font-weight: 700; }
.tm-tickets span { color: #555; }
.tm-bubbels { gap: 8px; justify-content: flex-start !important; }
.tm-bel { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; }
.tm-bel.is-klant { align-self: flex-start; background: #F2F2EF; border-bottom-left-radius: 4px; }
.tm-bel.is-agent { align-self: flex-end; background: var(--tm-petrol); color: #fff; border-bottom-right-radius: 4px; }
.tm-opgelost { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--tm-lijn); font-size: 12px; font-weight: 600; color: #007A52; }

.tm .is-tik { animation: tm-tik .6s ease; }
@keyframes tm-tik { 30% { color: var(--tm-groen); } }

/* animatie bij het tonen van een tabblad */
.tm-view.is-actief .tm-kpi, .tm-view.is-actief .tm-kaart, .tm-view.is-actief .tm-agent { animation: tm-in .55s var(--ease) both; }
.tm-view.is-actief .tm-kpi:nth-child(2) { animation-delay: .04s; } .tm-view.is-actief .tm-kpi:nth-child(3) { animation-delay: .08s; }
.tm-view.is-actief .tm-kpi:nth-child(4) { animation-delay: .12s; } .tm-view.is-actief .tm-kpi:nth-child(5) { animation-delay: .16s; }
.tm-view.is-actief .tm-kaart { animation-delay: .18s; } .tm-view.is-actief .tm-agent { animation-delay: .26s; }
.tm-view.is-actief .tm-top i, .tm-view.is-actief .tm-balk-mini i, .tm-view.is-actief .tm-balk-v i { animation: tm-groei 1s var(--ease) .35s both; }
.tm-view.is-actief .tm-spark-lijn, .tm-view.is-actief .tm-grafiek-lijn { animation: tm-teken 1.6s var(--ease) .3s both; }
.tm-view.is-actief .tm-bel { animation: tm-in .5s var(--ease) both; }
.tm-view.is-actief .tm-bel:nth-child(2) { animation-delay: .6s; } .tm-view.is-actief .tm-bel:nth-child(3) { animation-delay: 1.3s; } .tm-view.is-actief .tm-bel:nth-child(4) { animation-delay: 1.9s; }
.tm-view.is-actief .tm-opgelost { animation: tm-in .5s var(--ease) 2.4s both; }
@keyframes tm-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes tm-groei { from { transform: scaleX(0); } }
@keyframes tm-teken { from { stroke-dashoffset: 1; } }
@media (prefers-reduced-motion: reduce) { .tm * { animation: none !important; } }

/* hero-kader: diep petrol, dashboard gecentreerd */
.hero .hero__video--demo {
  aspect-ratio: 1120 / 860 !important;
  background:
    radial-gradient(60% 55% at 15% 0%, rgba(60, 167, 230, .28), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(0, 182, 122, .18), transparent 70%),
    linear-gradient(160deg, #0E4A68 0%, #093A52 55%, #062A3C 100%) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 40px 80px -46px rgba(6, 42, 60, .7) !important;
}
.hero .hero__demo .regie__scene { top: 50% !important; width: 1120px; height: 790px !important; transform: translate(-50%, -50%) scale(var(--demo-schaal, .8)) !important; transform-origin: 50% 50% !important; }
.hero .hero__demo .regie__dash { height: 790px !important; }
.hero .hero__video--demo .hero__melding { display: none !important; }

/* ————— mobiel: eigen smalle indeling (600 × 1000) ————— */
@media (max-width: 760px) {
  .tm { width: 600px; height: 1000px; grid-template-columns: 1fr; }
  .tm-zij { display: none; }
  .tm-logo-mob { display: block; width: 150px; height: auto; margin-bottom: 8px; }
  .tm-status { display: none; }
  .tm-pills { display: flex; gap: 6px; flex: none; }
  .tm-pills li { flex: 1; text-align: center; padding: 8px 4px; border-radius: 999px; background: #fff; border: 1px solid var(--tm-lijn); font-size: 13px; font-weight: 700; color: var(--tm-grijs); cursor: pointer; transition: background-color .3s ease, color .3s ease; }
  .tm-pills li.is-actief { background: var(--tm-petrol); border-color: var(--tm-petrol); color: #fff; }
  .tm .is-weg-mob { display: none !important; }
  .tm-kpis, .tm-kpis.is-vier { grid-template-columns: repeat(3, 1fr); }
  .tm-raster, .tm-raster.is-twee, .tm-raster.is-bestel { grid-template-columns: 1fr; }
  .tm-view[data-view="overzicht"] .tm-raster { grid-template-rows: 1fr 1fr; }
  .tm-view[data-view="overzicht"] .tm-kolom, .tm-team { display: none; }
  .tm-view[data-view="overzicht"] .tm-lijst li:nth-child(n+5) { display: none; }
  .tm-view[data-view="advertenties"] .tm-raster { grid-template-rows: 1fr; }
  .tm-view[data-view="advertenties"] .tm-raster > .tm-kaart:last-child { display: none; }
  .tm-campagne-tabel li:nth-child(n+5) { display: none; }
  .tm-tabel-kop.is-orders, .tm-order-tabel li { grid-template-columns: 36px minmax(0, 1.3fr) 1fr 88px 64px; }
  .tm-view[data-view="bestellingen"] .tm-raster, .tm-view[data-view="voorraad"] .tm-raster { grid-template-rows: 1fr auto; }
  .tm-view[data-view="bestellingen"] .tm-kolom > .tm-kaart:last-child, .tm-view[data-view="voorraad"] .tm-kolom > .tm-kaart:last-child { display: none; }
  .tm-view[data-view="klantservice"] .tm-raster { grid-template-rows: auto 1fr; }
  .tm-view[data-view="klantservice"] .tm-raster > .tm-kaart:first-child { order: 2; }
  .tm-view[data-view="klantservice"] .tm-tickets li:nth-child(n+4) { display: none; }
  .hero .hero__video--demo { aspect-ratio: 600 / 1060 !important; }
  .hero .hero__demo .regie__scene, .hero .hero__demo .regie__dash { width: 600px; height: 1000px !important; }
}

/* review-kaart (overzicht) en productregel in voorraad */
.tm-review { justify-content: flex-start; }
.tm-sterren { color: var(--tm-groen); letter-spacing: 2px; font-size: 14px; margin-bottom: 6px !important; }
.tm-quote { font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--tm-inkt); }
.tm-review-voet { margin-top: auto !important; padding-top: 10px; font-size: 11.5px; color: var(--tm-grijs); }
.tm-review-voet b { color: var(--tm-inkt); font-weight: 700; }
.tm-voorraad-tabel small { display: block; font-size: 11.5px; color: var(--tm-grijs); margin-top: 1px; }
.tm-voorraad-tabel li { padding: 13px 0; }
.tm-voorraad-tabel img { width: 46px; height: 46px; }
.tm-tabel-kop.is-voorraad, .tm-voorraad-tabel li { grid-template-columns: 46px minmax(0, 1.3fr) 1.2fr 84px 96px; }
@media (max-width: 760px) {
  .tm-view[data-view="overzicht"] .tm-campagnes li:nth-child(n+4) { display: none; }
  .tm-view[data-view="overzicht"] .tm-acties li:nth-child(n+3) { display: none; }
}
.tm-tabel-kop span { white-space: nowrap; }
.tm-tabel-kop.is-voorraad, .tm-voorraad-tabel li { grid-template-columns: 46px minmax(0, 1.3fr) 1fr 100px 118px; }
.tm-quote { font-size: 13px; }
.tm-sterren { font-size: 13px; margin-bottom: 4px !important; }
.tm-review-voet { padding-top: 6px; }
@media (max-width: 760px) { .tm-tabel-kop.is-voorraad, .tm-voorraad-tabel li { grid-template-columns: 46px minmax(0, 1.3fr) .8fr 90px 100px; } }
@media (max-width: 760px) {
  .tm-tabel-kop.is-voorraad span:nth-child(3), .tm-voorraad-tabel .tm-balk-v { display: none; }
  .tm-tabel-kop.is-voorraad, .tm-voorraad-tabel li { grid-template-columns: 46px minmax(0, 1fr) 100px 120px; }
  .tm-view[data-view="klantservice"] .tm-tickets li:nth-child(n+4) { display: grid; }
  .tm-view[data-view="klantservice"] .tm-tickets li:nth-child(n+7) { display: none; }
}
@media (max-width: 760px) {
  .tm-voorraad-tabel li { padding: 7px 0; }
  .tm-voorraad-tabel img { width: 38px; height: 38px; }
  .tm-view[data-view="overzicht"] .tm-acties li:nth-child(3) { display: grid; }
  .tm-view[data-view="overzicht"] .tm-acties li:nth-child(n+4) { display: none; }
  .tm-view[data-view="advertenties"] .tm-raster { grid-template-rows: 1fr auto; }
  .tm-view[data-view="advertenties"] .tm-raster > .tm-kaart:last-child { display: flex; }
  .tm-view[data-view="advertenties"] .tm-acties li:nth-child(n+4) { display: none; }
}

/* ————— Juno-huid: de kleuren van de site (gebroken wit, lucht-blauw, blauwzwart) ————— */
.tm { box-shadow: 0 1px 2px rgba(13, 19, 34, .08), 0 2px 6px rgba(13, 19, 34, .06), 0 50px 90px -34px rgba(28, 40, 120, .55); }
.tm-zij { background: radial-gradient(120% 50% at 0% 0%, rgba(70, 176, 218, .22), transparent 60%), linear-gradient(180deg, #16224A 0%, #0D1322 100%); }
.tm-menu li.is-actief { background: rgba(140, 196, 232, .16); }
.tm-menu li b { background: var(--tm-geel); color: #0D1322; }
.tm-trust { background: rgba(140, 196, 232, .09); }
.tm-kpi.is-accent { background: radial-gradient(120% 120% at 100% 0%, rgba(70, 176, 218, .45), transparent 55%), linear-gradient(150deg, #1D2C5C 0%, #111B38 100%); border-color: #111B38; }
.tm-kpi.is-accent em { color: #9FD0EE; }
.tm-kpi, .tm-kaart, .tm-agent { box-shadow: 0 1px 2px rgba(13, 19, 34, .04); border-color: #E8EAF2; }
.tm-status { background: #111B38; }
.tm-label, .tm-sublabel, .tm-nu span { color: var(--tm-merk); }
.tm-chip { background: #EDF4FA; color: #17609F; }
.tm-chip.is-blauw { background: #E6F0F8; color: #1E6FB8; }
.tm-nu, .tm-meter { background: #F2F6FA; }
/* grafieken en balken in Juno-blauw; winst blijft groen */
.tm-spark-vlak, .tm-grafiek-vlak { fill: rgba(30, 111, 184, .1); }
.tm-spark-lijn, .tm-grafiek-lijn { stroke: var(--tm-merk); }
.tm-balk-mini i { background: linear-gradient(90deg, #3A8ACB, var(--tm-merk)); }
.tm-agent.is-bezig { background: var(--tm-lucht); border-color: #CFE3F3; }
.tm-agent.is-bezig b, .tm-agent.is-bezig span { color: rgba(13, 19, 34, .7); }
.tm-bel.is-agent { background: linear-gradient(150deg, #1D2C5C, #111B38); }
.tm-bel.is-klant { background: #EEF0F5; }
@media (max-width: 760px) { .tm-pills li.is-actief { background: #111B38; border-color: #111B38; } }

/* kader: de lucht van de site, kleiner zodat er lucht rondom blijft */
.hero .hero__media:has(.hero__video--demo) { width: min(1000px, calc(100% - 2 * var(--zij))); }
.hero .hero__video--demo {
  aspect-ratio: 1120 / 800 !important;
  background:
    radial-gradient(60% 70% at 22% 12%, rgba(255, 255, 255, .8), transparent 62%),
    radial-gradient(50% 60% at 92% 96%, rgba(70, 84, 200, .38), transparent 70%),
    linear-gradient(140deg, #EAF3FA 0%, #CFE3F3 38%, #3A8ACB 70%, #7E8FE3 100%) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 30px 60px -40px rgba(40, 60, 160, .45) !important;
}
@media (max-width: 760px) { .hero .hero__video--demo { aspect-ratio: 600 / 1060 !important; } }
@keyframes tm-nieuw { 0%, 45% { background: #EAF3FA; } 100% { background: transparent; } }
.tm-top li { grid-template-columns: 112px 1fr 22px; white-space: nowrap; }
.tm-top.is-kanalen li { grid-template-columns: 70px 1fr 26px; }
.tm-balk-v i { background: linear-gradient(90deg, #3A8ACB, var(--tm-merk)); }
/* logo zonder wit vlak: geen productfoto-achtergrond, rand of afronding */
.tm .tm-logo, .tm .tm-logo-mob { background: none; box-shadow: none; border-radius: 0; object-fit: contain; }

/* alleen het dashboard: geen kader eromheen, iets groter */
.hero .hero__media:has(.hero__video--demo) { width: min(1060px, calc(100% - 2 * var(--zij))); }
.hero .hero__video--demo, .hero .hero__video--demo .regie__podium {
  aspect-ratio: 1120 / 790 !important; background: none !important; box-shadow: none !important;
  border-radius: 0 !important; overflow: visible !important;
}
.hero .hero__video--demo .regie__podium { aspect-ratio: auto !important; }
@media (max-width: 760px) { .hero .hero__video--demo { aspect-ratio: 600 / 1000 !important; } }
.hero .hero__demo .regie__scene, .hero .hero__demo .regie__dash { overflow: visible !important; }
@media (max-width: 760px) { .tm { box-shadow: 0 1px 2px rgba(13, 19, 34, .08), 0 30px 50px -30px rgba(28, 40, 120, .45); } }

/* ————— lichte zijbalk + agenda ————— */
.tm-zij { background: #FFFFFF; color: #4B5563; border-right: 1px solid #E8EAF2; }
.tm-zij-kop { color: #9CA3AF; }
.tm-logo { filter: none; margin-bottom: 22px; }
.tm-menu li { color: #4B5563; }
.tm-menu li:hover { color: var(--tm-inkt); background: #F4F6FB; }
.tm-menu li.is-actief { background: #111B38; color: #fff; }
.tm-menu li.is-actief::after { background: #3A8ACB; }
.tm-menu li b { background: var(--tm-merk); color: #fff; }
.tm-menu li.is-actief b { background: #fff; color: #111B38; }
.tm-kanalen li { color: #4B5563; }
.tm-kanalen em { color: #9CA3AF; }
.tm-trust { margin-top: 14px; background: #F4F6FB; }
.tm-trust span { color: #6B7280; }
.tm-trust b { color: var(--tm-inkt); }
.tm-agenda { margin: 10px 4px 0; padding: 11px 12px 6px; border-radius: 12px; border: 1px solid #E8EAF2; }
.tm-agenda-kop { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--tm-merk); margin-bottom: 4px !important; }
.tm-agenda li { display: grid; grid-template-columns: 36px 1fr; gap: 6px; padding: 6px 0; border-top: 1px solid #EEF0F5; font-size: 11.5px; line-height: 1.3; }
.tm-agenda li:first-of-type { border-top: 0; }
.tm-agenda time { color: var(--tm-merk); font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-agenda span { color: #9CA3AF; }
.tm-agenda b { display: block; color: var(--tm-inkt); font-weight: 700; font-size: 12px; }
.tm-via { color: #B0B5C0; }
.tm { grid-template-rows: 100%; }
.tm-zij { min-height: 0; overflow: hidden; }
.tm-agenda li { grid-template-columns: 38px 1fr; align-items: baseline; white-space: nowrap; }
.tm-agenda b { display: inline; }

/* actieve agent: rustig blauwzwart vlak zoals het actieve menu, geen verloop */
.tm-agent { transition: background-color .45s ease, border-color .45s ease, color .45s ease; }
.tm-agent.is-bezig { background: #111B38; border-color: #111B38; box-shadow: none; }
.tm-agent.is-bezig b { color: #8CC4E8; }
.tm-agent.is-bezig span { color: rgba(255, 255, 255, .7); }
.tm-agent.is-bezig strong { color: #fff; }

/* schaduw: kort en neutraal, zodat hij niet afgekapt wordt door de volgende sectie */
.tm, .tm { box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 2px 4px rgba(15, 23, 42, .04), 0 18px 36px -18px rgba(15, 23, 42, .18) !important; }
/* lijnen altijd doorgetrokken (tekenanimatie brak op uitgerekte svg's), wel zacht invliegen */
.tm-spark-lijn, .tm-grafiek-lijn { stroke-dasharray: none !important; }
.tm-view.is-actief .tm-spark-lijn, .tm-view.is-actief .tm-grafiek-lijn, .tm-view.is-actief .tm-spark-vlak, .tm-view.is-actief .tm-grafiek-vlak { animation: tm-lijn-in 1s var(--ease) .3s both; }
@keyframes tm-lijn-in { from { opacity: 0; } }
/* agenda als echte agenda: titel, tijdsblok en plek, gekleurde streep per afspraak */
.tm-agenda { padding: 11px 11px 8px; }
.tm-agenda-kop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px !important; }
.tm-agenda-kop span { letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 11px; color: #9CA3AF; }
.tm-agenda li { display: block; padding: 4px 0 4px 9px; margin-top: 5px; border-top: 0; border-left: 3px solid var(--tm-merk); border-radius: 2px; background: #F7F8FC; white-space: nowrap; overflow: hidden; }
.tm-agenda li:first-of-type { margin-top: 0; }
.tm-agenda li.is-blauw { border-left-color: var(--tm-blauw); }
.tm-agenda li.is-oranje { border-left-color: var(--tm-oranje); }
.tm-agenda b { display: block; font-size: 11.5px; line-height: 1.3; }
.tm-agenda span { display: block; font-size: 10.5px; color: #6B7280; line-height: 1.3; }

/* ————— highlight: zwart, zoals de knoppen van de site (gekozen boven blauw/groen/oranje) ————— */
.tm { --tm-merk: #0A0A0A; }
.tm-label, .tm-sublabel, .tm-nu span, .tm-agenda-kop, .tm-agenda time { color: #0A0A0A; }
.tm-menu li b { background: #0A0A0A; color: #fff; }
.tm-menu li.is-actief::after { background: #8A8A86; }
.tm-balk-mini i, .tm-balk-v:not(.is-rood):not(.is-geel) i { background: #0A0A0A; }
.tm-spark-lijn, .tm-grafiek-lijn { stroke: #0A0A0A; }
.tm-spark-vlak, .tm-grafiek-vlak { fill: rgba(10, 10, 10, .07); }
.tm-nu, .tm-meter, .tm-agenda li { background: #F1F1EE; }
.tm-agenda li.is-merk { border-left-color: #0A0A0A; }
.tm-chip:not([class*="is-"]), .tm-chip.is-blauw { background: #F1F1EE; color: #0A0A0A; }
.tm-kpi.is-accent em, .tm-agent.is-bezig b { color: #8A8A86; }
@keyframes tm-nieuw { 0%, 45% { background: #F1F1EE; } 100% { background: transparent; } }
/* donkere vlakken ook echt zwart (geen marineblauw meer) */
.tm { --tm-petrol: #0A0A0A; }
.tm-menu li.is-actief, .tm-status, .tm-agent.is-bezig { background: #0A0A0A; border-color: #0A0A0A; }
.tm-menu li.is-actief::after { background: rgba(255, 255, 255, .45); }
.tm-menu li.is-actief b { color: #0A0A0A; }
.tm-kpi.is-accent { background: #0A0A0A; border-color: #0A0A0A; }
.tm-kpi.is-accent em, .tm-agent.is-bezig b { color: #A3A3A0; }
.tm-bel.is-agent { background: #0A0A0A; }
@media (max-width: 760px) { .tm-pills li.is-actief { background: #0A0A0A; border-color: #0A0A0A; } }
/* neutrale grijzen in plaats van blauwgrijs, passend bij zwart */
.tm { --tm-creme: #F7F7F5; --tm-inkt: #0A0A0A; background: #F7F7F5; }
.tm-kpi, .tm-kaart, .tm-agent { border-color: #EAEAE6; }
.tm-zij { border-right-color: #EAEAE6; }
.tm-trust, .tm-menu li:hover { background: #F3F3F0; }
.tm-agenda { border-color: #EAEAE6; }
.hero .hero__media:has(.hero__video--demo) { width: min(1000px, calc(100% - 2 * var(--zij))); }
/* actief menu-item blijft zwart bij hover */
.tm-menu li.is-actief:hover { background: #0A0A0A; color: #fff; }
/* bestelbevestiging in het gesprek */
.tm-bel-order { align-self: flex-end; width: 86%; display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 14px; border-bottom-right-radius: 4px; background: #fff; border: 1px solid #EAEAE6; font-size: 12px; }
.tm-bel-order img { width: 40px; height: 40px; }
.tm-bel-order b { display: block; font-weight: 700; font-size: 12.5px; }
.tm-bel-order span { color: #6B7280; font-size: 11.5px; }
.tm-bel-order strong { font-size: 13px; }
@media (max-width: 760px) { .tm-view[data-view="klantservice"] .tm-tickets li:nth-child(n+5) { display: none; } }

/* gesprek loopt live: berichten verschijnen op volgorde, plek blijft gereserveerd (geen verspringen) */
.tm-bubbels > *, .tm-opgelost { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .45s var(--ease); }
.tm-bubbels > .is-zicht, .tm-opgelost.is-zicht { opacity: 1; transform: none; }
.tm-bel { position: relative; }
.tm-bel.is-agent.is-typt { opacity: 1; transform: none; background: none; color: transparent; }
.tm-bel.is-agent.is-typt::before { content: ""; position: absolute; right: 0; top: 0; width: 52px; height: 30px; border-radius: 15px 15px 4px 15px; background: #0A0A0A; }
.tm-bel.is-agent.is-typt::after { content: ""; position: absolute; right: 16px; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: -8px 0 0 rgba(255,255,255,.5), 8px 0 0 rgba(255,255,255,.5); animation: tm-typt 1s ease-in-out infinite; }
@keyframes tm-typt { 0%, 100% { box-shadow: -8px 0 0 rgba(255,255,255,.9), 8px 0 0 rgba(255,255,255,.35); background: rgba(255,255,255,.5); } 50% { box-shadow: -8px 0 0 rgba(255,255,255,.35), 8px 0 0 rgba(255,255,255,.9); background: rgba(255,255,255,.9); } }
.is-shot .tm-bubbels > *, .is-shot .tm-opgelost { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .tm-bubbels > *, .tm-opgelost { opacity: 1; transform: none; } }

/* ————— telefoon: eigen smal formaat (390 × 700), nauwelijks geschaald dus goed leesbaar ————— */
@media (max-width: 760px) {
  .tm { width: 390px; height: 700px; border-radius: 18px; font-size: 13px; }
  .hero .hero__video--demo { aspect-ratio: 390 / 700 !important; }
  .hero .hero__demo .regie__scene, .hero .hero__demo .regie__dash { width: 390px; height: 700px !important; }
  .tm-hoofd { padding: 14px 14px 14px; gap: 10px; }
  .tm-balk { padding-bottom: 10px; }
  .tm-logo-mob { width: 112px; margin-bottom: 6px; }
  .tm-groet { font-size: 18px; }
  .tm-sub { font-size: 12px; }
  /* tabknoppen: horizontaal scrollbaar, actieve knop schuift in beeld (js) */
  .tm-pills { overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; }
  .tm-pills::-webkit-scrollbar { display: none; }
  .tm-pills li { flex: none; padding: 7px 13px; font-size: 13px; }
  .tm-view { gap: 9px; }
  .tm-kpis, .tm-kpis.is-vier { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tm-kpis > .tm-kpi:nth-child(n+3) { display: none !important; }
  .tm-kpi { padding: 10px 12px; }
  .tm-kpi strong { font-size: 22px; }
  .tm-kaart { padding: 12px 13px; }
  .tm-kaart-kop { margin-bottom: 6px; }

  /* overzicht: live bestellingen + advertentie-agent in het kort */
  .tm-view[data-view="overzicht"] .tm-raster { grid-template-rows: auto 1fr; }
  .tm-view[data-view="overzicht"] .tm-nu { display: none; }
  .tm-view[data-view="overzicht"] .tm-lijst li:nth-child(n+4) { display: none; }
  .tm-view[data-view="overzicht"] .tm-campagnes li:nth-child(n+3), .tm-view[data-view="overzicht"] .tm-acties li:nth-child(n+3) { display: none; }

  /* advertenties: grafiek + wat de agent deed, geen tabel */
  .tm-view[data-view="advertenties"] > .tm-tabel { display: none; }
  .tm-view[data-view="advertenties"] .tm-raster { grid-template-rows: 1fr auto; }
  .tm-view[data-view="advertenties"] .tm-grafiek { min-height: 90px; }
  .tm-view[data-view="advertenties"] .tm-acties li:nth-child(n+4) { display: none; }

  /* bestellingen: product, status, bedrag */
  .tm-tabel-kop.is-orders, .tm-order-tabel li { grid-template-columns: 34px minmax(0, 1fr) 84px 62px; }
  .tm-tabel-kop.is-orders span:nth-child(3), .tm-order-tabel li > span:not(.is-weg-mob) { display: none; }
  .tm-view[data-view="bestellingen"] .tm-kolom { display: none; }
  .tm-view[data-view="bestellingen"] .tm-raster { grid-template-rows: 1fr; }
  .tm-view[data-view="bestellingen"] .tm-order-tabel li:nth-child(n+7) { display: none; }

  /* klantservice: alleen het gesprek */
  .tm-view[data-view="klantservice"] .tm-raster { grid-template-rows: 1fr; }
  .tm-view[data-view="klantservice"] .tm-raster > .tm-kaart:not(.tm-gesprek) { display: none; }
  .tm-bel { font-size: 12.5px; padding: 8px 11px; }
  .tm-opgelost { font-size: 11.5px; }

  /* voorraad: product, op voorraad, nog genoeg voor */
  .tm-view[data-view="voorraad"] .tm-kolom { display: none; }
  .tm-view[data-view="voorraad"] .tm-raster { grid-template-rows: 1fr; }
  .tm-tabel-kop.is-voorraad, .tm-voorraad-tabel li { grid-template-columns: 38px minmax(0, 1fr) 82px 78px; }
  .tm-voorraad-tabel img { width: 38px; height: 38px; }
  .tm-tabel-kop span { font-size: 9.5px; letter-spacing: .06em; }
}
@media (max-width: 760px) {
  .tm-view[data-view="overzicht"] .tm-acties li:nth-child(n+2) { display: none; }
  /* gesprek op de telefoon in het kort: vraag, antwoord, bestelling, bevestiging */
  .tm-bubbels > .tm-bel:nth-child(3), .tm-bubbels > .tm-bel:nth-child(4) { display: none; }
  .tm-view[data-view="voorraad"] .tm-kaart-kop span { display: none; }
  .tm-tabel-kop.is-voorraad, .tm-voorraad-tabel li { grid-template-columns: 38px minmax(0, 1fr) 76px 92px; }
  .tm-tabel-kop.is-voorraad span { font-size: 9px; }
}
