/* Frame – universelle Design-Tokens. theme.css.php setzt die Werte. */
:root{--c-bg:#0b0e13;--c-sidebar:#0e1219;--c-surface:#151b24;--c-surface2:#202630;--c-input:#0c1118;--c-border:#323b48;--c-text:#e9edf4;--c-muted:#98a5b7;--c-accent:#c9e4ff;--c-accent_text:#112031;--ui-radius:12px;--ui-sidebar:240px;--ui-font:Arial,sans-serif;--ui-background-opacity:.15}
:root{font-family:var(--ui-font);background:var(--c-bg);color:var(--c-text);color-scheme:normal}
body{background:var(--c-bg);color:var(--c-text);font-family:var(--ui-font)}
body.has-brand-background:before{content:"";position:fixed;inset:0;background-image:var(--ui-background-image);background-position:center;background-size:cover;opacity:var(--ui-background-opacity);pointer-events:none;z-index:0}
.shell{grid-template-columns:var(--ui-sidebar) minmax(0,1fr);position:relative;z-index:1}
.sidebar{background:var(--c-sidebar);border-color:var(--c-border)}
.topbar{border-color:var(--c-border)}
.brand{letter-spacing:0;white-space:normal;min-width:0}
.brand-name{display:block;min-width:0;overflow-wrap:anywhere;font-weight:700;line-height:1.15}
.brand-name small{font-size:10px;font-weight:400;line-height:1.45;letter-spacing:.012em;color:var(--c-muted);margin-top:6px;max-width:175px;white-space:normal}
.brand-image{height:42px;max-width:88px;object-fit:contain;flex-shrink:0}
.brand-symbol{background:var(--c-accent);color:var(--c-accent_text);border-radius:var(--ui-radius);flex-shrink:0}
button,.button,.navitem,.folder-row,.media-list,.panel,.player-box,.comment-column,.tip-panel,dialog,.project-card,input:not([type=checkbox]),select,textarea{border-radius:var(--ui-radius)}
button,.button{background:var(--c-surface2);color:var(--c-text);border-color:var(--c-border)}
button:hover,.button:hover{background:var(--c-surface);border-color:var(--c-accent)}
.primary,.primary:hover{background:var(--c-accent);color:var(--c-accent_text);border-color:var(--c-accent)}
.navitem,.muted,.small,.backline,.panel p,.account,.sidefoot,.card-arrow,.open{color:var(--c-muted)}
.navitem.selected,.navitem:hover{background:var(--c-surface2);color:var(--c-text)}
.account,.panel,.media-list,.folder-row,.comment-column,.tip-panel,.project-card,dialog{background:var(--c-surface);border-color:var(--c-border);color:var(--c-text)}
.project-card{background:var(--c-surface)}
.media-row,.comment,.comment-header,.comment-form{border-color:var(--c-border)}
.project-card:hover,.folder-row:hover,.media-row:hover{border-color:var(--c-accent)}
.video-icon,.card-symbol,.avatar,.count,.timecode{background:var(--c-surface2);color:var(--c-accent)}
input:not([type=checkbox]),select,textarea{background:var(--c-input);border-color:var(--c-border);color:var(--c-text)}
input:focus,select:focus,textarea:focus{border-color:var(--c-accent)}
label:not(.check){color:var(--c-text)}
label.check{color:var(--c-muted)}
.eyebrow,.backline a,.timecode-inline b,.progress-wrap{color:var(--c-accent)}
.progress-bar{background:var(--c-accent)}
.modal-caption,.help-text{color:var(--c-muted);font-size:12px;line-height:1.5}
.settings-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(290px,.9fr);align-items:start;gap:24px}
.settings-sections{display:grid;gap:18px}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.settings-grid label,.settings-card label{min-width:0}
.settings-card{border:1px solid var(--c-border);background:var(--c-surface);border-radius:var(--ui-radius);padding:24px}
.settings-card h2{margin:0 0 17px;font-size:18px}
.settings-card p{color:var(--c-muted)}
.color-control{display:flex;align-items:center;gap:9px;background:var(--c-input);padding:5px 9px;border-radius:var(--ui-radius);border:1px solid var(--c-border)}
.color-control input[type=color]{width:42px;height:37px;background:transparent;border:0;padding:0;cursor:pointer;flex-shrink:0}
.color-control input[type=text]{border:0;padding:6px 0;background:transparent;width:100%;min-width:0}
.settings-preview{position:sticky;top:20px;border:1px solid var(--c-border);background:var(--c-bg);border-radius:var(--ui-radius);overflow:hidden;box-shadow:0 14px 50px #0002}
.preview-header{padding:22px;background:var(--c-sidebar);border-bottom:1px solid var(--c-border)}
.preview-header h3{margin:0 0 7px;font-size:18px}.preview-content{padding:22px}.preview-frame{border:1px solid var(--c-border);border-radius:var(--ui-radius);background:var(--c-surface);padding:18px;margin:18px 0}.preview-video{aspect-ratio:16/9;border-radius:var(--ui-radius);display:grid;place-items:center;background:#050506;color:var(--c-accent);font-size:30px}.preview-actions{display:flex;gap:8px;margin-top:14px}.preview-logo{max-width:150px;max-height:62px;object-fit:contain;margin-bottom:10px}.preview-logo[hidden]{display:none}
.color-control:focus-within{outline:1px solid var(--c-accent)}
.brand-fields{border:1px solid var(--c-border);padding:12px;border-radius:var(--ui-radius);background:var(--c-surface)}
.brand-fields summary{cursor:pointer;font-weight:700;color:var(--c-text)}
.brand-fields .stack{padding-top:13px}
.share-brand-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.notice{border:1px solid var(--c-border);background:var(--c-surface);padding:15px;border-radius:var(--ui-radius);color:var(--c-muted)}
@media(max-width:1050px){.settings-layout{grid-template-columns:1fr}.settings-preview{position:static}}
@media(max-width:670px){.shell{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.settings-card{padding:17px}.sidebar{flex-wrap:wrap}.sidebar nav{display:flex;gap:5px;max-width:100%;overflow-x:auto}.brand-image{max-width:55px}.brand-name small{display:none}}

.share-actions{margin-left:auto}

.company-signature{font-weight:600;color:var(--c-muted);font-size:11px;margin-top:5px}

.health-indicator{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;font-weight:700}.health-indicator.pass{background:#173c2d;color:#91dab3}.health-indicator.fail{background:#5d262a;color:#fbc4c4}

/* v0.3: klickbarer Farbmodus und zwei frei konfigurierbare Paletten */
.topbar-actions{display:flex;align-items:center;gap:12px}
.mode-toggle{padding:7px 12px;min-width:95px;font-size:12px}
.palette-switch{display:flex;flex-wrap:wrap;gap:9px}
.palette-switch [aria-pressed="true"]{border-color:var(--c-accent);box-shadow:inset 0 0 0 1px var(--c-accent);color:var(--c-accent)}
.palette-fields h3{font-size:13px;margin:7px 0 17px}
.palette-fields[hidden]{display:none}
/* Leicht lesbar auch bei einer benutzerdefinierten hellen Farbpalette */
.crumb,.account,.project-card small,.folder-row small,.media-info small,.comment-top small,.comment p,.empty,.comment-form .timecode-inline,.version-select .label,.tip-panel{color:var(--c-muted)}
.account{background:var(--c-surface2);border-color:var(--c-border)}
.project-card{background:var(--c-surface)}
.project-client{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:14px 17px;background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--ui-radius);margin:0 0 22px}
.project-client img{max-width:160px;max-height:68px;object-fit:contain}
.project-client .project-client-name{font-size:15px;font-weight:700}
.project-client small{display:block;font-size:11px;color:var(--c-muted);margin-top:3px}
.project-client-placeholder{width:47px;height:47px;background:var(--c-surface2);color:var(--c-accent);border-radius:var(--ui-radius);display:grid;place-items:center}
.project-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 16px}
@media(max-width:670px){.topbar-actions{gap:6px}.account{display:none}.mode-toggle{min-width:unset;font-size:11px}}

/* Frame 0.6: genau EINE integrierte Player-Timeline ohne native Video-Steuerleiste. */
.player-box{position:relative;display:block;overflow:hidden;isolation:isolate}
.player-box>video#review-video{height:100%;width:100%;display:block;object-fit:contain;cursor:pointer}
.frame-player-controls{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:26px 16px 12px;background:linear-gradient(transparent,rgba(0,0,0,.85));color:#fff}
.video-timeline{background:transparent;border:0;border-radius:0;margin:0;padding:0}
.timeline-track{height:30px;position:relative;cursor:pointer;touch-action:none;outline-offset:3px;user-select:none}
.timeline-track:focus-visible{outline:2px solid var(--c-accent)}
.timeline-track:before{position:absolute;content:'';left:0;right:0;top:12px;height:5px;border-radius:6px;background:rgba(255,255,255,.50)}
.timeline-progress{position:absolute;left:0;top:12px;height:5px;background:var(--c-accent);border-radius:6px;pointer-events:none}
.timeline-playhead{position:absolute;top:7px;width:4px;height:16px;border-radius:8px;background:white;transform:translateX(-50%);pointer-events:none}
.timeline-marker{position:absolute;top:2px;width:22px;height:24px;padding:0;border:0;border-radius:100%;background:transparent;transform:translateX(-50%);z-index:5;display:grid;place-items:center;touch-action:manipulation}
.timeline-marker:before{content:'';display:block;background:var(--marker-color,#F4A54C);width:11px;height:11px;border-radius:100%;border:2px solid #131a21;box-shadow:0 0 0 1px var(--marker-color,#F4A54C)}
.timeline-marker:hover:before,.timeline-marker:focus-visible:before,.timeline-marker.is-focused:before{width:17px;height:17px;box-shadow:0 0 0 3px var(--c-accent)}
.timeline-marker[hidden]{display:none}
.timeline-preview{position:absolute;bottom:34px;z-index:9;width:156px;padding:5px;background:var(--c-surface2);border:1px solid var(--c-border);border-radius:9px;box-shadow:0 5px 24px #000b;transform:translateX(-50%);pointer-events:none;text-align:center;color:var(--c-text)}
.timeline-preview[hidden]{display:none}
.timeline-preview video{width:100%;aspect-ratio:16/9;background:#08090c;object-fit:contain;display:block;border-radius:5px}
.timeline-preview span{display:block;font-size:11px;color:var(--c-text);margin-top:4px;font-variant-numeric:tabular-nums}
.frame-player-toolbar{display:flex;align-items:center;gap:8px;padding-top:2px}
.frame-player-button{flex:0 0 auto;background:transparent;border:0;padding:5px 9px;color:white;font-size:17px;border-radius:7px}
.frame-player-button:hover{background:#ffffff30}
.frame-player-time{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
.frame-volume{display:flex!important;flex-direction:row!important;align-items:center;gap:8px;margin-left:auto;color:white}
.frame-volume input[type=range]{width:90px!important;padding:0!important;accent-color:var(--c-accent);cursor:pointer}
.frame-player-controls input{outline-offset:3px}
.player-box:fullscreen{aspect-ratio:auto;height:100%;width:100%;background:#000}
.player-box:fullscreen>video#review-video{height:100%}
@media(max-width:670px){.frame-player-controls{padding:16px 9px 8px}.frame-player-toolbar{gap:3px}.frame-player-button{padding:5px 7px}.frame-volume{display:none!important}.timeline-preview{width:120px}.frame-player-time{font-size:11px}}
.comment.is-focused{box-shadow:inset 4px 0 var(--c-accent);background:var(--c-surface2)}
.comment .avatar{background:var(--author-color,var(--c-surface2));color:#111827}
.author-colors{margin-top:12px;background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--ui-radius);padding:12px 15px}
.author-colors summary{font-weight:650;cursor:pointer;color:var(--c-text)}
.author-color-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:10px;margin-top:13px}
.author-color-form{display:flex;align-items:center;gap:7px;border:1px solid var(--c-border);background:var(--c-bg);border-radius:8px;padding:7px}
.author-color-form label{display:flex!important;flex:1;flex-direction:row!important;align-items:center;justify-content:space-between;gap:7px;min-width:0}
.author-color-form label span{overflow:hidden;text-overflow:ellipsis}
.author-color-form input[type=color]{height:30px;width:39px;flex-shrink:0;padding:0;border:none;background:transparent}
.author-color-form button{padding:7px 9px;font-size:11px}

/* Uploader bleibt bei weichen Seitenwechseln in der App sichtbar. */
.upload-widget[hidden],.frame-dropzone[hidden]{display:none!important}
.upload-widget{position:fixed;z-index:500;top:80px;right:18px;left:auto;transform:none;width:min(340px,calc(100vw - 24px));background:var(--c-surface);border:1px solid var(--c-border);border-radius:14px;box-shadow:0 14px 50px #0008;color:var(--c-text)}
.upload-widget-toggle{width:100%;display:flex;align-items:center;gap:12px;border:0;border-radius:inherit;text-align:left;padding:9px 12px;min-width:0;background:transparent}
.upload-widget-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}
.upload-widget-arrow{font-size:20px;color:var(--c-muted)}
.upload-ring{--upload-pct:0;position:relative;width:45px;height:45px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--c-accent) calc(var(--upload-pct)*1%),var(--c-border) 0)}
.upload-ring:before{content:'';position:absolute;inset:5px;background:var(--c-surface);border-radius:50%}
.upload-percent{position:relative;z-index:1;font-size:10px;font-weight:700;color:var(--c-text)}
.upload-widget-details{border-top:1px solid var(--c-border);max-height:min(48vh,400px);overflow:auto;padding:13px;font-size:12px}
.upload-widget-details[hidden]{display:none}
.upload-widget-item{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--c-border)}
.upload-widget-item span:first-child{flex:1;min-width:85px;overflow-wrap:anywhere}
.upload-widget-item span:nth-child(2){color:var(--c-muted)}
.upload-widget-open{color:var(--c-accent);text-decoration:underline}
.upload-widget-hint{font-size:11px;color:var(--c-muted);margin-bottom:0}
.frame-dropzone{position:fixed;z-index:400;inset:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--c-bg) 92%,transparent);border:3px dashed var(--c-accent);border-radius:22px;pointer-events:none;text-align:center;padding:20px}
.frame-dropzone>div{background:var(--c-surface);border:1px solid var(--c-border);border-radius:16px;padding:24px 36px}
.frame-dropzone strong{font-size:clamp(19px,3vw,32px)}
.frame-dropzone p{color:var(--c-muted)}

/* iPad: vollflaechiger Player, bedienbare Schaltflaechen. */
@media(max-width:1050px){
 .review-grid{grid-template-columns:minmax(0,1fr)}
 .comment-column{max-height:680px;min-height:350px}
 .heading-actions{width:100%}
 .heading-actions>*{min-height:40px}
}
/* iPhone / Android: horizontale, scrollbar Navigation statt ueberlappender Menues. */
@media(max-width:670px){
 .shell{grid-template-columns:minmax(0,1fr)}
 .sidebar{display:flex;flex-direction:column;align-items:stretch;padding:12px;gap:8px}
 .sidebar .brand{padding:0 5px;min-height:36px}
 .sidebar nav{display:flex;flex-wrap:nowrap;gap:5px;margin:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;max-width:100%}
 .sidebar .navitem{flex:0 0 auto;padding:9px 10px;white-space:nowrap;font-size:12px}
 .topbar{height:51px;padding:0 13px}
 .topbar .crumb{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:58%}
 .content{padding:18px 12px}
 .heading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .heading-actions>button,.heading-actions>a{display:flex;align-items:center;justify-content:center;padding:10px 7px;font-size:11px;min-width:0;text-align:center}
 .review-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .video-timeline{padding:10px 9px}
 .timeline-caption{font-size:10px}
 .timeline-caption>span:nth-child(2){display:none}
 .timeline-preview{width:140px}
 .comment-column{min-height:370px;max-height:70vh}
 .player-bottom{gap:10px}
 .version-select{width:100%}
 .version-select select{flex:1;min-width:0}
 .author-color-grid{grid-template-columns:1fr}
 .upload-widget{top:8px}
 .frame-dropzone{inset:5px}
}

/* Frame 0.5.1: Vorschau nur nach bestaetigtem Decoder-Frame anzeigen. */
.timeline-preview{min-height:105px}
.timeline-preview.is-loading:not(.is-cached) video{visibility:hidden}
.timeline-preview-status{position:absolute;left:7px;right:7px;top:7px;aspect-ratio:16/9;display:grid;place-items:center;background:#151920;color:#e6e9ef;text-align:center;padding:6px;font-size:11px;border-radius:5px}
.timeline-preview:not(.is-loading) .timeline-preview-status,.timeline-preview.is-cached .timeline-preview-status{display:none}
.timeline-preview-cached{position:absolute;top:5px;left:5px;width:calc(100% - 10px);aspect-ratio:16/9;object-fit:cover;border-radius:5px;z-index:2}
.timeline-preview-cached[hidden]{display:none}
#share-result:not([hidden]){border:1px solid var(--c-border);border-radius:10px;padding:12px;background:var(--c-surface2);overflow-wrap:anywhere}
#share-url{width:100%}
.share-create-actions[hidden]{display:none!important}

/* Volles Projektbild mit lesbarem Titel und Vorschaubildern in der Projektübersicht. */
.project-heading.with-cover{position:relative;overflow:hidden;min-height:230px;padding:26px;border-radius:var(--ui-radius);border:1px solid var(--c-border);background:var(--c-surface);isolation:isolate}
.project-hero-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.project-heading.with-cover:before,.project-card.has-project-cover:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(5,9,15,.82),rgba(5,9,15,.37));pointer-events:none}
.project-heading.with-cover .project-heading-title,.project-heading.with-cover .heading-actions{position:relative;z-index:1}
.project-heading.with-cover h1,.project-heading.with-cover p,.project-heading.with-cover .eyebrow{color:white}
.project-card.has-project-cover{isolation:isolate;overflow:hidden;color:white}
.project-card-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.project-card.has-project-cover small,.project-card.has-project-cover strong{color:#fff}
.project-cover-preview{display:block;max-width:100%;max-height:150px;object-fit:contain;border-radius:8px}
.project-guest-hero{height:220px;border-radius:var(--ui-radius);overflow:hidden;margin-bottom:20px}
.project-guest-hero img{height:100%;width:100%;object-fit:cover}
@media(max-width:670px){.upload-widget{top:68px;right:10px}.project-heading.with-cover{min-height:210px}.project-guest-hero{height:145px}}

@media(min-width:671px) and (max-width:800px){.upload-widget{top:80px;right:18px;left:auto;transform:none}}

/* 0.7: reduziertes Interface und reale Serverstatusanzeige */
.online-dot{background:#677487;box-shadow:none;flex:0 0 7px}
.online-dot[data-status="online"]{background:#55c69c}
.online-dot[data-status="offline"]{background:#e56c76}
.sidefoot{gap:7px;align-items:center}
.company-signature{font-size:11px;white-space:nowrap;color:var(--c-muted)}
.comment-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;border-bottom:1px solid var(--c-border)}
.comment-filters label{min-width:0;font-size:11px;gap:4px}
.comment-filters select,.comment-filters input{min-width:0;padding:9px;font-size:12px}
.comment[hidden],.timeline-marker[hidden]{display:none!important}
.project-client{display:flex;gap:12px;align-items:center;padding:12px 15px}
.project-client img{object-fit:contain;max-width:130px;max-height:52px}
.project-client-name{font-weight:600;font-size:13px}
.share-manage-row{flex-wrap:wrap}
.share-manage-row .share-actions{margin-left:auto}
.share-actions button,.share-actions .button{padding:9px 11px;font-size:12px}
@media(max-width:670px){.comment-filters{grid-template-columns:1fr}.share-manage-row .share-actions{margin-left:0;width:100%}.share-actions button,.share-actions .button{flex:1 1 auto;text-align:center}}

/* 0.8: ruhige, kompakte Projektlogos statt ganzer Zusatzpanel. */
.heading .project-client{border:0;background:none;box-shadow:none;padding:0;margin:0 0 0 auto;display:flex;align-items:center;gap:8px;flex:0 0 auto;max-width:175px;justify-content:flex-end;min-width:0}
.heading .project-client img{max-width:150px;max-height:46px;width:auto;height:auto;object-fit:contain}
.heading .project-client-name{font-size:12px;max-width:110px;overflow-wrap:anywhere}
.project-heading,.guest-heading,.video-heading{gap:15px;flex-wrap:wrap}
.share-edit-dialog{width:min(94vw,530px)}
.share-edit-dialog .share-link-box{background:var(--c-surface2);border:1px solid var(--c-border);border-radius:12px;padding:14px;display:grid;gap:10px}
.share-edit-dialog .share-edit-url{font-size:12px;width:100%;user-select:all}
.danger-text{background:transparent;color:#ec9b9b;border:1px solid transparent}
.danger-text:hover{border-color:#ec9b9b}
.author-color-form{flex-wrap:wrap}
@media(max-width:760px){.heading .project-client{order:1;margin-left:auto;margin-right:0}.heading .heading-actions{order:2;width:100%}.heading .project-client img{max-height:39px}}

/* Vorschaubild-Raster: 10 Spalten × 6 Zeilen, je 160 × 90 Pixel. */
.timeline-preview-sprite{position:absolute;z-index:3;top:5px;left:5px;width:calc(100% - 10px);aspect-ratio:16/9;background-repeat:no-repeat;background-size:1000% 600%;border-radius:5px}
.timeline-preview-sprite[hidden]{display:none}
.timeline-preview-sprite:not([hidden])~video{visibility:hidden}
.timeline-preview-sprite:not([hidden])~.timeline-preview-status{display:none}
.preview-generate-box{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0 12px}
.preview-generate-box .muted{font-size:12px}

/* Frame 0.8.1 – single-entry guest name and responsive preview. */
.comment-name-field[hidden],.comment-identity-strip[hidden]{display:none!important}
.comment-identity-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:5px 0;color:var(--c-muted);font-size:12px}
.comment-identity-strip strong{color:var(--c-text);overflow-wrap:anywhere}
.comment-identity-change{font-size:11px;padding:6px 10px}
.timeline-preview{will-change:left}
.timeline-preview-sprite{background-color:#10131a}
@media (pointer:coarse){.timeline-track{touch-action:none}.timeline-preview{width:min(160px,48vw)}.timeline-marker{min-width:26px;min-height:26px}}

/* Frame 0.8.2: ruhige Projektansichten und konsequent nur eine Hauptüberschrift. */
.project-heading{margin-bottom:14px;min-height:70px;align-items:center}
.project-heading:not(.with-cover) .project-heading-title{flex:1 1 220px}
.project-heading .project-client{margin-left:auto;flex:0 1 auto;justify-content:flex-end;align-self:center;text-align:right;max-width:min(220px,42%)}
.project-heading .project-client img{display:block;max-width:min(160px,100%);max-height:62px;object-fit:contain}
.project-heading.with-cover{min-height:205px;margin-bottom:15px;padding:26px 30px;display:flex;align-items:center;justify-content:space-between;gap:22px}
.project-heading.with-cover:before{background:linear-gradient(90deg,rgba(5,9,15,.84),rgba(5,9,15,.22))}
.project-heading.with-cover .project-client{position:relative;z-index:2;align-self:center;display:flex;align-items:center;justify-content:center;padding:12px;min-width:84px;min-height:64px;max-width:min(200px,40%);border-radius:10px;background:rgba(7,10,16,.22);backdrop-filter:blur(3px)}
.project-heading.with-cover .project-client img{max-height:76px;max-width:165px}
.project-actionbar{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin:0 0 28px}
.project-actionbar button{white-space:normal}
.project-guest-hero{position:relative;isolation:isolate;height:clamp(170px,23vw,310px);display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:clamp(18px,3vw,34px);background:var(--c-surface)}
.project-guest-hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(2,5,10,.78),rgba(2,5,10,.09) 80%)}
.project-guest-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.project-guest-hero h1{margin:0;color:#fff;font-size:clamp(24px,3vw,40px);overflow-wrap:anywhere;max-width:76%}
.project-guest-hero .project-client{position:absolute;top:15px;right:18px;bottom:auto;z-index:2;max-width:30%;border:0;box-shadow:none;background:rgba(7,10,16,.25);backdrop-filter:blur(3px);padding:7px 10px;margin:0;border-radius:8px;justify-content:flex-end}
.project-guest-hero .project-client img{max-width:100%;max-height:62px;object-fit:contain}
.project-guest-hero .project-client-name{color:#fff;font-size:11px}
.guest-heading{align-items:center;margin:0 0 20px}
.guest-heading h1{margin:0}
.guest-heading .project-client{margin-left:auto}
.project-guest-hero+.folder-grid,.guest-heading+.folder-grid{margin-top:20px}
.project-guest-hero+.media-list,.guest-heading+.media-list{margin-top:20px}
.backline{margin-bottom:17px}
@media(max-width:670px){
 .project-heading.with-cover{min-height:170px;display:flex;gap:12px;align-items:center;padding:15px}
 .project-heading.with-cover .project-heading-title{min-width:0;max-width:63%}
 .project-heading.with-cover .project-client{min-width:0;padding:6px;max-width:35%;margin:0}
 .project-heading.with-cover .project-client img{max-height:45px}
 .project-actionbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:23px;gap:8px}
 .project-actionbar>*{min-width:0;display:flex;align-items:center;justify-content:center;min-height:40px;padding:9px 7px;font-size:11px}
 .project-guest-hero{height:175px;padding:17px}
 .project-guest-hero h1{max-width:80%;font-size:25px}
 .project-guest-hero .project-client{top:9px;right:9px;max-width:37%;padding:5px}
 .project-guest-hero .project-client img{max-height:38px}
 .guest-heading .project-client img{max-height:36px}
}
/* Mobile shell: do not stretch the sidebar into a blank row when the topbar is absent. */
@media(max-width:670px){
 .shell{display:flex;flex-direction:column;min-height:100vh}
 .sidebar{flex:0 0 auto;min-height:0}
 .main{flex:1 1 auto;width:100%}
}

/* Frame 0.8.3 – coherent Frame by [company] identity and compact guest gallery. */
.brand{gap:7px;padding-left:4px;min-width:0;align-items:center;text-decoration:none}
.brand-word{font-size:18px;font-weight:760;letter-spacing:-.025em;white-space:nowrap;color:var(--c-text)}
.brand-by{font-size:10px;color:var(--c-muted);font-weight:500;white-space:nowrap;margin:0 1px 0 2px}
.brand .brand-image{width:auto;max-width:82px;max-height:27px;height:auto;object-fit:contain;flex-shrink:1;min-width:0}
.sidefoot{flex-wrap:wrap;gap:7px;align-items:center;align-content:end}
.sidefoot .company-signature{display:inline-block;margin:0;font-size:11px;line-height:1.3}
.sidefoot .online-dot{vertical-align:middle;margin:0}
.sidefoot a{flex-basis:100%;width:auto;margin-top:10px}

/* Customer area uses a real header rather than a mostly empty admin sidebar. */
.shell.guest-shell{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;width:100%;grid-template-columns:none;position:relative}
.guest-topbar{border-bottom:1px solid var(--c-border);background:var(--c-sidebar);flex:0 0 auto;min-height:76px;display:flex;align-items:center}
.guest-topbar-inner{width:100%;max-width:1480px;margin:0 auto;padding:12px clamp(18px,3vw,40px);display:flex;align-items:center;gap:20px;justify-content:space-between;min-width:0}
.guest-brand{padding:0;gap:9px;flex:0 1 auto}
.guest-brand .brand-word{font-size:20px}
.guest-brand .brand-by{font-size:11px}
.guest-brand .brand-image{max-width:98px;max-height:31px}
.guest-client-logo{display:flex;align-items:center;justify-content:flex-end;margin-left:auto;min-width:0;max-width:48%;flex-shrink:1}
.guest-client-logo:empty{display:none}
.guest-client-logo .project-client{display:flex;justify-content:flex-end;align-items:center;gap:8px;min-height:0;max-width:100%;border:0;background:transparent;box-shadow:none;padding:0;margin:0}
.guest-client-logo .project-client img{display:block;width:auto;height:auto;max-width:100%;max-height:51px;object-fit:contain}
.guest-client-logo.logo-size-small .project-client img{max-height:34px;max-width:110px}
.guest-client-logo.logo-size-normal .project-client img{max-height:51px;max-width:170px}
.guest-client-logo.logo-size-large .project-client img{max-height:66px;max-width:210px}
.guest-client-logo .project-client-name{font-weight:650;font-size:13px;text-align:right;color:var(--c-text);overflow-wrap:anywhere}
.guest-main{display:flex;flex-direction:column;flex:1 0 auto;width:100%;min-height:0;min-width:0}
.guest-content{width:100%;max-width:1480px;flex:1 0 auto;margin:0 auto;padding:clamp(20px,2.5vw,32px) clamp(18px,3vw,40px) 22px}
.guest-footer{flex:0 0 auto;width:100%;padding:12px clamp(18px,3vw,40px);margin-top:auto;background:transparent}
.guest-footer-inner{display:flex;align-items:center;gap:8px;max-width:1400px;margin:0 auto;line-height:1.3;min-height:19px}
.guest-footer .online-dot{width:7px;height:7px;flex:0 0 7px}
.guest-footer .company-signature{margin:0;font-size:11px;font-weight:500}
.guest-shell .project-guest-hero{height:clamp(175px,23vw,290px);margin-bottom:16px}
.guest-shell .project-guest-hero h1{max-width:95%;font-size:clamp(25px,3vw,40px)}
.guest-shell .guest-heading{margin-bottom:22px}
.guest-shell .backline{margin:0 0 18px}
.guest-shell .folder-grid{margin-top:0}
.guest-shell .project-guest-hero + .folder-grid{margin-top:0}
.guest-shell .media-list{margin-top:0}

/* Admin project: customer logo outside project cover, alongside the back navigation. */
.project-contextline{display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:28px}
.project-contextline .project-client{margin:0 0 0 auto;padding:0;background:transparent;border:0;box-shadow:none;display:flex;align-items:center;justify-content:flex-end;min-width:0;max-width:min(210px,45%)}
.project-contextline .project-client img{width:auto;height:auto;max-height:45px;max-width:150px;object-fit:contain;display:block}
.project-contextline .project-client-name{font-size:12px;text-align:right}
.project-heading.with-cover{display:flex;justify-content:flex-start}
.project-heading.with-cover .project-heading-title{max-width:95%}
.project-display-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border-top:1px solid var(--c-border);padding-top:16px;margin-top:4px}
.project-display-settings label{display:flex;flex-direction:column;gap:6px}
.project-display-settings select{width:100%}

/* Per-project guest/admin gallery appearance, selected by the administrator. */
.folder-grid.view-tiles.tile-size-compact{grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr))}
.folder-grid.view-tiles.tile-size-normal{grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr))}
.folder-grid.view-tiles.tile-size-large{grid-template-columns:repeat(auto-fill,minmax(min(100%,370px),1fr))}
.folder-grid.view-list{display:flex;flex-direction:column;gap:8px}
.folder-grid.view-list .folder-row{width:100%}
.folder-grid.tile-size-large .folder-row{min-height:77px;padding:21px}
.folder-grid.tile-size-compact .folder-row{min-height:48px;padding:12px}
.folder-grid.tile-size-large .folder-row span{font-size:27px}

@media(max-width:760px){
 .guest-brand{min-width:0;flex-wrap:nowrap}
 .guest-brand .brand-word{font-size:17px}
 .guest-brand .brand-image{max-width:71px;max-height:25px}
 .guest-client-logo{max-width:42%}
 .guest-client-logo .project-client img,.guest-client-logo.logo-size-large .project-client img{max-height:48px;max-width:120px}
 .guest-topbar{min-height:65px}
 .guest-topbar-inner{padding:10px 18px}
 .guest-content{padding:18px 18px 14px}
 .guest-footer{padding:9px 18px}
 .guest-shell .project-guest-hero{height:clamp(160px,30vw,220px)}
 .project-display-settings{grid-template-columns:1fr}
}
@media(max-width:430px){
 .guest-brand{gap:5px}
 .guest-brand .brand-word{font-size:16px}
 .guest-brand .brand-by{font-size:9px;margin:0}
 .guest-brand .brand-image{max-width:61px;max-height:23px}
 .guest-client-logo{max-width:37%}
 .guest-client-logo .project-client img,.guest-client-logo.logo-size-large .project-client img{max-height:37px;max-width:94px}
 .guest-client-logo .project-client-name{font-size:11px}
 .guest-topbar-inner{padding:11px 14px;gap:9px}
 .guest-content{padding:15px 14px 12px}
 .guest-footer{padding:9px 14px}
 .guest-shell .project-guest-hero{height:170px}
 .guest-shell .project-guest-hero h1{font-size:25px}
 .folder-grid.view-tiles.tile-size-large{grid-template-columns:1fr}
 .project-contextline .project-client{max-width:40%}
 .project-contextline .project-client img{max-height:30px;max-width:100px}
}
/* 0.8.3: full admin navigation visible on narrow phones, no clipped menu entry. */
@media(max-width:670px){
 .sidebar nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;width:100%;max-width:100%;overflow:visible}
 .sidebar nav .navitem{min-width:0;white-space:nowrap;font-size:12px;padding:10px 9px}
}

/* Frame 0.8.4: Focus Clean identity — one clear product logo across admin and guest. */
.frame-brand-complete{display:block;width:171px;height:auto;max-width:100%;object-fit:contain;flex:0 1 auto}
.guest-brand .frame-brand-complete{width:194px}
@media(max-width:760px){.frame-brand-complete{width:154px}.guest-brand .frame-brand-complete{width:160px}}
@media(max-width:430px){.frame-brand-complete,.guest-brand .frame-brand-complete{width:143px}}
.brand{display:inline-flex;align-items:center;gap:9px;min-width:0;text-decoration:none;white-space:nowrap}
.frame-brand-icon{display:block;width:39px;height:39px;object-fit:contain;flex:0 0 39px}
.frame-brand-lockup{min-width:0;display:inline-flex;flex-direction:column;align-items:stretch;justify-content:center;gap:1px;line-height:1.02}
.frame-brand-title{display:block;font-family:Inter,system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;font-weight:780;font-size:21px;letter-spacing:-.04em;color:var(--c-text);white-space:nowrap;line-height:1.07}
.frame-brand-sub{display:block;align-self:stretch;font-family:Inter,system-ui,-apple-system,Arial,sans-serif;font-weight:650;font-size:7.7px;line-height:1.3;letter-spacing:.09em;color:var(--c-muted);text-align-last:justify;white-space:nowrap}
.guest-brand{gap:10px}
.guest-brand .frame-brand-icon{width:43px;height:43px;flex-basis:43px}
.guest-brand .frame-brand-title{font-size:23px}
.guest-brand .frame-brand-sub{font-size:8.4px}
@media(max-width:760px){
 .frame-brand-icon{width:34px;height:34px;flex-basis:34px}
 .frame-brand-title{font-size:19px}
 .frame-brand-sub{font-size:7px}
 .guest-brand .frame-brand-icon{width:35px;height:35px;flex-basis:35px}
 .guest-brand .frame-brand-title{font-size:19px}
 .guest-brand .frame-brand-sub{font-size:7px}
}
@media(max-width:430px){
 .frame-brand-icon,.guest-brand .frame-brand-icon{width:29px;height:29px;flex-basis:29px}
 .frame-brand-title,.guest-brand .frame-brand-title{font-size:17px}
 .frame-brand-sub,.guest-brand .frame-brand-sub{font-size:6.1px;letter-spacing:.06em}
}


/* Frame 0.8.5 – media cards, responsive review status, white label & cover position. */
.media-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr));gap:16px;align-items:stretch}
.media-card{min-width:0;overflow:hidden;background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--ui-radius);transition:border-color .15s,transform .15s;display:flex;flex-direction:column}
.media-card:hover{border-color:var(--c-accent);transform:translateY(-1px)}
.media-card-link{display:block;text-decoration:none;min-width:0;color:inherit;flex:1}
.media-card-image{width:100%;aspect-ratio:16/9;position:relative;overflow:hidden;background:linear-gradient(145deg,#202b35,#0b1017)}
.media-card-sprite{position:absolute;max-width:none;width:1000%;height:600%;left:-200%;top:-100%;object-fit:fill}
.media-card-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:var(--c-muted);font-size:26px}
.media-card-detail{padding:13px 14px 7px;display:flex;flex-direction:column;gap:5px;min-width:0}
.media-card-detail strong{font-size:14px;overflow-wrap:anywhere;line-height:1.35}
.media-card-detail small{color:var(--c-muted);font-size:11px}
.media-card-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 13px 13px;flex-wrap:wrap}
.media-status-badge{font-size:11px;font-weight:700;white-space:nowrap;border-radius:999px;padding:5px 9px;border:1px solid transparent}
.media-status-badge[data-status="needs_review"]{color:#ffadaf;background:#54262a;border-color:#7d383d}
.media-status-badge[data-status="approved"]{color:#86e8b4;background:#16452f;border-color:#256a48}
.media-status-form{display:flex;align-items:center;gap:7px;flex:1 1 auto;justify-content:flex-end;min-width:0}
.media-status-form label{font-size:0!important;position:absolute!important;width:1px;height:1px;overflow:hidden}
.media-status-form select.media-status-select{display:block;flex:0 1 151px;width:auto;min-width:126px;max-width:100%;font-size:11px;padding:7px 24px 7px 9px;height:34px;background:var(--c-input)}
.media-status-form select:focus-visible,.media-card-link:focus-visible{outline:2px solid var(--c-accent);outline-offset:-2px}
.project-heading.with-cover{min-height:var(--project-cover-height,220px)}
.guest-shell .project-guest-hero{height:var(--project-cover-height,220px)}
.cover-position-editor{border:1px solid var(--c-border);background:var(--c-surface2);padding:13px;border-radius:10px;display:flex;flex-direction:column;gap:11px}
.cover-position-editor p{margin:0}
.cover-position-stage{height:220px;max-height:300px;width:100%;border-radius:8px;overflow:hidden;position:relative;background:#10141b}
.cover-position-stage img{width:100%;height:100%;object-fit:cover;display:block}
.cover-position-editor input[type=range]{width:100%}
.white-label-details summary{cursor:pointer;font-weight:650;padding:9px 4px;color:var(--c-text)}
.white-label-fields{padding:14px 0 0}
.frame-brand-custom{display:block;max-width:175px;max-height:56px;width:auto;height:auto;object-fit:contain}
.guest-brand .frame-brand-custom{max-width:195px}
/* iPad: sidebar footer stays within the actually visible viewport. */
@media(min-width:671px){.shell:not(.guest-shell)>.sidebar{position:sticky;top:0;align-self:start;height:100dvh;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(14px,env(safe-area-inset-bottom))}.shell:not(.guest-shell){min-height:100dvh}.shell:not(.guest-shell)>.main{min-width:0}}
@media(max-width:670px){.media-card-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr));gap:10px}.media-card-detail{padding:11px}.media-card-foot{padding:8px 10px 12px}.media-status-form select.media-status-select{flex:1 1 125px;min-width:0}}
@media(max-width:420px){.media-card-grid{grid-template-columns:minmax(0,1fr)}.media-card-image{aspect-ratio:16/8.7}}

/* Admin-Karten zeigen einen einzelnen farbigen Statuswahlschalter statt doppelter Texte. */
.admin-media-card .media-status-form{justify-content:stretch}
.admin-media-card .media-status-select{flex:1!important;width:100%!important;max-width:none!important;font-weight:700}
.admin-media-card.status-needs_review .media-status-select{color:#ffadaf;border-color:#7d383d;background:#352024}
.admin-media-card.status-approved .media-status-select{color:#86e8b4;border-color:#256a48;background:#153427}

/* Frame 0.8.6: compact, accessible review management and resilient video cards. */
.author-color-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px}
.author-color-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:11px}
.author-color-form label{min-width:0;display:grid!important;grid-template-columns:minmax(0,1fr) 42px;gap:10px;align-items:center}
.author-color-form label span{min-width:0;overflow:visible;white-space:normal;overflow-wrap:anywhere;text-overflow:clip;line-height:1.3}
.author-color-form input[type=color]{width:38px;height:34px}
.author-color-form button{white-space:nowrap}
@media(max-width:460px){.author-color-form{grid-template-columns:minmax(0,1fr) auto}.author-color-form label{grid-column:1/-1}}
.partner-logo-preview{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.partner-logo-preview img,.frame-partner-logo{display:block;max-height:42px;max-width:132px;object-fit:contain}
.sidebar>.frame-partner-logo{margin:5px 15px 14px;max-height:38px;max-width:165px}
.guest-topbar-inner>.frame-partner-logo{margin-left:auto;margin-right:14px}
.media-card-image-link{position:absolute;inset:0;display:block;overflow:hidden}
.media-card-sprite[hidden]{display:none!important}
.media-card-image.has-usable-preview .media-card-placeholder{display:none!important}
.media-card-image.has-usable-preview{background:#111923}
.media-card-video-symbol{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:rgba(255,255,255,.07);color:#9ddbd7;font-size:20px}
.media-card-actions{position:absolute;z-index:7;top:9px;right:9px}
.media-card-actions summary{display:grid;place-items:center;width:34px;height:32px;border-radius:9px;cursor:pointer;border:1px solid #4a596a;background:rgba(10,16,24,.85);color:#f5f8fc;font-size:22px;line-height:1;list-style:none}
.media-card-actions summary::-webkit-details-marker{display:none}
.media-card-actions[open] summary{border-color:var(--c-accent)}
.media-card-action-menu{position:absolute;z-index:9;right:0;top:37px;display:grid;min-width:168px;background:var(--c-surface);border:1px solid var(--c-border);border-radius:11px;box-shadow:0 12px 30px rgba(0,0,0,.35);padding:6px}
.media-card-action-menu a,.media-card-action-menu button{display:block;text-align:left;border:0;border-radius:6px;padding:10px 12px;background:transparent;color:var(--c-text);font-size:13px;text-decoration:none;white-space:nowrap}
.media-card-action-menu a:hover,.media-card-action-menu button:hover{background:var(--c-surface2)}
.media-card-action-menu button{color:#f0a4a7}
.share-manage-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:12px;align-items:stretch}
.share-manage-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:16px;border:1px solid var(--c-border);border-radius:12px;background:var(--c-surface);min-height:0}
.share-manage-row .media-info{min-width:180px;flex:1 1 100%;display:flex;flex-direction:column;gap:5px}
.share-manage-row .media-info small{line-height:1.45;overflow-wrap:anywhere}
.share-manage-row .share-actions{margin:6px 0 0;width:100%;display:flex;gap:8px;justify-content:flex-start}
.share-manage-row .share-actions button{flex:0 0 auto}
@media(max-width:670px){.share-manage-list{grid-template-columns:minmax(0,1fr)}.share-manage-row .share-actions button{flex:1 1 auto}}

/* Allow the card action dropdown to extend beyond the thumbnail without clipping. */
.media-card{position:relative;overflow:visible}
.media-card:has(.media-card-actions[open]){z-index:20}
.media-card-image{overflow:visible;border-radius:var(--ui-radius) var(--ui-radius) 0 0}
.media-card-image-link{border-radius:var(--ui-radius) var(--ui-radius) 0 0}

/* Frame 0.8.7 – Freigaben direkt im Projektkontext. */
.project-shares-navigation{margin:12px 8px 14px;border-top:1px solid var(--c-border);padding-top:12px;min-width:0}
.project-shares-navigation>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--c-muted);font-weight:700;cursor:pointer;list-style:none;padding:8px 11px;border-radius:9px}
.project-shares-navigation>summary::-webkit-details-marker{display:none}
.project-shares-navigation>summary:before{content:'▸';color:var(--c-muted);margin-right:3px}
.project-shares-navigation[open]>summary:before{content:'▾'}
.project-shares-count{background:var(--c-surface2);padding:3px 7px;border-radius:99px;font-variant-numeric:tabular-nums}
.project-shares-links{display:grid;gap:4px;max-height:min(35dvh,315px);overflow-y:auto;overscroll-behavior:contain;margin:5px 0}
.project-share-entry{display:flex!important;align-items:center;gap:8px;border:0;background:transparent;color:var(--c-text);padding:9px 10px;text-align:left;max-width:100%;width:100%;border-radius:8px;cursor:pointer;min-width:0}
.project-share-entry:hover,.project-share-entry:focus-visible{background:var(--c-surface2)}
.project-share-kind{font-size:10px;color:var(--c-muted);min-width:44px}
.project-share-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;font-size:12px}
.project-shares-empty{font-size:11px;padding:8px 12px;color:var(--c-muted)}
/* Einheitliche geometrische Bannerform in Editor, Administration und Kundenansicht. */
.project-heading.with-cover,.guest-shell .project-guest-hero{height:auto!important;min-height:0!important;aspect-ratio:4/1}
.cover-editor-workspace{background:rgba(0,0,0,.25);padding:25px 18px;border-radius:12px;min-width:0}
.cover-position-editor{min-width:0}
.cover-position-stage{width:100%;height:auto!important;min-height:0;max-height:none;aspect-ratio:4/1;cursor:grab;touch-action:none;outline:2px solid var(--c-accent);outline-offset:0;box-shadow:0 0 0 9px rgba(0,0,0,.25);border-radius:7px}
.cover-position-stage:active{cursor:grabbing}
.cover-position-stage img{pointer-events:none;user-select:none;display:block;width:100%;height:100%;object-fit:cover}
.cover-position-stage img[hidden]{display:none!important}
.cover-position-stage .cover-editor-empty{position:absolute;inset:0;display:grid;place-items:center;color:var(--c-muted);font-size:12px;padding:12px;text-align:center}
.cover-position-stage .cover-editor-empty[hidden]{display:none!important}
@media(max-width:670px){
 .project-heading.with-cover,.guest-shell .project-guest-hero,.cover-position-stage{aspect-ratio:2/1;min-height:0!important}
 .cover-editor-workspace{padding:20px 13px}
 .project-shares-navigation{margin:4px 0 8px;padding:5px 0 0;border-top:0;border-bottom:1px solid var(--c-border)}
 .project-shares-navigation>summary{justify-content:flex-start}
 .project-shares-links{display:flex;max-height:120px;flex-wrap:wrap;overflow-y:auto;gap:6px}
 .project-share-entry{width:auto;max-width:190px;background:var(--c-surface2)}
}

/* Frame 0.8.8 – Projekt-Freigaben direkt zwischen Navigation und Footer. */
.sidebar .project-shares-navigation{display:block;flex:0 1 auto;min-height:0;max-width:100%;margin:18px 8px 12px;border-top:1px solid var(--c-border);padding-top:14px}
.sidebar .project-shares-navigation>summary{display:flex;align-items:center;cursor:pointer}
.sidebar .project-shares-links{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;max-height:min(40dvh,360px);overflow:auto}
.sidebar .project-share-entry{display:grid!important;grid-template-columns:minmax(0,1fr);gap:4px;text-align:left;min-width:0;width:100%;padding:8px 10px}
.sidebar .project-share-scope{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--c-muted)}
.sidebar .project-share-name{font-size:12px;color:var(--c-text);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cover-position-stage img,.project-hero-cover,.project-card-cover,.project-guest-hero>img{transform-origin:50% 50%}
@media(max-width:670px){
 .sidebar .project-shares-navigation{margin:4px 0 8px;padding:6px 0 0}
 .sidebar .project-shares-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));max-height:180px}
 .sidebar .project-share-entry{min-width:0;max-width:none;background:var(--c-surface2)}
}

/* Frame 0.8.9 – Freigaben: collapsed, visually separated, close to footer on iPad/desktop. */
@media(min-width:671px){
 .shell:not(.guest-shell)>.sidebar>.project-shares-navigation{
   flex:0 0 auto;align-self:stretch;margin:auto 8px 0!important;
   border-top:1px solid var(--c-border);padding:10px 0 0!important;
 }
 /* Only suppress the footer's automatic spacer when a project share panel exists.
    Otherwise the footer must stay at the bottom in the general project overview. */
 .shell:not(.guest-shell)>.sidebar>.sidefoot{margin-top:auto!important}
 .shell:not(.guest-shell)>.sidebar>.project-shares-navigation+.sidefoot{margin-top:0!important}
 .sidebar>.project-shares-navigation .project-shares-links{
   max-height:min(32dvh,260px);overflow-y:auto;overscroll-behavior:contain;
 }
}
.sidebar>.project-shares-navigation>summary{min-height:36px}
.sidebar>.project-shares-navigation:not([open])>summary{color:var(--c-muted)}
.sidebar>.project-shares-navigation .project-share-create{
 display:block!important;width:100%;max-width:100%;border:1px dashed var(--c-border);
 background:transparent;color:var(--c-muted);border-radius:8px;font-size:12px;
 padding:9px 10px;text-align:left;min-height:34px;cursor:pointer;
}
.sidebar>.project-shares-navigation .project-share-create:hover,
.sidebar>.project-shares-navigation .project-share-create:focus-visible{
 color:var(--c-text);border-color:var(--c-accent);background:var(--c-surface2);
}
@media(max-width:670px){
 .sidebar>.project-shares-navigation{margin:6px 0!important;padding:6px 0 0!important;}
 .sidebar>.project-shares-navigation .project-share-create{min-width:140px}
}
/* Frame 0.8.9 – same player controls and same timeline, automatically fade on playback. */
.player-box .frame-player-controls{
 opacity:1;visibility:visible;transform:translateY(0);
 transition:opacity .22s ease,transform .22s ease,visibility .22s;
}
.player-box.controls-idle .frame-player-controls{
 opacity:0;visibility:hidden;transform:translateY(8px);pointer-events:none;
}
@media(prefers-reduced-motion:reduce){
 .player-box .frame-player-controls{transition:none}
}

/* Frame 0.8.11 — clean and vertically aligned actions in shared-link dialog. */
.share-edit-dialog .share-link-box .actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;align-items:stretch}
.share-edit-dialog .share-link-box .actions>*{display:flex;align-items:center;justify-content:center;min-height:52px;box-sizing:border-box;line-height:1.3;text-align:center;white-space:normal;padding:9px 7px;margin:0;font-size:12px}
@media(max-width:380px){.share-edit-dialog .share-link-box .actions{gap:5px}.share-edit-dialog .share-link-box .actions>*{font-size:11px;padding:8px 4px}}
.frame-preview-brand{display:block;width:min(100%,250px);height:auto;object-fit:contain}
.preview-partner{display:block;width:auto;max-width:165px;max-height:55px;object-fit:contain;margin-top:13px}
.preview-partner[hidden]{display:none!important}
.branding-save-footer{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:22px 0 32px;padding:18px 20px;border:1px solid var(--c-border);background:var(--c-surface);border-radius:var(--ui-radius)}
.branding-save-footer button{min-width:230px}
.author-color-form.is-staged-remove{opacity:.55;outline:1px dashed var(--c-border)}
@media(max-width:650px){.branding-save-footer{flex-direction:column;align-items:stretch}.branding-save-footer button{width:100%;min-width:0}}
.share-edit-dialog{box-sizing:border-box;max-width:calc(100vw - 24px)}


/* Frame 0.8.12 — compact folder pages and editorial project cards. */
.cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,290px),1fr))}
/* Admin project gallery: one clear title and a discreet navigation cue. */
.project-card{
  justify-content:flex-end;
  padding:22px;
  min-height:190px;
  max-width:430px;
  gap:0;
  overflow:hidden;
}
.project-card.has-project-cover:before{
  background:linear-gradient(0deg,rgba(5,9,15,.78) 0%,rgba(5,9,15,.34) 54%,rgba(5,9,15,.12) 100%);
}
.project-card>strong{
  position:relative;
  z-index:1;
  display:block;
  max-width:calc(100% - 20px);
  margin:0;
  font-size:clamp(22px,2.25vw,29px);
  line-height:1.18;
  letter-spacing:-.032em;
  font-weight:720;
  overflow-wrap:anywhere;
}
.project-card>.card-arrow{
  top:16px;
  right:17px;
  z-index:1;
  font-size:18px;
  color:rgba(255,255,255,.76);
  pointer-events:none;
}
.project-card:not(.has-project-cover)>.card-arrow{color:var(--c-muted)}
.project-card:focus-visible{outline:2px solid var(--c-accent);outline-offset:3px}
/* Header title aligns vertically to the visual center, not the top of the banner. */
.project-heading.with-cover{
  position:relative;
  isolation:isolate;
}
.project-heading.with-cover .project-heading-title{
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:22px clamp(20px,3vw,40px);
  margin:0;
  max-width:100%;
  min-width:0;
  pointer-events:none;
}
.project-heading.with-cover .project-heading-title h1{
  max-width:100%;
  margin:0;
  font-size:clamp(26px,3.2vw,42px);
  line-height:1.16;
  text-align:left;
  overflow-wrap:anywhere;
  text-wrap:balance;
}
@media(max-width:670px){
  /* In narrow viewports .heading changes to flex-direction:column.
     A former flex-basis:220px on the title was interpreted vertically,
     leaving a huge blank gap above the upload buttons. */
  .project-heading:not(.with-cover){
    min-height:0;
    height:auto;
    margin:0 0 12px;
    gap:0;
    align-items:stretch;
  }
  .project-heading:not(.with-cover) .project-heading-title{
    flex:0 0 auto;
    width:100%;
    min-width:0;
    margin:0;
  }
  .project-heading:not(.with-cover) h1{margin:0;line-height:1.2}
  .project-heading.with-cover .project-heading-title{padding:16px 19px}
  .project-heading.with-cover .project-heading-title h1{font-size:clamp(25px,5.8vw,34px)}
  .project-actionbar{margin:0 0 17px;gap:8px}
  .project-card{min-height:168px;padding:19px}
  .project-card>strong{font-size:clamp(24px,6.1vw,30px)}
}


/* Frame 0.8.13: optional third-party branding — "Ausgewogen".
   Only activates if a partner company has uploaded an additional logo.
   The fixed "Frame by Tipi Industries" mark keeps its original dimensions. */
.sidebar>.frame-partner-group{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  max-width:100%;
  min-width:0;
  flex:0 0 auto;
}
.sidebar>.frame-partner-group>.brand{
  align-self:center;
  padding-left:0;
  flex:0 0 auto;
  min-height:0;
  max-width:100%;
}
.sidebar>.frame-partner-group .frame-brand-complete{
  width:171px;
  max-width:100%;
  height:auto;
}
.sidebar>.frame-partner-group>.frame-partner-divider{
  display:block;
  flex:0 0 1px;
  width:106px;
  max-width:62%;
  height:1px;
  margin:13px auto 12px;
  background:var(--c-border,#394454);
  opacity:.75;
}
.sidebar>.frame-partner-group>.frame-partner-logo{
  display:block;
  align-self:center;
  width:auto;
  height:auto;
  max-width:min(100%,180px);
  max-height:54px;
  margin:0;
  object-fit:contain;
  flex:0 1 auto;
}
@media(max-width:670px){
  .sidebar>.frame-partner-group{align-items:center;width:100%}
  .sidebar>.frame-partner-group .frame-brand-complete{width:154px;max-width:100%}
  .sidebar>.frame-partner-group>.frame-partner-divider{margin:9px auto 8px;width:90px}
  .sidebar>.frame-partner-group>.frame-partner-logo{max-width:160px;max-height:42px}
}
@media(max-width:430px){
  .sidebar>.frame-partner-group .frame-brand-complete{width:143px}
}
/* Match project cards: lower-left project title inside the full-width banner. */
.project-heading.with-cover .project-heading-title{
  align-items:flex-end;
  justify-content:flex-start;
  padding:clamp(19px,2.3vw,30px);
}
.project-heading.with-cover .project-heading-title h1{
  margin:0;
  text-align:left;
  text-shadow:0 1px 12px rgba(0,0,0,.28);
}
.project-heading.with-cover:before{
  background:linear-gradient(0deg,rgba(5,9,15,.64),rgba(5,9,15,.03) 76%),
             linear-gradient(90deg,rgba(5,9,15,.43),transparent 80%);
}
@media(max-width:670px){
 .project-heading.with-cover .project-heading-title{
   align-items:flex-end;
   padding:17px 19px;
 }
}

/* Live preview uses the identical optical axis, only at preview scale. */
.preview-header:has(.preview-partner-area:not([hidden])) .frame-preview-brand{margin-inline:auto}
.preview-partner-area{display:flex;flex-direction:column;align-items:center;width:100%;margin:0 auto}
.preview-partner-area[hidden]{display:none!important}
.preview-partner-divider{display:block;width:106px;max-width:62%;height:1px;margin:13px auto 12px;background:var(--c-border,#394454);opacity:.75}
.preview-partner-area .preview-partner{display:block;max-height:54px;max-width:min(100%,180px);width:auto;height:auto;object-fit:contain;margin:0 auto}

/* Optional per-share watermark. Deters casual unauthorized recordings; not DRM. */
.frame-share-watermark{position:absolute;inset:0;z-index:2;display:grid;place-items:center;pointer-events:none;user-select:none;padding:6%}
.frame-share-watermark img{display:block;width:min(50%,440px);max-width:min(70vw,440px);max-height:24%;object-fit:contain;opacity:.16;filter:drop-shadow(0 2px 10px rgba(0,0,0,.28));}
@media(max-width:900px){.frame-share-watermark img{width:min(62%,320px);max-height:20%;opacity:.15}}
@media(max-width:560px){.frame-share-watermark img{width:min(70%,260px);max-height:18%;opacity:.14}}


/* Frame 0.8.21 — compact mobile navigation, prominent feedback and tidy video heading. */
@media(max-width:670px){
  .shell:not(.guest-shell)>.sidebar nav{
    display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
    gap:4px;max-width:100%;width:100%;overflow:visible;
  }
  .shell:not(.guest-shell)>.sidebar nav .navitem{
    display:flex;align-items:center;justify-content:center;
    min-width:0;min-height:40px;padding:9px 3px;gap:0;
    text-align:center;white-space:nowrap;font-size:clamp(10px,2.55vw,12px);
    letter-spacing:-.015em;
  }
}
/* The client logo stays in the project-contextline on folder, project and video pages. */
/* Person filter in the feedback title row — no search field or extra filter row. */
.comment-header{justify-content:space-between;gap:12px;padding:15px 16px;min-width:0}
.comment-heading{display:flex;align-items:center;gap:8px;min-width:0;flex:0 0 auto}
.comment-person-filter{display:block!important;flex:0 1 178px;min-width:0;margin:0!important}
.comment-person-filter select{width:100%;min-width:0;height:36px;padding:7px 22px 7px 9px;font-size:12px;font-weight:550;color:var(--c-text);background-color:var(--c-input)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
/* On narrow screens, let comments occupy their own generous scroll area; 
   the composer stays entirely inside the panel instead of being clipped. */
@media(max-width:1050px){
  .comment-column{max-height:none;min-height:0;overflow:hidden}
  .comment-list{flex:0 1 auto;min-height:210px;max-height:min(55dvh,570px);overflow-y:auto;overscroll-behavior-y:contain}
  .comment-form{flex:0 0 auto;min-width:0;box-sizing:border-box}
}
@media(max-width:670px){
  .comment-header{padding:14px 13px;gap:8px}
  .comment-person-filter{flex-basis:150px}
  .comment-person-filter select{font-size:11px}
  .comment-form{padding:15px 14px 17px}
  .comment-list{min-height:230px;max-height:min(52dvh,500px)}
}

/* Avoid Safari iOS focus/autofill zoom on the login and share password fields. */
@media (pointer:coarse), (hover:none){
 .login input[type=email],.login input[type=password],.guest-shell input[type=password]{font-size:16px}
}

/* Frame 0.8.24: tappable comment cards, native touch scrolling remains enabled. */
#comments .comment[data-comment-id]{cursor:pointer;touch-action:pan-y;transition:background-color .15s ease}
#comments .comment[data-comment-id]:focus-visible{outline:2px solid var(--c-accent);outline-offset:-3px}
@media(hover:hover) and (pointer:fine){#comments .comment[data-comment-id]:hover{background:var(--c-surface2)}}

/* Frame 0.8.26 — no permanent masking layer: controls fade out completely.
   Extend the video image by 1 CSS pixel beneath the player clip on each edge.
   This avoids a potential subpixel compositor seam without darkening the frame. */
.player-box>video#review-video{
  width:calc(100% + 2px);
  height:calc(100% + 2px);
  margin:-1px;
}
.player-box:fullscreen>video#review-video{height:calc(100% + 2px)}

/* Frame 0.8.27 — schlanker Uploadstatus mit gekürztem Dateinamen. */
.upload-widget{width:min(242px,calc(100vw - 20px));right:clamp(10px,1.2vw,20px)}
.upload-widget-toggle{gap:9px;padding:7px 10px;min-width:0}
.upload-widget-name{flex:1 1 0;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.upload-widget-arrow{flex:0 0 auto;font-size:18px}
.upload-ring{width:36px;height:36px}
.upload-ring:before{inset:4px}
.upload-percent{font-size:9px}
@media(max-width:670px){.upload-widget{top:68px;right:10px;width:min(242px,calc(100vw - 20px))}}


/* Frame 0.8.28 — consistent, minimal add control across every admin project level. */
.frame-add-menu{position:relative;display:block;flex:0 0 auto;min-width:150px;z-index:12}
.frame-add-trigger{display:flex;justify-content:center;align-items:center;gap:10px;min-height:40px;padding:11px 16px;border:1px solid var(--c-accent);border-radius:var(--ui-radius);background:var(--c-accent);color:var(--c-accent_text);font-weight:650;cursor:pointer;list-style:none;white-space:nowrap;user-select:none}
.frame-add-trigger::-webkit-details-marker{display:none}
.frame-add-trigger:hover,.frame-add-menu[open]>.frame-add-trigger{filter:brightness(1.07)}
.frame-add-trigger:focus-visible{outline:2px solid var(--c-accent);outline-offset:3px}
.frame-add-chevron{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;line-height:1;transform-origin:50% 50%;transition:transform .18s}
.frame-add-chevron svg{display:block;width:16px;height:16px;flex:none}
.frame-add-menu[open] .frame-add-chevron{transform:rotate(180deg)}
.frame-add-options{position:absolute;z-index:35;top:calc(100% + 6px);right:0;width:max-content;min-width:210px;max-width:min(300px,calc(100vw - 32px));display:grid;gap:3px;padding:6px;background:var(--c-surface);border:1px solid var(--c-border);border-radius:var(--ui-radius);box-shadow:0 16px 40px rgba(0,0,0,.48)}
.frame-add-options button{display:flex;align-items:center;text-align:left;min-height:42px;padding:10px 13px;border:0;background:transparent;color:var(--c-text);border-radius:8px;font-size:13px;font-weight:550;white-space:nowrap}
.frame-add-options button:hover,.frame-add-options button:focus-visible{background:var(--c-surface2);color:var(--c-text)}
@media(max-width:670px){
 .project-actionbar>.frame-add-menu{grid-column:auto;min-width:0;padding:0;min-height:0;display:block}
 .project-actionbar>.frame-add-menu:last-child:nth-child(3){grid-column:1/-1}
 .frame-add-trigger{width:100%;min-height:42px;padding:10px 8px;font-size:12px}
 .frame-add-options{right:0;min-width:min(220px,calc(100vw - 42px))}
}
/* A separate crisp video-card still; the 180-frame atlas remains for scrubbing. */
.media-card-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:1}
.media-card-still[hidden]{display:none!important}
