/* Initial clinical-blue tokens match assets/theme_palettes.json; builders and theme.js use that source. */
:root{--theme-surface:#FFFFFF;--theme-on-primary:#FFFFFF;--theme-computed-bg:#EAF2FB;--theme-computed-text:#35546D;--theme-changed-bg:#FFF6E5;--theme-invalid:#A33232;--theme-invalid-bg:#FFF0EF;--theme-warning:#7A5515;--theme-warning-bg:#FFF6E5;--theme-success:#2F6B57;--theme-success-bg:#E8F1EA;--theme-primary:#245F96;--theme-primary-hover:#1C4C78;--theme-background:#F3F7FC;--theme-subtle:#E8F1FA;--theme-selected:#DDEBFA;--theme-text:#24374A;--theme-muted:#566B7C;--theme-border:#C4D4E3;--theme-border-strong:#7898B6;--theme-disabled-bg:#E8EDF3;--theme-disabled-text:#566B7C;--theme-focus:#245F96}
/* Patient progress has its own palette colors; builders and theme.js replace these defaults. */
:root{--theme-status-saved-text:#265B8C;--theme-status-saved-bg:#EDF4FD;--theme-status-assessed-text:#25634E;--theme-status-assessed-bg:#DDEFE5}
/* Palette aliases keep older assessment selectors compatible with the shared tokens. */
:root{--teal:var(--theme-primary);--line:var(--theme-border);--muted:var(--theme-muted);--accent:var(--theme-subtle);--theme-focus-ring:color-mix(in srgb,var(--theme-focus) 20%,transparent);--theme-shadow:color-mix(in srgb,var(--theme-text) 15%,transparent);--theme-backdrop:color-mix(in srgb,var(--theme-text) 34%,transparent);--theme-warning-border:color-mix(in srgb,var(--theme-warning) 28%,var(--theme-surface));--theme-invalid-border:color-mix(in srgb,var(--theme-invalid) 35%,var(--theme-surface))}
button:disabled{background:var(--theme-disabled-bg)!important;color:var(--theme-disabled-text)!important;border-color:var(--theme-border)!important;opacity:1}
button:focus-visible,a:focus-visible{outline:2px solid var(--theme-focus);outline-offset:3px}
input[type="radio"]{accent-color:var(--theme-primary)}
.style-panel{--dialog-width:600px}
.style-panel .modal-body{display:grid;gap:18px}
.style-panel .modal-body>*{margin:0}
.style-panel .style-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;margin:0;border:0;min-width:0}
.style-panel .style-card{display:grid;position:relative;grid-template-columns:22px minmax(0,1fr);grid-template-rows:auto auto auto;gap:5px 8px;align-items:start;margin:0;padding:12px;border:1px solid var(--theme-border);border-radius:10px;background:var(--theme-surface);color:var(--theme-text);cursor:pointer;min-width:0;font-weight:400}
.style-panel .style-card:hover{background:var(--theme-subtle);border-color:var(--theme-border-strong)}
.style-panel .style-card.selected{border:2px solid var(--theme-primary);padding:11px;background:var(--theme-subtle)}
.style-panel .style-card:focus-within{outline:2px solid var(--theme-focus);outline-offset:3px}
.style-panel .style-card>input[type="radio"]{grid-row:2;grid-column:1;position:static;width:18px!important;height:18px;min-width:18px!important;min-height:18px!important;padding:0;margin:3px 0 0;box-shadow:none;outline:none}
.style-preview{position:relative;display:block;grid-column:1/-1;height:70px;border:1px solid var(--preview-border);border-radius:6px;overflow:hidden;background:var(--preview-background)}
.style-preview-side{position:absolute;inset:0 auto 0 0;width:25%;background:var(--preview-subtle);border-right:1px solid var(--preview-border)}
.style-preview-side::after{content:"";position:absolute;left:20%;right:20%;top:14px;height:7px;border-radius:2px;background:var(--preview-primary)}
.style-preview-content{position:absolute;top:13px;left:33%;right:10%;height:12px;background:var(--preview-selected);border-radius:3px}
.style-preview-content::after{content:"";position:absolute;top:20px;left:0;right:12%;height:5px;background:var(--preview-border);border-radius:2px}
.style-preview-action{position:absolute;right:10%;bottom:10px;width:27%;height:13px;border-radius:3px;background:var(--preview-primary)}
.style-name{grid-column:2;font-size:var(--text-body);line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.style-description{grid-column:2;font-size:var(--text-caption);line-height:1.6;color:var(--theme-muted);overflow-wrap:anywhere}
.style-current{position:absolute;right:8px;top:8px;padding:0 5px;border-radius:4px;background:var(--theme-primary);color:var(--theme-on-primary);font-size:var(--text-caption);line-height:1.8}
.style-current:empty{display:none}
.style-panel #style-preference-hint{margin-bottom:0}
@media(max-width:430px){.style-panel .style-options{gap:10px}.style-panel .style-card{padding:10px}.style-panel .style-card.selected{padding:9px}.style-preview{height:60px}.style-current{right:6px;top:6px}}
