.sample-report-dialog { box-sizing: border-box; width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 24px; border: 1px solid #596473; border-radius: 16px; background: #fff; color: #182433; font-size: 16px; line-height: 1.65; }
.sample-report-dialog::backdrop { background: #182433b3; }
.sample-report-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.sample-report-head h2 { margin: 0; font-size: 24px; }
.sample-report-badge { padding: 12px; background: #fff1d0; color: #624000; font-weight: 700; }
.sample-report-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.sample-report-button, .sample-report-select { min-height: 44px; min-width: 44px; padding: 10px 14px; border: 1px solid #596473; border-radius: 8px; background: #fff; color: #182433; font: inherit; font-size: 16px; cursor: pointer; }
.sample-report-button[aria-selected="true"] { color: #fff; background: #183e42; border-color: #183e42; }
.sample-report-button:focus-visible, .sample-report-select:focus-visible, .sample-report-check:focus-within { outline: 3px solid #235fbe; outline-offset: 3px; }
.sample-report-section { padding: 20px 0; border-top: 1px solid #bcc5cd; overflow-wrap: anywhere; }
.sample-report-section h3 { font-size: 20px; }
.sample-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sample-report-hold { color: #8b2020; font-weight: 700; }
.sample-report-caution { color: #714900; font-weight: 700; }
.sample-report-possible { color: #18513a; }
.sample-report-unlock, .sample-report-selected { padding: 10px 12px; background: #eaf1f1; color: #183e42; margin: 6px 0; }
.sample-report-top-summary { display: grid; gap: 6px; margin: 8px 0; padding: 10px 12px; border: 1px solid #183e42; border-radius: 10px; background: #f8fbfb; }
.sample-report-exec { margin: 0; font-size: 14px; color: #182433; }
.sample-report-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.sample-report-jump-btn { font-size: 14px; padding: 8px 12px; background: #fff; color: #183e42; font-weight: 700; }
.sample-report-spotlight { margin: 8px 0; padding: 10px 14px; border: 2px solid #183e42; border-radius: 10px; background: #f4f8f8; color: #182433; }
.sample-report-spotlight h4 { margin: 0 0 6px; font-size: 16px; color: #183e42; }
.sample-report-spotlight p { margin: 0; font-size: 14px; }
.sample-report-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.sample-report-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 8px 14px; border: 1px solid #183e42; border-radius: 8px; background: #fff; color: #183e42; font-size: 14px; font-weight: 700; text-decoration: underline; }
.sample-report-link:focus-visible { outline: 3px solid #235fbe; outline-offset: 3px; }
.sample-report-waterfall { border-left: 4px solid #183e42; }
.sample-report-table-wrap { overflow-x: auto; margin: 12px 0; }
.sample-report-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sample-report-table th, .sample-report-table td { padding: 12px; border: 1px solid #a2adb8; text-align: left; vertical-align: top; }
.sample-report-check { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 0 8px; }
.sample-report-check input { width: 24px; height: 24px; }
.sample-report-state { display: block; color: #714900; }
.sample-report-questions li { padding-bottom: 16px; }
@media (max-width: 600px) { .sample-report-dialog { padding: 16px; } .sample-report-grid { grid-template-columns: 1fr; } .sample-report-head h2 { font-size: 20px; } .sample-report-tabs { display: grid; } }

/* v31: summary first; the full document stays one click away inside each section. */
.sample-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 4px; margin: 6px 0; padding: 0; list-style: none; }
.sample-tiles li { display: grid; gap: 2px; padding: 4px 6px; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--surface-card); min-width: 0; }
.sample-tiles span { font-size: var(--font-caption); line-height: 16px; color: var(--text-secondary); }
.sample-tiles strong { font-size: var(--font-caption); line-height: 16px; }
.sample-heat { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); grid-auto-rows: 12px; gap: 2px; max-width: 280px; margin: 6px 0 2px; }
.sample-heat span { border-radius: 2px; background: var(--surface-inset); }
.sample-heat span[data-tone="pass"] { background: var(--risk-safe); }
.sample-heat span[data-tone="warn"] { background: var(--risk-caution); }
.sample-heat span[data-tone="short"] { background: var(--risk-danger); }
.sample-heat-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sample-more { margin: 6px 0; }
.sample-more > summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; color: var(--text-secondary); font-weight: 600; }
.sample-tiles-line { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 6px 0; }
