/* Shared reading hierarchy across every workspace and dialog. */
:root { --text-small:12px; --text-body:14px; }
body { font-size:var(--text-body); line-height:1.5; }
h1,h2,h3 { line-height:1.25; text-wrap:balance; }
p,li { overflow-wrap:break-word; }
button { line-height:1.35; }
button,select,input,textarea { letter-spacing:normal; }
select option,select optgroup,.control-group select option,.control-group select optgroup { background:var(--surface); color:var(--ink); }
input,output,.value,.ecg-measurements,.quiz-score { font-variant-numeric:tabular-nums; }
.eyebrow { font-size:11px; line-height:1.5; letter-spacing:1.2px; }
.brand small { font-size:10px; line-height:1.4; letter-spacing:.25px; }
.local-badge,.disclaimer,.sidebar-footer { font-size:11px; line-height:1.5; }
.help-text,.muted,.check-row,.pathology-description,.layout-description,.pathology-explanation-text { font-size:var(--text-small); line-height:1.65; }
.control-group label,.form-field>label { font-size:12px; line-height:1.5; }
.control-group label .value { font-size:12px; }
.settings-panel>summary { line-height:1.45; }
.preset-trigger,.preset-menu-item { font-size:13px; line-height:1.45; }
.preset-count,.preset-choice small,.preset-category-title { font-size:11px; line-height:1.4; }
.finding-tooltip .pathology-description { font-weight:500; color:var(--ink); }
.studio-viewport #info .ecg-measurements { font-size:12px; line-height:1.55; }
.studio-toolbar button,.studio-toolbar select { font-size:12px; }
.studio-footer .legend,.layout-control label,.layout-control select,.ecg-sheet-header,.sheet-navigation { font-size:11px; line-height:1.5; }
.studio-footer .legend { gap:7px 14px; }
.dialog-heading h2 { font-size:24px; line-height:1.25; letter-spacing:-.45px; }
dialog p,dialog li { line-height:1.65; }
dialog .muted,dialog .help-text,.form-field>label { font-size:13px; }
.form-field { gap:5px; }
.export-grid strong { font-size:19px; line-height:1.3; }.export-grid span { font-size:12px; line-height:1.5; }
.library-card h3 { font-size:17px; line-height:1.35; letter-spacing:-.15px; }.library-card p { font-size:13px; line-height:1.65; }
.library-card .eyebrow { font-size:10px; }.card-actions button,.library-filters button { font-size:12px; }
.presentation-question { line-height:1.6; max-width:72ch; }.presentation-answer { font-size:15px; line-height:1.7; }.presenter-notes { font-size:13px; line-height:1.65; }
.quiz-instruction,.quiz-tip { font-size:13px; line-height:1.65; }.quiz-option { font-size:13px; line-height:1.45; letter-spacing:normal; }
#quiz-result { font-size:14px; line-height:1.65; }#quiz-result strong { line-height:1.35; }.quiz-answer-details summary { font-size:13px; line-height:1.5; }
.monitor-viewport .info { font-size:12px; line-height:1.6; }.vital-head { font-size:12px; letter-spacing:.3px; }.vital-sub { font-size:12px; line-height:1.4; opacity:.85; }.vital-unit { opacity:.9; }
.ep-heading,.atlas-heading { background:transparent; padding:0; border:0; }
.ep-heading .eyebrow,.atlas-heading .eyebrow { font-size:11px; }
.ep-learning { font-size:13px; line-height:1.6; }.ep-nav-group { font-size:11px; }.ep-event-description,#ep-diagram-note { font-size:11px; line-height:1.5; }
.ep-footer { font-size:11px; line-height:1.5; }.ep-model-badge,.ep-metric span { font-size:11px; }
.atlas-heading p { font-size:13px; line-height:1.5; }.atlas-explanations p,.atlas-explanations li { font-size:13px; line-height:1.65; }
.atlas-caption { font-size:13px; line-height:1.65; }.atlas-sources { overflow-wrap:anywhere; }
@media screen and (min-width:901px) and (max-height:780px) {
  .ep-learning { font-size:12px; line-height:1.55; }
  .ep-figure svg { height:185px; }
  .atlas-heading h1 { font-size:21px; }
}
@media (max-width:767px) {
  .brand small { font-size:11px; }.studio-toolbar button,.studio-toolbar select { font-size:12px; }
  .ep-learning,.atlas-explanations p,.atlas-explanations li { font-size:14px; }
  .studio-footer .legend { font-size:11px; }.ep-footer { font-size:12px; }
}

.atlas-measures { font-size:12px; line-height:1.6; }.atlas-measures dt { font-weight:650; margin-top:10px; }.atlas-measures dd { margin:3px 0 0; }

.monitor-viewport { background:var(--bg); border:0; border-radius:0; }

/* Exact input stays next to its slider, including in narrow studio sidebars. */
.range-exact { display:flex; align-items:center; gap:8px; min-width:0; }
.range-exact > input[type="range"] { flex:1; min-width:35px; width:0; }
.range-exact > .exact-value { width:67px; flex:0 0 67px; min-height:28px; padding:4px 5px; font-size:12px; font-variant-numeric:tabular-nums; }
.advanced-field .check-row { font-size:11px; margin:3px 0; }
.advanced-field { margin-block:13px; }
.lead-shape-row { display:grid; grid-template-columns:30px 1fr 1fr; gap:6px; align-items:center; margin:8px 0; }
.lead-shape-row input { width:100%; }
.lead-shape-row label { font-size:11px; }
.st-vector-preview { width:100%; height:120px; color:var(--accent); }
.section-options { border-top:1px solid var(--border); padding:8px 0; }
.section-options summary { cursor:pointer; font-size:12px; }
.sequence-boundary { width:80px; }
#sequence-overview { flex-wrap:wrap; }
#sequence-overview .range-exact { flex:0 1 140px; }
@media (min-width:901px) and (max-height:760px) { .basic-controls .range-exact > .exact-value {width:54px;flex-basis:54px;} }

.cloud-member { display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border); }
#studio-dialog details {margin:12px 0;}
#studio-dialog details summary {cursor:pointer;font-weight:600;}
#cloud-account {max-width:130px;overflow:hidden;text-overflow:ellipsis;}

.advanced-field > label:first-child {display:flex;justify-content:space-between;gap:6px;align-items:baseline;}
.advanced-field > label:first-child .value {flex-shrink:0;}

.dialog-feedback {padding:10px 12px;background:var(--accent-soft);border-left:3px solid var(--accent);line-height:1.5;}

#cloud-account {white-space:nowrap;}
