/* --- css/montage.css --- */
/* Tijdlijn als video-editor (After Effects / Premiere; op een smal scherm zoals CapCut). */

/* ========================================= */
/* === PAGINA VAST OP ÉÉN SCHERM ============ */
/* ========================================= */
/* zelfde marges als de andere tabs, zodat de titel overal op dezelfde plek staat */
.app-container.tab-fit .content-scroll-wrapper { overflow: hidden; padding-bottom: 74px; }
.app-container.tab-fit #dynamic-content { height: 100%; }

/* sections.css draait elke svg een kwartslag (voor de oude skill-cirkels); hier niet */
.mt-wrap svg { transform: none; }

.mt-wrap { display: block; }
.mt-wrap:not(.is-text) { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; height: 100%; }

/* TITEL, VINKJE "ALLES TONEN" EN SCHAKELAAR "ALLEEN TEKST" */
/* De titel is precies die van de andere tabs (zelfde grootte en plek; de bovenmarge van een
   .section-title staat hier op de balk). De schakelaar staat op de middenlijn van de titeltekst,
   vast aan de rechterkant met het label links ervan: in NL en EN, met of zonder vinkje, op
   exact dezelfde plek. */
.mt-titlebar {
    position: relative; display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-top: calc(2rem * 0.83);
}
.mt-titlebar .section-title { margin: 0; white-space: nowrap; }
.mt-wrap.is-text .mt-titlebar { margin-bottom: 40px; }
.mt-titletools { display: flex; align-items: center; gap: 22px; flex: none; margin-bottom: 7px; }
.mt-switch, .mt-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.mt-switch-label { order: -1; }
.mt-switch input, .mt-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mt-switch-track {
    position: relative; width: 44px; height: 24px; border-radius: 50px; background: #333;
    border: 1px solid #444; transition: background 0.25s ease, border-color 0.25s ease; flex: none;
}
.mt-switch-thumb {
    position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}
.mt-switch input:checked + .mt-switch-track { background: var(--accent); border-color: var(--accent); }
.mt-switch input:checked + .mt-switch-track .mt-switch-thumb { transform: translateX(20px); }
.mt-switch input:focus-visible + .mt-switch-track, .mt-check input:focus-visible + .mt-checkbox { outline: 2px solid var(--accent); outline-offset: 3px; }
.mt-switch-label, .mt-check span:last-child { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.mt-switch input:checked ~ .mt-switch-label, .mt-check input:checked ~ span:last-child { color: #fff; }
.mt-checkbox {
    width: 20px; height: 20px; border-radius: 5px; border: 1px solid #555; background: #222; flex: none;
    display: inline-flex; align-items: center; justify-content: center; color: transparent; font-size: 0.7rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.mt-check input:checked + .mt-checkbox { background: var(--accent); border-color: var(--accent); color: #fff; }
.mt-wrap:not(.is-text) .mt-check { display: none; }

/* Montage óf tekst: nooit allebei */
.mt-wrap.is-text .mt-editor { display: none; }
.mt-wrap:not(.is-text) .mt-listblock { display: none; }

/* ========================================= */
/* === DE EDITOR ============================ */
/* ========================================= */
.mt-editor {
    --rh: 30px; --lh: 40px; --heads: 156px;
    display: grid; min-height: 0; height: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    grid-template-rows: minmax(0, 1fr) auto auto;
    grid-template-areas: "program side" "timeline timeline" "scroll scroll";
    background: #1d1d1d; border: 1px solid #3a3a3a; border-radius: 10px; overflow: hidden;
    user-select: none; font-size: 0.8rem;
}

/* Paneelkoppen zoals in After Effects */
.mt-paneltab, .mt-tabs, .mt-tlhead {
    display: flex; align-items: stretch; gap: 2px; height: 28px; padding: 0 8px; flex: none;
    background: #232323; border-bottom: 1px solid #111; font-size: 0.74rem; color: #9a9a9a;
}
.mt-paneltab { align-items: center; justify-content: space-between; }
.mt-paneltab .is-on { color: #e6e6e6; position: relative; padding: 0 6px; line-height: 27px; }
.mt-paneltab .is-on i { color: #777; font-size: 0.62rem; margin-right: 4px; }
.mt-paneltab .is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #e0a03a; }
.mt-paneltab > i { color: #666; font-size: 0.7rem; }

/* COMPOSITIEVENSTER */
.mt-program { grid-area: program; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid #111; }
.mt-viewer {
    --rul: 44px;
    flex: 1 1 0; min-height: 0; container-type: size; display: flex; align-items: center; justify-content: center;
    background: #262626; /* de grijze werkruimte rond de compositie */
}
.mt-wrap:not(.show-rulers) .mt-viewer { --rul: 18px; }
.mt-comp { position: relative; width: min(calc(100cqw - var(--rul)), calc((100cqh - var(--rul)) * 16 / 9)); aspect-ratio: 16 / 9; margin: calc(var(--rul) / 2) 0 0 calc(var(--rul) / 2); }
.mt-wrap:not(.show-rulers) .mt-comp { margin: 0; }
/* de video vult de hele zwarte compositie */
.mt-screen { position: absolute; inset: 0; overflow: hidden; background: #000; box-shadow: 0 0 0 1px #111, 0 6px 24px rgba(0, 0, 0, 0.45); }
.mt-brain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Linialen (pixels van een 1920x1080-beeld) */
.mt-rul { position: absolute; color: #888; font-size: 0.55rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.mt-rul-x {
    left: 0; right: 0; top: -16px; height: 14px; border-bottom: 1px solid #444;
    background:
        repeating-linear-gradient(90deg, #666 0 1px, transparent 1px calc(100% / 9.6)) bottom / 100% 7px no-repeat,
        repeating-linear-gradient(90deg, #4a4a4a 0 1px, transparent 1px calc(100% / 38.4)) bottom / 100% 3px no-repeat;
}
.mt-rul-y {
    top: 0; bottom: 0; left: -16px; width: 14px; border-right: 1px solid #444;
    background:
        repeating-linear-gradient(180deg, #666 0 1px, transparent 1px calc(100% / 5.4)) right / 7px 100% no-repeat,
        repeating-linear-gradient(180deg, #4a4a4a 0 1px, transparent 1px calc(100% / 21.6)) right / 3px 100% no-repeat;
}
.mt-rul-x span { position: absolute; top: 0; margin-left: 2px; line-height: 1; }
.mt-rul-y span { position: absolute; left: 1px; margin-top: 2px; line-height: 1; writing-mode: vertical-rl; transform: rotate(180deg); }
.mt-wrap:not(.show-rulers) .mt-rul { display: none; }

/* Hulplijnen in de compositie */
.mt-ov { position: absolute; inset: 0; pointer-events: none; z-index: 2; display: none; }
.mt-wrap.show-safe .mt-ov-safe, .mt-wrap.show-prop .mt-ov-prop, .mt-wrap.show-grid .mt-ov-grid { display: block; }
.mt-ov-safe i { position: absolute; border: 0 solid rgba(255, 255, 255, 0.45); }
.sf-action { inset: 5%; border-width: 1px !important; }
.sf-title { inset: 10%; border-width: 1px !important; border-color: rgba(255, 255, 255, 0.35) !important; }
/* center-cut (4:3) lijnen, zoals in After Effects */
.sf-cut { top: 10%; bottom: 10%; width: 0; border-left-width: 1px !important; border-color: rgba(255, 255, 255, 0.3) !important; }
.sf-cut.a1 { left: 16.25%; } .sf-cut.t1 { left: 20%; } .sf-cut.t2 { left: 80%; } .sf-cut.a2 { left: 83.75%; }
/* streepjes halverwege elke rand en het kruis in het midden */
.sf-tick { border-color: rgba(255, 255, 255, 0.45) !important; }
.sf-tick.l { left: 5%; top: 50%; width: 2.5%; border-top-width: 1px !important; }
.sf-tick.r { right: 5%; top: 50%; width: 2.5%; border-top-width: 1px !important; }
.sf-tick.u { top: 5%; left: 50%; height: 3.5%; border-left-width: 1px !important; }
.sf-tick.d { bottom: 5%; left: 50%; height: 3.5%; border-left-width: 1px !important; }
.sf-cross { left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.sf-cross::before, .sf-cross::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.5); }
.sf-cross::before { left: 10.5px; top: 0; width: 1px; height: 22px; }
.sf-cross::after { top: 10.5px; left: 0; height: 1px; width: 22px; }
.mt-ov-prop i { position: absolute; background: rgba(120, 190, 255, 0.35); }
.mt-ov-prop i:nth-child(1) { left: 33.333%; top: 0; bottom: 0; width: 1px; }
.mt-ov-prop i:nth-child(2) { left: 66.666%; top: 0; bottom: 0; width: 1px; }
.mt-ov-prop i:nth-child(3) { top: 33.333%; left: 0; right: 0; height: 1px; }
.mt-ov-prop i:nth-child(4) { top: 66.666%; left: 0; right: 0; height: 1px; }
.mt-ov-grid {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px calc(100% / 16)),
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px calc(100% / 9));
}

.mt-ver {
    position: absolute; top: 6.5%; left: 6%; z-index: 3; font-size: 0.58rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.45);
}
/* Lower third binnen title-safe */
.mt-lower {
    position: absolute; left: 10%; bottom: 10%; z-index: 3; max-width: 62%;
    display: flex; flex-direction: column; gap: 2px; padding: 7px 12px 8px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35));
    border-left: 3px solid #555; animation: fade-up 0.35s ease;
}
.mt-lower.is-hl { border-left-color: var(--accent); }
.mt-lt-role { font-size: clamp(0.8rem, 1.5cqw + 0.35rem, 1.2rem); font-weight: 800; line-height: 1.15; color: #fff; }
.mt-lt-org { font-size: 0.74rem; font-weight: 700; color: var(--accent); }
.mt-lt-org em { font-style: normal; font-weight: 400; color: #aaa; margin-left: 6px; }
.mt-pip {
    position: absolute; right: 6%; top: 8%; z-index: 3; width: 30%; aspect-ratio: 16 / 9;
    border: 1px solid #555; border-radius: 3px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    animation: fade-up 0.35s ease;
}
.mt-pip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-pip[hidden] { display: none; }

/* Werkbalk onder de compositie, met de transportknoppen */
.mt-vbar {
    /* drie vaste kolommen: de transportknoppen staan in elke taal precies in het midden */
    display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px;
    height: 42px; padding: 0 10px; flex: none;
    background: #232323; border-top: 1px solid #111; font-size: 0.7rem; color: #9a9a9a;
}
.mt-fake { border: 1px solid #3a3a3a; border-radius: 3px; padding: 2px 6px; white-space: nowrap; background: #1c1c1c; }
.mt-fake i { font-size: 0.6rem; margin-left: 2px; color: #777; }
.mt-tc-big { color: #5ab0ff; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; font-size: 0.85rem; min-width: 74px; }
.mt-transport { display: flex; align-items: center; gap: 6px; }
.mt-vbar-l, .mt-vbar-r { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mt-vbar-r { justify-content: flex-end; }
/* Te smal voor alle (nep)menu's? Dan verdwijnen ze stap voor stap, zodat niets over de
   transportknoppen schuift. */
.mt-vbar { container-type: inline-size; }
@container (max-width: 780px) { .mt-hide-m { display: none; } }
@container (max-width: 560px) { .mt-hide-s { display: none; } }
.mt-guides { position: relative; }
.mt-vbtn {
    display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 6px; border-radius: 3px;
    border: 1px solid #3a3a3a; background: #1c1c1c; color: #ddd; cursor: pointer; font-size: 0.75rem;
}
.mt-vbtn .fa-caret-down { font-size: 0.6rem; color: #777; }
.mt-vbtn[aria-expanded="true"] { border-color: #e0a03a; }
.mt-menu {
    position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 20; min-width: 190px; padding: 4px 0;
    background: #2b2b2b; border: 1px solid #111; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.mt-menu[hidden] { display: none; }
.mt-menu button {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 12px; border: 0; background: none;
    color: #ddd; font-family: inherit; font-size: 0.76rem; text-align: left; cursor: pointer;
}
.mt-menu button:hover { background: #3d5a80; color: #fff; }
.mt-menu button i { width: 12px; font-size: 0.65rem; color: transparent; }
.mt-menu button[aria-checked="true"] i { color: #fff; }
.mt-menu hr { border: 0; border-top: 1px solid #3a3a3a; margin: 4px 0; }

.mt-btn {
    width: 30px; height: 30px; border-radius: 50%; border: 1px solid #444; background: transparent; flex: none;
    color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem;
    transition: border-color 0.2s ease;
}
.mt-btn:hover { border-color: var(--accent); }
.mt-btn.play { width: 34px; height: 34px; background: var(--accent); border-color: var(--accent); box-shadow: 0 4px 15px var(--accent-glow); }

/* ZIJPANEEL: INFO / SKILLS */
.mt-side { grid-area: side; display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #1d1d1d; }
.mt-tabs button {
    display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; border: 0; background: none;
    color: #9a9a9a; font-family: inherit; font-size: 0.74rem; cursor: pointer; position: relative;
}
.mt-tabs button[aria-selected="true"] { color: #e6e6e6; }
.mt-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: -1px; height: 2px; background: #e0a03a; }
.mt-tabs i { font-size: 0.78rem; }
.mt-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px; }
/* gestileerde scrollbalken in de editor (dun, donker, rood bij hover) */
.mt-editor .mt-pane, .mt-editor .mt-bin, .mt-editor .mt-desc { scrollbar-width: thin; scrollbar-color: #444 transparent; }
.mt-editor .mt-pane:hover, .mt-editor .mt-bin:hover, .mt-editor .mt-desc:hover { scrollbar-color: var(--accent) transparent; }
.mt-editor ::-webkit-scrollbar { width: 6px; height: 6px; }
.mt-editor ::-webkit-scrollbar-track { background: transparent; }
.mt-editor ::-webkit-scrollbar-thumb { background: #444; border-radius: 6px; }
.mt-editor ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.mt-pane[hidden] { display: none; }
.mt-rows { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; margin: 0; font-size: 0.84rem; }
.mt-rows dt { color: #9a9a9a; font-size: 0.66rem; letter-spacing: 1px; text-transform: uppercase; padding-top: 2px; display: flex; gap: 6px; align-items: center; }
.mt-rows dd { margin: 0; min-width: 0; color: #e0e0e0; }
.mt-rows .none { color: #666; font-style: italic; }
.mt-rows .org { color: #9a9a9a; }
.mt-code { font-size: 0.6rem; font-weight: 700; background: #333; color: #ddd; border-radius: 3px; padding: 2px 5px; letter-spacing: 0.5px; text-align: center; }
.mt-desc { color: #bbb; font-size: 0.84rem; line-height: 1.55; margin: 12px 0 0; border-top: 1px solid #2c2c2c; padding-top: 12px; }

/* Projectpaneel: groot, gevuld voorbeeld + bestandsinfo + bestanden (zoals AE/Premiere) */
.mt-pane-project { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.mt-pane-project[hidden] { display: none; }
/* voorbeeld en info staan vast; alleen de bestandenlijst scrolt */
.mt-preview { position: relative; flex: none; aspect-ratio: 16 / 9; max-height: 42%; background: #111; overflow: hidden; border-bottom: 1px solid #111; }
.mt-fileinfo, .mt-pane-project .mt-desc { flex: none; }
.mt-pane-project .mt-desc { max-height: 7.8em; overflow-y: auto; padding-right: 6px; }
.mt-preview img { width: 100%; height: 100%; object-fit: cover; display: block; animation: fade-up 0.35s ease; }
.mt-prev-tag {
    position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 3px; font-size: 0.66rem;
    background: rgba(0, 0, 0, 0.7); color: #ddd; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mt-prev-card {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background: radial-gradient(circle at 50% 40%, #2c2c2c, #151515); color: #bbb; text-align: center; padding: 12px; animation: fade-up 0.35s ease;
}
.mt-prev-card i { font-size: 1.8rem; color: var(--accent); }
.mt-prev-card span { font-weight: 700; font-size: 0.85rem; color: #eee; }
.mt-fileinfo { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px 0; font-size: 0.78rem; color: #bbb; }
.mt-fileinfo b { color: #fff; font-size: 0.86rem; }
.mt-fi-meta { color: #8a8a8a; font-size: 0.72rem; }
.mt-pane-project .mt-desc { margin: 10px 16px 0; }
/* naar het project in het portfolio */
.mt-goto {
    align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 12px; border-radius: 50px; border: 1px solid var(--accent); background: rgba(211, 47, 47, 0.12);
    color: #fff; font-family: inherit; font-size: 0.74rem; font-weight: 700; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.mt-goto:hover { background: var(--accent); transform: translateX(2px); }
.mt-goto:active { transform: scale(0.95); }
.mt-preview.is-link { cursor: pointer; }
.mt-preview.is-link:hover img { filter: brightness(1.15); }
.mt-bin { flex: 1 1 auto; min-height: 80px; margin: 14px 0 0; border-top: 1px solid #111; overflow-y: auto; }
.mt-bin-head { position: sticky; top: 0; z-index: 1; }
.mt-bin-head, .mt-bin-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 0 16px; }
.mt-bin-head { grid-template-columns: minmax(0, 1fr) auto; height: 24px; background: #232323; color: #8a8a8a; font-size: 0.68rem; border-bottom: 1px solid #111; }
.mt-bin-row { width: 100%; height: 26px; border: 0; background: none; color: #ccc; font-family: inherit; font-size: 0.75rem; text-align: left; cursor: pointer; }
.mt-bin-row:nth-child(odd) { background: rgba(255, 255, 255, 0.02); }
.mt-bin-row:hover { background: rgba(255, 255, 255, 0.06); }
.mt-bin-row.is-on { background: #3d5a80; color: #fff; }
.mt-bin-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-bin-row .ty { color: #8a8a8a; font-size: 0.68rem; }
.mt-bin-row.is-on .ty { color: #dde; }
.mt-lbl { width: 10px; height: 10px; border-radius: 2px; }

/* Intro: een grote pijl die naar play gaat en even "Druk hier" roept.
   Het element hangt aan de transportknoppen; (0, 0) is het midden van play. */
.mt-editor { position: relative; }
.mt-transport { position: relative; }
.mt-cursor {
    position: absolute; z-index: 40; pointer-events: none; opacity: 0; width: 0; height: 0;
    transition: transform 0.95s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.3s ease;
}
.mt-cursor.is-in { opacity: 1; }
.mt-cursor.is-out { opacity: 0; }
/* een gewone cursor: punt linksboven, en die punt staat op het ankerpunt */
.mt-cursor svg {
    position: absolute; left: -3px; top: -2px; width: 40px; height: 40px; display: block;
    fill: #fff; stroke: #111; stroke-width: 1.3; stroke-linejoin: round;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)); transform-origin: 3px 2px; transform: none;
}
.mt-cursor-tip {
    position: absolute; left: 26px; top: 30px; white-space: nowrap; opacity: 0; transform: scale(0.4); transform-origin: left top;
    background: var(--accent); color: #fff; font-size: 0.95rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    padding: 7px 16px; border-radius: 50px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(211, 47, 47, 0.35);
}
/* klikken: de pijl knikt even in, zoals bij een echte muisklik (geen draaiing) */
.mt-cursor.is-shout svg { animation: mt-cursor-click 0.6s ease; }
@keyframes mt-cursor-click { 0%, 100% { transform: scale(1); } 30% { transform: scale(0.82); } 60% { transform: scale(1.12); } }
.mt-cursor.is-shout .mt-cursor-tip { animation: mt-shout 0.65s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
@keyframes mt-shout {
    0% { opacity: 0; transform: scale(0.4); }
    60% { opacity: 1; transform: scale(1.25) rotate(-4deg); }
    100% { opacity: 1; transform: scale(1) rotate(-2deg); }
}

/* Duidelijke druk-animatie op de transportknoppen (ook bij een gewone klik) */
.mt-btn:active { transform: scale(0.88); }
.mt-btn.is-press { animation: mt-press 0.45s cubic-bezier(0.3, 1.5, 0.5, 1); }
@keyframes mt-press {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.75); }
    30% { transform: scale(0.82); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 14px rgba(211, 47, 47, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}
.mt-btn.play.is-press { box-shadow: 0 4px 15px var(--accent-glow); }

/* Skills als audiometers: badge, naam + korte uitleg, meter */
.mt-sk-intro { margin: 0 0 12px; font-size: 0.74rem; color: #9a9a9a; line-height: 1.45; }
.mt-sk-group + .mt-sk-group { margin-top: 16px; }
.mt-sk-group h4 { margin: 0 0 8px; font-size: 0.64rem; letter-spacing: 1.5px; text-transform: uppercase; color: #9a9a9a; font-weight: 700; }
.mt-sk { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px; align-items: start; padding: 6px 0; border-bottom: 1px solid #262626; }
.mt-sk-badge {
    display: flex; align-items: center; justify-content: center; height: 26px; border-radius: 5px;
    background: #2a2a2a; border: 1px solid #383838; color: #e6e6e6; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.3px;
    white-space: nowrap; overflow: hidden;
}
.mt-sk-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mt-sk-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mt-sk-name { font-size: 0.8rem; font-weight: 600; color: #e6e6e6; }
.mt-sk-desc { font-size: 0.7rem; color: #8f8f8f; line-height: 1.35; }
.mt-sk-val { font-size: 0.72rem; font-variant-numeric: tabular-nums; color: #bbb; white-space: nowrap; flex: none; }
.mt-sk.is-zero .mt-sk-val { color: #666; font-style: italic; }
.mt-meter {
    position: relative; height: 6px; border-radius: 1px; overflow: hidden; margin-top: 2px;
    background: linear-gradient(90deg, #3fa34d 0%, #8bc34a 55%, #e0a03a 80%, #d32f2f 100%);
}
.mt-meter-cover { position: absolute; top: 0; bottom: 0; right: 0; width: calc(100% - var(--v) * 1%); background: #2a2a2a; }
/* het lichte stuk = het niveau van nu */
.mt-meter-final {
    position: absolute; top: 0; bottom: 0; left: calc(var(--v) * 1%); width: calc((var(--final) - var(--v)) * 1%);
    background: rgba(255, 255, 255, 0.16); box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.6);
}
.mt-meter::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 5px, #1d1d1d 5px 7px); }
.mt-toolbox { font-size: 0.7rem; color: #8f8f8f; margin: 8px 0 0; line-height: 1.45; }
/* wanneer geleerd: sinds / vanaf, met een labeltje als het net geleerd is of groeit */
.mt-sk-when { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 0.66rem; color: #8a8a8a; min-height: 16px; }
.mt-sk-tag:empty { display: none; }
.mt-sk-tag { padding: 1px 7px; border-radius: 50px; font-weight: 700; letter-spacing: 0.3px; }
.mt-sk { transition: opacity 0.3s ease, background 0.3s ease; }
.mt-sk.is-later { opacity: 0.5; }
.mt-sk.is-new .mt-sk-tag { background: #3fa34d; color: #fff; animation: mt-sk-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.mt-sk.is-grow .mt-sk-tag { background: #e0a03a; color: #1a1a1a; animation: mt-sk-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
.mt-sk.is-new, .mt-sk.is-grow { background: linear-gradient(90deg, rgba(224, 160, 58, 0.07), transparent 70%); }
.mt-sk.is-new .mt-sk-badge, .mt-sk.is-grow .mt-sk-badge { border-color: #e0a03a; }
/* glans over de balk zolang hij groeit */
.mt-sk.is-new .mt-meter::before, .mt-sk.is-grow .mt-meter::before {
    content: ""; position: absolute; top: 0; bottom: 0; width: 35%; z-index: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: mt-sk-shine 1.6s ease-in-out infinite;
}
@keyframes mt-sk-shine { from { left: -35%; } to { left: calc(var(--v) * 1%); } }
@keyframes mt-sk-pop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* SPOREN */
.mt-timeline { grid-area: timeline; display: flex; flex-direction: column; background: #1a1a1a; border-top: 1px solid #111; touch-action: pan-y; }
.mt-tlhead { align-items: center; gap: 14px; }
.mt-tltab { color: #e6e6e6; position: relative; padding: 0 6px; line-height: 27px; align-self: stretch; }
.mt-tltab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #e0a03a; }
.mt-tltab i { font-size: 0.6rem; color: #777; margin-left: 6px; }
.mt-tl-tc { color: #5ab0ff; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 1px; font-size: 0.85rem; }
.mt-hint { margin-left: auto; font-size: 0.7rem; color: #8a8a8a; }
.mt-hint kbd { font-family: inherit; font-size: 0.64rem; border: 1px solid #444; border-radius: 3px; padding: 0 5px; color: #ccc; }
.mt-tracks { display: grid; grid-template-columns: var(--heads) minmax(0, 1fr); }
.mt-heads { background: #212121; border-right: 1px solid #111; z-index: 6; }
/* schakelaars in vaste kolommen vóór de naam, zoals in After Effects */
.mt-head {
    height: var(--lh); display: grid; grid-template-columns: 16px 16px 26px minmax(0, 1fr); align-items: center; gap: 4px;
    padding: 0 8px; border-bottom: 1px solid #2a2a2a; font-size: 0.76rem; color: #ccc;
}
.mt-head.ruler-head { height: var(--rh); display: flex; color: #e0a03a; font-size: 0.7rem; }
.mt-sw { color: #5a5a5a; font-size: 0.62rem; text-align: center; }
.mt-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-area { position: relative; overflow: hidden; }
.mt-inner { position: relative; will-change: transform; }
.mt-ruler { position: relative; height: var(--rh); border-bottom: 1px solid #333; background: #1e1e1e; }
/* werkgebied met handgrepen aan begin en eind */
.mt-workarea { position: absolute; top: 3px; height: 6px; background: #4a4a4a; border-radius: 2px; }
.mt-workarea i { position: absolute; top: -1px; width: 4px; height: 8px; background: #8a8a8a; border-radius: 1px; }
.mt-workarea i:first-child { left: 0; } .mt-workarea i:last-child { right: 0; }
.mt-tick { position: absolute; bottom: 0; width: 1px; height: 5px; background: #555; }
.mt-tick.major { height: 9px; background: #777; }
.mt-tick span {
    position: absolute; bottom: 11px; left: 0; transform: translateX(-50%);
    font-size: 0.62rem; color: #999; font-style: normal; font-variant-numeric: tabular-nums;
}
.mt-tick span.odd { display: none; }
/* ingekorte beginperiode */
.mt-warp-label {
    position: absolute; bottom: 4px; text-align: center; font-size: 0.6rem; color: #8a8a8a; white-space: nowrap; overflow: hidden;
}
.mt-break {
    position: absolute; top: 10px; bottom: 0; width: 8px; margin-left: -4px;
    background: linear-gradient(135deg, transparent 35%, #888 35% 50%, transparent 50%) 0 0 / 8px 6px repeat-y;
}
.mt-warp {
    position: absolute; top: var(--rh); bottom: 0; pointer-events: none; z-index: 1;
    background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 6px, transparent 6px 12px);
    border-right: 1px dashed #555;
}
/* Markers = hoogtepunten (zoals de markers in Premiere) */
.mt-marker {
    position: absolute; top: 11px; width: 10px; height: 12px; margin-left: -5px; padding: 0; border: 0; cursor: pointer; z-index: 2;
    background: #e0a03a; clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
    transition: transform 0.2s ease, background 0.2s ease;
}
.mt-marker:hover, .mt-marker.is-on { background: #ffc35a; transform: scale(1.25); }
/* parent/child-marker met de pick whip */
.mt-marker.is-parent {
    top: 5px; width: 18px; height: 22px; margin-left: -9px; color: #1a1a1a;
    clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%);
    display: flex; align-items: flex-start; justify-content: center; padding-top: 3px;
}
.mt-marker.is-parent svg { width: 11px; height: 11px; }

.mt-lanes { cursor: ew-resize; }
.mt-lane { position: relative; height: var(--lh); border-bottom: 1px solid #2a2a2a; }
.mt-clip {
    position: absolute; top: 5px; bottom: 5px; border: 0; border-radius: 3px; padding: 0 4px;
    font: inherit; font-size: 0.72rem; font-weight: 600; line-height: calc(var(--lh) - 10px); text-align: left;
    white-space: nowrap; overflow: hidden; color: #fff; cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -2px 0 rgba(0,0,0,0.3), inset -1px 0 0 rgba(0,0,0,0.45);
    transition: filter 0.2s ease, opacity 0.2s ease;
}
.mt-clip:hover { filter: brightness(1.2); }
.lane-work .mt-clip { background: #8a2626; }
.lane-learn .mt-clip { background: #2d587d; }
/* belangrijkheid: grafisch (vol), IT (iets rustiger), de rest (rustig) */
.mt-clip.is-mid { opacity: 0.8; filter: saturate(0.8); }
.mt-clip.is-dim { opacity: 0.45; filter: saturate(0.5); }
.mt-clip.is-dim:hover, .mt-clip.is-dim.is-on, .mt-clip.is-mid.is-on { opacity: 0.9; }
.mt-clip.is-on { outline: 2px solid #fff; outline-offset: -2px; }
.mt-clip.is-sel { outline-color: #ffc35a; }
.mt-key {
    position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; padding: 0; border: 0;
    background: #d8d8d8; transform: rotate(45deg); cursor: pointer; transition: background 0.2s ease, box-shadow 0.2s ease;
}
.mt-key:hover { background: #fff; }
.mt-key.is-on { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }

.mt-playhead { position: absolute; top: 0; bottom: 0; width: 0; pointer-events: none; z-index: 5; }
.mt-playhead::after {
    content: ""; position: absolute; top: 20px; bottom: 0; left: -1px; width: 2px;
    background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
}
.mt-handle {
    position: absolute; top: 4px; left: -8px; width: 16px; height: 18px; background: var(--accent);
    clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); pointer-events: auto; cursor: grab; touch-action: none;
}
.mt-handle:active { cursor: grabbing; }

/* SCHUIFBALK (gekoppeld aan de afspeelkop), als de tijdnavigator in After Effects */
.mt-scrollbar { grid-area: scroll; position: relative; height: 18px; margin-left: var(--heads); background: #1a1a1a; border-top: 1px solid #262626; cursor: pointer; touch-action: none; }
.mt-scrollbar::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; background: #2c2c2c; border-radius: 4px; }
.mt-thumb {
    position: absolute; top: 3px; height: 12px; width: 28px; border-radius: 3px; background: #4a4a4a;
    border-left: 3px solid #9a9a9a; border-right: 3px solid #9a9a9a;
}
.mt-scrollbar:hover .mt-thumb { background: #5a5a5a; }

/* ========================================= */
/* === SMAL SCHERM: ZOALS CAPCUT ============ */
/* ========================================= */
.mt-wrap.is-compact .mt-editor {
    --rh: 26px; --lh: 38px; --heads: 34px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr);
    grid-template-areas: "program" "timeline" "scroll" "side";
}
.mt-wrap.is-compact .mt-program { border-right: 0; }
.mt-wrap.is-compact .mt-paneltab, .mt-wrap.is-compact .mt-tlhead, .mt-wrap.is-compact .mt-hide-s, .mt-wrap.is-compact .mt-hide-m { display: none; }
.mt-wrap.is-compact .mt-viewer { flex: none; width: 100%; aspect-ratio: 16 / 9; max-height: 30dvh; --rul: 0px; background: #000; }
.mt-wrap.is-compact .mt-comp { margin: 0; }
.mt-wrap.is-compact .mt-rul { display: none; }
.mt-wrap.is-compact .mt-vbar { padding: 0 8px; }
.mt-wrap.is-compact .mt-tc-big { color: var(--accent); }
/* telefoon (zoals CapCut): tijdcode links, play in het midden, hulplijnen-knop rechts */
.mt-wrap.is-compact .mt-vbar-l { display: contents; }
.mt-wrap.is-compact .mt-vbar-r { display: none; }
.mt-wrap.is-compact .mt-tc-big { grid-column: 1; grid-row: 1; justify-self: start; }
.mt-wrap.is-compact .mt-transport { grid-column: 2; grid-row: 1; }
.mt-wrap.is-compact .mt-guides { grid-column: 3; grid-row: 1; justify-self: end; }
.mt-wrap.is-compact .mt-menu { left: auto; right: 0; }
.mt-wrap.is-compact .mt-head { display: flex; justify-content: center; padding: 0; }
.mt-wrap.is-compact .mt-head .mt-name, .mt-wrap.is-compact .mt-sw { display: none; }
.mt-wrap.is-compact .mt-tick span.odd { display: block; }
.mt-wrap.is-compact .mt-playhead::after { background: #fff; box-shadow: 0 0 6px rgba(255,255,255,0.5); }
.mt-wrap.is-compact .mt-handle { background: #fff; }
/* het zijpaneel wordt de werkbalk onderin, met de inhoud erboven */
.mt-wrap.is-compact .mt-side { flex-direction: column-reverse; border-top: 1px solid #111; }
.mt-wrap.is-compact .mt-tabs { height: 44px; justify-content: space-around; border-bottom: 0; border-top: 1px solid #111; }
.mt-wrap.is-compact .mt-tabs button { flex-direction: column; justify-content: center; gap: 3px; font-size: 0.66rem; flex: 1; }
.mt-wrap.is-compact .mt-tabs button { color: #6f6f6f; transition: color 0.2s, background 0.2s; }
.mt-wrap.is-compact .mt-tabs button[aria-selected="true"] { color: #fff; background: #2a2a2a; }
.mt-wrap.is-compact .mt-tabs button[aria-selected="true"] i { color: var(--accent); }
.mt-wrap.is-compact .mt-tabs button[aria-selected="true"]::after { top: -1px; bottom: auto; left: 0; right: 0; height: 3px; background: var(--accent); }
.mt-wrap.is-compact .mt-tabs i { font-size: 1rem; }
.mt-wrap.is-compact .mt-pane { padding: 10px 12px; }
.mt-wrap.is-compact .mt-pane-project { padding: 0 0 10px; display: block; overflow-y: auto; }
.mt-wrap.is-compact .mt-pane-project[hidden] { display: none; }
.mt-wrap.is-compact .mt-pane-project .mt-desc { max-height: none; overflow: visible; }
.mt-wrap.is-compact .mt-bin { display: none; }
.mt-wrap.is-compact .mt-preview { aspect-ratio: 16 / 9; height: auto; max-height: none; float: left; width: 42%; margin: 10px 10px 4px 12px; border-radius: 4px; border: 0; }
.mt-wrap.is-compact .mt-fileinfo { padding-top: 10px; }
.mt-wrap.is-compact .mt-rows { font-size: 0.8rem; gap: 5px 10px; }
.mt-wrap.is-compact .mt-desc { margin-top: 10px; padding-top: 10px; font-size: 0.82rem; }
.mt-wrap.is-compact .mt-lower { left: 6%; bottom: 7%; max-width: 75%; padding: 5px 9px 6px; }
.mt-wrap.is-compact .mt-lt-org { font-size: 0.66rem; }
.mt-wrap.is-compact .mt-menu { left: 0; }

/* ========================================= */
/* === DE LIJST (ALLEEN TEKST) ============== */
/* ========================================= */
.mt-group + .mt-group { margin-top: 10px; }
.mt-group-title {
    font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted);
    margin: 0 0 22px; padding-bottom: 8px; border-bottom: 1px solid #2a2a2a;
}
.mt-listblock:not(.show-all) .mt-group[data-tier="3"] { display: none; }
.mt-group[data-tier="3"] .timeline-item { opacity: 0.85; }
.timeline-kind {
    display: inline-block; margin-left: 10px; font-size: 0.65rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: #8fb4dd; border: 1px solid #2d587d; border-radius: 4px;
    padding: 1px 6px; vertical-align: 3px;
}
.timeline-item.is-learn .timeline-dot { background: #2d587d; }
.timeline-parent { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: #8fb4dd; margin: -4px 0 10px; }
.timeline-parent svg { width: 13px; height: 13px; color: #e0a03a; }

/* ========================================= */
/* === MOBIEL: DE PAGINA PAST PRECIES ======= */
/* ========================================= */
@media (max-width: 768px) {
    .app-container.tab-fit #content-panel { height: 100dvh !important; min-height: 0 !important; padding-bottom: 0 !important; overflow: hidden !important; }
    .app-container.tab-fit .content-scroll-wrapper { height: 100%; overflow: hidden; padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
    .mt-titlebar { gap: 10px; }
    .mt-switch { gap: 8px; }
    .mt-switch-label { font-size: 0.75rem; }
    /* "Alles tonen" op een eigen regel eronder, zodat de schakelaar niet opschuift */
    .mt-check { position: absolute; top: calc(100% + 14px); left: 0; }
    .mt-wrap.is-text .mt-titlebar { margin-bottom: 58px; }
    .mt-wrap:not(.is-text) { gap: 10px; }
}

/* lage telefoons (bv. iPhone SE): kleinere monitor en sporen, zodat het Project/Skills-paneel ruimte houdt */
@media (max-height: 720px) {
    .mt-wrap.is-compact .mt-editor { --rh: 22px; --lh: 30px; }
    .mt-wrap.is-compact .mt-viewer { max-height: 20dvh; }
}
