/* Candidate workspace: scoped so public reading and sign-in pages stay compact. */
.candidate-area .container:not(.narrow):not(.auth-panel), .candidate-area .container.profile-workspace {
    width:calc(100% - clamp(2rem,5vw,6rem)); max-width:1600px;
}
.profile-workspace-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:1.5rem; align-items:start; }
.profile-workspace-grid > *, #profile-content { min-width:0; }
.profile-workspace #profile-content:focus { outline:none; }
.profile-workspace h2[tabindex="-1"]:focus { outline:2px solid #1589c933; outline-offset:5px; border-radius:4px; }
.profile-workspace .character-limit { font-size:.85rem; margin-top:.2rem; }
.profile-navigation-panel { border:1px solid var(--ch-line); border-radius:16px; background:#faf8fc; }
.profile-progress { padding:1rem; display:grid; gap:.5rem; border-bottom:1px solid var(--ch-line); }
.profile-progress strong { font-size:.95rem; }
.profile-progress progress { width:100%; height:.55rem; accent-color:var(--ch-primary); }
.profile-progress small { line-height:1.5; }
.profile-section-menu summary { padding:1rem; cursor:pointer; color:var(--ch-primary); }
.profile-section-menu summary strong { display:block; color:var(--ch-ink); margin-top:.3rem; }
.profile-menu-hint { display:block; font-size:.85rem; margin-top:.3rem; }
.profile-section-list { margin:0; padding:.5rem; list-style:none; display:grid; gap:.35rem; }
.profile-section-list a { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.3rem .65rem; align-items:center; padding:.7rem; min-height:48px; color:var(--ch-ink); text-decoration:none; border:1px solid transparent; border-radius:10px; }
.profile-section-list a:hover { background:#eee7f3; }
.profile-section-list a[aria-current=step] { background:#fff; border-color:var(--ch-primary); box-shadow:0 0 0 2px #55206f12; }
.profile-section-list .step-state { grid-column:2; }
.profile-section-list .state-missing { color:#596278; background:#edf0f5; }
.profile-workspace .surface { margin-top:0!important; }
.profile-field-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:0 1.25rem; }
.profile-save-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem 1rem; margin-top:1.75rem; padding-top:1.25rem; border-top:1px solid var(--ch-line); }
.profile-save-actions span { font-size:.85rem; color:var(--ch-muted); max-width:42ch; }
.field-validation-error { display:block; font-size:.9rem; margin-top:.35rem; }
.validation-summary-errors a { color:inherit; }
.profile-workspace .profile-row { overflow-wrap:anywhere; }
.candidate-area .document-row { overflow-wrap:anywhere; margin-block:1rem; padding:1rem; border:1px solid var(--ch-line); border-radius:12px; background:#fcfbfe; }
.candidate-area .document-row summary { min-height:44px; padding-block:.6rem; cursor:pointer; }
.candidate-area .document-row .actions { margin-top:.6rem; gap:.6rem 1rem; }
.profile-workspace .form-control, .profile-workspace .form-select { min-height:44px; }
@media(min-width:768px) { .profile-field-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(min-width:992px) {
    .profile-workspace-grid { grid-template-columns:280px minmax(0,1fr); gap:clamp(1.5rem,3vw,3rem); }
    .profile-navigation-panel { position:sticky; top:1rem; }
    .profile-section-menu summary { font-size:.85rem; }
    .profile-section-menu summary strong, .profile-menu-hint { display:none; }
    .profile-section-list { max-height:calc(100dvh - 15rem); overflow-y:auto; }
}
@media(max-width:575px) {
    .candidate-area .container.profile-workspace { width:calc(100% - 1.5rem); padding-inline:0; }
    .profile-workspace .surface { padding:1.1rem; border-radius:14px; }
    .profile-save-actions { align-items:stretch; flex-direction:column; }
    .profile-save-actions .btn { width:100%; min-height:46px; }
}
