.bonacore-work-product-preview {
  display: -webkit-box;
  overflow: hidden;
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
.bonacore-work-product-preview-facts,
.bonacore-work-product-open-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.bonacore-work-product-open { justify-self: start; }
.bonacore-work-product-page { width: min(100%, 1460px); margin: 0 auto; padding: 30px 0 80px; }
.bonacore-work-product-back { margin: 0 0 28px; }
.bonacore-work-product-error { max-width: 760px; }
.bonacore-work-product-error .bdl-error-state { padding: clamp(24px, 5vw, 48px); }
.bonacore-work-product-error h1 { max-width: 620px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.bonacore-work-product-error .bdl-error-state > p:not(.eyebrow) { margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.bonacore-work-product-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, auto); gap: 36px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.bonacore-work-product-header .eyebrow,
.bonacore-work-product-document > header .eyebrow,
.bonacore-work-product-navigation .eyebrow,
.bonacore-work-product-evidence .eyebrow,
.bonacore-work-product-gaps .eyebrow,
.bonacore-work-product-empty .eyebrow { margin: 0 0 10px; }
.bonacore-work-product-header h1 { max-width: 900px; font-size: clamp(34px, 4vw, 58px); font-weight: 500; line-height: 1.06; }
.bonacore-work-product-context { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.bonacore-work-product-state { display: grid; gap: 5px; justify-items: end; text-align: right; }
.bonacore-work-product-state strong { color: var(--success); font-size: 15px; }
.bonacore-work-product-state[data-result-status="blocked"] strong,
.bonacore-work-product-state[data-result-status="failed"] strong { color: var(--danger); }
.bonacore-work-product-state[data-result-status="partially_completed"] strong { color: var(--warning); }
.bonacore-work-product-state span { color: var(--muted); font-size: 12px; }
.bonacore-work-product-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--rule); }
.bonacore-work-product-facts > div { min-width: 0; padding: 16px 18px 18px 0; }
.bonacore-work-product-facts dt { margin: 0 0 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.bonacore-work-product-facts dd { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.4; }
.bonacore-work-product-run-reason { margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid var(--warning); background: var(--surface); color: var(--warning); font-size: 13px; }
.bonacore-work-product-layout { display: grid; grid-template-columns: minmax(160px, .55fr) minmax(440px, 2fr) minmax(250px, .9fr); gap: clamp(24px, 3vw, 48px); align-items: start; margin-top: 36px; }
.bonacore-work-product-navigation,
.bonacore-work-product-evidence { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; scrollbar-width: thin; }
.bonacore-work-product-navigation,
.bonacore-work-product-navigation section { display: grid; gap: 3px; }
.bonacore-work-product-navigation section { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.bonacore-work-product-navigation h2 { margin: 0 0 4px; color: var(--ink); font-size: 12px; line-height: 1.35; }
.bonacore-work-product-navigation a { display: flex; gap: 8px; justify-content: space-between; padding: 7px 8px; border-radius: var(--bona-radius-control); color: var(--muted); font-size: 12px; line-height: 1.35; text-decoration: none; }
.bonacore-work-product-navigation a:hover,
.bonacore-work-product-navigation a:focus-visible { background: var(--accent-soft); color: var(--ink); outline: 0; }
.bonacore-work-product-navigation a:focus-visible { box-shadow: var(--bona-focus-ring); }
.bonacore-work-product-navigation a span { color: var(--accent); }
.bonacore-work-product-nav-empty { color: var(--muted); font-size: 12px; }
.bonacore-work-product-content { min-width: 0; }
.bonacore-work-product-document { border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); box-shadow: 0 12px 30px rgb(15 39 64 / 5%); }
.bonacore-work-product-document + .bonacore-work-product-document { margin-top: 28px; }
.bonacore-work-product-document > header { display: grid; gap: 10px; padding: clamp(24px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.bonacore-work-product-document > header h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.15; }
.bonacore-work-product-quality { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 4px; color: var(--muted); font-size: 12px; }
.bonacore-work-product-quality strong { color: var(--success); }
.bonacore-work-product-quality[data-quality-disposition="revise"] strong { color: var(--warning); }
.bonacore-work-product-quality[data-quality-disposition="block"] strong { color: var(--danger); }
.bonacore-work-product-section,
.bonacore-work-product-claims,
.bonacore-work-product-quality-report { scroll-margin-top: 24px; margin: 0 clamp(24px, 4vw, 44px); padding: clamp(24px, 4vw, 40px) 0; border-bottom: 1px solid var(--rule); }
.bonacore-work-product-section h2,
.bonacore-work-product-claims h2,
.bonacore-work-product-gaps h2,
.bonacore-work-product-empty h2 { margin: 0 0 18px; font-size: 21px; line-height: 1.25; }
.bonacore-work-product-prose { color: var(--ink); font-size: 16px; line-height: 1.72; overflow-wrap: anywhere; white-space: pre-wrap; }
.bonacore-work-product-claims > ol { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.bonacore-work-product-claims > ol > li { padding: 16px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
.bonacore-work-product-claims > ol > li > p:not(.bonacore-work-product-claim-meta) { margin: 9px 0 0; font-size: 14px; line-height: 1.55; }
.bonacore-work-product-claim-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.bonacore-work-product-claim-sources { display: grid; gap: 5px; margin: 12px 0 0; padding: 0; list-style: none; }
.bonacore-work-product-claim-sources a { color: var(--accent); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.bonacore-work-product-missing-source { color: var(--warning) !important; font-size: 12px !important; }
.bonacore-work-product-quality-report { border-bottom: 0; }
.bonacore-work-product-quality-report > summary { cursor: pointer; font-size: 14px; font-weight: 650; }
.bonacore-work-product-quality-report section { margin-top: 18px; }
.bonacore-work-product-quality-report h3 { margin: 0 0 8px; font-size: 14px; }
.bonacore-work-product-quality-report ul { margin: 0; padding-left: 20px; }
.bonacore-work-product-quality-report li { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.bonacore-work-product-evidence { padding-left: 18px; border-left: 1px solid var(--rule); }
.bonacore-work-product-evidence header h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.bonacore-work-product-evidence header > p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.bonacore-work-product-evidence ol { display: grid; margin: 20px 0 0; padding: 0; list-style: none; }
.bonacore-work-product-evidence li { padding: 14px 0; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.bonacore-work-product-evidence a { color: var(--accent); font-size: 12px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.bonacore-work-product-evidence li > p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.bonacore-work-product-evidence blockquote { margin: 9px 0 0; padding-left: 10px; border-left: 2px solid var(--rule); color: var(--muted); font-size: 12px; line-height: 1.48; overflow-wrap: anywhere; }
.bonacore-work-product-evidence-empty { color: var(--muted); font-size: 12px; }
.bonacore-work-product-gaps,
.bonacore-work-product-empty { margin-top: 28px; padding: 24px; border: 1px solid var(--warning); border-radius: 8px; background: var(--surface); }
.bonacore-work-product-gaps ul { margin: 0; padding-left: 20px; }
.bonacore-work-product-gaps li,
.bonacore-work-product-empty p:not(.eyebrow) { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.bonacore-follow-up { margin-top: 28px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.bonacore-follow-up > header .eyebrow { margin: 0 0 8px; }
.bonacore-follow-up > header h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.bonacore-follow-up-empty { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.bonacore-follow-up-history { display: grid; gap: 0; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.bonacore-follow-up-history li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.bonacore-follow-up-history li div { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.bonacore-follow-up-history strong { font-size: 13px; }
.bonacore-follow-up-history span { color: var(--success); font-size: 12px; }
.bonacore-follow-up-history p { margin: 7px 0 0; color: var(--ink); font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.bonacore-follow-up form { display: grid; gap: 8px; margin-top: 22px; }
.bonacore-follow-up label { color: var(--ink); font-size: 13px; font-weight: 650; }
.bonacore-follow-up textarea { width: 100%; min-height: 108px; resize: vertical; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--bona-radius-control); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.5; }
.bonacore-follow-up textarea:focus-visible { border-color: var(--accent); box-shadow: var(--bona-focus-ring); outline: 0; }
.bonacore-follow-up-actions { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 42px; }
.bonacore-follow-up-actions p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.bonacore-follow-up-actions button { min-height: 40px; padding: 9px 16px; border: 0; border-radius: var(--bona-radius-control); background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.bonacore-follow-up-actions button:focus-visible { box-shadow: var(--bona-focus-ring); outline: 0; }
.bonacore-follow-up-actions button:disabled { cursor: wait; opacity: .65; }
@media (max-width: 1120px) {
  .bonacore-work-product-layout { grid-template-columns: minmax(140px, .45fr) minmax(0, 2fr); }
  .bonacore-work-product-evidence { position: static; grid-column: 2; max-height: none; }
}
@media (max-width: 760px) {
  .bonacore-work-product-header { grid-template-columns: 1fr; gap: 18px; }
  .bonacore-work-product-state { justify-items: start; text-align: left; }
  .bonacore-work-product-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bonacore-work-product-layout { grid-template-columns: 1fr; margin-top: 24px; }
  .bonacore-work-product-navigation,
  .bonacore-work-product-evidence { position: static; grid-column: auto; max-height: none; }
  .bonacore-work-product-navigation { display: none; }
  .bonacore-work-product-evidence { padding: 22px 0 0; border-top: 1px solid var(--ink); border-left: 0; }
  .bonacore-work-product-document > header,
  .bonacore-work-product-section,
  .bonacore-work-product-claims,
  .bonacore-work-product-quality-report { padding-top: 24px; padding-bottom: 24px; }
  .bonacore-work-product-prose { font-size: 15px; line-height: 1.62; }
  .bonacore-follow-up-actions { align-items: stretch; flex-direction: column; }
  .bonacore-follow-up-actions button { width: 100%; }
}
