/* Guided inspection workspace. Retains the v5 palette and existing component styles. */
.guided-intro{font-size:15px;color:var(--muted);line-height:1.75;margin:0 0 24px;max-width:850px}
.reference-intro{margin-top:-10px;margin-bottom:26px}
.guided-details{border:1px solid var(--line);border-radius:13px;background:var(--paper);margin:18px 0;min-width:0;overflow:hidden}
.guided-details>summary{display:flex;align-items:center;gap:11px;min-height:58px;padding:15px 20px;cursor:pointer;list-style:none;color:var(--ink);font-size:15px;font-weight:600;line-height:1.6;background:#132c3e}
.guided-details>summary::-webkit-details-marker{display:none}
.guided-details>summary:after{content:'+';font-size:22px;font-weight:400;color:var(--green);margin-left:auto;flex-shrink:0}
.guided-details[open]>summary:after{content:'−'}
.guided-details>summary:hover{background:#1d4058}
.guided-details>summary>svg{flex-shrink:0;color:var(--green)}
.guided-details>summary .tiny-tag,.guided-details>summary .status{white-space:normal;margin-left:6px}
.guided-details-body{padding:22px;min-width:0;border-top:1px solid var(--line)}
.guided-details-body .field{min-width:0}
.guided-details-body>.field+.field{margin-top:18px}
.guided-case .case-body>.guided-intro{margin-bottom:22px}
.guided-case .case-body fieldset{min-width:0}
.guided-case .case-authority .regime-info{margin:0}
.guided-case .case-authority .check-option{margin-top:19px}
.guided-context-links{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.guided-context-links .btn{justify-content:flex-start;white-space:normal;text-align:left}
.guided-case .case-aside>.guided-details{margin:0}
.guided-workpaper .workpaper-heading{align-items:flex-start;gap:18px;margin-bottom:20px}
.guided-workpaper .workpaper-heading h2{margin-top:8px;line-height:1.4;font-weight:400}
.guided-workpaper .workpaper-heading .status{white-space:normal;flex-shrink:0;max-width:180px;margin-top:5px}
.guided-question-brief{padding:18px 21px;margin-bottom:20px;background:#142b3b;border:1px solid #3a5c73;border-radius:12px}
.guided-question-brief p{font-size:14px;line-height:1.75;color:#bed0dc;margin:0;overflow-wrap:anywhere}
.guided-question-brief p+p{margin-top:12px}
.guided-question-brief b{display:block;font-size:12px;font-weight:600;letter-spacing:.03em;color:#d8eaf7;margin-bottom:3px}
.guided-workpaper .workpaper-section{margin:18px 0;padding:24px}
.guided-workpaper .workpaper-section>h3{padding-left:0;margin-bottom:18px;font-size:20px;font-weight:400;line-height:1.5}
.guided-workpaper .workpaper-section .field textarea{min-height:136px}
.guided-originals{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}
.guided-originals>h3,.guided-remediation-files>h3{font-size:17px;font-weight:400;margin:0 0 13px;line-height:1.6}
.guided-empty-note{color:var(--muted);font-size:14px;line-height:1.8;margin:8px 0 15px}
.guided-missing-file{font-size:13px;color:var(--amber);border:1px solid #80643a;border-radius:8px;padding:10px 13px;overflow-wrap:anywhere}
.guided-workpaper .attachments:empty{display:none}
.guided-workpaper .attachments{margin:0 0 16px}
.guided-workpaper .attachment{max-width:190px;overflow:hidden}
.guided-workpaper .attachment>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.guided-workpaper .material-actions{margin:14px 0 0}
.guided-workpaper .material-actions .btn{font-size:14px;white-space:normal}
.guided-workpaper .guided-result .status-buttons{margin-bottom:21px}
.guided-assessment{margin-bottom:0}
.guided-assessment .law-actions{margin:15px 0 20px}
.guided-assessment .context-note{margin-bottom:0}
.guided-sample .sample-toolbar{margin-top:25px}
.guided-sample .sample-table{margin-top:15px}
.guided-workpaper .guided-help{margin:18px 0;border-color:var(--line)}
.guided-workpaper .guided-help>summary{background:#102635;font-size:15px;padding:17px 20px}
.guided-workpaper .guided-help .instruction-card{padding:20px}
.guided-workpaper .guided-help .instruction-card h3{font-size:17px}
.guided-workpaper .guided-help .instruction-card ol,.guided-workpaper .guided-help .instruction-card ul{font-size:14px;line-height:1.85}
.guided-remediation-files{margin:25px 0;padding-top:22px;border-top:1px solid var(--line)}
.guided-remediation-actions{margin-top:20px}
.guided-save{padding:20px 0 0;margin-top:5px;border-top:1px solid var(--line)}
.guided-save .row{justify-content:flex-end}
.guided-question-pager{justify-content:space-between;margin-top:15px}
.guided-question-pager>.btn{font-size:14px;min-height:43px;background:transparent;border-color:var(--line)}
.guided-export{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:24px;padding:27px;margin-bottom:26px;background:linear-gradient(130deg,#17384d,#0c1d29)}
.guided-export h2{font-size:29px;line-height:1.4;font-weight:400;letter-spacing:-.5px;margin:9px 0 11px}
.guided-export p{font-size:14px;color:var(--muted);line-height:1.8;margin:0}
.guided-export>.btn{margin-top:8px}
.guided-export-instructions{grid-column:1/-1;border-top:1px solid #486c855c;padding-top:21px;min-width:0}
.guided-export-instructions>b{font-size:15px;font-weight:600}
.guided-export-instructions ol{margin:12px 0 15px;padding-left:23px;font-size:14px;color:#c8dbe8;line-height:1.9}
.guided-export-instructions li{margin:5px 0}
.guided-summary{margin-bottom:22px}
.guided-summary textarea{min-height:145px}
.guided-missing-questions{display:grid;gap:7px;margin-top:13px;max-height:300px;overflow:auto}
.guided-missing-questions>a{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #34596e;border-radius:8px;background:#102c3f;font-size:14px;line-height:1.75}
.guided-missing-questions>a>svg{flex-shrink:0;margin-top:4px}
.guided-missing-questions>a:hover{background:#22485f;border-color:#a5ddff}
.guided-completeness .quality-notice:last-child{margin-bottom:0}
.guided-formats .document-grid{margin:0}
.guided-formats .document-card{min-width:0}
.guided-decisions fieldset{min-width:0}
.guided-findings{margin-top:24px}
@media(max-width:1100px){.guided-case .case-aside{align-items:start}.guided-export{grid-template-columns:1fr}.guided-export>.btn{justify-self:start;margin-top:0}.guided-workpaper .workpaper-heading .status{max-width:none}.guided-save{align-items:stretch;flex-direction:column}.guided-save>.row{justify-content:flex-start}}
@media(max-width:760px){.guided-details>summary{padding:15px 17px;font-size:14px;flex-wrap:wrap;gap:8px}.guided-details>summary:after{margin-left:auto}.guided-details-body{padding:18px}.guided-details>summary .tiny-tag,.guided-details>summary .status{font-size:11px}.guided-case .case-aside{display:block}.guided-case .case-aside>.guided-details{margin-top:18px}.guided-workpaper .workpaper-heading h2{font-size:25px}.guided-workpaper .workpaper-heading .status{margin-top:0}.guided-question-brief{padding:16px 18px}.guided-workpaper .workpaper-section{padding:21px 18px}.guided-workpaper .workpaper-section>h3{padding-left:0;font-size:19px}.guided-workpaper .workpaper-section .field textarea{font-size:16px}.guided-workpaper .guided-result .status-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px}.guided-workpaper .guided-result .answer-btn{font-size:13px;min-height:59px;padding:10px}.guided-workpaper .material-actions{gap:8px}.guided-workpaper .material-actions .btn{font-size:13px;flex:1 1 130px}.guided-save>.row{display:flex;gap:10px}.guided-save>.row>.btn{flex:1;white-space:normal;min-height:52px}.guided-save>.row>.primary{flex:2}.guided-question-pager{gap:8px}.guided-question-pager>.btn{font-size:13px;flex:1;padding:10px}.guided-export{padding:22px 20px;gap:20px}.guided-export h2{font-size:26px}.guided-export>.btn{width:100%;white-space:normal}.guided-export-instructions ol{font-size:14px}.guided-formats .document-card .row{gap:8px}.guided-remediation-actions>.btn{white-space:normal;flex:1 1 180px}.guided-details .quality-notice{margin-bottom:18px}.guided-intro{font-size:14px}}
@media(prefers-reduced-motion:reduce){.guided-details *{scroll-behavior:auto}}

/* Main inspection route and contextual tools supplied by views.js. */
.guided-hero{overflow:visible;margin-bottom:23px}
.guided-hero .detail-top{align-items:flex-start;gap:20px}
.guided-hero .detail-top>.grow{min-width:0}
.guided-hero h1{overflow-wrap:anywhere}
.guided-hero .guided-more{flex-shrink:0}
.guided-more>summary{white-space:nowrap}
.guided-more .action-dropdown{width:min(320px,calc(100vw - 36px));max-height:min(650px,75vh);overflow:auto}
.guided-more .action-dropdown>.btn{display:flex;width:100%;justify-content:flex-start;white-space:normal;text-align:left;margin:5px 0;min-height:45px;font-size:14px}
.guided-case-meta{display:flex;gap:20px;flex-wrap:wrap;margin-top:21px;padding-top:17px;border-top:1px solid #789ab333;color:#b9d1e1;font-size:14px;line-height:1.7}
.inspection-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0 0 28px}
.inspection-step{display:flex;align-items:center;gap:14px;min-width:0;min-height:90px;padding:17px 20px;border:1px solid #365c77;border-radius:13px;background:#0e2434;color:#b8d0e1;transition:background .16s,border-color .16s}
.inspection-step:hover{background:#1a3a51;border-color:#8cbfdf}
.inspection-step.active{border-color:#9ed8ff;background:#204b68;color:#eff9ff;box-shadow:inset 0 0 0 1px #9ed8ff1a}
.inspection-step-number{display:grid;place-items:center;flex-shrink:0;width:35px;height:35px;border:1px solid #577e98;border-radius:50%;font-size:15px;background:#102d42;color:#c4e5fa}
.inspection-step.active .inspection-step-number{background:#d6efff;color:#15374e;border-color:#d6efff}
.inspection-step b{display:block;font-size:16px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.inspection-step small{display:block;margin-top:5px;color:#a5c2d6;font-size:13px;line-height:1.6}
.inspection-step.active small{color:#c0dfee}
.guided-list-tools{align-items:flex-end;flex-wrap:wrap}
.guided-list-tools .compact-filter{width:210px;flex-shrink:0;margin:0}
.guided-list-tools .compact-filter select{width:100%;min-height:48px}
.guided-list-tools .search{min-width:220px;min-height:48px;margin-bottom:0}
.guided-list-tools>.muted{padding-bottom:12px;font-size:13px}
.guided-context-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 22px}
.guided-context-toolbar>.text-btn{white-space:normal;flex-shrink:0}
.guided-context-toolbar>.guided-details{margin:0;max-width:75%;flex:0 1 auto}
.guided-context-toolbar>.guided-details>summary{min-height:44px;padding:8px 15px;font-size:14px}
.guided-context-toolbar>.guided-details>.row{padding:15px;border-top:1px solid var(--line)}
.stage-controls .btn{white-space:normal}
@media(max-width:760px){.guided-hero{margin-bottom:18px}.guided-hero .detail-top{gap:10px}.guided-hero .subtitle{font-size:16px}.guided-hero .guided-more>summary{padding:10px;min-width:44px;font-size:14px}.guided-case-meta{gap:7px 16px;font-size:13px;margin-top:17px;padding-top:14px}.inspection-steps{gap:8px;margin-bottom:23px}.inspection-step{flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:12px 10px;gap:9px;min-height:102px;border-radius:11px}.inspection-step-number{width:27px;height:27px;font-size:13px}.inspection-step b{font-size:16px;line-height:1.45}.inspection-step small{display:none}.guided-list-tools{gap:15px}.guided-list-tools .compact-filter{width:100%}.guided-list-tools .compact-filter select{font-size:16px}.guided-list-tools .search{min-width:0;flex-basis:100%}.guided-list-tools>.muted{padding-bottom:0}.guided-context-toolbar{flex-direction:column;gap:13px}.guided-context-toolbar>.guided-details{max-width:100%;width:100%}.guided-context-toolbar>.guided-details>.row>.btn{font-size:14px;white-space:normal;flex:1 1 140px}.stage-controls .btn{flex:1;font-size:14px}}
@media(max-width:440px){.guided-hero .subtitle{display:none}.inspection-step{padding:12px 8px}.guided-more .action-dropdown{right:0}.guided-hero .detail-top h1{font-size:26px;line-height:1.4}}

.guided-next-action{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:25px;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--panel,#0d2639)}.guided-next-action b{font-size:18px}.guided-next-action p{margin:7px 0 0;color:var(--muted);font-size:14px;line-height:1.6}.guided-next-action>.btn{flex-shrink:0}@media(max-width:760px){.guided-next-action{align-items:stretch;flex-direction:column;padding:20px}.guided-next-action>.btn{white-space:normal}}

.guided-hero.inspection-hero{padding:18px 24px 16px;margin-bottom:18px;background-position:right 38%}
.guided-hero .back-link{margin-bottom:13px;min-height:34px;font-size:13px;padding:5px 10px}
.guided-hero .detail-top{margin-bottom:0;align-items:center}
.guided-hero .detail-top h1{font-size:30px;line-height:1.3;letter-spacing:-.7px}
.guided-hero .detail-number{margin-bottom:7px;font-size:12px}
.guided-hero .subtitle{margin-top:6px;font-size:14px}
.guided-hero .guided-case-meta{padding-top:12px;margin-top:13px}
.inspection-steps{margin-bottom:22px}
.inspection-step{min-height:76px;padding:13px 18px}
.guided-legal-help>summary{cursor:pointer;color:var(--muted);font-size:14px;padding:8px 0}
[data-case-benefit][hidden],[data-case-special][hidden]{display:none!important}
.guided-workpaper .workpaper-heading{scroll-margin-top:110px}
.guided-workpaper .workpaper-heading h2{font-size:25px}
.procedure-link b{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:760px){.guided-hero.inspection-hero{padding:15px 17px}.guided-hero .detail-top h1{font-size:24px}.guided-hero .detail-number{font-size:11px}.guided-hero .guided-case-meta{font-size:12px;gap:6px 13px}.inspection-step{min-height:76px;gap:8px;padding:11px 9px}.inspection-step-number{width:24px;height:24px;font-size:12px}.inspection-step b{font-size:15px}.guided-workpaper .workpaper-heading h2{font-size:23px}.guided-hero .back-link{margin-bottom:10px}}

.guided-question-filters{margin:0 0 20px}.guided-question-filters>summary{min-height:46px;padding:11px 16px;font-size:14px}.guided-question-filters .procedure-toolbar{margin-bottom:0}.guided-hero .action-dropdown{z-index:25}

.guided-invalid-date{display:block;color:var(--red);font-size:13px;line-height:1.7;overflow-wrap:anywhere;margin-top:5px}
.guided-accepted-notice{margin:18px 0 22px}.guided-accepted-notice .btn{flex-shrink:0}

.beginner-steps{padding-left:22px;display:grid;gap:18px;line-height:1.75}.beginner-steps li{padding-left:8px}.assistance-panel{margin:24px 0}.assistance-signal{border:1px solid var(--line);border-radius:12px;margin-top:12px;background:rgba(70,110,145,.1)}.assistance-signal>summary{display:flex;justify-content:space-between;gap:16px;padding:18px;cursor:pointer;font-weight:700}.assistance-signal>summary small{font-weight:400;color:var(--amber)}.assistance-signal>div{padding:0 18px 20px;line-height:1.7}.assistance-signal p{margin:8px 0 16px}.ocr-candidates{display:grid;gap:12px;margin:16px 0}.ocr-candidates select{max-width:100%;text-overflow:ellipsis}.assistance-panel .case-body{padding:20px}.beginner-guide{margin-bottom:20px}

/* Specific, actionable completion steps without changing the user's answer. */
.question-completion{margin:20px 28px;padding:18px 20px;border:1px solid #68869e;border-radius:12px;background:#132e42;scroll-margin:120px 0 30px}.question-completion.needs-work{border-left:4px solid #e2af63}.question-completion-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}.question-completion-heading b{font-size:16px}.question-completion-heading>span{font-size:12px;color:#c4d7e4}.question-completion ul{padding:0;margin:10px 0 0;list-style:none;display:grid;gap:3px}.question-completion li button{display:block;width:100%;padding:7px 0;text-align:left;border:0;background:none;color:#e4f3ff;line-height:1.6;font:inherit;font-size:14px;cursor:pointer}.question-completion li button:hover{text-decoration:underline;color:#fff}.question-completion li button:focus-visible,.question-completion:focus-visible{outline:2px solid #b7dcff;outline-offset:4px}.question-completion p{margin:9px 0 0;color:#bbcfdf;font-size:13px;line-height:1.7}.completion-samples{margin-top:8px}.completion-samples>summary{cursor:pointer;padding:8px 0;font-size:13px}.completion-samples>div{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}.completion-samples .btn{max-width:100%;white-space:normal;font-size:13px;text-align:left}.sample-edit-notice{padding:13px 16px;border-left:3px solid #e2af63;background:#17364a;font-size:14px;line-height:1.65}.sample-edit-notice[hidden]{display:none}.sample-source-summary{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:10px;font-size:13px}.sample-source-summary p{margin:6px 0;line-height:1.65}.guided-workpaper input,.guided-workpaper textarea,.guided-workpaper select{scroll-margin-top:120px}
@media(max-width:760px){.question-completion{margin:16px 18px;padding:15px}.question-completion-heading b{font-size:15px}.question-completion li button{padding:9px 0}.completion-samples .btn{width:100%}.sample-edit-notice{font-size:13px}}
