.demo-workbench { padding-top: 34px; }
.demo-workbench .sheet-head { gap: 8px; }
.demo-workbench .sheet-head h1 { max-width: none; }
.demo-limits { margin: 0; font-family: var(--mono); font-size: 13px; }
.demo-workbench .demo-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 32px; }
.report-column { border-right: 1px solid var(--rule); padding-right: 24px; min-width: 0; }
.report-section { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.report-section:first-child { padding-top: 0; }
.report-section:last-child { border-bottom: 0; }
.report-section h2 { font-size: 23px; font-weight: 500; }
.report-section p { margin: 8px 0 12px; }
.selected-report { display: flex; align-items: center; gap: 16px; margin: 16px 0; }
.selected-report img { flex-shrink: 0; }
.selected-report p { margin: 0; font-family: var(--mono); font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.demo-workbench .btn { min-height: 40px; padding: 6px 18px; }
#drop.over { border-color: var(--accent); background: var(--paper-deep); }
.selection-hint { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.text-button { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:disabled { opacity: 0.5; cursor: not-allowed; }
.render-options { margin-top: 20px; }
.retain-choice { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; }
.retain-choice input { margin: 4px 0 0; flex-shrink: 0; accent-color: var(--accent); }
#upload-report .actions { margin: 12px 0; }
#report-comment { margin: 12px 0; }
#comment { width: 100%; min-width: 0; }
.demo-workbench summary { cursor: pointer; }
.demo-workbench summary::marker { color: var(--accent); }
.demo-workbench summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.report-details > summary { font-size: 22px; line-height: 1.35; }
.report-details > summary span { display: block; padding-left: 20px; font-size: 14px; color: var(--ink-soft); }
#report-summary { font-size: 15px; overflow-wrap: anywhere; }
#report-summary h3 { font-size: 18px; margin-top: 18px; }
#report-summary ul { padding-left: 20px; margin: 8px 0; }
#report-summary li { margin: 8px 0; }
#report-summary .detail-name { font-family: var(--mono); font-size: 12px; }
#report-summary .detail-type { display: block; color: var(--ink-soft); font-size: 13px; }
.privacy details { font-size: 15px; }
.privacy summary { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.preview-column { min-width: 0; }
.preview-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
.preview-head h2 { font-size: 36px; line-height: 1.15; }
.preview-head p { margin: 6px 0 0; font-size: 17px; }
.preview-head .actions { gap: 24px; }
#open-pdf, #feedback-link, .local-link a { text-decoration: underline; text-underline-offset: 3px; }
.preview-surface { --preview-height: clamp(460px, calc(100vh - 414px), 720px); background: var(--paper-deep); border: 1px solid var(--rule); }
.demo-workbench .result-frame { max-width: none; width: 100%; height: var(--preview-height); aspect-ratio: auto; border: 0; }
#preview-empty { height: var(--preview-height); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--ink-soft); }
#preview-empty h3 { margin-top: 18px; font-size: 26px; color: var(--ink); }
#preview-empty p { margin: 10px 0 0; font-size: 17px; }
.preview-column .notice, .preview-column .refusal { margin: 0 0 16px; }
.preview-column .notice p { margin: 8px 0; }
#retry-render { margin-top: 8px; }
#report-feedback { margin-top: 12px; }
#feedback-form { padding: 8px 0 4px; }
#feedback-form .retain-choice input { width: auto; min-height: 0; padding: 0; }
#feedback-form .selection-hint { font-size: 14px; }
.local-link { margin: 12px 0 0; }
.render-status { color: var(--ink-soft); font-size: 15px; }
.status-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.render-status:empty { display: none; }
.render-status.is-loading { display: flex; align-items: center; gap: 10px; }
.render-status.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--rule);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: render-spin 0.8s linear infinite;
}
@keyframes render-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .render-status.is-loading::before { animation: none; }
}
@media (max-width: 1000px) {
  .demo-workbench .demo-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 760px) {
  .demo-workbench .demo-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .report-column { border-right: 0; padding-right: 0; }
  .preview-head h2 { font-size: 30px; }
  .demo-workbench .btn { width: auto; max-width: 100%; }
  .demo-limits { line-height: 1.7; }
  .preview-surface { --preview-height: max(400px, 70vh); }
}
