.todo-filters{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:20px 0}.todo-filters label:first-child{flex:1 1 280px}.todo-filters label{display:grid;gap:6px;min-width:200px}.todo-filters input,.todo-filters select{width:100%}.optional-step-choice{display:flex;gap:10px;align-items:center;margin:12px 0}.optional-step-choice input{width:18px;height:18px;accent-color:#a68ee2}.optional-step-choice:last-of-type{margin-bottom:20px}
.studio .cv-actions,.studio .cv-import{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:18px 0}.cv-import label{display:grid;gap:6px;flex:1}.cv-entry{border:1px solid #66598b;border-radius:12px;padding:14px 16px;margin:12px 0;background:#ffffff05}.cv-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.cv-entry-fields{display:grid;grid-template-columns:1.3fr 1.3fr 1fr 1fr;gap:12px}.cv-field{display:grid;gap:6px;font-size:14px;min-width:0}.cv-field-comment{grid-column:1/4}.cv-field-status{grid-column:4;align-content:start}.cv-field :is(input,select,textarea){width:100%;min-width:0}.studio .cv-remove{background:none;border:0;color:#dfd4f1;font:inherit;font-size:13px;text-decoration:underline;cursor:pointer;padding:6px}.cv-entry[data-verified=verified]{border-color:#78b6a6}.cv-save{margin-top:22px!important;gap:12px!important}.cv-summary-row{display:grid;gap:5px;padding:14px 0;border-bottom:1px solid #ffffff22}.cv-summary-row p{margin:4px 0}.cv-verification{font-size:13px;color:#f3d291}.cv-verification.is-verified{color:#91d8be}@media(max-width:850px){.cv-entry-fields{grid-template-columns:1fr 1fr}.cv-field-comment{grid-column:1}.cv-field-status{grid-column:2}}@media(max-width:480px){.cv-entry-fields{grid-template-columns:1fr}.cv-field-comment,.cv-field-status{grid-column:auto}.todo-filters label{width:100%}}


.cv-downloads{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0 24px}.cv-downloads strong{flex-basis:100%}
.cv-import-notice:not(:empty){padding:16px 18px;border:1px solid #776696;border-radius:12px;line-height:1.65;margin:20px 0}
.cv-import-notice[data-state=success]{background:#214d43;color:#e2fff2}.cv-import-notice[data-state=error]{background:#5c283d;color:#ffedf1}

.studio .cv-import[hidden]{display:none!important}.cv-actions label{display:grid;gap:8px;min-width:0;max-width:100%}.cv-actions input[type=file]{max-width:100%;width:100%}.cv-actions [data-cv-upload-result]{max-width:100%;overflow-wrap:anywhere}

.studio .cv-result-toggle{display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;width:100%;padding:12px;border:1px solid #82739c;border-radius:10px;background:#ffffff08;color:#e5ddf2;font:inherit;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.studio .cv-result-toggle:hover{border-color:#cbb9ed;background:#ffffff10}
.studio .cv-result-toggle:focus-visible{outline:3px solid #cbb9ed;outline-offset:3px}
.studio .cv-result-toggle[aria-pressed=true]{background:#214d43;border-color:#75c6a3;color:#e3fff1}
.studio .cv-result-toggle[aria-pressed=true]:hover{background:#285c4f}
.cv-result-mark{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;border:1px solid #aa9cbf;font-size:17px;line-height:1;font-weight:800}
.cv-result-toggle[aria-pressed=true] .cv-result-mark{background:#8cdbb6;border-color:#8cdbb6;color:#153e31}
@media(prefers-reduced-motion:reduce){.studio .cv-result-toggle{transition:none}}

/* Focused CV review: one expandable row at a time. */
.studio .cv-workspace{padding:22px 24px}.cv-overview{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:20px}.cv-overview [data-cv-save-status]{margin-left:auto;font-size:13px;color:#d0c5e7;max-width:65%}
.studio .cv-inline{border:0;background:none;color:#e1d4ff;padding:8px 4px;font:inherit;font-size:14px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.cv-inline:focus-visible{outline:2px solid #cfbbed;outline-offset:2px}
.cv-filebar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#ffffff06;border:1px solid #ffffff22;border-radius:12px;padding:12px 16px}.cv-filebar label{display:flex;align-items:center;gap:12px;flex:1;min-width:160px;font-weight:600}.cv-filebar select{width:100%;min-width:0}.cv-filebar [data-cv-download]{white-space:nowrap}
.cv-upload{margin:12px 0}.cv-upload>summary{font-size:14px;color:#d8c9ef;cursor:pointer;padding:6px 0}.cv-ai-note{font-size:13px;color:#cfc5e2;margin:8px 0 20px;line-height:1.6}
.studio .cv-group{margin:28px 0}.studio .cv-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.studio .cv-group-heading h2{font-size:18px;padding:0;margin:0;border:0;background:none;line-height:1.4}
.studio .cv-compact{padding:0;margin:8px 0;border:1px solid #ffffff24;background:#ffffff03;overflow:clip}.studio .cv-compact[open]{border-color:#c0aadf;background:#ffffff06}
.cv-row-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;cursor:pointer;list-style:none}.cv-row-heading::-webkit-details-marker{display:none}.cv-row-heading::after{content:'+';font-size:20px;color:#d5c6ed}.cv-compact[open]>.cv-row-heading::after{content:'−'}.cv-row-heading:focus-visible{outline:2px solid #d7c5f2;outline-offset:-3px}.cv-row-text{display:grid;gap:5px;min-width:0;flex:1}.cv-row-name{font-size:15px;overflow-wrap:anywhere}.cv-row-meta{font-size:13px;color:#d1c7e3;overflow-wrap:anywhere}.cv-row-marks{display:grid;justify-items:end;gap:6px;font-size:13px;flex-shrink:0}.cv-row-result{color:#d6cce6}.cv-compact[data-verified=verified] .cv-row-result{color:#94e2bb;font-weight:600}.cv-row-pending{color:#f2d690;border:1px solid #a48a54;border-radius:99px;padding:3px 9px;font-size:12px}
.cv-entry-body{padding:16px;border-top:1px solid #ffffff20}.cv-row-actions{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-top:14px}.cv-row-menu{margin-left:auto;font-size:13px}.cv-row-menu>summary{cursor:pointer;padding:8px;color:#cbbfdc}.cv-row-menu[open]{padding:4px 8px;background:#211744;border:1px solid #786692;border-radius:8px}.cv-row-menu button{display:block}
.cv-finish{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-top:20px;border-top:1px solid #ffffff22}.cv-finish .hint{margin:0;max-width:60%;font-size:13px}.cv-workspace [hidden]{display:none!important}
@media(max-width:650px){.studio .cv-workspace{padding:16px}.cv-overview [data-cv-save-status]{margin-left:0;max-width:100%}.cv-filebar{gap:8px}.cv-filebar label{flex-basis:100%}.cv-row-heading{gap:8px;flex-wrap:wrap}.cv-row-text{flex-basis:65%}.cv-row-marks{justify-items:start;flex-shrink:1}.cv-row-heading::after{margin-left:auto}.cv-group-heading{flex-wrap:wrap}.cv-finish{align-items:stretch;flex-direction:column;gap:14px}.cv-finish .hint{max-width:100%}}

.studio :is(dialog.case-workspace,dialog#board-dialog) .cv-row-heading{font-weight:400}
.studio :is(dialog.case-workspace,dialog#board-dialog) .cv-row-meta{color:#d1c7e3;font-weight:400;font-size:14px}
.studio :is(dialog.case-workspace,dialog#board-dialog) .cv-row-pending{color:#f2d690;font-weight:400}
.studio :is(dialog.case-workspace,dialog#board-dialog) .cv-compact[data-verified=verified] .cv-row-result{color:#b2f0cf;background:#214d43;border:1px solid #559b7c;border-radius:99px;padding:4px 10px;font-weight:600}
.studio :is(dialog.case-workspace,dialog#board-dialog) .cv-result-toggle[aria-pressed=true] .cv-result-mark{color:#153e31}
.studio :is(dialog.case-workspace,dialog#board-dialog) .cv-result-toggle[aria-pressed=true] .cv-result-text{color:#e3fff1}

/* Match the platform's secondary buttons; file controls stay on the blue surface. */
.studio .cv-workspace .cv-action{font-size:14px;min-height:38px;padding:9px 13px;text-decoration:none;white-space:normal}
.studio .cv-workspace .cv-row-menu .cv-action{margin:6px 0;width:100%;text-align:left}
.studio .cv-workspace .cv-actions label{flex:1 1 240px}
.studio :is(dialog.case-workspace,dialog#board-dialog):is(.case-workspace,#board-dialog) .cv-workspace form[data-cv-editor] .cv-upload input[type=file],.studio .cv-workspace input[type=file]{background:#2c2057!important;color:#f1e9ff!important;border:1px solid #8e79ae!important;border-radius:8px;padding:8px;color-scheme:dark}
.studio .cv-workspace input[type=file]::file-selector-button{background:#49376f;color:#f2eaff;border:1px solid #a48ac5;border-radius:6px;padding:8px 12px;margin-right:12px;font:inherit;cursor:pointer}
.studio .cv-workspace input[type=file]::file-selector-button:hover{background:#594381}
.studio .cv-workspace input[type=file]:focus-visible{outline:2px solid #ceb6fa;outline-offset:3px}

/* One current CV with three actions. */
.cv-file-identity{display:grid;gap:4px;margin-right:auto}.cv-file-identity .hint{margin:0;font-size:13px}.cv-file-buttons{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
@media(max-width:650px){.cv-file-identity{flex-basis:100%}.cv-file-buttons{width:100%;gap:8px}}

.studio .cv-workspace .cv-delete{margin-left:auto;border-color:#b388a4;color:#f4d7e4}
.studio .cv-workspace .cv-delete:hover{background:#ffffff12;border-color:#efb5ce}
.studio :is(dialog.case-workspace,dialog#board-dialog) .cv-workspace textarea[data-cv-key=comment],.studio .cv-workspace textarea[data-cv-key=comment]{min-height:0!important;height:auto;overflow:hidden;resize:none;box-sizing:border-box;line-height:1.5}

.studio .cv-row-heading::after,.studio .cv-compact[open]>.cv-row-heading::after{content:none}
.studio .cv-compact:hover,.studio .cv-compact:focus-within{border-color:#fff}
.cv-contacts{border-top:1px solid #ffffff24;margin-top:18px;padding-top:18px;display:grid;gap:12px}.cv-contacts>.btn{justify-self:start}.cv-contacts p{margin:0}.cv-contact{display:grid;grid-template-columns:1fr auto;gap:7px 18px;padding:14px;border:1px solid #ffffff30;border-radius:10px}.cv-contact>span,.cv-contact>small,.cv-contact>p{grid-column:1}.cv-contact>button{grid-column:2;grid-row:1/4;align-self:center}.cv-contact>a{color:#e1d4ff;text-decoration:underline}.cv-contact small{color:#dfc8a0}.cv-test-info{font-size:13px;color:#d1c7e3}.cv-test-sent{background:#214d43;border:1px solid #559b7c;color:#e3fff1;padding:12px;border-radius:8px}
@media(max-width:650px){.cv-contact{grid-template-columns:1fr}.cv-contact>button{grid-column:1;grid-row:auto;justify-self:start}}

/* The case panel already provides the outer frame. */
.studio :is(dialog.case-workspace,dialog#board-dialog) .case-stage-body .cv-workspace{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;border-radius:0}

/* Compact expanded CV entries. */
.studio .cv-workspace .cv-compact[open]{border-color:#fff}
.cv-contact-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.cv-entry-body .cv-contacts{margin-top:12px;padding-top:12px;gap:10px}
.cv-contacts>p:empty,.cv-verification-history:empty{display:none}
.cv-entry-fields>.cv-row-actions{margin:0;align-self:end;justify-content:flex-end}
@media(min-width:851px){.cv-entry-fields>.cv-field-comment{grid-column:1/3}.cv-entry-fields>.cv-field-status{grid-column:3}.cv-entry-fields>.cv-row-actions{grid-column:4}}
@media(max-width:850px){.cv-entry-fields>.cv-row-actions{grid-column:1/-1}}

/* Override the modal-wide border rule for the active CV entry. */
.studio :is(dialog.case-workspace,dialog#board-dialog) .cv-workspace details.cv-compact[open]{border-color:#fff}
/* Guidance is separate from verified status and does not make rows mandatory. */
.studio .cv-workspace .cv-guidance-intro{padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:rgba(183,163,227,.08);margin-bottom:18px}
.studio .cv-guidance-intro p{margin:6px 0 0;line-height:1.6;font-size:14px}
.studio .cv-workspace .cv-row-marks{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.studio .cv-workspace .cv-guidance-badge{display:inline-flex;border:1px solid #82739e;border-radius:20px;padding:5px 10px;font-size:12px;line-height:1.35;font-weight:500;color:#d6cee7;background:transparent;white-space:normal;text-align:right}
.studio .cv-workspace .cv-guidance-badge[data-kind=recommended]{background:#4c3c70;color:#f3ebff;border-color:#b39bd8}
.studio .cv-workspace .cv-guidance-badge[data-kind=optional]{color:#bcb2ce;border-color:#625674}
.studio .cv-workspace .cv-guidance-badge[data-kind=uncertain]{border-style:dashed}
.studio .cv-workspace .cv-entry-body [hidden]{display:none!important}
.studio .cv-workspace .cv-entry-body>.cv-field-status{display:flex;gap:12px;align-items:center;margin:8px 0 12px}
.studio .cv-workspace .cv-entry-body>.cv-field-status>span{display:none}
.studio .cv-workspace .cv-row-actions{display:flex;gap:10px;align-items:center;margin:12px 0;flex-wrap:wrap}
.studio .cv-workspace .cv-row-actions .cv-delete{margin-left:auto}
.studio .cv-workspace .cv-read-comment{white-space:pre-wrap;margin:0 0 12px;color:#d5cbe5;line-height:1.6}
.studio .cv-workspace .cv-entry-fields{margin:14px 0}
.studio .cv-workspace .cv-entry[data-verified=verified] .cv-row-result{color:#b8e4c8}
@media(max-width:650px){.studio .cv-workspace .cv-row-heading{flex-direction:column;align-items:flex-start;gap:12px}.studio .cv-workspace .cv-row-marks{align-items:flex-start}.studio .cv-workspace .cv-guidance-badge{text-align:left}}

.studio .cv-workspace .cv-entry-body>.cv-field-status .cv-result-toggle{width:auto;min-height:40px;padding:8px 12px;font-size:14px}
@media(min-width:651px){.studio .cv-workspace .cv-entry-body{display:grid;grid-template-columns:1fr auto;gap:0 14px}.studio .cv-workspace .cv-entry-body>.cv-field-status{grid-column:1;margin:0}.studio .cv-workspace .cv-entry-body>.cv-row-actions{grid-column:2;grid-row:2;margin:0;justify-content:flex-end}.studio .cv-workspace .cv-entry-body>.cv-read-comment{grid-column:1/-1;grid-row:1}.studio .cv-workspace .cv-entry-body>.cv-field-status{grid-row:2}.studio .cv-workspace .cv-entry-body>.cv-entry-fields,.studio .cv-workspace .cv-entry-body>.cv-contacts{grid-column:1/-1}}

/* Explicit rows keep contacts below the toolbar when the comment is empty. */
@media(min-width:651px){
.studio .cv-workspace .cv-entry-body>.cv-entry-fields{grid-row:3}
.studio .cv-workspace .cv-entry-body>.cv-contacts{grid-row:4}
}
.studio .cv-workspace .cv-entry-body>.cv-contacts{border-top:0;margin-top:14px;padding-top:0}
.studio .cv-workspace .cv-contact-actions{align-items:center;gap:10px}
.studio .cv-workspace .cv-contact-actions>.btn{margin:0;min-height:40px}

/* Editing CV facts has its own focused controls; verification returns on completion. */
.studio .cv-workspace .cv-entry[data-editing=true]>.cv-entry-body>.cv-field-status,
.studio .cv-workspace .cv-entry[data-editing=true]>.cv-entry-body>.cv-contacts,
.studio .cv-workspace .cv-entry[data-editing=true]>.cv-entry-body>.cv-read-comment{display:none!important}

/* Keep the completion action at the right, away from removal. */
.studio .cv-workspace .cv-row-actions .cv-delete{margin-left:0}
/* Reserve the full label in both states, including wrapping on small screens. */
.studio .cv-workspace .cv-result-text{display:grid}
.studio .cv-workspace .cv-result-text>span{grid-area:1/1}
.studio .cv-workspace .cv-result-reserve{visibility:hidden;pointer-events:none}

.studio .cv-manual-editor{grid-column:1/-1;clear:both;padding:20px;margin:16px 0;border:1px solid #a99bc4;border-radius:12px;background:#251b4c}.studio .cv-manual-field{display:grid;gap:8px;margin:14px 0}.studio .cv-manual-field :is(input,select,textarea){width:100%;box-sizing:border-box;background:#302050;color:#f4efff;border:1px solid #a99bc4;border-radius:8px;padding:10px}.studio .cv-manual-summary{color:#a9d7bc;font-size:14px;grid-column:1/-1}.studio .cv-manual-summary[hidden]{display:none}

.studio .cv-entry-body:has(.cv-manual-editor)>.cv-row-actions{display:none}

.studio .cv-entry[data-verified="verified"] .cv-contact-actions > .btn,.studio .cv-entry[data-verified="verified"]>.cv-entry-body>.cv-row-actions{display:none!important}

.studio .cv-row-text > .cv-manual-summary{display:block;margin-top:6px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}.studio .cv-row-text > .cv-manual-summary[hidden]{display:none}

/* The header is the place to edit CV facts; verified rows retain their result. */
.studio .cv-workspace .cv-entry .cv-edit-heading{display:none}
.studio .cv-workspace .cv-entry[open]:not([data-verified=verified]):not([data-editing=true]) .cv-edit-heading{display:inline-flex}
.studio .cv-workspace .cv-entry[open]:not([data-verified=verified]) > summary :is(.cv-guidance-badge,.cv-row-result),
.studio .cv-workspace .cv-entry[data-verified=verified] .cv-guidance-badge{display:none}
.studio .cv-workspace .cv-entry .cv-edit-heading[hidden]{display:none!important}
.studio .cv-workspace .cv-entry-body > .cv-row-actions:not(:has(button:not([hidden]))){display:none}

.studio .cv-workspace .cv-contact-actions{display:flex;flex-wrap:wrap;width:100%}
.studio .cv-workspace .cv-contact-actions > .cv-field-status{margin:0 0 0 auto;display:flex;align-items:center}
.studio .cv-workspace .cv-contact-actions > .cv-field-status > span{display:none}
.studio .cv-workspace .cv-contact-actions .cv-result-toggle{width:auto;min-height:40px;padding:8px 12px;font-size:14px}
.studio .cv-workspace .cv-contacts:has(.cv-manual-editor) > .cv-contact-actions > .btn{display:none}
@media(max-width:650px){.studio .cv-workspace .cv-contact-actions > .cv-field-status{margin-left:auto;max-width:100%}}
