/* Reuse classification components and workstation tokens; all additions are ECG scoped. */
body.ecg-page{
  --cl-bg:var(--ws-bg);--cl-ink:var(--ws-ink);--cl-muted:var(--ws-muted);
  --cl-border:var(--ws-line);--cl-blue:var(--ws-blue);
  color:var(--ws-text);background:var(--ws-bg);font-family:var(--h-font,system-ui,sans-serif);font-size:17px;
}
.ecg-page [hidden]{display:none!important}
.ecg-page .class-shell{max-width:1280px;width:calc(100% - 28px);padding-top:22px}
.ecg-page .class-hero{padding:26px 22px;border-radius:var(--ws-radius);background:#02404b;min-height:0;flex-wrap:wrap;gap:22px}
.ecg-page .class-hero:after{display:none}
.ecg-page .class-hero h1{font-size:clamp(30px,5vw,44px);line-height:1.35;letter-spacing:0;margin:10px 0 12px}
.ecg-page .class-hero p{font-size:17px;line-height:1.85}
.ecg-page .class-hero-stats{gap:10px}
.ecg-page .class-hero-stats div{min-width:104px;min-height:76px;padding:12px}
.ecg-page .class-hero-stats strong{font-size:24px}
.ecg-page .class-hero-stats span{font-size:14px;color:var(--ds-blue-100)}
.ecg-page .class-eyebrow{font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.ecg-page .class-breadcrumb{font-size:14px;line-height:1.8}
.ecg-page .class-notice{font-size:16px;flex-wrap:wrap;margin-bottom:24px;color:var(--ws-muted);gap:4px 14px}
.ecg-page .class-notice strong{color:var(--ws-ink)}
.ecg-page .class-section-head h2,.ecg-page .class-content-section h2{font-size:24px;line-height:1.5;margin:8px 0 12px}
.ecg-page .class-section-head p{font-size:17px;color:var(--ws-muted)}
.ecg-page .class-dept-card,.ecg-page .class-disease-card,.ecg-page .class-content-section{border-color:var(--ws-line);border-radius:var(--ws-radius);min-width:0}
/* ecg.css 加载在 theme.css 之后；保留公共层的卡片悬停边框 */
@media screen and (hover:hover) and (pointer:fine){.ecg-page .class-disease-card:hover{border-color:var(--ds-line-strong)}}
.ecg-page .class-dept-card{min-height:230px;padding:22px}
.ecg-page .class-dept-card.is-ready{border-top-color:var(--ws-blue)}
.ecg-page .class-dept-symbol{background:var(--ws-soft);color:var(--ws-blue);margin:16px 0 8px}
.ecg-page .class-dept-card h3,.ecg-page .ecg-card h3{font-size:21px;line-height:1.5;margin:10px 0}
.ecg-page .class-dept-card p,.ecg-page .ecg-card p{font-size:17px;line-height:1.85;color:var(--ws-muted);margin:0}
.ecg-page .class-dept-foot{font-size:15px;line-height:1.8}
.ecg-page .class-dept-index,.ecg-page .class-section-label{font-size:13px;color:var(--ws-blue)}
.ecg-page .ecg-card{min-height:180px;padding:20px;gap:6px}
.ecg-page .ecg-card small,.ecg-page .ecg-card b{font-size:15px;line-height:1.7;color:var(--ws-blue)}
.ecg-entry-grid,.ecg-category-grid,.ecg-panel-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin-bottom:24px}
.ecg-page .class-content-section{padding:20px;margin-top:18px;scroll-margin-top:calc(var(--site-header-height,72px) + 16px);scroll-margin-bottom:calc(var(--ecg-footer-height,140px) + 16px)}
/* Reserve the content area while the ECG bundle loads (avoids a layout shift). */
#ecgApp>p[role="status"]:only-child{min-height:70vh;margin:0}
/* 词条页底栏固定、正文下方没有别的内容，不需要预留：提示移出文档流，正文区在资料到达前高度为 0，
   标题区高度变化时不会连同整块正文一起计入布局偏移。 */
.ecg-data-pending #ecgApp>p[role="status"]:only-child{min-height:0;position:absolute}
.ecg-atlas-list .ecg-global-search{display:none}
.ecg-page #ecgApp section[id]{scroll-margin-top:calc(var(--site-header-height,72px) + 16px)}
.ecg-page .class-content-section p,.ecg-page .class-content-section li{font-size:17px;line-height:1.9}
.ecg-page .class-content-section h3{font-size:20px;margin:22px 0 10px;line-height:1.5}
.ecg-points{padding-left:1.4em;margin:12px 0 0}
.ecg-points li+li{margin-top:12px}
.ecg-section-links{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.ecg-page .ecg-section-links a,.ecg-page .btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--ws-line);border-radius:9px;padding:8px 13px;background:#fff;color:var(--ws-blue);font-size:16px;text-decoration:none;line-height:1.6;cursor:pointer}
.ecg-page .btn.primary{color:white;background:var(--ws-blue);border-color:var(--ws-blue)}
.ecg-page .btn.primary:hover{background:var(--ws-blue-hover)}
.ecg-page .class-filter{font-size:17px;color:var(--ws-ink);min-height:48px}
.ecg-page .class-search-label{font-size:17px;color:var(--ws-ink)}
.ecg-search{margin:24px 0}
.ecg-search-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0;color:var(--ws-muted);font-size:16px}
.ecg-status{display:inline-block;color:#73470e;background:#fff5df;border:1px solid #e6d0a7;border-radius:7px;padding:3px 8px;font-size:14px;line-height:1.6}
.ecg-figure{margin:18px 0 0;min-width:0}
.ecg-figure-scroll{border:1px solid var(--ws-line);border-radius:10px;overflow-x:auto;overscroll-behavior-x:contain}
.ecg-waveform{display:block;width:100%;min-width:520px;height:auto}
.ecg-figure figcaption{margin-top:12px;font-size:16px;line-height:1.8;color:var(--ws-muted)}
.ecg-figure figcaption p{font-size:16px!important;margin:6px 0}
.ecg-hint{font-size:15px;color:var(--ws-muted)}
.ecg-values{margin:16px 0 0}
.ecg-values>div{padding:15px 0;border-top:1px solid var(--ws-line)}
.ecg-values dt{font-weight:700;color:var(--ws-ink)}
.ecg-values dd{margin:7px 0 0;line-height:1.85}
.ecg-steps{list-style:none;padding:0;counter-reset:ecg-step}
.ecg-steps li{counter-increment:ecg-step;padding:18px 0;border-top:1px solid var(--ws-line)}
.ecg-steps h3:before{content:counter(ecg-step,decimal-leading-zero) ' · ';color:var(--ws-blue)}
.ecg-steps p{margin-bottom:0}
.ecg-periop>summary{cursor:pointer;font-size:21px;font-weight:700;color:var(--ws-ink);min-height:48px;line-height:1.7;padding:4px 0}
.ecg-periop>summary h2{display:inline;font-size:21px;line-height:inherit;margin:0}
.ecg-periop>summary .ecg-hint{display:block;margin-left:22px;font-weight:400}
.ecg-periop[open]>summary{border-bottom:1px solid var(--ws-line);padding-bottom:14px}
.ecg-layer-control{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:18px 0}
.ecg-form{display:grid;gap:18px}
.ecg-form-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.ecg-form label{display:flex;flex-direction:column;gap:8px;font-size:17px;font-weight:650}
.ecg-form input{width:100%;min-width:0;min-height:48px;border:1px solid var(--ws-line);border-radius:9px;padding:10px 12px;background:#fff;color:var(--ws-ink);font:inherit}
.ecg-form .btn{justify-self:start}
.ecg-result{border:1px solid var(--ws-line);border-left:3px solid var(--ws-blue);border-radius:9px;background:var(--ws-soft);padding:16px;line-height:1.9;overflow-wrap:anywhere}
.ecg-result strong{display:block;font-size:21px;color:var(--ws-ink)}
.ecg-result.is-error{border-left-color:#9b3030;background:#fff5f5;color:#7e2727}
.ecg-review-footer{border-top:1px solid var(--ws-line);background:#fff;padding:16px 14px calc(16px + env(safe-area-inset-bottom,0px));font-size:14px;line-height:1.7;color:var(--ws-muted)}
.ecg-footer-inner{max-width:1252px;margin:0 auto;display:flex;flex-direction:column;gap:8px}
.ecg-footer-inner>strong{font-size:16px;color:var(--ws-ink)}
.ecg-footer-meta{display:flex;gap:8px 16px;align-items:center;flex-wrap:wrap}
.ecg-footer-meta a{color:var(--ws-blue)}
.ecg-entry-page .ecg-review-footer{position:fixed;bottom:var(--site-tabbar-height,0px);left:0;right:0;z-index:40}
.ecg-entry-page .class-hero{padding:20px 22px}
.ecg-subpage .class-hero-stats,.ecg-entry-page .class-notice{display:none}
.ecg-entry-page .class-hero h1{font-size:32px}
/* 词条资料到达前（route-shell.js 加 ecg-data-pending，ecg.js 渲染时移除）：标题区按 94 个词条渲染后的
   中位高度预留（手机面包屑多为两行），资料到达后搜索框只需小幅移动（布局偏移 CLS，2026-11-22）。 */
.ecg-data-pending .class-hero{min-height:221px}
@media screen and (max-width:699px){.ecg-data-pending .class-hero{min-height:227px}.ecg-data-pending .class-breadcrumb{min-height:59px}}
.ecg-entry-page .class-shell{padding-bottom:calc(var(--ecg-footer-height,150px) + 32px)}
html:has(.ecg-entry-page){scroll-padding-bottom:calc(var(--ecg-footer-height,150px) + var(--site-tabbar-height,0px) + 16px)}
/* Phones: related entries become a compact list (category and title); the
   summary is on the entry itself. */
@media screen and (max-width:699px){
  #ecg-related .ecg-panel-grid{gap:8px}
  #ecg-related .ecg-card{min-height:0;padding:12px 40px 12px 14px;position:relative;gap:2px}
  #ecg-related .ecg-card h3{margin:0;font-size:17px;line-height:1.5}
  #ecg-related .ecg-card small{font-size:13px;line-height:1.5}
  #ecg-related .ecg-card p{display:none}
  #ecg-related .ecg-card b{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:0}
  #ecg-related .ecg-card b::after{content:"→";font-size:18px}
}
/* Phones: the atlas lists 94 entries, so categories become a two-column grid of
   short tiles and entries become compact rows with a one-line summary. */
@media screen and (max-width:699px){
  #ecgApp .ecg-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #ecgApp .ecg-category-grid .ecg-card{min-height:0;padding:12px;gap:2px}
  #ecgApp .ecg-category-grid .ecg-card h3{order:-1;margin:0;font-size:16px;line-height:1.45}
  #ecgApp .ecg-category-grid .ecg-card small{font-size:12px;line-height:1.5}
  #ecgApp .ecg-category-grid .ecg-card :is(p,b){display:none}
  #ecgApp [data-ecg-entry] .ecg-card{min-height:0;padding:12px 40px 12px 14px;position:relative;gap:2px}
  #ecgApp [data-ecg-entry] .ecg-card h3{margin:0;font-size:17px;line-height:1.5}
  #ecgApp [data-ecg-entry] .ecg-card small{font-size:13px;line-height:1.5}
  #ecgApp [data-ecg-entry] .ecg-card p{font-size:14px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #ecgApp [data-ecg-entry] .ecg-card b{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:0}
  #ecgApp [data-ecg-entry] .ecg-card b::after{content:"→";font-size:18px}
  #ecgApp :has(>[data-ecg-entry]){gap:8px}
}
/* Classic 12-lead tracings: full width on wide screens, scroll sideways on phones. */
.ecg-twelve{display:block;width:100%;height:auto;min-width:860px}
.ecg-twelve-figure .ecg-figure-scroll{background:#fffafa}
.ecg-twelve-layer>summary{cursor:pointer}
@media(min-width:1100px){.ecg-twelve{min-width:0}}
@media print{.ecg-twelve{min-width:0}}
@media(min-width:700px){
  .ecg-page .class-shell{width:calc(100% - 48px)}
  .ecg-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ecg-category-grid,.ecg-panel-grid,.ecg-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ecg-page .class-hero{padding:30px}
  .ecg-page .class-content-section{padding:26px}
}
@media(min-width:1100px){
  .ecg-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ecg-entry-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ecg-footer-inner{flex-direction:row;align-items:center;justify-content:space-between;gap:16px}
}
/* Phones: the fixed review footer keeps all its wording but packs it into two
   short lines, so it no longer covers about a sixth of the screen. */
@media screen and (max-width:699px){
  .ecg-entry-page .ecg-review-footer{padding:8px 14px calc(8px + max(0px,env(safe-area-inset-bottom,0px) - var(--site-tabbar-height,0px)));font-size:13px;line-height:1.5}
  .ecg-entry-page .ecg-footer-inner{flex-direction:row;flex-wrap:wrap;align-items:center;gap:2px 10px}
  .ecg-entry-page .ecg-footer-inner>strong{font-size:14px}
  .ecg-entry-page .ecg-footer-meta{display:contents}
  .ecg-entry-page .ecg-status{order:-1;margin-left:auto;padding:0 6px;font-size:13px;line-height:1.5}
  .ecg-entry-page .ecg-footer-inner>strong{order:-2}
}
@media screen and (max-width:359px){.ecg-entry-page .ecg-status{margin-left:0}}
.ecg-toc-jump{position:fixed;z-index:35;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(16px + var(--site-tabbar-height,env(safe-area-inset-bottom,0px)));min-height:44px;padding:8px 16px;border:1px solid var(--ws-line);border-radius:999px;background:#fff;color:var(--ws-blue);font:inherit;font-size:15px;font-weight:700;box-shadow:0 6px 18px rgba(8,51,61,.16);cursor:pointer}
.ecg-toc-jump[hidden]{display:none}
@media print{.ecg-toc-jump{display:none!important}}

@media print{
  .ecg-layer-control,.ecg-page .btn,.ecg-page .class-notice{display:none!important}
  .ecg-entry-page .ecg-review-footer{position:static}
  .ecg-entry-page .class-shell{padding-bottom:0;width:100%}

  .ecg-page .class-hero h1,.ecg-page .class-hero p,.ecg-page .class-eyebrow{color:#000}

  .ecg-waveform{min-width:0}

}

#ecg-references a{color:var(--ds-blue);text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}
#ecg-references a:visited{color:#4f4a9c}
#ecg-references li+li{margin-top:8px}

.ecg-risk{display:inline-block;border-radius:7px;padding:3px 8px;font-size:14px;line-height:1.6;font-weight:600;margin-right:8px;border:1px solid}
.ecg-risk-high{color:#9b1c1c;background:#fdecec;border-color:#f2c1c1}
.ecg-risk-medium{color:#7a4b00;background:#fff4dc;border-color:#ecd39b}
.ecg-risk-low{color:#1f5f3a;background:#e8f5ec;border-color:#b9dcc5}
.ecg-criteria-wrap{overflow-x:auto;margin:8px 0 6px}
.ecg-criteria{width:100%;border-collapse:collapse;font-size:15px;line-height:1.7}
.ecg-criteria th,.ecg-criteria td{border:1px solid var(--ds-line);padding:8px 10px;text-align:left;vertical-align:top}
.ecg-criteria th{background:var(--ds-bg);font-weight:600;width:32%;min-width:110px;color:#08333d}
@media (max-width:600px){.ecg-criteria th{width:38%}}

.ecg-abnormal-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.ecg-abnormal-item{border:1px solid var(--ws-line,var(--ds-line));border-radius:12px;padding:14px 16px;background:#fff}
.ecg-abnormal-item h3{font-size:18px;line-height:1.6;margin:0 0 6px}
.ecg-abnormal-item p{margin:0 0 6px;font-size:16px;line-height:1.8;color:var(--ws-muted,#465e64)}
.ecg-abnormal-item a{color:var(--ds-blue);font-size:15px}
.ecg-abnormal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.ecg-abnormal-head .ecg-risk{flex-shrink:0;margin:2px 0 0}
.ecg-mini-dl{margin:6px 0;font-size:16px;line-height:1.8}
.ecg-mini-dl dt{font-weight:600;color:#08333d;margin-top:6px}
.ecg-mini-dl dd{margin:0;color:var(--ws-muted,#465e64)}
.ecg-table-3 th{width:auto}
.ecg-table-3 thead th{background:var(--ds-blue-50)}
.ecg-flow{counter-reset:flow;list-style:none;padding:0;margin:0}
.ecg-flow li{position:relative;padding:0 0 14px 44px}
.ecg-flow li:before{counter-increment:flow;content:counter(flow);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;background:var(--ds-blue);color:#fff;display:grid;place-items:center;font-weight:700}
.ecg-flow li p{margin:4px 0 0;font-size:16px;line-height:1.8;color:var(--ws-muted,#465e64)}
@media (min-width:900px){.ecg-abnormal-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

.ecg-form select{min-height:44px;border:1px solid var(--ws-line,var(--ds-line));border-radius:9px;padding:6px 10px;font-size:16px;background:#fff;width:100%}
.ecg-form+.ecg-form{margin-top:14px}
.ecg-electrodes{max-width:600px}

.ecg-figure-scroll .ecg-electrodes{min-width:0;width:100%;max-width:600px;height:auto}

.ecg-quiz-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0 4px;font-size:16px}
.ecg-case h2{display:flex;align-items:center;gap:10px}
.ecg-case-no{display:inline-grid;place-items:center;min-width:32px;height:32px;border-radius:50%;background:var(--ds-blue);color:#fff;font-size:16px}
.ecg-vignette{font-size:17px;line-height:1.85;background:var(--ds-bg);border-radius:10px;padding:12px 14px}
.ecg-case-form fieldset{border:0;padding:0;margin:12px 0}
.ecg-case-form legend{font-weight:700;font-size:17px;margin-bottom:8px;line-height:1.7}
.ecg-option{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--ws-line,var(--ds-line));border-radius:10px;padding:10px 12px;margin:8px 0;font-size:16px;line-height:1.7;cursor:pointer;background:#fff}
.ecg-option input{margin-top:6px;width:18px;height:18px;flex-shrink:0}
.ecg-option.is-answer{border-color:#58a375;background:#e8f5ec}
.ecg-option.is-wrong{border-color:#e08a8a;background:#fdecec}
.ecg-case-error{color:#b42318;margin:8px 0 0}
.ecg-case-verdict{font-weight:700;font-size:17px;padding:8px 12px;border-radius:8px}
.ecg-case-verdict.is-right{color:#1f5f3a;background:#e8f5ec}
.ecg-case-verdict.is-wrong{color:#9b1c1c;background:#fdecec}
.ecg-report-quote{margin:8px 0;padding:10px 14px;border-left:4px solid var(--ds-blue);background:var(--ds-bg);font-size:16px;line-height:1.85}
.ecg-report-sheet{border:1px solid var(--ws-line,var(--ds-line));border-radius:10px;padding:14px 16px;background:#fff;font-size:16px;line-height:1.85}
.ecg-report-sheet p{margin:0 0 4px}
.ecg-report-text{white-space:pre-wrap;word-break:break-word;font-family:inherit;font-size:16px;line-height:1.85;margin:0 0 10px}
.ecg-form textarea{width:100%;border:1px solid var(--ws-line,var(--ds-line));border-radius:9px;padding:8px 10px;font:inherit;font-size:16px;margin-top:4px}
.ecg-textbook{margin-top:14px;padding:12px 14px;border-left:3px solid var(--ws-blue);background:var(--ws-soft);border-radius:8px;line-height:1.7}
.ecg-textbook strong{margin-right:8px}
.ecg-textbook .ecg-hint{display:block;margin-top:4px}

/* ---- Framework v2: site-wide search, calipers, pager, print ---- */
.ecg-global-search{position:relative;display:grid;gap:6px;margin:0 0 24px}
.ecg-global-search[hidden]{display:none}
.ecg-global-search>label{font-weight:700;color:var(--ws-ink)}
.ecg-global-field{position:relative}
.ecg-global-field input{width:100%;min-height:50px;padding:10px 46px 10px 14px;border:1px solid var(--ds-line-strong);border-radius:12px;background:#fff;color:var(--ws-ink);font:inherit;font-size:17px}
.ecg-global-field input:focus{border-color:var(--ws-blue);outline:3px solid rgba(17,105,122,.25);outline-offset:0}
.ecg-global-field input:not(:placeholder-shown)~kbd{display:none}
.ecg-global-field kbd{position:absolute;right:12px;top:50%;transform:translateY(-50%);min-width:24px;padding:1px 6px;border:1px solid var(--ws-line);border-radius:6px;background:var(--ws-soft);color:var(--ws-muted);font:13px/1.5 ui-monospace,monospace;text-align:center;pointer-events:none}
.ecg-global-hint{font-size:14px;color:var(--ws-muted)}
#ecgGlobalResults{position:absolute;z-index:40;top:calc(100% + 4px);left:0;right:0;max-height:min(70vh,520px);overflow:auto;margin:0;padding:6px;list-style:none;border:1px solid var(--ws-line);border-radius:12px;background:#fff;box-shadow:0 14px 34px rgba(8,51,61,.16)}
#ecgGlobalResults li a{display:grid;gap:2px;padding:10px 12px;border-radius:9px;color:var(--ws-text);text-decoration:none}
#ecgGlobalResults li[aria-selected="true"] a,#ecgGlobalResults li a:hover{background:var(--ws-soft)}
#ecgGlobalResults strong{color:var(--ws-ink);font-size:17px}
.ecg-global-meta{font-size:13px;color:var(--ws-muted)}
.ecg-global-snippet{font-size:15px;color:var(--ws-muted);overflow-wrap:anywhere}
.ecg-global-all a{color:var(--ws-blue)!important;font-weight:650}
.ecg-global-empty{padding:12px;color:var(--ws-muted)}
.ecg-page mark{background:#fff0b3;color:inherit;border-radius:3px;padding:0 1px}

.ecg-caliper-toggle{display:flex;width:max-content;margin-top:10px}
.ecg-caliper-readout small{display:block;font-weight:400;font-size:14px;color:var(--ws-muted)}
.ecg-caliper-toggle[aria-pressed="true"]{background:var(--ws-blue);border-color:var(--ws-blue);color:#fff}
.ecg-caliper-readout{margin:8px 0 0;font-weight:650;color:var(--ws-ink)}
.ecg-figure-scroll.is-measuring{touch-action:pan-y}
svg.is-measuring{cursor:ew-resize}
svg.is-measuring:focus-visible{outline:3px solid var(--ws-blue);outline-offset:2px}
.ecg-caliper line[data-leg]{stroke:#b42318;stroke-width:1.6;stroke-dasharray:5 3}
.ecg-caliper line[data-leg].is-active{stroke-width:2.6;stroke-dasharray:none}
.ecg-caliper-bar{stroke:#b42318;stroke-width:1.6}
.ecg-caliper text{fill:#b42318;font-size:13px;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:4px}

.ecg-pager{display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;gap:12px;margin:24px 0 8px}
.ecg-pager a{display:grid;gap:2px;padding:12px 14px;border:1px solid var(--ws-line);border-radius:var(--ws-radius,12px);background:#fff;color:var(--ws-ink);font-weight:650;text-decoration:none;min-width:0;overflow-wrap:anywhere}
.ecg-pager a:hover{border-color:var(--ws-blue)}
.ecg-pager a[rel="next"]{text-align:right}
.ecg-pager small{font-weight:500;color:var(--ws-muted)}
.ecg-pager-count{align-self:center;font-size:14px;color:var(--ws-muted);text-align:center}
@media (max-width:640px){
  .ecg-pager{grid-template-columns:1fr 1fr}
  .ecg-pager-count{grid-column:1/-1;grid-row:1}
  .ecg-global-hint{display:none}
}

@media print{
  .skip-link,.ecg-global-search,.class-breadcrumb,.class-notice,.ecg-layer-control .btn,.ecg-caliper-toggle,.ecg-caliper-readout,.ecg-pager,.ecg-print-hide,.ecg-review-footer{display:none!important}
  .ecg-page{background:#fff;font-size:12pt}
  .ecg-page .class-hero{background:none;color:#000;padding:0;border:0}
  .ecg-page .class-hero *{color:#000!important}
  .ecg-page .class-hero-stats{display:none}
  .ecg-page .class-content-section{break-inside:avoid-page;border:0;box-shadow:none;padding:0;margin:0 0 14pt}
  .ecg-figure,.ecg-criteria-wrap{break-inside:avoid}
  .ecg-figure-scroll{overflow:visible!important}
  .ecg-figure-scroll svg{width:100%!important;height:auto}
  .ecg-periop>summary{list-style:none}
  .ecg-page a[href^="http"]::after{content:" (" attr(href) ")";font-size:9pt;color:#444;overflow-wrap:anywhere}
  body.ecg-entry-page main{padding-bottom:0!important}
}
/* 报告生成器：心律必选提示、未选时的错误边框、停用的 PR 间期 */
.ecg-form-hint{margin:10px 0 0;font-size:.875rem;line-height:1.7;color:var(--ws-muted,var(--ds-muted))}
.ecg-form select[aria-invalid="true"]{border-color:#b42318;box-shadow:0 0 0 3px rgba(180,35,24,.14)}
.ecg-form input:disabled{background:var(--ds-blue-50);color:#849a9f;cursor:not-allowed}
