/* Standalone Synthetic prototype only. Existing product pages do not load this file. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--ui-bg); color: var(--ui-text); font: 16px/1.65 system-ui, "Microsoft JhengHei", sans-serif; }
.assessment-prototype { width: min(1180px, calc(100% - 40px)); margin: 32px auto; }
h1 { font-size: clamp(25px, 3vw, 36px); margin: 4px 0; line-height: 1.35; } h2 { font-size: 24px; margin: 0 0 8px; } h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 6px 0 12px; } .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--ui-secondary); }
.prototype-header { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 22px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
button, input, select, textarea, a { font: inherit; } button, .actions a { min-height: 44px; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-surface); color: var(--ui-text); padding: 9px 14px; cursor: pointer; text-decoration: none; }
button:hover, .actions a:hover { background: var(--ui-hover); } button.primary { background: var(--ui-button); color: var(--ui-on-button); }
:is(a, button, input, select, textarea):focus-visible { outline: 3px solid var(--ui-focus); outline-offset: 3px; }
.boundary { border-left: 5px solid #d9b77b; border-radius: 12px; background: var(--ui-panel); padding: 16px 20px; }
.boundary p, .spec-note, .muted, footer { color: var(--ui-muted); font-size: 14px; }
.spec-note { margin: 16px 0; } .section-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 20px; }
:root[data-ui-surface="business"][data-ui-theme] .assessment-prototype .section-nav button[data-section][aria-current="page"],
:root[data-ui-surface="business"][data-ui-theme] .assessment-prototype .section-nav button[data-section][aria-current="page"]:hover {
  background: var(--ui-button); color: #fff; border-color: var(--ui-button); font-weight: 700;
}
.section { background: var(--ui-surface); padding: 26px; border: 1px solid var(--ui-border); border-radius: 20px; box-shadow: var(--ui-shadow); }
[hidden] { display: none !important; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
fieldset { min-width: 0; margin: 18px 0; padding: 18px; border: 1px solid var(--ui-border); border-radius: 12px; }
legend { padding: 0 8px; font-weight: 700; } label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; min-width: 0; }
.candidate-field legend { max-width: 100%; overflow-wrap: anywhere; }
.candidate-field { background: var(--ui-panel); }
.candidate-field:disabled { opacity: .85; }
.catalog-index { margin-top: 20px; }
.catalog-index summary { cursor: pointer; min-height: 44px; padding: 10px 0; }
.catalog-index li { margin: 8px 0; overflow-wrap: anywhere; }
.catalog-index small { display: block; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--ui-border); border-radius: 9px; background: var(--ui-surface); color: var(--ui-text); }
textarea { min-height: 90px; resize: vertical; } small { font-size: 13px; color: var(--ui-muted); font-weight: 400; }
.badge { display: inline-block; padding: 2px 10px; border: 1px solid var(--ui-border); border-radius: 20px; font-size: 13px; }
.dimension { border-top: 1px solid var(--ui-border); padding: 20px 0; } .dimension:first-of-type { margin-top: 18px; }
.dimension h3 { display: flex; gap: 10px; flex-wrap: wrap; } .number { color: var(--ui-secondary); font-variant-numeric: tabular-nums; }
.dimension > summary { cursor: pointer; min-height: 48px; padding: 6px 0; font-weight: 700; }
.dimension > summary .number { margin-right: 8px; }
.dimension-title { overflow-wrap: anywhere; }
.dimension-progress { display: block; margin: 4px 0 0 30px; font-weight: 400; }
.dimension-body { padding-top: 12px; }
.collapse-dimension { display: block; margin: 18px 0 0 auto; }
.dimension > summary:focus-visible, .catalog-index > summary:focus-visible { outline: 3px solid var(--ui-focus); outline-offset: 3px; }
.observation-reference { overflow-wrap: anywhere; font-size: 14px; color: var(--ui-muted); }
/* Focus follows the actual control; no extra application state or data writes. */
@media screen {
  .focus-block, details.dimension {
    background: var(--ui-panel); border: 1px solid var(--ui-border);
    border-radius: 14px;
  }
  details.dimension { padding: 16px; margin: 12px 0; }
  .focus-block > :is(legend, h2), details.dimension > summary { color: var(--ui-muted); }
  .focus-block:focus-within, details.dimension:focus-within {
    background: var(--ui-surface); border-color: var(--ui-secondary);
    box-shadow: inset 4px 0 0 var(--ui-secondary);
  }
  .focus-block:focus-within > :is(legend, h2), details.dimension:focus-within > summary { color: var(--ui-primary); }
  .dimension > summary { font-size: 19px; }
  .candidate-field legend { font-size: 18px; font-weight: 750; color: var(--ui-text); }
  .question-number {
    display: inline-block; padding: 2px 8px; margin-right: 4px;
    border: 1px solid var(--ui-secondary); border-radius: 8px;
    background: var(--ui-hover); color: var(--ui-text); font-size: 14px;
    font-weight: 750; font-variant-numeric: tabular-nums;
  }
  .candidate-field label { font-size: 14px; font-weight: 500; color: var(--ui-muted); }
  .candidate-field select { font-size: 16px; }
}
.restricted { border-left: 3px solid #d9b77b; padding-left: 16px; }
.advice { padding: 20px 0; border-bottom: 1px solid var(--ui-border); } dl { margin: 8px 0; } dt { font-weight: 700; } dd { margin: 0 0 10px; overflow-wrap: anywhere; }
.advice .advisory-summary { margin:16px 0; padding:20px; border:2px solid var(--ui-secondary); border-radius:16px; background:var(--ui-hover); color:var(--ui-text); }
.advice h4 { margin:0 0 14px; font-size:1.15rem; color:var(--ui-text); }
.advisory-summary p { margin:12px 0 0; }
.advisory-summary strong, .advisory-summary span { display:block; overflow-wrap:anywhere; }
.advice .advisory-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.advice .advisory-card { min-width:0; padding:20px; border:1px solid var(--ui-border); border-radius:16px; background:var(--ui-panel); color:var(--ui-text); }
.advisory-card h4 span { color:var(--ui-secondary); margin-right:6px; }
.advisory-card dt { color:var(--ui-muted); font-size:.9rem; margin-top:16px; }
.advisory-card dd { margin:6px 0 0; line-height:1.7; }
@media (max-width:700px) { .advice .advisory-grid { grid-template-columns:minmax(0,1fr); } .advice .advisory-card, .advice .advisory-summary { padding:16px; } }
.report { max-width: 940px; margin: auto; } .report h2 { border-bottom: 2px solid #79a99c; padding-bottom: 8px; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; } ul, ol { padding-left: 24px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ui-border); }
.bar-row span { overflow-wrap: anywhere; } .chart-label { display: flex; align-items: center; gap: 8px; } .dot { flex: none; width: 12px; height: 12px; border: 2px solid var(--ui-secondary); border-radius: 50%; } .dot.observed { background: var(--ui-secondary); }
.priority { list-style: none; padding: 0; } .priority li { display: flex; gap: 12px; align-items: start; margin: 10px 0; }.priority b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #d4e5d0; color: #24445a; text-align: center; }
.table-wrap { overflow-x: auto; } table { border-collapse: collapse; width: 100%; font-size: 14px; } th, td { padding: 12px; text-align: left; border: 1px solid var(--ui-border); vertical-align: top; } th { background: var(--ui-panel); }
footer { margin: 24px 0; } #prototype-status { min-height: 24px; }
@media (max-width: 700px) { .assessment-prototype { width: calc(100% - 24px); margin: 18px auto; }.prototype-header { flex-direction: column; align-items: start; gap: 12px; }.grid, .report-grid { grid-template-columns: 1fr; }.section { padding: 18px 14px; }.section-nav button { flex: 1 1 125px; }.boundary { padding: 14px; } fieldset { padding: 12px; } }
@page { size: A4; margin: 13mm; }
@media print {
  body { color: #24445a !important; background: #fff !important; font-size: 10pt; line-height: 1.4; }
  .assessment-prototype { width: 100%; margin: 0; }
  .prototype-header, .boundary, .spec-note, .section-nav, footer, #prototype-status, .no-print, .section:not([data-panel="report"]), .ui-theme-dialog { display: none !important; }
  .section[data-panel="report"] { display: block !important; border: 0; padding: 0; border-radius: 0; box-shadow: none; color: #24445a; background: #fff; }
  .report { max-width: none; }.report h2 { font-size: 18pt; }.report h3 { font-size: 12pt; }.report p, .report small, .report .muted { color: #24445a !important; }
  #heading-report { display: none; }
  .report-grid { grid-template-columns: 1fr 1fr; gap: 15px; margin: 12px 0; }.bar-row { padding: 4px 0; }.report section { break-inside: avoid; }.report .badge { border-color: #24445a; }
  .dot { border-color: #38655b; }.dot.observed { background: #38655b; print-color-adjust: exact; }
}

/* Fixed Synthetic options; classification remains an output boundary. */
.assessment-prototype .sensitive-demo { border:2px solid #b88b41; background:#fff6df; color:#24445a; }
.assessment-prototype .voluntary-demo { border:2px solid #8fcbd8; background:#eef8fc; color:#24445a; }
.assessment-prototype .optimized-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.65rem; min-width:0; }
.assessment-prototype .optimized-options label { display:flex; flex-direction:row; align-items:flex-start; gap:.6rem; min-width:0; overflow-wrap:anywhere; padding:12px; border:2px solid var(--ui-border); border-radius:12px; background:var(--ui-surface); color:var(--ui-text); cursor:pointer; }
.assessment-prototype .optimized-options input { width:18px; height:18px; min-height:18px; padding:0; flex:0 0 18px; margin:3px 0 0; accent-color:var(--ui-button); }
.assessment-prototype .optimized-options label:has(input:checked) { background:var(--ui-hover); border-color:var(--ui-button); box-shadow:inset 0 0 0 1px var(--ui-button); }
.assessment-prototype .optimized-options label:focus-within { outline:3px solid var(--ui-focus); outline-offset:2px; }
@media (max-width:1023px) { .assessment-prototype .optimized-options { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:479px) { .assessment-prototype .optimized-options { grid-template-columns:minmax(0,1fr); } }
