/* Progressive result detail: retain the full supplied explanation in the DOM. */
.priority-next-button { margin-top: .75rem; }
.finding-summary-excerpt {
  color: var(--text-secondary, #475569);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.finding-accordion[open] > summary .finding-summary-excerpt {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
/* The open story already presents the consequence in full. Keep its title and
   status visible without repeating the closed summary; other findings retain it. */
@media screen {
  .finding-accordion[open]:has(> .finding-accordion-body > .finding-decision-story) > summary .finding-summary-excerpt {
    display: none;
  }
}
.operation-feedback {
  margin: .75rem 0;
  padding: .85rem 1rem;
  border: 1px solid #a85418;
  border-radius: .65rem;
  background: #fff8ed;
  color: #542c10;
  overflow-wrap: anywhere;
}
.operation-feedback[data-operation-feedback="success"] {
  border-color: #173e20;
  background: #f1f8f0;
  color: #17461b;
}
.operation-feedback p { margin: 0 0 .5rem; }
.operation-feedback button { margin: .25rem .65rem .25rem 0; }
.operation-feedback button:focus-visible,
.priority-next-button:focus-visible { outline: 3px solid #173e20; outline-offset: 3px; }
[data-record-decision][aria-disabled="true"] { opacity: .7; cursor: default; }
@media (max-width: 480px) {
  .priority-next-button { width: 100%; white-space: normal; }
  .operation-feedback { padding: .75rem; }
  .operation-feedback button { max-width: 100%; white-space: normal; }
}
@media print {
  .finding-summary-excerpt { display: block; overflow: visible; -webkit-line-clamp: unset; }
  .priority-next-button, .operation-feedback button { display: none; }
}

/* A clear task choice, then one readable decision at a time. */
#ecosystem-title { scroll-margin-block: 28px; }
#ecosystem-title:focus { outline: 3px solid var(--green, #173e20); outline-offset: 6px; }
.public-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.public-task-grid .public-resource-card { min-height: 0; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 36px); }
.public-task-grid .public-resource-card > span { font-size: .8rem; font-weight: 650; }
.public-task-grid .public-resource-card strong { max-width: 26ch; font-size: clamp(1.45rem, 2.5vw, 1.9rem); line-height: 1.2; }
.public-task-grid .public-resource-card small { max-width: 58ch; font-size: .95rem; line-height: 1.65; }
.public-task-grid .public-resource-card em { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); color: var(--green, #173e20); font-size: .875rem; font-style: normal; font-weight: 600; line-height: 1.5; }
.public-task-grid .public-resource-card em span { flex: 0 0 auto; }
.public-resource-footer { gap: 8px 24px; }
.public-resource-footer a { line-height: 1.45; }
.access-card { width: min(100%, 440px); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.access-intro { color: var(--slate-dark); font-size: 1rem; line-height: 1.65; }
.access-form { gap: 20px; }
.access-field, .access-label-row { min-width: 0; }
.access-field label, .access-label-row label { font-size: .875rem; font-weight: 650; line-height: 1.45; }
.access-field input { min-width: 0; background: #fff; font-size: 1rem; }
.access-text-button, .access-back-button, .access-link-row a { font-size: .875rem; font-weight: 650; }
.access-field small, .access-policy-note, .access-support-note { font-size: .8rem; line-height: 1.6; }
.access-label-row { align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.access-label-row [data-password-toggle] { min-height: 44px; margin-left: auto; }
.access-form :is(button, input), .access-link-row a { scroll-margin-block: 24px; }
.result-work-status { display: grid; grid-template-columns: minmax(120px, .55fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; margin: 20px 0; border: 1px solid var(--border, #d9e2d9); border-radius: 8px; background: #faf9f6; }
.result-work-status > div { min-width: 0; padding: 16px 20px; }
.result-work-status > div + div { border-left: 1px solid var(--border, #d9e2d9); }
.result-work-status span { display: block; margin-bottom: 6px; color: var(--slate-dark, #475569); font-size: .78rem; font-weight: 600; }
.result-work-status strong { font-size: .95rem; font-weight: 650; }
.result-work-status p { margin: 0; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.finding-decision-story { display: grid; gap: 20px; margin-bottom: 20px; }
.finding-story-step { min-width: 0; }
.finding-story-step h3 { margin: 0 0 6px; color: var(--slate-dark, #475569); font-size: .82rem; font-weight: 650; }
.finding-story-step p { max-width: 76ch; margin: 0; font-size: .95rem; line-height: 1.65; overflow-wrap: anywhere; }
.finding-story-step:last-child { padding: 16px 18px; border-left: 3px solid var(--green, #173e20); border-radius: 0 8px 8px 0; background: #faf9f6; }
.finding-supporting-details { padding-top: 8px; border-top: 1px solid var(--border, #d9e2d9); }
.finding-supporting-details > summary { min-height: 44px; padding-block: 12px; color: var(--green, #173e20); font-size: .875rem; font-weight: 600; line-height: 1.5; cursor: pointer; }
.finding-supporting-details[open] > summary { margin-bottom: 12px; }
.scope-clarification-question { min-width: 0; padding: clamp(16px, 2vw, 24px); }
.scope-question-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 16px 0; }
.scope-question-context > div { min-width: 0; }
.scope-question-context dt { margin-bottom: 4px; color: var(--slate-dark, #475569); font-size: .8rem; font-weight: 600; }
.scope-question-context dd { margin: 0; font-size: .9rem; line-height: 1.6; overflow-wrap: anywhere; }
.scope-discrepancy { margin: 16px 0; padding: 14px 16px; border-left: 3px solid #9b661c; border-radius: 0 8px 8px 0; background: #fff8eb; color: #61451d; font-size: .9rem; line-height: 1.6; }
.scope-choice-list { display: grid; gap: 10px; margin-block: 16px; }
.scope-choice { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding: 14px 16px; border: 1px solid var(--border-strong, #b6c6b9); border-radius: 10px; background: #fff; cursor: pointer; }
.scope-choice:has(input:checked) { border-color: var(--green, #173e20); background: #f1f7ef; box-shadow: inset 0 0 0 1px var(--green, #173e20); }
.scope-choice:focus-within { outline: 3px solid var(--green, #173e20); outline-offset: 3px; }
.scope-choice input[type="radio"] { flex: 0 0 20px; width: 20px; min-width: 20px; height: 20px; min-height: 20px; margin: 2px 0 0; accent-color: var(--green, #173e20); }
.scope-choice span { min-width: 0; font-size: .9rem; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
.scope-explanation, .scope-other-party { display: grid; gap: 8px; margin-top: 16px; }
.scope-explanation > label, .scope-other-party > label { font-size: .875rem; font-weight: 600; line-height: 1.5; }
.scope-explanation textarea, .scope-other-party input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--border-strong, #b6c6b9); border-radius: 8px; color: inherit; background: #fff; font: inherit; }
.scope-explanation textarea { min-height: 100px; resize: vertical; }
.scope-explanation small, .scope-other-party small { font-size: .8rem; line-height: 1.5; }
.clarification-question [aria-invalid="true"] { border-color: var(--danger, #a13d35); outline: 2px solid var(--danger, #a13d35); outline-offset: 2px; }
@media (max-width: 760px) {
  .public-task-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .result-work-status { grid-template-columns: minmax(0, 1fr); }
  .public-task-grid .public-resource-card { gap: 12px; padding: 24px; }
  .result-work-status > div + div { border-left: 0; border-top: 1px solid var(--border, #d9e2d9); }
  .result-work-status > div { padding: 14px 18px; }
}
@media (max-width: 480px) {
  .scope-question-context { grid-template-columns: minmax(0, 1fr); }
  .scope-choice { padding: 12px; }
  .clarification-actions > button { width: 100%; white-space: normal; }
  .access-card-shell { padding: 32px 22px 40px; }
}
@media (forced-colors: active) {
  .scope-choice:has(input:checked), .scope-choice:focus-within { outline: 2px solid Highlight; }
  .finding-story-step:last-child, .scope-discrepancy { border-color: CanvasText; }
}

/* Use the available row for a sole recommendation, retaining the multi-card grid. */
.redline-suggestion-list > .redline-decision-card:only-child { grid-column: 1 / -1; }
.redline-decision-card fieldset label { align-items: flex-start; line-height: 1.4; }
.redline-decision-card fieldset label > span { min-width: 0; overflow-wrap: anywhere; }
.redline-decision-card fieldset label:focus-within { outline: 3px solid var(--green, #173e20); outline-offset: 3px; }
.redline-decision-card details > summary { min-height: 44px; padding-block: 10px; line-height: 1.5; cursor: pointer; }
.redline-decision-card details > summary:focus-visible { outline: 3px solid var(--green, #173e20); outline-offset: 3px; }

/* Distinguish insurance explanations from the neighboring Help resource menu. */
.insurance-terms-button { width: auto; min-width: 44px; flex: 0 0 auto; padding-inline: 12px; font-size: .8rem; font-weight: 650; line-height: 1.4; }
.insurance-terms-button:focus-visible { outline: 3px solid var(--green, #173e20); outline-offset: 3px; }
@media (max-width: 850px) {
  .landing-access-actions { width: auto; justify-content: flex-end; }
}

/* A saved answer and an unresolved responsibility difference are distinct states. */
.result-work-status > .saved-scope-conflicts { grid-column: 1 / -1; display: grid; gap: 16px; border-left: 0; border-top: 1px solid var(--border, #d9e2d9); }
.scope-conflict-notice { min-width: 0; margin-bottom: 20px; padding: 16px 18px; border-left: 3px solid #9b661c; border-radius: 0 8px 8px 0; background: #fff8eb; color: #61451d; }
.saved-scope-conflicts > .scope-conflict-notice { margin-bottom: 0; }
.scope-conflict-notice h3 { margin: 0 0 8px; font-size: .95rem; font-weight: 650; line-height: 1.5; }
.scope-conflict-notice p { max-width: 76ch; margin: 0 0 12px; font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.scope-conflict-notice p:last-child { margin-bottom: 0; }
.scope-conflict-notice details > summary { min-height: 44px; padding-block: 12px; color: inherit; font-size: .875rem; font-weight: 600; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.scope-conflict-notice details > summary:focus-visible { outline: 3px solid var(--green, #173e20); outline-offset: 3px; }
.scope-conflict-comparison { display: grid; gap: 14px; margin: 12px 0 16px; }
.scope-conflict-comparison > div { display: grid; grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr); gap: 8px 20px; min-width: 0; }
.scope-conflict-comparison dt { font-size: .8rem; font-weight: 650; line-height: 1.6; }
.scope-conflict-comparison dd { min-width: 0; margin: 0; font-size: .875rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.finding-summary-badges .scope-conflict-badge { color: #61451d; background: #fff1d8; border-color: #9b661c; white-space: normal; }
@media (max-width: 480px) {
  .scope-conflict-notice { padding: 14px; }
  .scope-conflict-comparison > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (forced-colors: active) {
  .scope-conflict-notice, .finding-summary-badges .scope-conflict-badge { border-color: CanvasText; }
}

/* One surface per task: quiet workspace chrome, clear headings and controls. */
.app-shell {
  --premium-canvas: #f7f6f2;
  --premium-paper-soft: #f5f4f0;
  --premium-line: #dedfdc;
  --premium-muted: #535b66;
  background: var(--premium-canvas);
}
.app-shell .workspace { background: var(--premium-canvas); }
.app-shell .signed-in-status { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.app-shell .account-menu-button { gap: 12px; padding: 9px 12px; border-radius: 8px; }
.app-shell .signed-in-copy { gap: 3px; line-height: 1.3; }
.app-shell .signed-in-copy small { font-size: .7rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.app-shell .signed-in-copy strong { font-size: .875rem; font-weight: 650; }
.app-shell .site-header .environment-badge { border: 0; border-radius: 0; background: transparent; color: var(--slate-dark); font-size: .8rem; font-weight: 500; }
.app-shell .organization-switcher { gap: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.app-shell .organization-switcher small { font-size: .8rem; line-height: 1.55; }
.app-shell .organization-switcher select { font-size: .9rem; font-weight: 600; }
.app-shell .dashboard-topbar { gap: 24px 40px; padding-block: 12px 28px; }
.app-shell .dashboard-topbar h1 { font-size: clamp(2.35rem, 4vw, 3.7rem); line-height: 1.08; }
.app-shell .dashboard-topbar p:not(.eyebrow) { max-width: 65ch; color: var(--slate-dark); font-size: 1rem; line-height: 1.65; }
.app-shell .workspace-tabs { gap: 16px; margin-bottom: 30px; padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--premium-line); border-radius: 0; background: transparent; }
.app-shell .workspace-tab { min-height: 44px; font-size: .9rem; font-weight: 600; }
.app-shell .workspace-tab.is-active { background: var(--white); box-shadow: inset 0 -2px 0 var(--green); color: var(--charcoal); }
.app-shell .workspace-tab:hover { background: var(--premium-paper-soft); }
.app-shell .workspace-start { margin-bottom: 32px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.app-shell .workspace-start-heading { margin-bottom: 22px; }
.app-shell .workspace-start-heading h2 { margin-bottom: 10px; font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.15; }
.app-shell .workspace-start-heading p:not(.eyebrow) { color: var(--slate-dark); font-size: .95rem; line-height: 1.65; }
.app-shell .workspace-task-card { gap: 18px; border-color: var(--premium-line); border-radius: 12px; background: #fff; box-shadow: none; }
.app-shell .workspace-task-card h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 650; line-height: 1.3; }
.app-shell .workspace-task-card p:not(.eyebrow) { color: var(--slate-dark); font-size: .925rem; line-height: 1.65; }
.app-shell .workspace-task-icon { width: 36px; height: 36px; border: 1px solid var(--premium-line); border-radius: 6px; background: var(--premium-paper-soft); color: var(--charcoal); font-size: .8rem; font-weight: 600; }
.app-shell .workspace-start-boundary { margin-top: 18px; font-size: .8rem; line-height: 1.6; }
.app-shell .dashboard-panel, .app-shell .dashboard-metrics article, .app-shell .form-section { box-shadow: none; border-radius: 12px; }
.app-shell .dashboard-panel, .app-shell .dashboard-metrics article:not(.metric-attention), .app-shell .form-section { border-color: var(--premium-line); }
.app-shell .dashboard-panel-heading h2 { font-size: 1.6rem; line-height: 1.2; }
.app-shell .dashboard-panel-heading p { font-size: .9rem; line-height: 1.6; }
.app-shell .review-record-list { gap: 0; }
.app-shell .review-record { padding: 22px 0; border: 0; border-top: 1px solid var(--premium-line); border-radius: 0; background: transparent; }
.app-shell .review-record h3 { font-size: 1.05rem; font-weight: 650; line-height: 1.4; }
.app-shell .review-record p { font-size: .875rem; line-height: 1.6; }
.app-shell .review-record-meta { gap: 8px; font-size: .8rem; }
.app-shell .review-status, .app-shell .status-pill, .app-shell .screen-badge { border-radius: 5px; }
.app-shell .form-section { margin-bottom: 24px; }
.app-shell .form-section-heading h2 { font-size: 1.6rem; line-height: 1.2; }
.app-shell .form-section-heading p { font-size: .925rem; line-height: 1.6; }
.app-shell .section-number { border-radius: 6px; background: var(--premium-paper-soft); color: var(--charcoal); font-weight: 650; }
@media (max-width: 650px) {
  .app-shell .dashboard-topbar { align-items: stretch; gap: 20px; }
  .app-shell .workspace-tabs { gap: 8px; }
}
@media (max-width: 480px) {
  .app-shell .workspace-task-card { gap: 14px; }
  .app-shell .dashboard-panel { padding: 20px; }
  .app-shell .dashboard-topbar h1 { font-size: 2.35rem; overflow-wrap: anywhere; }
}

/* Other access methods use the same flat, readable account surface. */
.access-alternatives { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.access-alternatives > p { margin: 0; color: var(--slate-dark); line-height: 1.6; }
.access-alternatives[hidden], #email-code-request-form[hidden], #email-code-verify-form[hidden] { display: none; }
.access-alternatives button { white-space: normal; min-height: 48px; }
.access-footer a { color: var(--green, #173e20); font-weight: 650; text-decoration: underline; }

.access-gateway :is(.access-field small, .access-support-note, [id$="-challenge-status"], .access-footer) { color: var(--slate-dark); }
.access-gateway .workspace-skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; }
