/* Korrekturen am Online-Stand, ohne die Stylesheets der Testfassung zu ändern. */

/* Werkzeugleiste im Kopf: auf schmalen Bildschirmen nicht mehr untereinander umbrechen
   (sie überdeckte sonst die Projektleiste), sondern einzeilig bleiben und seitlich scrollen. */
body > header .editoractions {
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  max-height: none !important;
  overflow-y: hidden !important;
}

/* Lange E-Mail-Adresse im Anmeldeknopf kürzen, damit die Leiste Platz behält. */
#login {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Im Editor bekommt die Werkzeugleiste immer eine eigene Zeile im Kopf. Der Kopf ist in der Breite begrenzt,
   daneben blieb ihr auch auf großen Bildschirmen zu wenig Platz. */
body:has(#editor:not([hidden])) > header {
  flex-wrap: wrap !important;
  height: auto !important;
  row-gap: 6px;
  padding-bottom: 6px;
}
body:has(#editor:not([hidden])) > header .editoractions {
  order: 10;
  flex: 1 0 100% !important;
}
body > header .header-right button,
body > header .brand {
  white-space: nowrap;
  flex: none;
}

/* Einklappbare Leisten (leisten-einklappen.js): Kopfzeile und Projektleiste fahren beim Arbeiten nach oben weg. */
body > header,
#editor .editorhead {
  transition: transform .26s ease, opacity .26s ease;
}
body.rc-bars-hidden > header {
  transform: translateY(-100%);
}
body.rc-bars-hidden #editor .editorhead {
  transform: translateY(calc(-100% - var(--rc-header-h, 92px)));
  opacity: 0;
  pointer-events: none;
}
.rc-bars-handle {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 40;
  transform: translate(-50%, -110%);
  transition: transform .26s ease;
  padding: 3px 16px 5px;
  font-size: 12px;
  border: 1px solid #ff791866;
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #1c1917f2;
  color: #ffb27a;
  cursor: pointer;
}
body.rc-bars-hidden .rc-bars-handle {
  transform: translate(-50%, 0);
}
body.light .rc-bars-handle {
  background: #fffffff2;
  color: #a04a00;
}
.rc-bars-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.rc-bars-option input {
  width: auto;
  flex: none;
}
@media (prefers-reduced-motion: reduce) {
  body > header, #editor .editorhead, .rc-bars-handle { transition: none; }
}
@media print {
  .rc-bars-handle, .rc-bars-option { display: none !important; }
}

.rc-bars-full { font-size: 12px; padding: 6px 10px; white-space: nowrap; }
@media print { .rc-bars-full { display: none !important; } }

/* Aufgeräumte Werkzeugleiste (werkzeugleiste.js): seltene Funktionen im Menü „Mehr“. */
body > header .editoractions { overflow: visible !important; }
.rc-more { position: relative; flex: none; }
.rc-more > summary {
  list-style: none; cursor: pointer; white-space: nowrap; font-size: 11px; padding: 7px 10px;
  border: 1px solid #ffffff33; border-radius: 9px; background: #211c1a; color: #f5f1ed;
}
.rc-more > summary::-webkit-details-marker { display: none; }
.rc-more[open] > summary { border-color: #ff7918; color: #ffb27a; }
.rc-more-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; display: grid; gap: 6px; min-width: 230px;
  padding: 10px; border: 1px solid #ff791866; border-radius: 12px; background: #1c1917f7; box-shadow: 0 12px 32px #000a;
}
.rc-more-panel > button { width: 100%; text-align: left; white-space: nowrap; }
.rc-more-panel > button[hidden] { display: none; }
body.light .rc-more > summary { background: #fff; color: #1c1917; border-color: #0003; }
body.light .rc-more-panel { background: #fffffffa; box-shadow: 0 12px 32px #0003; }

/* Projektdaten & Mitwirkende als eigenes Fenster. */
.rc-details-dialog {
  width: min(980px, 96vw); max-width: none; max-height: 90vh; overflow: auto; padding: 22px;
  background: #191a1b; color: #f5f1ed; border: 1px solid #ffffff40; border-radius: 14px;
}
.rc-details-dialog::backdrop { background: #000b; }
.rc-details-dialog > header {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  height: auto; padding: 0 0 12px; position: static; background: none; border: 0;
}
.rc-details-dialog h2 { margin: 0; }
.rc-details-dialog .project-details { border: 0; padding: 0; margin: 0; background: none; }
.rc-details-dialog .project-details > summary { display: none; }
body.light .rc-details-dialog { background: #fff; color: #1c1917; }
@media print { .rc-more, .rc-details-dialog { display: none !important; } }

/* Notiz direkt am Take schreiben (notiz-schnell.js). */
.rc-note-composer {
  display: flex; gap: 8px; align-items: flex-start; margin: -8px 18px 18px; padding: 10px;
  border-radius: 10px; background: #f7e38b; box-shadow: 0 6px 18px #0005;
}
.rc-note-composer textarea {
  flex: 1; min-height: 70px; resize: vertical; border: 0; background: transparent; color: #2b2410; font-size: 15px; line-height: 1.4;
}
.rc-note-composer textarea::placeholder { color: #6b5c1e; }
.rc-note-composer button { flex: none; min-width: 40px; padding: 8px 10px; font-size: 16px; }
.rc-note-composer button:not(.primary) { background: #0000001f; border: 0; color: #2b2410; }
.sticky-actions [data-note-delete] { margin-left: auto; }
/* Auf schmaleren Bildschirmen ist am Rand kein Platz: Die Zettel hängen dann im Take selbst. */
@media (max-width: 1500px) {
  #takes .take .take-notes[open] .sticky-float-content {
    position: static !important; width: auto !important; max-height: none !important; right: auto !important; padding: 8px 0 0 !important;
  }
  #takes .take .take-notes[open] .sticky-float-content .sticky-list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
@media print { .rc-note-composer { display: none !important; } }

/* Miniaturbilder von Kamera und Objektiv im Take (kamera-miniatur.js). */
.rc-cam-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.rc-cam-thumb { display: block; width: 96px; height: 62px; border-radius: 8px; overflow: hidden; border: 1px solid #ffffff2e; background: #242220; }
@media print { .rc-cam-thumbs { display: none !important; } }

/* Projektdaten: ausgeblendete Felder wirklich ausblenden und Themenvorschläge als anklickbare Marken. */
.details-grid label[hidden] { display: none !important; }
.rc-pick { position: relative; }
.rc-pick-button { width: 100%; min-height: 46px; text-align: left; padding: 10px 38px 10px 14px; border-radius: 10px; border: 1px solid #ffffff2e; background: #151211; color: #f5f1ed; font: inherit; cursor: pointer; position: relative; white-space: normal; line-height: 1.35; }
.rc-pick-button::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #ff7918; }
.rc-pick-button.empty { color: #a89d95; }
.rc-pick-button[aria-expanded="true"] { border-color: #ff7918; }
.rc-pick-panel { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: #1d1917; border: 1px solid #ffffff2e; border-radius: 12px; box-shadow: 0 18px 40px #000a; padding: 8px; display: grid; gap: 8px; }
.rc-pick-panel[hidden] { display: none; }
.rc-pick-list { display: grid; max-height: 260px; overflow-y: auto; }
.rc-pick-list button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: #f5f1ed; font-size: 14px; }
.rc-pick-list button::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 5px; border: 1px solid #ffffff55; display: grid; place-items: center; font-size: 12px; line-height: 1; }
.rc-pick-list button[aria-checked="true"]::before { content: "✓"; background: #ff7918; border-color: #ff7918; color: #1c110b; font-weight: 700; }
.rc-pick-list button:hover, .rc-pick-list button:focus-visible { background: #ffffff14; }
.rc-pick-own { display: grid; grid-template-columns: 1fr auto; gap: 6px; border-top: 1px solid #ffffff1f; padding-top: 8px; }
.rc-pick-own input { min-width: 0; height: 38px !important; margin: 0 !important; }
.rc-pick-own button { width: 38px; height: 38px; border-radius: 9px; border: 1px solid #ffffff2e; background: #2a2421; color: #ff7918; font-size: 18px; cursor: pointer; }
.rc-pick-done { justify-self: end; padding: 7px 16px; border-radius: 999px; border: 0; background: #ff7918; color: #1c110b; font-weight: 650; cursor: pointer; }
body.light .rc-pick-button { background: #fff; color: #1c1917; border-color: #0003; }
body.light .rc-pick-button.empty { color: #7a706a; }
body.light .rc-pick-panel { background: #fff; border-color: #0002; box-shadow: 0 18px 40px #0003; }
body.light .rc-pick-list button { color: #1c1917; }
body.light .rc-pick-list button::before { border-color: #0005; }
body.light .rc-pick-list button:hover, body.light .rc-pick-list button:focus-visible { background: #0000000d; }
body.light .rc-pick-own { border-top-color: #0002; }
body.light .rc-pick-own button { background: #f4f1ee; border-color: #0002; }
/* Mitwirkende: Miniaturbild (eigenes Foto oder Bild der verknüpften Figur) */
.person-card .person-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
/* Ladebalken beim Öffnen aus der Cloud */
.rc-loadbar { position: fixed; z-index: 2147483000; left: 50%; top: 18px; transform: translateX(-50%); width: min(420px, calc(100vw - 32px)); background: #1d1917f2; color: #f5f1ed; border: 1px solid #ffffff2e; border-radius: 14px; box-shadow: 0 18px 40px #000a; padding: 12px 16px; display: grid; gap: 8px; font-size: 14px; }
.rc-loadbar[hidden] { display: none; }
.rc-loadbar div { height: 6px; border-radius: 999px; background: #ffffff1f; overflow: hidden; }
.rc-loadbar i { display: block; height: 100%; width: 0; background: #ff7918; border-radius: inherit; transition: width .2s ease; }
.rc-loadbar.unknown i { width: 35% !important; animation: rc-loadbar-run 1.1s ease-in-out infinite alternate; }
@keyframes rc-loadbar-run { from { transform: translateX(-20%); } to { transform: translateX(210%); } }
body.light .rc-loadbar { background: #fffffff2; color: #1c1917; border-color: #0002; box-shadow: 0 18px 40px #0003; }
body.light .rc-loadbar div { background: #0000001a; }
/* Versionsprotokoll im Fenster „Versionen“ */
.rc-version-log { margin-top: 14px; border: 1px solid #8886; border-radius: 8px; padding: 10px 12px; }
.rc-version-log summary { cursor: pointer; font-weight: 650; }
.rc-version-log ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; max-height: 220px; overflow-y: auto; font-size: 13px; line-height: 1.45; }
.rc-version-log li time { color: #ffab6a; font-variant-numeric: tabular-nums; margin-right: 6px; white-space: nowrap; }
.rc-version-log li.empty { opacity: .65; }
.rc-version-origin { margin: 8px 0 0; font-size: 13px; color: #ffab6a; }
body.light .rc-version-log li time, body.light .rc-version-origin { color: #a74b15; }
/* Rückfragen im Programm-Design (statt der weißen Browser-Fenster) */
dialog.rc-ask { width: min(460px, calc(100vw - 32px)); border: 1px solid #ffffff2e; border-radius: 18px; padding: 26px 26px 22px; background: #1d1917; color: #f5f1ed; box-shadow: 0 30px 80px #000c; }
dialog.rc-ask::backdrop { background: #000a; }
dialog.rc-ask h2 { margin: 6px 0 10px; font-size: 20px; }
dialog.rc-ask p { margin: 0; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: #e2d9d2; }
dialog.rc-ask input { width: 100%; margin-top: 14px; }
dialog.rc-ask input[hidden], dialog.rc-ask button[hidden] { display: none; }
.rc-ask-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.rc-ask-actions button { min-width: 110px; padding: 10px 18px; border-radius: 999px; border: 1px solid #ffffff2e; background: #2a2421; color: #f5f1ed; font-weight: 600; cursor: pointer; }
.rc-ask-actions button.primary { background: #ff7918; border-color: #ff7918; color: #1c110b; }
body.light dialog.rc-ask { background: #fff; color: #1c1917; border-color: #0002; box-shadow: 0 30px 80px #0005; }
body.light dialog.rc-ask p { color: #3b332e; }
body.light .rc-ask-actions button:not(.primary) { background: #f4f1ee; color: #1c1917; border-color: #0002; }
/* Versionsverwaltung: Liste mit Aktionen je Version und Papierkorb */
dialog.redcat-versions .rc-vm-old { display: none !important; }
.rc-vm h3, h3.rc-vm-compare { margin: 18px 0 8px; font-size: 15px; }
.rc-vm-list { display: grid; gap: 6px; }
.rc-vm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid #8885; border-radius: 10px; padding: 9px 12px; }
.rc-vm-row.active { border-color: #ff7918; background: #ff79180f; }
.rc-vm-row b { display: block; }
.rc-vm-row small { opacity: .7; font-variant-numeric: tabular-nums; }
.rc-vm-badge { font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: #ff7918; color: #1c110b; vertical-align: middle; }
.rc-vm-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.rc-vm-actions button { font-size: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid #8887; background: transparent; color: inherit; cursor: pointer; }
.rc-vm-actions button.primary { background: #ff7918; border-color: #ff7918; color: #1c110b; font-weight: 650; }
.rc-vm-actions button.danger { border-color: #d9543f99; color: #ff8d7a; }
body.light .rc-vm-actions button.danger { color: #b3321e; }
.rc-vm-trash { margin-top: 10px; border: 1px solid #8885; border-radius: 10px; padding: 9px 12px; }
.rc-vm-trash summary { cursor: pointer; font-weight: 650; }
.rc-vm-trash p { font-size: 13px; opacity: .8; margin: 8px 0; }
.rc-vm-keep { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.rc-vm-keep select { width: auto !important; min-width: 130px; margin: 0 !important; }
/* Sprecherauswahl im Take: Miniaturbild + Name */
select.rc-sp-native { display: none !important; }
.rc-sp-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 6px 34px 6px 8px; border-radius: 10px; border: 1px solid #ffffff2e; background: #151211; color: #f5f1ed; font: inherit; cursor: pointer; position: relative; text-align: left; }
.rc-sp-button::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #ff7918; }
.rc-sp-button.empty { color: #a89d95; }
.rc-sp-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-sp-face { flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #2a2421; color: #ffab6a; font-size: 13px; font-weight: 650; }
.rc-sp-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-sp-menu { position: fixed; z-index: 2147482000; max-height: 320px; overflow-y: auto; background: #1d1917; border: 1px solid #ffffff2e; border-radius: 12px; box-shadow: 0 18px 40px #000a; padding: 6px; display: grid; gap: 2px; }
.rc-sp-menu[hidden] { display: none; }
.rc-sp-menu button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 8px; cursor: pointer; color: #f5f1ed; font-size: 14px; white-space: nowrap; }
.rc-sp-menu button:hover, .rc-sp-menu button:focus-visible, .rc-sp-menu button[aria-selected="true"] { background: #ffffff14; }
.rc-sp-menu p { margin: 6px 10px; color: #a89d95; font-size: 13px; }
body.light .rc-sp-button { background: #fff; color: #1c1917; border-color: #0003; }
body.light .rc-sp-face { background: #f1ece8; color: #a74b15; }
body.light .rc-sp-menu { background: #fff; border-color: #0002; box-shadow: 0 18px 40px #0003; }
body.light .rc-sp-menu button { color: #1c1917; }
body.light .rc-sp-menu button:hover, body.light .rc-sp-menu button[aria-selected="true"] { background: #0000000d; }
/* KI-Bereich im Take und Ergänzungen im Filmmaker */
.image-options[hidden], .feature-note[hidden] { display: none !important; }
.rc-ai-box { margin-top: 10px; padding: 10px; border-radius: 12px; border: 1px solid #ff791855; background: #ff79180f; display: grid; gap: 8px; }
.rc-ai-box span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #ffab6a; font-weight: 650; }
.rc-ai-box button { width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: #ff7918; color: #1c110b; font-weight: 650; cursor: pointer; }
body.light .rc-ai-box span { color: #a74b15; }
.rc-film-back { margin: 0 0 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid #ffffff2e; background: transparent; color: inherit; cursor: pointer; font-weight: 600; }
body.light .rc-film-back { border-color: #0003; }
.rc-film-prompt { display: grid; gap: 10px; margin-bottom: 14px; padding: 12px; border-radius: 12px; border: 1px solid #ff791855; background: #ff79180a; }
.rc-film-prompt label { display: grid; gap: 6px; }
.rc-film-prompt span { font-size: 12px; font-weight: 650; color: #ffab6a; }
.rc-film-prompt textarea { width: 100%; resize: vertical; }
.rc-film-prompt textarea[readonly] { opacity: .8; }
body.light .rc-film-prompt span { color: #a74b15; }
.rc-film-cloud { display: grid; gap: 8px; margin: 12px 0; padding: 10px; border-radius: 12px; border: 1px solid #ff791855; background: #ff79180f; }
.rc-film-cloud button { padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.rc-film-cloud button:disabled { opacity: .45; cursor: not-allowed; }
.rc-film-cloud small { opacity: .8; }
/* Looks: Storyboard zuerst, Natürliches Kino zuletzt (Bildtafel bleibt dieselbe) */
.look-sprite.look-0 { background-position: 33% 23%; }
.look-sprite.look-1 { background-position: 62% 23%; }
.look-sprite.look-2 { background-position: 0% 73%; }
.look-sprite.look-3 { background-position: 33% 73%; }
.look-sprite.look-4 { background-position: 62% 73%; }
.look-sprite.look-5 { background-position: 0% 23%; }
/* Projekte teilen */
dialog.rc-share { width: min(560px, calc(100vw - 32px)); max-height: 90vh; overflow-y: auto; border: 1px solid #ffffff2e; border-radius: 18px; padding: 24px; background: #1d1917; color: #f5f1ed; box-shadow: 0 30px 80px #000c; }
dialog.rc-share::backdrop { background: #000a; }
dialog.rc-share header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
dialog.rc-share header h2 { margin: 0; font-size: 20px; }
dialog.rc-share header button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #ffffff2e; background: transparent; color: inherit; cursor: pointer; }
.rc-share-name { font-weight: 650; color: #ffab6a; margin: 8px 0 4px; }
.rc-share-intro { font-size: 13px; line-height: 1.5; opacity: .85; margin: 0 0 14px; }
dialog.rc-share form { display: grid; gap: 12px; }
dialog.rc-share form > label { display: grid; gap: 6px; font-size: 13px; }
dialog.rc-share fieldset { border: 1px solid #ffffff24; border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; margin: 0; }
dialog.rc-share fieldset label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
dialog.rc-share fieldset small { opacity: .7; }
dialog.rc-share form button.primary { justify-self: start; padding: 10px 22px; border-radius: 999px; border: 0; background: #ff7918; color: #1c110b; font-weight: 650; cursor: pointer; }
.rc-share-status { min-height: 1.3em; color: #ffab6a; font-size: 13px; margin: 10px 0 0; }
.rc-share-list h3 { font-size: 15px; margin: 14px 0 8px; }
.rc-share-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #8885; border-radius: 10px; padding: 9px 12px; margin-bottom: 6px; }
.rc-share-row b { display: block; overflow-wrap: anywhere; }
.rc-share-row small { opacity: .7; }
.rc-share-row button { font-size: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid #d9543f99; background: transparent; color: #ff8d7a; cursor: pointer; white-space: nowrap; }
body.light dialog.rc-share { background: #fff; color: #1c1917; border-color: #0002; }
body.light .rc-share-name, body.light .rc-share-status { color: #a74b15; }
body.light dialog.rc-share fieldset { border-color: #0002; }
h4.rc-pm-shared { margin: 16px 0 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #ffab6a; }
body.light h4.rc-pm-shared { color: #a74b15; }
/* Notizen zur Freigabe am Take */
.rc-share-notes { margin: 10px 14px 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid #5aa9ff55; background: #5aa9ff10; display: grid; gap: 8px; }
.rc-share-notes > b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #8cc4ff; }
.rc-share-note { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: start; }
.rc-share-note small { grid-column: 1 / -1; opacity: .7; }
.rc-share-note p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rc-share-note button { font-size: 11px; padding: 4px 9px; border-radius: 999px; border: 1px solid #8887; background: transparent; color: inherit; cursor: pointer; }
.rc-share-compose { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.rc-share-compose textarea { width: 100%; resize: vertical; }
.rc-share-compose button { padding: 9px 16px; border-radius: 999px; border: 0; background: #ff7918; color: #1c110b; font-weight: 650; cursor: pointer; }
body.light .rc-share-notes > b { color: #1f5fa8; }
/* Gast-Ansicht: Bearbeiten ausblenden */
body.rc-guest #add, body.rc-guest #addBottom, body.rc-guest .takehead button, body.rc-guest .handle, body.rc-guest .takehead input[type=checkbox], body.rc-guest .addspeaker,
body.rc-guest .image-upload, body.rc-guest .rc-ai-box, body.rc-guest #saveProjectNow, body.rc-guest #undoDelete, body.rc-guest .project-version-bar, body.rc-guest .person-form,
body.rc-guest [data-cast-edit], body.rc-guest [data-cast-delete], body.rc-guest #libraryNew, body.rc-guest .dictate-button, body.rc-guest [data-remove-line],
body.rc-guest .import-panel, body.rc-guest #switchFilmmaker, body.rc-guest .rc-note-composer { display: none !important; }
@media print { .rc-share-notes { display: none !important; } }
/* Speichern unter */
.rc-save-as-actions { display: grid; gap: 8px; margin-top: 18px; }
.rc-save-as-actions button { padding: 12px 16px; border-radius: 12px; border: 1px solid #ffffff2e; background: #2a2421; color: #f5f1ed; font-weight: 600; cursor: pointer; text-align: left; }
.rc-save-as-actions button.primary { background: #ff7918; border-color: #ff7918; color: #1c110b; }
body.light .rc-save-as-actions button:not(.primary) { background: #f4f1ee; color: #1c1917; border-color: #0002; }
body.rc-guest #saveProjectAs { display: none !important; }
/* Projektübersicht, Dokumente, Sicherungskopie */
.rc-lib-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.rc-lib-tools button, .rc-lib-actions button, .rc-lib-doc button, .rc-lib-detail section > button { font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1px solid #8887; background: transparent; color: inherit; cursor: pointer; }
.rc-lib-tools button.primary, .rc-lib-actions button.primary, .rc-lib-restore button.primary { background: #ff7918; border-color: #ff7918; color: #1c110b; font-weight: 650; }
.rc-lib-actions button.danger, .rc-lib-doc button.danger { border-color: #d9543f99; color: #ff8d7a; }
.rc-lib-link { cursor: pointer; }
.rc-lib-link:hover b { text-decoration: underline; color: #ffab6a; }
.rc-lib-check { flex: none; width: 18px; height: 18px; margin-right: 4px; accent-color: #ff7918; }
dialog.rc-lib-detail { width: min(920px, calc(100vw - 32px)); max-height: 90vh; overflow-y: auto; border: 1px solid #ffffff2e; border-radius: 18px; padding: 24px; background: #1d1917; color: #f5f1ed; box-shadow: 0 30px 80px #000c; }
dialog.rc-lib-detail::backdrop { background: #000a; }
dialog.rc-lib-detail header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
dialog.rc-lib-detail header h2 { margin: 4px 0 0; font-size: 22px; overflow-wrap: anywhere; }
dialog.rc-lib-detail header > button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #ffffff2e; background: transparent; color: inherit; cursor: pointer; flex: none; }
.rc-lib-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.rc-lib-status { min-height: 1.3em; color: #ffab6a; font-size: 13px; margin: 6px 0; }
dialog.rc-lib-detail h3 { font-size: 15px; margin: 16px 0 8px; }
.rc-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.rc-lib-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; background: #0006; }
.rc-lib-doc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border: 1px solid #8885; border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; }
.rc-lib-doc > div { flex: 1; min-width: 180px; }
.rc-lib-doc b { display: block; overflow-wrap: anywhere; }
.rc-lib-doc small, .rc-lib-hint, .rc-lib-empty { opacity: .7; font-size: 13px; }
.rc-lib-hint { display: block; margin-top: 8px; }
.rc-lib-pick { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid #8883; }
.rc-lib-where { display: grid; gap: 6px; margin: 14px 0; font-size: 13px; }
body.light dialog.rc-lib-detail { background: #fff; color: #1c1917; border-color: #0002; }
body.light .rc-lib-status, body.light .rc-lib-link:hover b { color: #a74b15; }
/* Startseite: der eigene Cloud-Knopf entfällt – die Cloud gehört zum Fenster „Projekte“ */
.library-home .server-project-open, .library-home [data-cloud-home] { display: none !important; }
/* Sprecherauswahl: die Regel „.dialogline button“ (für das ×) darf den Auswahlknopf nicht aus der Zeile nehmen */
.dialogline .rc-sp-button { position: relative !important; top: auto !important; right: auto !important; padding: 6px 34px 6px 8px !important; }
/* Info & Links je Take */
.rc-info { margin: 8px 14px; border: 1px solid #8884; border-radius: 10px; padding: 8px 12px; }
.rc-info summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.rc-info textarea { width: 100%; min-height: 46px; margin-top: 8px; resize: vertical; }
.rc-info-links { display: grid; gap: 6px; margin-top: 8px; }
.rc-info-link { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.rc-info-link a { color: #6db7ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-info-link button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #8887; background: transparent; color: inherit; cursor: pointer; }
.rc-info-add { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
.rc-info-add button { padding: 8px 14px; border-radius: 999px; border: 1px solid #ff791899; background: transparent; color: #ffab6a; cursor: pointer; white-space: nowrap; }
.rc-info input { margin: 0 !important; min-width: 0; }
.rc-info-prompt { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; opacity: .85; }
body.light .rc-info-link a { color: #1f5fa8; }
body.light .rc-info-add button { color: #a74b15; }
#previewPaper .rc-info-cell { font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; width: 22%; }
#previewPaper .rc-info-ref { margin-top: 6px; }
#previewPaper .rc-info-ref a { color: #1f5fa8; display: block; }
#previewPaper .rc-info-ref small { display: block; color: #555; }
.rc-info-toggle[hidden] { display: none !important; }
@media print { .rc-info { display: none !important; } #previewPaper .rc-info-ref a { color: #1f5fa8 !important; text-decoration: underline; } }
body.rc-guest .rc-info-add, body.rc-guest .rc-info-prompt, body.rc-guest .rc-info-link button { display: none !important; }
/* Ordner in der RedCat Cloud */
.rc-lib-cloudbar { margin-bottom: 8px; }
.rc-lib-cloudbar .rc-lib-quiet { opacity: .7; border-style: dashed; }
/* Frisch wiederhergestelltes Projekt kurz hervorheben */
.rc-pm-row.rc-lib-fresh { outline: 2px solid #ff7918; outline-offset: 2px; border-radius: 10px; animation: rc-lib-fresh 1.2s ease-in-out 3; }
@keyframes rc-lib-fresh { 50% { background: #ff791833; } }
/* Material: Reiter in der Projektbibliothek und Dateien am Take */
.rc-mat-hidden { display: none !important; }
.rc-mat-panel { flex: 1; min-height: 0; overflow-y: auto; }
.rc-mat-panel[hidden] { display: none; }
.rc-mat-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.rc-mat-head small, .rc-mat-empty { opacity: .75; font-size: 13px; }
.rc-mat-head button.primary { padding: 10px 18px; border-radius: 999px; border: 0; background: #ff7918; color: #1c110b; font-weight: 650; cursor: pointer; }
.rc-mat-panel h3 { font-size: 14px; margin: 16px 0 8px; color: #ffab6a; }
.rc-mat-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid #8885; border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; }
.rc-mat-preview { width: 64px; height: 48px; border-radius: 8px; background: #2a2421; color: #ffab6a; display: grid; place-items: center; font-size: 12px; font-weight: 700; overflow: hidden; }
.rc-mat-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-mat-main { display: grid; gap: 4px; min-width: 0; }
.rc-mat-name { all: unset; cursor: pointer; font-weight: 650; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: #ff791888; }
.rc-mat-main small { opacity: .7; }
.rc-mat-main input { margin: 0 !important; }
.rc-mat-side { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; max-width: 330px; }
.rc-mat-side select { width: auto !important; margin: 0 !important; max-width: 150px; }
.rc-mat-side button, .rc-mat-attach { font-size: 12px; padding: 6px 11px; border-radius: 999px; border: 1px solid #8887; background: transparent; color: inherit; cursor: pointer; }
.rc-mat-side button.danger { border-color: #d9543f99; color: #ff8d7a; }
.rc-mat-take { display: grid; gap: 6px; margin-top: 10px; }
.rc-mat-take > b { font-size: 12px; opacity: .8; }
.rc-mat-chip { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rc-mat-chip small { opacity: .7; }
.rc-mat-chip > button:last-child { width: 26px; height: 26px; border-radius: 8px; border: 1px solid #8887; background: transparent; color: inherit; cursor: pointer; }
.rc-mat-kind { font-size: 10px; font-weight: 700; padding: 3px 6px; border-radius: 6px; background: #2a2421; color: #ffab6a; }
.rc-mat-attach { justify-self: start; border-color: #ff791899; color: #ffab6a; }
body.light .rc-mat-panel h3, body.light .rc-mat-attach { color: #a74b15; }
body.light .rc-mat-preview, body.light .rc-mat-kind { background: #f1ece8; color: #a74b15; }
body.rc-guest .rc-mat-attach, body.rc-guest .rc-mat-chip > button:last-child { display: none !important; }
/* Take-Filter */
.rc-filter { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0 12px; padding: 8px 12px; border: 1px solid #8884; border-radius: 12px; font-size: 13px; }
.rc-filter[hidden], .rc-filter label[hidden], .rc-filter button[hidden] { display: none !important; }
.rc-filter.active { border-color: #ff7918; background: #ff79180f; }
.rc-filter label { display: flex; gap: 6px; align-items: center; }
.rc-filter select { width: auto !important; min-width: 130px; max-width: 220px; margin: 0 !important; height: 36px; }
.rc-filter button { padding: 6px 12px; border-radius: 999px; border: 1px solid #ff791899; background: transparent; color: #ffab6a; cursor: pointer; }
.rc-filter small { opacity: .8; }
#takes .take.rc-filtered-out { display: none !important; }
body.rc-camera-hidden .rc-cam-thumbs { display: none !important; }
@media print { .rc-filter { display: none !important; } }
/* Fenster einheitlich: feste Größe beim Umschalten, Schließen immer oben rechts */
#libraryDialog[open] { display: flex; flex-direction: column; height: min(820px, 90vh); }
#libraryDialog #libraryList { flex: 1; min-height: 0; overflow-y: auto; align-content: start; padding-right: 4px; }
dialog.rc-pm[open], dialog.redcat-versions[open] { height: min(860px, 90vh); }
#libraryDialog, #libraryEditDialog, #projectDialog, #personDialog, dialog.redcat-versions, dialog.rc-pm, dialog.rc-details-dialog, dialog.rc-share, dialog.rc-lib-detail, dialog.server-project-dialog { position: fixed; }
#libraryClose, #libraryEditClose, #projectClose, #personCancel, dialog.redcat-versions [data-close], dialog.rc-pm [data-close], dialog.rc-details-dialog [data-close], dialog.rc-share header button, dialog.rc-lib-detail header > button, dialog.server-project-dialog [data-close] {
  position: absolute !important; top: 16px !important; right: 16px !important; left: auto !important; width: 38px; height: 38px; padding: 0 !important; border-radius: 10px; display: grid; place-items: center; font-size: 18px; line-height: 1; z-index: 3; }
#libraryDialog .library-heading, dialog.redcat-versions header, dialog.rc-pm header, dialog.rc-details-dialog header, dialog.rc-share header, dialog.rc-lib-detail header, #libraryEditDialog .library-heading, #projectDialog .person-dialog-head, #personDialog .person-dialog-head { padding-right: 52px; }
/* Kopfbereich im Editor entschlacken: die Zwischenüberschrift „Drehbuch-Werkstatt“ entfällt, der Speicherstand bleibt */
#editor .editorintro .eyebrow, #editor .editorintro h1, #editor .editorintro p { display: none !important; }
#editor .editorintro { justify-content: flex-end; margin: 6px 0 10px !important; min-height: 0 !important; padding: 0 !important; }
.rc-share-notes.rc-share-flash { outline: 2px solid #5aa9ff; outline-offset: 2px; }
.rc-share-compose textarea { min-height: 56px; }
/* Freigabe nachträglich ändern */
.rc-share-row { align-items: flex-start; }
.rc-share-who { display: grid; gap: 6px; min-width: 0; flex: 1; }
.rc-share-who select { width: auto !important; max-width: 100%; margin: 0 !important; justify-self: start; }
.rc-share-rights { display: grid; gap: 4px; font-size: 13px; }
.rc-share-rights label { display: flex; gap: 8px; align-items: flex-start; }
/* Freigabe-Notizen: dieselben Post-its wie die gelben (Größe, Schräglage, Schrift) – nur in der Farbe der Person */
.sticky-note.rc-share-sticky { display: flex; flex-direction: column; gap: 6px; }
.rc-share-sticky small { font: 11px/1.3 system-ui, sans-serif; opacity: .75; padding-right: 26px; }
.rc-share-sticky p { margin: 0; flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; font-size: 15px; line-height: 1.35; }
.rc-share-sticky .rc-share-x { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: inherit; font-size: 12px; line-height: 1; padding: 0; cursor: pointer; opacity: .6; }
.rc-share-sticky textarea { flex: 1; width: 100%; min-height: 70px; resize: vertical; background: transparent !important; border: 0 !important; padding: 0; color: inherit; }
.rc-share-sticky textarea::placeholder { color: inherit; opacity: .55; }
.rc-share-colors { display: flex; gap: 5px; flex-wrap: wrap; }
.rc-share-colors button { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #0006; padding: 0; cursor: pointer; }
.rc-share-send { align-self: flex-end; padding: 5px 14px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; font: 600 12px system-ui, sans-serif; cursor: pointer; }
.rc-share-count { color: #8cc4ff; font-weight: 650; }
body.light .rc-share-count { color: #1f5fa8; }
@media print { .rc-share-sticky { display: none !important; } }
/* Werkzeugleiste: Teilen sichtbar, alter Cloud-Knopf entfällt */
[data-cloud-editor] { display: none !important; }
body.rc-guest #rcShareOpen, body.rc-guest .rc-expose-convert { display: none !important; }
.rc-expose-convert { border-color: #ff7918 !important; color: #ffab6a !important; }
body.light .rc-expose-convert { color: #a74b15 !important; }
/* Exposé daneben */
.rc-expose-toggle[aria-pressed="true"] { border-color: #ff7918 !important; background: #ff791820 !important; }
.rc-expose-side { position: fixed; z-index: 18; left: 0; top: 0; bottom: 0; width: var(--rc-split-w, min(30vw, 460px)); padding: 150px 16px 24px; overflow-y: auto; background: #171413; border-right: 1px solid #ffffff24; color: #f5f1ed; }
.rc-expose-side[hidden] { display: none; }
.rc-expose-side header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; position: static; height: auto; padding: 0; background: none; border: 0; }
.rc-expose-side header button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #ffffff2e; background: transparent; color: inherit; cursor: pointer; }
.rc-expose-side h4 { margin: 16px 0 6px; font-size: 15px; color: #ffab6a; }
.rc-expose-part { border: 1px solid #ffffff1c; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.rc-expose-part p { margin: 0 0 8px; white-space: pre-wrap; line-height: 1.5; font-size: 14px; user-select: text; }
.rc-expose-part button { font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid #ff791899; background: transparent; color: #ffab6a; cursor: pointer; }
.rc-expose-empty { opacity: .7; font-size: 13px; }
body.rc-split { --editor-width: min(1900px, calc(100vw - var(--rc-split-w, min(30vw, 460px)) - 60px)); }
body.rc-split { overflow-x: hidden; }
body.rc-split main { margin-left: var(--rc-split-w, min(30vw, 460px)) !important; width: calc(100vw - var(--rc-split-w, min(30vw, 460px))) !important; max-width: calc(100vw - var(--rc-split-w, min(30vw, 460px))) !important; box-sizing: border-box; padding-left: 20px !important; padding-right: 28px !important; }
body.rc-split #editor, body.rc-split #editor > * { max-width: 100% !important; box-sizing: border-box; }
body.rc-split #editor { width: auto !important; margin-left: 0 !important; margin-right: 0 !important; }
body.rc-split .editor-guide, body.rc-split .sticky-float-content { display: none !important; }
body.light .rc-expose-side { background: #f7f3ee; color: #1c1917; border-right-color: #0002; }
body.light .rc-expose-side h4, body.light .rc-expose-part button { color: #a74b15; }
@media (max-width: 900px) { .rc-expose-side { width: 100vw; } body.rc-split main { margin-left: 0 !important; } }
@media print { .rc-expose-side { display: none !important; } body.rc-split main { margin-left: 0 !important; } }
/* Freigabe-Zettel: klein eingeklappt wie die gelben, Löschen nur über den eigenen Knopf */
.sticky-note.sticky-collapsed.rc-share-sticky { display: block; }
.sticky-note.sticky-collapsed.rc-share-sticky > button { background: transparent; }
.rc-share-del { align-self: flex-end; padding: 4px 12px; border-radius: 8px; border: 1px solid currentColor; background: transparent; color: inherit; font: 600 12px system-ui, sans-serif; cursor: pointer; opacity: .8; }
/* Aufgeräumter Kopf im Editor */
body.rc-head-tidy #editor .editorhead .sticky-project-name { display: none !important; }
body.rc-head-tidy #editor .editorintro { display: none !important; }
body.rc-head-tidy #editor .project-title-card.rc-head-empty { display: none !important; }
.rc-head-title { display: grid; gap: 4px; min-width: 240px; flex: 1 1 320px; max-width: 520px; }
.rc-head-title > label { display: block; margin: 0; }
.rc-head-title > label > span:not(.dictate-wrap) { display: none; }
.rc-head-title #title { font-size: 19px !important; font-weight: 650; height: 42px !important; padding: 6px 10px !important; background: transparent !important; border: 1px solid transparent !important; border-radius: 9px; margin: 0 !important; }
.rc-head-title #title:hover, .rc-head-title #title:focus { border-color: #ffffff2e !important; background: #0000002e !important; }
.rc-head-title .dictate-button { display: none !important; }
.rc-head-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-left: 10px; font-size: 12px; }
.rc-head-line .project-version-bar { margin: 0 !important; gap: 6px; }
.rc-head-line .project-version-bar [data-active] { font-size: 12px; font-weight: 500; }
.rc-head-line .status { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; display: flex; align-items: center; gap: 6px; min-width: 0 !important; }
.rc-head-line .status b { font-size: 12px; font-weight: 500; opacity: .85; }
.rc-head-line .status small { display: none !important; }
.editor-guide.guide-project.rc-guide-off { display: none !important; }
.editor-guide.guide-project #guideWorkspace, .editor-guide.guide-project #guideProjectName, .editor-guide.guide-project > .guide-overline:first-of-type, .editor-guide.guide-project > .guide-divider { display: none !important; }
body.rc-head-tidy #takes .take .take-notes[open] .sticky-float-content { top: max(var(--sticky-note-top, 190px), 190px) !important; max-height: calc(100vh - 210px) !important; }
/* Zeile über den Takes: nur noch die Anzahl; der Hinweistext und der doppelte Kamera-Schalter entfallen */
body.rc-head-tidy #editor .toolbar small, body.rc-head-tidy #editor .toolbar label.toggle { display: none !important; }
body.rc-head-tidy #editor .toolbar { margin: 4px 0 6px !important; padding: 0 !important; min-height: 0 !important; }
body.light .rc-head-title #title:hover, body.light .rc-head-title #title:focus { border-color: #0003 !important; background: #ffffffaa !important; }
/* Das × auf Freigabe-Zetteln lag unter der Namenszeile und nahm keine Klicks an */
.rc-share-sticky .rc-share-x { z-index: 3; }
.rc-share-sticky small { pointer-events: none; }
/* Zettel verschieben */
#takes .sticky-note { cursor: grab; }
#takes .sticky-note textarea, #takes .sticky-note input { cursor: text; }
#takes .sticky-note.rc-note-dragging { cursor: grabbing; z-index: 60; box-shadow: 6px 14px 26px #0009; user-select: none; }
#takes .sticky-note.rc-note-moved { z-index: 40; position: relative; }
#takes .sticky-float-content.rc-notes-free { overflow: visible !important; }
#takes .take:has(.rc-note-moved), #takes .take:has(.rc-note-dragging) { overflow: visible !important; }
/* Exposé daneben: Breite ziehen, Bilder, Einfügen der Markierung */
.rc-expose-handle { position: fixed; z-index: 19; top: 0; bottom: 0; left: calc(var(--rc-split-w, min(30vw, 460px)) - 4px); width: 9px; cursor: col-resize; }
.rc-expose-handle[hidden] { display: none; }
.rc-expose-handle::after { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 3px; background: #ff791855; }
.rc-expose-handle:hover::after, body.rc-split-resizing .rc-expose-handle::after { background: #ff7918; }
body.rc-split-resizing { user-select: none; cursor: col-resize; }
.rc-expose-image { display: block; max-width: 100%; border-radius: 8px; margin: 8px 0; }
.rc-expose-bubble { position: fixed; z-index: 2147482500; display: flex; gap: 6px; padding: 6px; border-radius: 12px; background: #1d1917; border: 1px solid #ffffff2e; box-shadow: 0 14px 34px #000a; }
.rc-expose-bubble[hidden] { display: none; }
.rc-expose-bubble button { font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid #8887; background: transparent; color: #f5f1ed; cursor: pointer; white-space: nowrap; }
.rc-expose-bubble button.primary { background: #ff7918; border-color: #ff7918; color: #1c110b; font-weight: 650; }
/* Kapitel: Leiste über den Takes */
.rc-chapterbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; font-size: 13px; }
.rc-chapterbar[hidden] { display: none; }
.rc-chapterbar button, .rc-expose-chapter { padding: 6px 12px; border-radius: 999px; border: 1px solid #ff791899; background: transparent; color: #ffab6a; cursor: pointer; font-size: 12px; width: auto !important; height: auto !important; }
.rc-chapterbar select { width: auto !important; min-width: 200px; margin: 0 !important; height: 34px; }
body.light .rc-chapterbar button, body.light .rc-expose-chapter { color: #a74b15; }
@media print { .rc-chapterbar { display: none !important; } }
/* Auswahl-Fenster: schwebt links neben dem obersten angehakten Take, bleibt beim Scrollen unter „Kapitel / Film“ hängen. */
.rc-chapterbar .rc-move-head { display: flex; align-items: center; gap: 8px; }
.rc-chapterbar .rc-move-head b { color: #ff9a4d; }
.rc-chapterbar .rc-chapterbar-label { opacity: .75; }
.rc-chapterbar .rc-move-targets { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-chapterbar button.rc-move-target { display: flex; align-items: flex-start; gap: 6px; text-align: left; line-height: 1.3; border-radius: 9px; font-weight: 600; transition: background .15s, border-color .15s, transform .15s; }
.rc-chapterbar button.rc-move-target:hover { background: #ff79181f; border-color: #ff7918; transform: translateX(2px); }
.rc-chapterbar .rc-move-arrow { color: #ff7918; flex: none; }
.rc-chapterbar button.rc-move-new { border-style: dashed; font-weight: 500; }
.rc-chapterbar button.rc-move-close { margin-left: auto; padding: 0 !important; width: 22px !important; height: 22px !important; border-radius: 50%; border-color: #ffffff33; color: #ab9f95; font-size: 15px; line-height: 1; flex: none; }
.rc-chapterbar button.rc-move-close:hover { color: #fff; border-color: #ff7918; }
.rc-chapterbar.rc-chapterbar-side { position: fixed; z-index: 19; margin: 0; box-sizing: border-box; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 9px; padding: 12px; border: 1px solid #ff791866; border-left: 3px solid #ff7918; border-radius: 14px; background: #171615f2; backdrop-filter: blur(14px); box-shadow: 0 14px 34px #0007, 0 0 0 1px #ff791814; color: #eee; transition: top .28s cubic-bezier(.2,.8,.2,1), box-shadow .2s; animation: rcMoveIn .25s ease-out; }
.rc-chapterbar.rc-chapterbar-side.rc-chapterbar-off { display: none; }
.rc-chapterbar.rc-chapterbar-side .rc-chapterbar-label { color: #ab9f95; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: 1; margin-bottom: -3px; }
.rc-chapterbar.rc-chapterbar-side .rc-move-targets { flex-direction: column; flex-wrap: nowrap; }
.rc-chapterbar.rc-chapterbar-side button.rc-move-target { width: 100% !important; padding: 7px 9px; font-size: 12px; }
/* Am Take angedockt: kleiner Zeiger nach rechts zum Häkchen. */
.rc-chapterbar.rc-chapterbar-side.rc-attached::after { content: ''; position: absolute; top: 14px; right: -7px; width: 12px; height: 12px; background: inherit; border-top: 1px solid #ff791866; border-right: 1px solid #ff791866; transform: rotate(45deg); }
@keyframes rcMoveIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
body.light .rc-chapterbar .rc-move-head b { color: #a74b15; }
body.light .rc-chapterbar.rc-chapterbar-side { background: #faf7f1f2; color: #29231f; box-shadow: 0 14px 34px #0002; }
body.light .rc-chapterbar button.rc-move-close { border-color: #bba998; color: #7a6a5d; }
@media (prefers-reduced-motion: reduce) { .rc-chapterbar.rc-chapterbar-side { transition: none; animation: none; } }
/* Standardsprecher: nur die Auswahl, ohne gesperrtes Namensfeld und Suchfeld */
.rc-default-hidden { display: none !important; }
.rc-default-speaker .speaker-bound-picker input[type="search"] { display: none !important; }
.rc-default-speaker .speaker-bound-picker { min-width: 260px; }
[data-import="peopleNote"] { display: none !important; }
.details-grid .rc-details-title { grid-column: 1 / -1; }
.details-grid .rc-details-title input { font-size: 17px; font-weight: 600; }
.rc-season-keep { display: grid; gap: 8px; margin: 14px 0 4px; }
.rc-season-keep label { display: flex; gap: 10px; align-items: flex-start; }
/* Exposé daneben: Kopfzeile sauber – Schließen-× mittig in seinem Kästchen */
.rc-expose-side header { gap: 10px; }
.rc-expose-side header b { flex: 1; }
.rc-expose-side header button { flex: none; }
.rc-expose-side header button:last-child { width: 32px !important; height: 32px !important; min-width: 32px; padding: 0 !important; display: grid !important; place-items: center; font-size: 16px !important; line-height: 1 !important; border-radius: 9px !important; text-align: center; }
.rc-expose-side header .rc-expose-chapter { width: auto !important; height: auto !important; padding: 6px 12px !important; }
/* „Notizen anzeigen“ wirkt auch im Storyboard: ohne Häkchen sind die Notizzettel der Takes ausgeblendet */
body.paper-notes-hidden #takes .take > .take-notes { display: none !important; }
/* Filmisches Drehbuch am Bildschirm ohne Notizen und Bilder: wie ein A4-Blatt – schmal, mittig, Text in einer Spalte */
@media screen {
  body.film-images-hidden.paper-notes-hidden #previewPaper:has(.screenplay) { max-width: 820px !important; margin-left: auto !important; margin-right: auto !important; padding: 56px 72px !important; box-sizing: border-box; }
  body.film-images-hidden.paper-notes-hidden #previewPaper .screenplay { max-width: none !important; margin: 28px 0 0 !important; }
  body.film-images-hidden.paper-notes-hidden #previewPaper .screenplay section.film-image-row { display: block !important; }
  body.film-images-hidden.paper-notes-hidden #previewPaper .screenplay .screenplay-dialogue { max-width: 400px !important; margin: 18px auto !important; }
  body.film-images-hidden.paper-notes-hidden #previewOverlay .preview-controls { max-width: 820px; margin-left: auto; margin-right: auto; }
}
/* Gefilterte Druckansicht */
#previewPaper tr[hidden], #previewPaper .screenplay section[hidden] { display: none !important; }
#previewPaper .rc-filter-note { color: #a74b15 !important; font-weight: 600; }
/* Die Filterleiste bleibt auch in der tabellarischen und filmischen Ansicht erreichbar */
#editor.inline-paper-mode .rc-filter { display: flex !important; }
.rc-word-export { margin-left: 8px; }
/* Exposé: Rechtsklick-Menü, „Zuletzt bearbeitet“, Hinweis */
.rc-context { position: fixed; z-index: 2147482600; min-width: 250px; padding: 6px; border-radius: 12px; background: #1d1917; border: 1px solid #ffffff2e; box-shadow: 0 18px 44px #000b; display: grid; }
.rc-context[hidden] { display: none; }
.rc-context button { all: unset; box-sizing: border-box; padding: 8px 12px; border-radius: 8px; color: #f5f1ed; font: 14px/1.3 system-ui, sans-serif; cursor: pointer; }
.rc-context button:hover:not(:disabled), .rc-context button:focus-visible { background: #ff791833; }
.rc-context button:disabled { opacity: .35; cursor: default; }
.rc-context hr { border: 0; border-top: 1px solid #ffffff1f; margin: 4px 6px; }
.rc-expose-hint { margin: 10px 0 0; font: 12px/1.4 system-ui, sans-serif; color: #8a7f77; }
.expose-document-details { flex-wrap: wrap; }
@media print { .rc-expose-hint { display: none !important; } }

/* Kopfzeile: Werkzeugzeile im Editor mittig (bei Platzmangel bleibt sie links ausgerichtet und scrollt nicht weg). */
body > header .editoractions > :first-child { margin-left: auto; }
body > header .editoractions > :last-child { margin-right: auto; }
body > header .header-right > .project-search > button { padding: 6px 9px; }

/* Auswahl-Fenster: Reihenfolge (↑ ↓, an Stelle schieben) und Löschen */
.rc-chapterbar .rc-move-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.rc-chapterbar button.rc-move-step { border-radius: 9px; font-weight: 600; }
.rc-chapterbar button.rc-move-step:hover { background: #ff79181f; border-color: #ff7918; }
.rc-chapterbar select.rc-move-place { width: auto !important; min-width: 0; max-width: 100%; height: auto !important; min-height: 32px; margin: 0 !important; padding: 5px 26px 5px 9px !important; line-height: 1.3; font-size: 12px; border-radius: 9px; border: 1px solid #ff791899; }
.rc-chapterbar button.rc-move-remove { border-radius: 9px; border-color: #e5484d88; color: #ff8a8d; }
.rc-chapterbar button.rc-move-remove:hover { background: #e5484d22; border-color: #e5484d; }
body.light .rc-chapterbar button.rc-move-remove { color: #b4232a; }
.rc-chapterbar.rc-chapterbar-side .rc-move-steps { display: grid; grid-template-columns: 1fr; gap: 6px; }
.rc-chapterbar.rc-chapterbar-side button.rc-move-step, .rc-chapterbar.rc-chapterbar-side button.rc-move-remove { width: 100% !important; padding: 7px 9px; font-size: 12px; text-align: left; }
.rc-chapterbar.rc-chapterbar-side select.rc-move-place { width: 100% !important; }
.rc-chapterbar.rc-chapterbar-side button.rc-move-remove { margin-top: 4px; }
#takes .take.rc-group-dragging { opacity: .45; outline: 2px dashed #ff7918; outline-offset: 2px; }
.rc-chapterbar .rc-move-target-box { display: grid; gap: 6px; width: 100%; padding: 6px; border-radius: 11px; background: #ff79180f; border: 1px solid #ff791844; }
.rc-chapterbar button.rc-move-target.open { background: #ff79182a; border-color: #ff7918; }
.rc-chapterbar.rc-chapterbar-side.rc-chapterbar-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

/* Projektdaten: breiter; oben die Angaben, darunter aufklappbare Bereiche (Mitwirkende & Crew, Links, Dateien) */
.rc-details-dialog { width: min(1240px, 96vw) !important; }
.rc-pd-area { display: grid; gap: 10px; margin-top: 22px; }
.rc-pd-search { width: 100%; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.rc-pd-section { border: 1px solid #ffffff1f; border-radius: 14px; background: #ffffff06; overflow: hidden; }
body.light .rc-pd-section { border-color: #2a1d1222; background: #ffffffa0; }
.rc-pd-section > summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; font-size: 16px; font-weight: 700; list-style: none; }
.rc-pd-section > summary::-webkit-details-marker { display: none; }
.rc-pd-section > summary::before { content: '▸'; color: #ff7918; transition: transform .2s; }
.rc-pd-section[open] > summary::before { transform: rotate(90deg); }
.rc-pd-count { min-width: 22px; padding: 1px 8px; border-radius: 999px; background: #ff791826; color: #ff9a4d; font-size: 12px; text-align: center; }
.rc-pd-count:empty { display: none; }
.rc-pd-hint { margin-left: auto; font-weight: 400; font-size: 12px; opacity: .55; }
.rc-pd-section[open] .rc-pd-hint { display: none; }
.rc-pd-body { padding: 4px 18px 18px; border-top: 1px solid #ffffff14; }
.rc-pd-people .rc-pd-body > h3:first-child { display: none; }
.rc-pd-list .rc-mat-row { margin: 6px 0; }
.rc-pd-list h3 { margin: 16px 0 6px; font-size: 13px; opacity: .8; }
.rc-mat-side select.rc-mat-also { max-width: 190px; }
/* Figurenkarte: Darsteller/Sprecher deutlich als eigene Zeile */
.character-actor-details.rc-actor-card { margin: 14px 0; padding: 12px 14px; border: 1px solid #ff791855; border-radius: 12px; background: #ff79180d; text-align: left; }
.character-actor-details.rc-actor-card > label:first-child { display: flex !important; align-items: center; gap: 10px; justify-content: flex-start; font-weight: 650; cursor: pointer; }
.character-actor-details.rc-actor-card > label:first-child input { width: 18px !important; height: 18px !important; margin: 0; accent-color: #ff7918; flex: none; }
.rc-actor-privacy { margin: 10px 0 0; font-size: 12px; opacity: .7; }

/* Startseite: Luft zwischen „RedCat Filmmaker“ und den Knöpfen */
#home .hero .cinema-hero-actions { margin-top: 30px; }
/* Startseite baut sich auf (startseite.js setzt body.rc-home-intro für knapp 4 Sekunden): eins nach dem anderen */
@keyframes rcFlyIn { from { opacity: 0; transform: translate(var(--fx, 0), var(--fy, 40px)) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes rcFade { from { opacity: 0; } to { opacity: 1; } }
body.rc-home-intro #home .hero { animation: rcFade .7s ease-out both; }
body.rc-home-intro #home .hero h1 { animation: rcFlyIn 1s cubic-bezier(.2,.8,.2,1) .2s both; --fx: -80px; --fy: 0px; }
body.rc-home-intro #home .cinema-hero-actions > * { animation: rcFlyIn .9s cubic-bezier(.2,.8,.2,1) both; }
body.rc-home-intro #home .cinema-hero-actions > :nth-child(1) { --fx: -140px; --fy: 0px; animation-delay: .8s; }
body.rc-home-intro #home .cinema-hero-actions > :nth-child(2) { --fx: 0px; --fy: 80px; animation-delay: 1.05s; }
body.rc-home-intro #home .cinema-hero-actions > :nth-child(3) { --fx: 140px; --fy: 0px; animation-delay: 1.3s; }
body.rc-home-intro #home .workflow-cards > * { animation: rcFlyIn 1s cubic-bezier(.2,.8,.2,1) both; --fy: 90px; }
body.rc-home-intro #home .workflow-cards > :nth-child(1) { --fx: -70px; animation-delay: 1.6s; }
body.rc-home-intro #home .workflow-cards > :nth-child(2) { --fx: 0px; animation-delay: 1.85s; }
body.rc-home-intro #home .workflow-cards > :nth-child(3) { --fx: 70px; animation-delay: 2.1s; }
body.rc-home-intro #home .library-home { animation: rcFlyIn 1s cubic-bezier(.2,.8,.2,1) 2.4s both; --fy: 60px; }
@media (prefers-reduced-motion: reduce) { body.rc-home-intro #home * { animation: none !important; } }
