/* Editorial treatment of retained Category 1–5 tools. Behavior stays in their modules. */
.workspace-active{--paper:#FFFDFC;--f-editorial:'Fraunces',Georgia,'Times New Roman',serif;--f-display:'Figtree','Segoe UI',system-ui,sans-serif;--ink-2:#706962;--ink-3:#706962;--ink-muted:var(--ink-2);--red-dark:#B93F38;--red-soft:#F7D2CC;--success:#24765D;--warning:#A86F20;--warning-ink:#96631C;--warn:#96631C;--bad:#B93F38}
.workspace-active .ws-grade[data-grade=hard]{color:var(--warning-ink)}
.workspace-active .ws-context a,.workspace-active .ws-context a:visited{color:var(--red-dark,var(--violet));text-underline-offset:3px}
.workspace-active .btn{border-radius:5px;box-shadow:none;font-weight:650}.workspace-active .btn.soft{background:var(--paper);border-color:var(--line);color:var(--ink)}.workspace-active .btn.soft:hover{background:var(--cream-deep,var(--surface-2))}.workspace-active .field{border-radius:5px;background:var(--paper);border-color:var(--line)}
.workspace-active .card,.workspace-active .stat,.workspace-active .setting,.workspace-active .fc-row,.workspace-active .fc-preview,.workspace-active .as-question-row,.workspace-active .as-small-card,.workspace-active .as-metrics>div,.workspace-active .as-question,.workspace-active .as-summary,.workspace-active .as-stimulus,.workspace-active .nq-card{border-radius:6px;box-shadow:none;background:var(--paper)}
.workspace-active .ws-legacy .title{font:650 clamp(30px,3vw,42px)/1.16 var(--f-display);letter-spacing:-1.3px}.workspace-active .ws-legacy .hero{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-top:3px solid var(--red,var(--violet));border-radius:6px}.workspace-active .ws-legacy .hero .blob,.workspace-active .ws-legacy .hero .blob2{display:none}.workspace-active .ws-legacy .hero p{color:var(--ink-muted,var(--ink-2))}.workspace-active .ws-legacy .deck,.workspace-active .ws-legacy .deckrow{border-radius:5px}.workspace-active .ws-legacy .chip{border-radius:4px;background:var(--paper);border-color:var(--line)}.workspace-active .ws-legacy .chip[aria-pressed=true]{background:var(--red-soft,var(--violet-soft));border-color:var(--red-dark,var(--violet));color:var(--red-dark,var(--violet))}
.workspace-active .create-page{width:100%}.workspace-active .create-heading{padding-bottom:26px;border-bottom:1px solid var(--line);margin-bottom:30px}.workspace-active .create-heading .title{font:500 clamp(34px,3.6vw,50px)/1.12 var(--f-editorial,'Fraunces',Georgia,serif);letter-spacing:-1.8px}.workspace-active .create-heading .muted{max-width:660px;line-height:1.65}.workspace-active .create-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:38px;align-items:start}.workspace-active .create-source,.workspace-active .create-config,.workspace-active .create-action{min-width:0}.workspace-active .create-source .card{margin-top:0!important;padding:28px}.workspace-active .create-source h2{font-size:1.35em;letter-spacing:-.035em}.workspace-active .create-source .btn.block{margin-top:20px}.workspace-active .create-config{border-left:1px solid var(--line);padding-left:28px}.workspace-active .create-config .opt-label:first-child{margin-top:0}.workspace-active .create-config .opt-label{margin-top:23px;font-size:.85em}.workspace-active .create-config .opt-label .muted{display:block;margin-top:4px;font-size:.82em}.workspace-active .create-config .chips{gap:6px}.workspace-active .create-config .chip{font-size:.77em;padding:8px 10px}.workspace-active .create-config .field{max-width:100%;width:100%;min-width:0}.workspace-active .create-action{grid-column:1/-1;margin-top:8px;border-top:1px solid var(--line);padding-top:26px}.workspace-active .create-action>.btn{max-width:420px;min-height:48px}.workspace-active .create-action .process{max-width:760px}.workspace-active .create-action .err{max-width:900px}
.workspace-active .fc-blank{background:var(--red-soft,var(--violet-soft));color:var(--red-dark,var(--violet))}.workspace-active .fc-banner,.workspace-active .as-banner,.workspace-active .nq-notice{background:var(--cream-deep,var(--surface-2));border-left-color:var(--red-dark,var(--violet))}.workspace-active .fc-rich pre{background:var(--cream,var(--surface-2));border-radius:4px}.workspace-active .as-option:has(input:checked){background:var(--red-soft,var(--violet-soft));border-color:var(--red-dark,var(--violet))}.workspace-active .as-deck-strip a{border-radius:4px}.workspace-active .as-metrics strong{font-family:var(--f-mono);font-weight:500;font-size:1.8rem}.workspace-active .as-metrics span{font-size:.78rem}.workspace-active .as-metrics>div{padding:20px}.workspace-active .nq-categories span,.workspace-active .nq-outcome{border-radius:4px}.workspace-active .as-feedback{border-radius:5px}.workspace-active .as-feedback[data-grade-status=not_graded],.workspace-active .as-feedback[data-grade-status=pending]{border-left-color:var(--warning,#A86F20)}
.workspace-active .fc-toolbar,.workspace-active .as-section-title,.workspace-active .as-session-bar{min-width:0}.workspace-active .fc-toolbar input,.workspace-active .fc-toolbar select{min-width:0;max-width:100%}.workspace-active .fc-toolbar input{flex:1 1 120px}.workspace-active .fc-card-list{gap:14px}.workspace-active .fc-row{padding:24px}.workspace-active .fc-row h3{line-height:1.5}.workspace-active .fc-row>.fc-toolbar{margin-top:0}.workspace-active .as-question-row h3{font-size:1.05rem}.workspace-active .as-heading>.as-actions{max-width:100%}.workspace-active .as-table-scroll,.workspace-active .as-chart-scroll{border-radius:4px}.workspace-active .as-session-bar{border-radius:5px}.workspace-active .as-item-nav button{border-radius:4px}.workspace-active .nq-page h1{font-size:clamp(29px,3vw,42px);letter-spacing:-.04em}
.workspace-active .fc-editor,.workspace-active .as-dialog,.workspace-active .nq-dialog,.workspace-active .source-dialog,.workspace-active .sheet{background:var(--paper);color:var(--ink);border-color:var(--line);border-radius:8px}.workspace-active .fc-editor::backdrop,.workspace-active .as-dialog::backdrop,.workspace-active .nq-dialog::backdrop{background:rgba(29,26,24,.48)}.workspace-active .fc-editor .fc-banner,.workspace-active .as-dialog .as-banner,.workspace-active .nq-dialog .nq-notice{background:var(--cream-deep,var(--surface-2));border-left-color:var(--red-dark,var(--violet))}.workspace-active .fc-editor .field,.workspace-active .as-dialog .field,.workspace-active .nq-dialog input,.workspace-active .nq-dialog select,.workspace-active .nq-dialog textarea{border-radius:5px}.workspace-active .fc-editor fieldset,.workspace-active .as-dialog fieldset,.workspace-active .nq-dialog fieldset,.workspace-active .as-preview,.workspace-active .fc-preview{border-radius:5px}
.workspace-active :is(.fc-editor,.as-root,.as-dialog,.nq-page,.nq-dialog,.nq-editor) :focus-visible{outline:3px solid var(--red-dark,var(--violet));outline-offset:3px}.workspace-active input[type=checkbox],.workspace-active input[type=radio]{accent-color:var(--red-dark,var(--violet))}.workspace-active .as-bar{fill:var(--red-dark,var(--violet))}.workspace-active .as-trend{stroke:var(--red-dark,var(--violet))}.workspace-active .ws-legacy .stat .v{font-size:28px}.workspace-active .ws-legacy .stats{gap:14px}.workspace-active .ws-legacy .ring{width:132px;height:132px}.workspace-active .ws-legacy .ring>div{width:108px;height:108px}.workspace-active .ws-legacy .stage{max-width:980px;margin-inline:auto;min-width:0}.workspace-active .ws-legacy .flip{min-height:340px;border-radius:5px}.workspace-active .ws-legacy .grades{max-width:980px;margin-inline:auto}
/* Keep the saved dark preference, using warm ink rather than the former purple environment. */
.workspace-active .create-source.card{padding:28px}.workspace-active .create-source-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:24px 0}.workspace-active .create-source-choices .btn{justify-content:flex-start;min-width:0;padding:14px 12px;min-height:50px;font-size:.82em}.workspace-active .create-source-choices .btn svg{width:19px;height:19px;flex:none}.workspace-active .create-source-empty{padding-top:22px;border-top:1px solid var(--line);margin-top:24px!important;line-height:1.7;font-size:.84em}.workspace-active .create-config>h2{font-size:.95em;letter-spacing:-.02em;margin-bottom:24px}.workspace-active .create-action p{margin-top:12px;line-height:1.6}
html[data-theme=dark] body.workspace-active{--cream:#231F1C;--cream-deep:#352E29;--paper:#2C2622;--surface:#2C2622;--surface-2:#352E29;--ink:#F6F0E6;--ink-muted:#BAB0A4;--ink-2:#BAB0A4;--ink-3:#AA9C90;--red:#F08B80;--red-dark:#F19A91;--red-soft:#52312D;--violet:#F19A91;--violet-soft:#52312D;--on-violet:#231F1C;--line:rgba(246,240,230,.19);--success:#7BBB9B;--warning:#D8AF6F;--warning-ink:#D8AF6F;--warn:#D8AF6F;--bad:#EF9188;--bad-soft:#51312D;--hero:#352E29}.workspace-active .ws-grade[data-grade=easy]{color:#356DA0}html[data-theme=dark] .workspace-active .ws-grade[data-grade=easy]{color:#8CB7DC}
@media(prefers-color-scheme:dark){html:not([data-theme=light]):not([data-theme=dark]) body.workspace-active{--cream:#231F1C;--cream-deep:#352E29;--paper:#2C2622;--surface:#2C2622;--surface-2:#352E29;--ink:#F6F0E6;--ink-muted:#BAB0A4;--ink-2:#BAB0A4;--ink-3:#AA9C90;--red:#F08B80;--red-dark:#F19A91;--red-soft:#52312D;--violet:#F19A91;--violet-soft:#52312D;--on-violet:#231F1C;--line:rgba(246,240,230,.19);--success:#7BBB9B;--warning:#D8AF6F;--warning-ink:#D8AF6F;--warn:#D8AF6F;--bad:#EF9188;--bad-soft:#51312D;--hero:#352E29}html:not([data-theme=light]):not([data-theme=dark]) .workspace-active .ws-grade[data-grade=easy]{color:#8CB7DC}}
@media(max-width:1099px){.workspace-active .create-layout{grid-template-columns:minmax(0,1fr) minmax(270px,340px);gap:28px}.workspace-active .create-config{padding-left:22px}.workspace-active .create-source .card{padding:24px}}
@media(max-width:900px){.workspace-active .create-layout{grid-template-columns:1fr}.workspace-active .create-config{border-left:0;border-top:1px solid var(--line);padding:26px 0 0}.workspace-active .create-config .chips{gap:8px}.workspace-active .create-action{grid-column:auto}.workspace-active .create-heading{margin-bottom:26px}.workspace-active .create-heading .title{font-size:39px}.workspace-active .as-library-layout{grid-template-columns:1fr}.workspace-active .as-sidebar{border-left:0;border-top:1px solid var(--line);padding:24px 0 0}}
@media(max-width:768px){.workspace-active .fc-row{padding:20px}.workspace-active .as-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-active .as-metrics>div{padding:16px 12px}.workspace-active .as-metrics strong{font-size:1.5rem}.workspace-active .as-metrics span{font-size:.7rem}.workspace-active .ws-legacy .stage{width:100%;padding:0}.workspace-active .ws-legacy .flip{min-height:300px}.workspace-active .create-source .card{padding:24px}.workspace-active .create-action>.btn{max-width:none}.workspace-active .create-config .opt-label{margin-top:20px}.workspace-active .ws-legacy .title{font-size:32px}.workspace-active .ws-legacy .stats{gap:8px}.workspace-active .ws-legacy .stat{padding:16px 10px}}
@media(max-width:430px){.workspace-active .create-heading .title{font-size:35px}.workspace-active .create-source .card{padding:22px}.workspace-active .fc-toolbar{gap:8px}.workspace-active .fc-toolbar>*{max-width:100%}.workspace-active .fc-row{padding:18px}.workspace-active .as-metrics strong{font-size:1.28rem}.workspace-active .as-metrics>div{padding:13px 10px}.workspace-active .as-metrics span{font-size:.67rem}.workspace-active .ws-legacy .stat .v{font-size:24px}.workspace-active .ws-legacy .stats{gap:6px}}
@media(prefers-reduced-motion:reduce){.workspace-active *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:900px){.workspace-active .create-source.card{padding:24px}}
@media(max-width:430px){.workspace-active .create-source.card{padding:22px}.workspace-active .create-source-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.workspace-active .create-source-choices .btn{padding:12px 10px;font-size:.76em}}
