
html body:not([data-qx-theme="dark"]) :is(.gq-editor-workspace,.gq-review-workspace,[data-screen-label="Quiz Player"]){
 --bg:#f3f8ff;--card:#fff;--border:#d6e3f5;--row:#f4f8ff;--row2:#e6eef9;--chip:#edf4ff;--track:#dbe7f7;
 --text:#12244a;--text2:#456184;--muted:#526b8b;--faint:#607595;--vio:#2468ff;--vioSoft:#e8f0ff;--vioSoft2:#edf4ff;--vioSoft3:#edf4ff;
 color-scheme:light;color:var(--text);
}
/* Use the application's native dark palette; pastel compatibility selectors
   must not turn a dark workspace back into a light surface. */
body[data-qx-theme="dark"] :is(.gq-editor-workspace,.gq-review-workspace,[data-screen-label="Quiz Player"]){
 --bg:#0A101E;--card:#1B2942;--border:#31425F;--row:#22314D;--row2:#293A58;--chip:#273754;--track:#33455F;
 --text:#E9EFF8;--text2:#C0CCDD;--muted:#9AACC6;--faint:#8496AF;--vio:#A5DEFF;--vioSoft:#2A4470;--vioSoft2:#233761;--vioSoft3:#2A4470;
 --gq-line:var(--border);--gq-blue:var(--vio);--gq-panel:var(--card);color-scheme:dark;color:var(--text);
}
body[data-qx-theme="dark"] :is(.gq-editor-workspace,.gq-review-workspace,.gq-journey){--gq-line:var(--border);--gq-blue:var(--vio);--gq-panel:var(--card);color:var(--text)}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-workspace .qs-col,.gq-review-workspace .qx-cfnavin,.gq-review-workspace [data-region="review-question-editor"],.gq-review-workspace .qx-cfview,.gq-library .qx-qrow){background:var(--card)!important;border-color:var(--border)!important;box-shadow:none!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-workspace,.gq-review-workspace,.gq-journey) :is(input,textarea,select){color:var(--text)!important;caret-color:var(--text)}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-workspace,.gq-review-workspace,.gq-journey) :is(input,textarea)::placeholder{color:var(--muted)!important;opacity:1}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-workspace,.gq-review-workspace) :is([data-field="quiz-studio.prompt"],[data-field="quiz-studio.option.text"],#cf-rev-prompt,.rv-opt-text textarea){background:transparent!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-workspace,.gq-review-workspace) :is([data-action="quiz-studio-question-select"],[data-action="review-intrebare-selecteaza"],li[data-option-id],.rv-opt-row){background:var(--card)!important;border-color:var(--border)!important;color:var(--text)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-workspace,.gq-review-workspace) :is([data-action="quiz-studio-question-select"][aria-current="true"],[data-action="review-intrebare-selecteaza"][aria-current="true"],li[data-option-id]:has([aria-pressed="true"]),.rv-opt-row:has(input:checked)){background:var(--vioSoft2)!important;border-color:var(--vio)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-workspace,.gq-review-workspace) :is(.gq-categories button,[role="group"][aria-label="Filtre"] button){background:var(--row)!important;border-color:var(--border)!important;color:var(--text)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-workspace,.gq-review-workspace) :is(.gq-categories button[aria-pressed="true"],[role="group"][aria-label="Filtre"] button[aria-pressed="true"]){background:var(--vioSoft2)!important;border-color:var(--vio)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-category-count,.gq-editor-category-count,.gq-list-heading b,.gq-question-thumb,.gq-answer-key>span){background:var(--row2)!important;color:var(--text2)!important;border-color:var(--border)!important}
body[data-qx-theme="dark"] #dc-root .gq-answer-key:has(input:checked)>span{background:#2468ff!important;color:white!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-tabs,.gq-editor-answer-mode [role="radiogroup"],.gq-answer-mode [role="group"]){background:var(--row)!important;border-color:var(--border)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-tabs button,.gq-editor-answer-mode button,.gq-answer-mode button){color:var(--text2)!important;background:transparent!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-tabs button[aria-selected="true"],.gq-editor-answer-mode button[aria-checked="true"],.gq-answer-mode button[aria-pressed="true"]){background:var(--card)!important;color:var(--text)!important;border-color:var(--border)!important;box-shadow:none!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-workspace,.gq-review-workspace) :is([data-action="quiz-studio-option-add"],[data-action="review-varianta-adauga"],.gq-editor-image-tile,.gq-editor-settings,.gq-extraction-card,.gq-source-tools>summary,.gq-review-duplicates,.gq-source-header,.gq-review-counts>span,.gq-question-extras details){background:var(--row)!important;color:var(--text2)!important;border-color:var(--border)!important}
body[data-qx-theme="dark"] #dc-root .gq-review-workspace .gq-image-actions :is(button[data-action="review-imagine-selecteaza-zona"],button[data-action="review-imagine-lipeste"],label[for="rv-img-file"],label[for="rv-img-cam"]){background:var(--row)!important;color:var(--text2)!important;border-color:var(--border)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-answer-mode>b,.gq-image-actions h3,.gq-question-extras summary,.gq-image-actions [data-action="review-imagine-captureaza-ecranul"]){color:var(--text2)!important}
body[data-qx-theme="dark"] #dc-root .gq-question-extras{border-color:var(--border)!important}
body[data-qx-theme="dark"] #dc-root .gq-review-workspace [aria-label="Controalele vizualizatorului"] button{background:var(--row)!important;color:var(--text2)!important;border-color:var(--border)!important}
body[data-qx-theme="dark"] #dc-root .gq-review-workspace [aria-label="Controalele vizualizatorului"] button:hover{background:var(--row2)!important;border-color:var(--vio)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-workspace,.gq-review-workspace) :is([data-action="quiz-studio-option-more"],.rv-opt-more>button,.gq-nav-icon,.gq-source-title,.gq-extraction-toggle,.gq-extraction-row,.gq-extraction-row b,.gq-extraction-source){color:var(--vio)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-workspace,.gq-review-workspace) :is(.gq-extraction-row p,.gq-extraction-toggle small,.gq-original-preview p,.gq-image-description,.gq-review-tools,.gq-editor-tools){color:var(--muted)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-extraction-body,.gq-editor-tools,.gq-answer-mode,.gq-original-toolbar input){border-color:var(--border)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-extraction-icon,.gq-extraction-source){background:var(--vioSoft2)!important;border-color:var(--border)!important}
body[data-qx-theme="dark"] #dc-root .gq-extraction-warning{background:var(--amberSoft);color:#FCD28B}
body[data-qx-theme="dark"] #dc-root :is(.gq-rename-form,.gq-review-import-body,.gq-source-tools[open],.gq-review-tools[open],.gq-review-savebar,.gq-review-workspace .qx-cfmob,.gq-editor-actions>div){background:var(--card)!important;color:var(--text)!important;border-color:var(--border)!important;box-shadow:none!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-rename>summary,.gq-rename-form p,.gq-original-toolbar,.gq-original-toolbar button,.gq-original-toolbar input){color:var(--text2)!important}
body[data-qx-theme="dark"] #dc-root .gq-original-toolbar input{background:var(--row)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-source-empty,.gq-editor-source-empty b,.gq-editor-source-empty p,.gq-editor-source-empty small){background:var(--row)!important;color:var(--text2)!important;border-color:var(--border)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-editor-source-empty b,.gq-source-title,.gq-list-heading,.gq-journey h1){color:var(--text)!important}
body[data-qx-theme="dark"] #dc-root .gq-page-rail button{background:var(--row)!important;color:var(--text2)!important;border-color:var(--border)!important}
body[data-qx-theme="dark"] #dc-root .gq-page-rail button[aria-current="true"]{background:var(--vioSoft2)!important;color:var(--vio)!important;border-color:var(--vio)!important}
body[data-qx-theme="dark"] #dc-root .gq-editor-workspace [role="radiogroup"]{background:var(--row)!important;border-color:var(--border)!important}
body[data-qx-theme="dark"] #dc-root .gq-editor-workspace [role="radio"]{color:var(--text2)!important;background:transparent!important}
body[data-qx-theme="dark"] #dc-root .gq-editor-workspace [role="radio"][aria-checked="true"]{color:var(--text)!important;background:var(--card)!important;border-color:var(--vio)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-create-hub .qx-create3>button,.gq-create-file .qx-cfpick>button){background:var(--card)!important;border-color:var(--border)!important;color:var(--text)!important;box-shadow:none!important}
body[data-qx-theme="dark"] #dc-root .gq-create-hub .qx-create3 [data-action="creeaza-din-fisier"]{background:var(--card)!important;border-color:var(--vio)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-practice,.gq-create-file .qx-cfsteps,.gq-library .qx-qcard>div:has([data-action="quiz-incepe"]) button){background:var(--row)!important;border-color:var(--border)!important;color:var(--text2)!important}
body[data-qx-theme="dark"] #dc-root .gq-library .qx-qcard>div:has([data-action="quiz-incepe"]) [data-action="quiz-incepe"]{background:#2468ff!important;color:white!important;border-color:#2468ff!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-create-hub>p,.gq-create-file>div:has(h1)>div>p,.gq-choice-description,.gq-file-limit,.gq-file-formats,.gq-practice>summary){color:var(--muted)!important}
body[data-qx-theme="dark"] #dc-root :is(.gq-choice-arrow,.gq-file-formats>summary::before,.gq-link-art){color:var(--vio)!important}
body[data-qx-theme="dark"] #dc-root .gq-journey-art{mix-blend-mode:normal}
body[data-qx-theme="dark"] #dc-root .gq-library .qx-qcard>div:has([data-action="quiz-incepe"]){border-color:var(--border)!important}
/* The modal is attached to body, outside dc-root. Keep only its document pages white. */
body #dc-root [data-screen-label="Quiz Player"] .qx-popts>[data-feedback="correct"]{background:var(--vioSoft2)!important;color:var(--text)!important;border-color:var(--vio)!important;box-shadow:none!important}
body #dc-root [data-screen-label="Quiz Player"] .qx-popts>[data-feedback="wrong"]{background:color-mix(in srgb,#E8604C 12%,var(--card))!important;color:var(--text)!important;border-color:#E8604C!important;box-shadow:none!important}
body #dc-root [data-screen-label="Quiz Player"] [data-action="player-verifica"]{color:var(--vio)!important}
body #dc-root [data-screen-label="Quiz Player"] [data-action="player-verifica"][data-verified="true"]{background:transparent!important;color:var(--text2)!important;border-color:transparent!important;opacity:1!important;cursor:default!important}
body #dc-root [data-screen-label="Quiz Player"] .qx-popts{padding:3px 0;scrollbar-gutter:stable;scroll-padding:6px}
body #dc-root [data-screen-label="Quiz Player"] .qx-pnav{box-sizing:border-box;border-radius:14px 14px 0 0;gap:8px!important}
@media(max-width:700px){body #dc-root [data-screen-label="Quiz Player"] .qx-pnav button{padding:11px 10px!important;font-size:12px!important}body #dc-root .gq-player-counter-label{display:none}}
body:has(.gq-journey) .qx-hamb{display:none!important}
body #dc-root .gq-import-result{color:var(--text)}
body #dc-root .gq-import-count{background:var(--row)!important;border:1px solid var(--border)!important;border-radius:12px!important;color:var(--text)!important;box-shadow:none!important;min-width:140px}
body #dc-root .gq-import-count span{color:inherit!important}
body #dc-root .gq-import-count[data-import-status="Gata de joc"]{background:var(--vioSoft2)!important;border-color:var(--vio)!important}
body #dc-root .gq-import-count[data-import-status="Respinse"]{border-color:#E8604C!important}
body #dc-root .gq-import-check{background:var(--vioSoft2)!important;color:var(--vio)!important}
body #dc-root .gq-import-result [data-action="material-deschide"]{display:inline-flex;align-items:center;justify-content:center;gap:8px}
body #dc-root .gq-import-result [data-action="material-deschide"] svg{width:18px;height:18px}
body #dc-root .gq-import-result .qx-cfacts{align-items:center}
body #dc-root .gq-edit-prompt{display:inline-flex!important;align-items:center;gap:6px;color:var(--vio)!important;font-size:12px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;min-height:32px;margin:0 0 4px!important;cursor:text}
body #dc-root .gq-edit-prompt svg{width:16px;height:16px;flex:none}
body #dc-root .gq-edit-prompt[aria-disabled="true"]{opacity:.5;pointer-events:none}
body:not([data-qx-theme="dark"]) .gq-crop-status{color:#526b90!important}
body[data-qx-theme="dark"] .gq-crop-dialog{background:var(--bg)!important;color:var(--text)!important;border-color:var(--border)!important}
body[data-qx-theme="dark"] :is(.gq-crop-toolbar,.gq-crop-status){background:var(--card)!important;color:var(--text2)!important}
body[data-qx-theme="dark"] .gq-crop-dialog :is(button,input){background:var(--row)!important;color:var(--text)!important;border-color:var(--border)!important}
body[data-qx-theme="dark"] .gq-crop-dialog :is(button[aria-pressed="true"],button[data-add]){background:#2468ff!important;color:white!important;border-color:#2468ff!important}
/* Preserve the existing shell controls and their dialogs, rather than copying handlers. */
.gq-shell-brand{display:none;align-items:center;justify-content:center;gap:5px;color:var(--text);font-size:20px;letter-spacing:-.6px;white-space:nowrap}
.gq-shell-brand img{position:static!important;width:30px!important;height:30px!important;object-fit:contain}
.gq-shell-brand .qx-brandword{font-size:20px!important}
body:has(.gq-received):has(.qx-topbar) :is(.gq-share-brandbar,.qx-hamb){display:none!important}
body:has(.gq-received):not(:has(.qx-topbar)) .gq-share-menu{display:none!important}
body:has(:is(.gq-journey,.gq-received,.gq-editor-workspace,.gq-review-workspace)) .qx-topbar>.qx-burger{display:inline-flex!important}
body:has(:is(.gq-editor-workspace,.gq-review-workspace)) .qx-topbar{display:flex!important;position:fixed!important;top:calc(12px + var(--qx-safe-top,0px));left:16px;right:16px;height:44px;box-sizing:border-box;padding-top:0!important;gap:8px!important;margin:0!important;z-index:40}
body:has(:is(.gq-editor-workspace,.gq-review-workspace)):has(.qx-msgpanel) .qx-topbar{z-index:90}
body:has(:is(.gq-editor-workspace,.gq-review-workspace)) .qx-topbar :is(.qx-topsearch,.qx-tipwrap:has(.qx-back)){display:none!important}
body .gq-editor-workspace,#dc-root .gq-editor-workspace,body .gq-review-workspace,#dc-root .gq-review-workspace{top:calc(76px + var(--qx-safe-top,0px))!important}
body:has(:is(.gq-editor-workspace,.gq-review-workspace)) .qx-hamb{display:none!important}
body :is(.gq-editor-menu,.gq-review-menu){display:none!important}
@media(min-width:770px){body[data-nav-open]:has(:is(.gq-editor-workspace,.gq-review-workspace)) .qx-topbar{left:252px}}
@media(max-width:699px){
 body:has(:is(.gq-journey,.gq-received)):not(:has(.gq-review-workspace)) .qx-topbar{display:grid!important;grid-template-columns:44px 44px minmax(0,1fr) 44px 44px;gap:8px!important;margin-bottom:16px!important}
 body:has(:is(.gq-journey,.gq-received)):not(:has(.gq-review-workspace)) .gq-shell-brand{display:flex;grid-column:3;grid-row:1}
 body:has(:is(.gq-journey,.gq-received)):not(:has(.gq-review-workspace)) .qx-topbar>.qx-burger{grid-column:1;grid-row:1}
 body:has(:is(.gq-journey,.gq-received)):not(:has(.gq-review-workspace)) .qx-topbar>.qx-tipwrap:has(.qx-back){grid-column:2;grid-row:1;margin-right:0!important}
 body:has(:is(.gq-journey,.gq-received)):not(:has(.gq-review-workspace)) .qx-topbar>.qx-tipwrap:has([data-action="comuta-tema"]){grid-column:4;grid-row:1}
 body:has(:is(.gq-journey,.gq-received)):not(:has(.gq-review-workspace)) .qx-topbar>div:last-child{grid-column:5;grid-row:1}
 body:has(:is(.gq-journey,.gq-received)):not(:has(.gq-review-workspace)) .qx-topbar>.qx-topsearch{grid-column:1/4;grid-row:2;display:block!important;width:100%!important;margin:0!important}
 body:has(:is(.gq-journey,.gq-received)):not(:has(.gq-review-workspace)) .qx-topbar>div:has(>[data-action="deschide-mesaje"]){grid-column:4;grid-row:2}
 body:has(:is(.gq-journey,.gq-received)):not(:has(.gq-review-workspace)) .qx-topbar>:has([data-action="deschide-notificari"]){grid-column:5;grid-row:2}
 body:has(:is(.gq-editor-workspace,.gq-review-workspace)) .qx-topbar{left:10px;right:10px;top:calc(8px + var(--qx-safe-top,0px));gap:4px!important}
 body .gq-editor-workspace,#dc-root .gq-editor-workspace,body .gq-review-workspace,#dc-root .gq-review-workspace{top:calc(64px + var(--qx-safe-top,0px))!important}
}
