/* Letzte Cleaning Prüfung: 23.09.2026
   Letztes Cleaning: 24.08.2026 */
.factory-workspace{position:fixed;inset:0;z-index:50;display:none}.factory-workspace.open{display:block}.workspace-backdrop{position:absolute;inset:0;background:rgba(2,3,6,.78);backdrop-filter:blur(10px)}.workspace-panel{position:absolute;top:0;right:0;width:min(680px,100%);height:100%;overflow:auto;background:#0e1118;border-left:1px solid #2b303d;box-shadow:-30px 0 80px rgba(0,0,0,.55);animation:workspace-in .25s ease}.workspace-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:28px 32px;background:rgba(14,17,24,.94);backdrop-filter:blur(14px);border-bottom:1px solid #252a35}.workspace-header h2{font:600 28px 'Space Grotesk';margin:6px 0 0}.workspace-close{display:grid;place-items:center;width:42px;height:42px;border:1px solid #343a49;border-radius:12px;background:#171b24;color:#fff;font-size:23px;cursor:pointer}.workspace-body{padding:30px 32px 50px}.workspace-intro{color:#9299a9;line-height:1.6;margin:0 0 28px}.workspace-form{display:grid;gap:18px}.workspace-field{display:grid;gap:8px}.workspace-field label{font-size:12px;font-weight:700;color:#d7dae2}.workspace-field small{color:#747c8d;font-size:11px;line-height:1.4}.workspace-field input,.workspace-field textarea,.workspace-field select{width:100%;border:1px solid #303644;border-radius:10px;background:#171b24;color:#f7f8fb;padding:13px 14px;font:inherit;outline:none}.workspace-field input:focus,.workspace-field textarea:focus,.workspace-field select:focus{border-color:#ff304f;box-shadow:0 0 0 3px rgba(255,48,79,.1)}.workspace-field textarea{min-height:120px;resize:vertical}.workspace-check{display:flex!important;grid-template-columns:none!important;align-items:center;gap:10px;padding:12px 14px;border:1px solid #303644;border-radius:10px;background:#171b24}.workspace-check input{width:auto}.workspace-actions{display:flex;align-items:center;gap:12px;margin-top:12px}.workspace-run{border:0;border-radius:10px;background:#ff304f;color:#fff;padding:14px 20px;font-weight:800;cursor:pointer}.workspace-run:disabled{opacity:.55;cursor:wait}.workspace-note{font-size:11px;color:#707889}.workspace-result{margin-top:22px;padding:16px;border-radius:11px;background:#151923;border:1px solid #2a303d;color:#aab1bf;line-height:1.5}.workspace-result.success{border-color:rgba(255,48,79,.45);color:#fff}.workspace-result.error{border-color:#ff4655;color:#ff9ba3}.workspace-empty{padding:30px;border:1px dashed #383e4b;border-radius:14px;text-align:center;color:#8d95a5}.workspace-empty i{display:block;color:#ff304f;font-size:38px;margin-bottom:12px}@keyframes workspace-in{from{transform:translateX(35px);opacity:0}to{transform:none;opacity:1}}@media(max-width:700px){.workspace-header,.workspace-body{padding-left:20px;padding-right:20px}}body.cc-competitors-workspace .factory-workspace.open .workspace-panel{left:0!important;right:0!important;width:100%!important;max-width:none!important;border-left:0!important;border-right:0!important;box-shadow:none!important;transform:none!important}body.cc-competitors-workspace .factory-workspace.open .factory-tool-shell,body.cc-competitors-workspace .factory-workspace.open .cc-shell{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:auto!important}

.workspace-run{position:relative;display:inline-flex;align-items:center;gap:8px;overflow:visible}.workspace-run-credit{position:relative;display:inline-flex;align-items:center;gap:4px;margin-left:2px;padding:5px 7px;border-radius:999px;background:rgba(20,20,30,.32);color:#fff;font-size:11px;line-height:1}.workspace-run-credit>i:first-child{color:#ffd15a;font-size:14px}.workspace-run-credit>i:nth-of-type(2){color:rgba(255,255,255,.7);font-size:12px}.workspace-run-credit-popover{position:absolute;z-index:30;right:0;bottom:calc(100% + 10px);display:none;min-width:190px;padding:13px 14px;border:1px solid #363b4a;border-radius:11px;background:#20232e;box-shadow:0 14px 30px rgba(0,0,0,.45);color:#fff;text-align:left;white-space:normal}.workspace-run:hover .workspace-run-credit-popover,.workspace-run:focus-visible .workspace-run-credit-popover{display:grid;gap:6px}.workspace-run-credit-popover strong,.workspace-run-credit-popover small{display:block}.workspace-run-credit-popover strong{font-size:12px}.workspace-run-credit-popover small{color:#aeb6c5;font-size:10px;line-height:1.4}
/* Zu wenige Credits. Die Warnung stand bis zum 24.08.2026 in einem zweiten
   Chip ueber der Fussleiste; der zeigte dieselbe Zahl doppelt und ist weg.
   Ohne sie waere der Knopf grau, ohne zu sagen warum. */
.workspace-run-credit-popover em{display:block;color:#ffbe4e;font-size:10px;font-style:normal;line-height:1.4}
.workspace-run-credit.insufficient{background:rgba(255,174,44,.16);box-shadow:inset 0 0 0 1px rgba(255,174,44,.55)}

.factory-credit-float{position:fixed;top:14px;right:118px;z-index:120;display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:8px 12px;border:1px solid #343949;border-radius:999px;background:rgba(20,22,30,.94);box-shadow:0 8px 24px rgba(0,0,0,.28);color:#e9edf5;backdrop-filter:blur(12px)}.factory-credit-float>i{color:#ffd15a;font-size:16px}.factory-credit-float>span{color:#9da6b7;font-size:11px;font-weight:700}.factory-credit-float>strong{color:#fff;font-size:12px;font-weight:850}@media(max-width:700px){.factory-credit-float{top:10px;right:72px;min-height:32px;padding:7px 9px}.factory-credit-float>span{display:none}}

.factory-credit-float{right:240px}@media(max-width:700px){.factory-credit-float{right:150px}}

.factory-top-actions>.factory-credit-float{position:static;top:auto;right:auto;z-index:auto;flex:none;min-height:34px;padding:7px 11px;box-shadow:none}.factory-top-actions>.factory-credit-float>span{font-size:10px}.factory-top-actions>.factory-credit-float>strong{font-size:11px}@media(max-width:700px){.factory-top-actions>.factory-credit-float{min-height:31px;padding:6px 8px}.factory-top-actions>.factory-credit-float>span{display:none}}
.factory-credit-float{cursor:pointer;font:inherit;text-align:left;appearance:none}

/* --- Der Credit-Anhänger gehört in den Knopf, nicht daneben ---------------
   Am 24.08.2026 im YouTube-Publisher gemeldet: der Anhänger stand rechts
   neben dem roten Knopf statt darin.

   Die Ursache liegt in der Fußleiste des Werkzeugfensters und ist dort
   behoben (ai-contentfactory-modal-v3.css): dort ist .workspace-actions ein
   Raster mit fester dritter Spalte, und der Knopf füllte sie mit width:100%.

   Hier greift der andere Fall: .workspace-actions als Flex-Container. Auch
   dort darf der Knopf nicht unter seinen Inhalt schrumpfen. */
.workspace-actions > .workspace-run,
.workspace-actions > .wizard-primary { flex: 0 0 auto; max-width: none; }

/* Die Gestaltung, die vier Werkzeuge dem Anhänger per Sonderregel gaben, ist
   jetzt der Normalfall - inklusive des goldenen Sterns. */
.workspace-run-credit { gap: 5px; padding: 4px 9px; background: rgba(12, 12, 20, .38); font-weight: 700; }
.workspace-run-credit > i:first-child { color: #ffd166; }
