/* Demo-specific controls. Shared application styles are copied by the packager. */
h1:focus { outline: none; }
[hidden] { display: none !important; }
.demo-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid #d5ddd2; border-radius: 8px; font-size: 12px; font-weight: 650; color: #286047; background: #f0f5ec; }
.demo-footnote { font-size: 11px; color: #626b63; margin-top: 12px; }
.sidebar-account > .text-action { margin-left: 0; }
.sidebar-account .account-link { margin-bottom: 8px; }
.demo-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.demo-status .icon-button { min-width: 44px; height: 44px; border: 0; background: transparent; }
.role-options { margin-top: 28px; }
.role-option { display: flex; align-items: center; gap: 14px; padding: 18px 0; min-height: 88px; border-bottom: 1px solid #dfe4dc; color: #193d2e; }
.role-option:last-child { border-bottom: 0; }
.role-option:hover { color: #286047; }
.role-option > span:nth-child(2) { flex: 1; }
.role-option b { display: block; font-size: 16px; font-weight: 700; }
.role-option small { display: block; margin-top: 4px; color: #626b63; font-size: 13px; }
.role-icon { display: flex; align-items: center; justify-content: center; background: #edf4e9; border-radius: 8px; width: 42px; height: 42px; flex-shrink: 0; }
.demo-explainer { margin-top: 24px; font-size: 12px; line-height: 1.7; color: #626b63; }
.demo-entry-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; font-size: 11px; color: #626b63; padding-top: 12px; }
.demo-entry-footer .text-action { font-size: 12px; }
.demo-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.demo-form-grid > div { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.parent-choice { padding: 12px 0; border-bottom: 1px solid #dfe4dc; }
.parent-choice:last-child { border: 0; }
.parent-choice [data-relation] { padding: 8px 0 0 28px; }
.error-link { text-align: left; text-decoration: underline; text-underline-offset: 3px; padding: 3px 0; }
.summary-tools { padding: 16px; background: #f4f7ee; border-radius: 8px; }
.summary-tools .btn-secondary { text-align: left; }
.demo-settings { max-width: 720px; margin: 24px auto 0; }
.demo-settings .text-action { margin-right: 20px; }
.report-sheet { padding: clamp(22px, 4vw, 44px); max-width: 850px; margin: 12px auto 0; background: white; border: 1px solid #dfe4dc; border-radius: 12px; overflow-wrap: anywhere; }
.report-letterhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid #dfe4dc; margin-bottom: 28px; }
.report-letterhead > span { display: flex; align-items: center; gap: 10px; color: #286047; }
.report-letterhead small { font-size: 11px; color: #626b63; }
.report-sheet > h2 { font-size: clamp(23px, 3vw, 30px); line-height: 1.25; font-weight: 750; letter-spacing: -.025em; margin-bottom: 10px; }
.report-identity { display: flex; flex-wrap: wrap; gap: 16px 36px; margin: 28px 0; }
.report-identity dt { font-size: 11px; color: #626b63; margin-bottom: 4px; }
.report-identity dd { font-size: 15px; font-weight: 650; }
.report-sheet .report-detail { margin-top: 0; }
.report-sheet .report-detail dl > div { padding-top: 14px; }
.report-sheet footer { margin-top: 32px; font-size: 14px; }
.report-sheet footer b { display: block; margin-top: 10px; }
.print-controls > .back-link { margin-top: -12px; }
@media (min-width: 640px) { .demo-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print {
  @page { size: A4; margin: 16mm; }
  body, .report-sheet { color: #193d2e; background: white; }
  .sidebar, .mobile-header, .bottom-nav, .mobile-menu, .skip-link, .print-controls, .status-message { display: none !important; }
  body.is-authenticated .app-main { margin: 0; padding: 0; max-width: none; }
  .report-sheet { border: 0; padding: 0; margin: 0; max-width: none; }
  .report-sheet .report-detail dl > div, .report-sheet .notice, .report-sheet footer { break-inside: avoid; }
  .report-sheet a { color: inherit; }
}
