/* SLE 随访结局预测计算器 — 可运行原型样式 v4.0（源自 v3.9 视觉定稿）（叠加在 NHS.UK Frontend v10 之上；构图参照 ACC CVD Risk Estimator Plus）
   颜色：强调色（政务蓝 #015293，可切换）；三结局 #FD8D3C/#D7191B/#800026；轨迹 T1–T4 取稿件调色板。 */
:root { --sle-accent: #015293; --sle-accent-dark: #013f73; --sle-accent-soft: #e6eef6; --sle-ink: #212b32; --sle-muted: #4c6272; --sle-line: #d8dde0; --sle-bg: #f7f8f9; --sle-canvas: #e8e8e8; --sle-navy: #00386b; --sle-sheet: #fff; --sle-card: #fff;
  --sle-flare: #FD8D3C; --sle-severe: #D7191B; --sle-sdi: #800026; --sle-t1: #9ECAE1; --sle-t2: #6BAED6; --sle-t3: #800026; --sle-t4: #08519C; }

/* 1 字号与字体：NHS 以 rem 排版，根字号 13.5px → 正文 ≈16px */
/* 页面底：浅灰噪点纹理（参照 ACC：外层容器浅灰纹理，白色内容卡片浮在其上） */
html { font-size: 13.5px; font-family: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif; background: var(--sle-canvas) url("assets/bg_noise.png"); }
body { background: var(--sle-canvas) url("assets/bg_noise.png"); }
.nhsuk-width-container { max-width: 1024px; }
button, input, select, textarea { font-family: inherit; }
.nhsuk-heading-l, h2.nhsuk-heading-l { font-size: 1.7rem; line-height: 1.25; }

/* 2 链接与按钮：强调色；保留 NHS 方角＋厚底边与黄色焦点 */
a, .nhsuk-link, .nhsuk-back-link, .nhsuk-task-list__link { color: var(--sle-accent); }
a:hover, .nhsuk-link:hover, .nhsuk-back-link:hover { color: var(--sle-accent-dark); }
/* 工具内链接都是动作而非去过的页面，不用“已访问”紫色（覆盖 NHS a:visited / .nhsuk-link:visited #330072） */
a:visited, .nhsuk-link:visited, .nhsuk-task-list__link:visited { color: var(--sle-accent); }
.sle-footer__nav a:visited { color: #fff; }
a:visited:hover, .nhsuk-link:visited:hover { color: var(--sle-accent-dark); }
.sle-pagenav__danger:visited { color: #d5281b; }
.nhsuk-button { background-color: var(--sle-accent); box-shadow: 0 4px 0 var(--sle-accent-dark); }
.nhsuk-button:hover { background-color: var(--sle-accent-dark); }
.nhsuk-button:active { box-shadow: none; }
.nhsuk-button--secondary { background-color: #fff; color: var(--sle-accent); border: 2px solid var(--sle-accent); box-shadow: 0 4px 0 #aeb7bd; }
.nhsuk-button--secondary:hover { background-color: var(--sle-accent-soft); color: var(--sle-accent-dark); }

/* 3 顶部标题带（仿 ACC：白底、6px 深蓝下边、左标识 + 名称；吸顶）＋ 独立的步骤行 */
/* 抬头：深蓝横幅（金色 logo 在深底上更清楚），下缘一条细亮线分隔 */
.sle-header { position: sticky; top: 0; z-index: 30; background: var(--sle-navy); border-bottom: 0; box-shadow: 0 2px 6px rgba(0,0,0,.22); }
.sle-header__inner { display: flex; align-items: center; justify-content: flex-start; gap: 28px; min-height: 78px; max-width: none; margin: 0; padding: 0 24px; }
.sle-brand { display: inline-flex; align-items: center; gap: 18px; text-decoration: none; color: #fff; }
.sle-brand:hover { text-decoration: none; color: #fff; opacity: .92; }
.sle-brand:focus { box-shadow: none; background: transparent; outline: 3px solid #ffeb3b; }
.sle-brand__logo { display: inline-grid; place-items: center; width: 168px; height: 48px; border: 1.5px dashed rgba(255,255,255,.5); border-radius: 4px; color: rgba(255,255,255,.75); font-size: .85rem; letter-spacing: .5px; background: transparent; }
.sle-brand__divider { width: 1px; height: 36px; background: rgba(255,255,255,.35); }
.sle-brand__name { font-size: 1.85rem; font-weight: 700; letter-spacing: .5px; line-height: 1.1; color: #fff; }
/* 副标：两行小字，靠右、浅色 */
.sle-header__caption { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: .82rem; line-height: 1.4; color: rgba(255,255,255,.8); white-space: nowrap; text-align: right; margin-left: auto; }
.sle-stepbar { background: #fff; border-top: 0; border-bottom: 1px solid var(--sle-line); }
.sle-stepbar ol { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.sle-stepbar li { margin: 0; padding: 0; display: block; }
.sle-step { display: flex; align-items: center; gap: 10px; margin: 0 0 -1px; padding: 12px 18px 10px; font: inherit; font-size: 1rem; color: var(--sle-muted); background: none; border: 0; border-bottom: 4px solid transparent; cursor: pointer; }
.sle-step:not(:disabled):hover { background: var(--sle-accent-soft); color: var(--sle-accent-dark); }
.sle-step:disabled { cursor: default; opacity: .5; }
.sle-step:focus-visible { outline: 3px solid #ffeb3b; outline-offset: -3px; }
.sle-step .n { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #aeb7bd; display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.sle-stepbar li.is-current .sle-step { color: var(--sle-accent); font-weight: 700; border-bottom-color: var(--sle-accent); }
.sle-stepbar li.is-current .n { background: var(--sle-accent); border-color: var(--sle-accent); color: #fff; }
.sle-stepbar li.is-done .sle-step { color: var(--sle-ink); } .sle-stepbar li.is-done .n { background: #007f3b; border-color: #007f3b; color: #fff; }

/* 4 页面骨架：留白加大；左 2/3 内容、右 1/3 按钮列；页脚固定在视口底部 */
.sle-screen { display: none; } .sle-screen.is-active { display: block; }
.sle-main { background: transparent; padding: 28px 0 100px; }
/* 浮起的白色面板（参照 ACC：深灰画布 + 白色内容面板） */
.sle-page { background: var(--sle-sheet); border: 1px solid #d9d9d9; border-radius: 0; box-shadow: 1px 1px 4px 2px rgba(0,0,0,.2); padding: 28px 36px 40px; }
/* 翻页栏：所有页面导航按钮放在内容最下方（左返回类链接与说明，右次/主按钮） */
.sle-pagenav { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--sle-line); }
.sle-pagenav__left { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 1rem; }
.sle-pagenav__right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.sle-pagenav .nhsuk-button { margin: 0; min-width: 200px; }
.sle-pagenav__note { font-size: .9rem; color: var(--sle-muted); }
.sle-pagenav__danger { color: #d5281b; }
/* 预计可输出：一行状态条 */
.sle-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--sle-card); border: 1px solid var(--sle-line); border-left: 4px solid var(--sle-accent); padding: 12px 18px; margin-bottom: 24px; }
.sle-status__label { font-weight: 700; font-size: .95rem; color: var(--sle-ink); }
.sle-status__items { display: flex; gap: 10px; flex-wrap: wrap; }
.sle-status__items .m { display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; padding: 4px 10px; border-radius: 3px; background: #f0f4f5; }
.sle-status__items .m.y { color: #004c23; background: #e4f2ea; } .sle-status__items .m.n { color: #6b140e; background: #fbe6e4; }
.sle-status__items .m .i { font-weight: 700; }
.sle-status__items .m .why { font-size: .85rem; opacity: .9; }
.sle-status__note { margin-left: auto; font-size: .85rem; color: var(--sle-muted); }
/* 虚构示例横幅：区别于蓝色指令条，用暖黄左边 */
.sle-example { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 0 0 20px; padding: 12px 18px; background: #fff8e1; border-left: 4px solid #ffb81c; font-size: 1rem; }
.sle-example a { white-space: nowrap; }
.sle-instruction { margin: 0 0 28px; padding: 14px 18px; background: var(--sle-accent-soft); border-left: 4px solid var(--sle-accent); font-size: 1.05rem; line-height: 1.6; }
.sle-card { background: var(--sle-card); border: 1px solid var(--sle-line); padding: 28px 32px; margin-bottom: 24px; }
.sle-card > :last-child { margin-bottom: 0; }
.sle-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 14px; }
.sle-title h1 { margin: 0; font-size: 1.95rem; font-weight: 700; line-height: 1.25; }
.sle-title .cap { color: var(--sle-muted); font-size: 1rem; }

/* 4b 开始页：只选入口 */
.sle-start { max-width: 920px; }
.sle-start.sle-page { padding-top: 48px; }
.sle-start__intro h1 { font-size: 2.1rem; font-weight: 700; line-height: 1.3; margin: 0 0 14px; }
.sle-start__intro p { font-size: 1.12rem; line-height: 1.7; color: var(--sle-muted); margin: 0 0 36px; max-width: 42em; }
.sle-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 24px; }
.sle-entry__card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--sle-line); border-top: 4px solid var(--sle-accent); padding: 30px 32px 28px; text-decoration: none; color: var(--sle-ink); min-height: 250px; }
.sle-entry__card:hover { border-color: var(--sle-accent); box-shadow: 0 4px 16px rgba(1,82,147,.10); color: var(--sle-ink); text-decoration: none; }
.sle-entry__card:focus { outline: 4px solid #ffeb3b; box-shadow: none; background: #fff; color: var(--sle-ink); }
.sle-entry__icon { width: 48px; height: 48px; border-radius: 6px; background: var(--sle-accent-soft); color: var(--sle-accent); display: grid; place-items: center; margin-bottom: 6px; }
.sle-entry__title { font-size: 1.4rem; font-weight: 700; }
.sle-entry__desc { font-size: 1rem; line-height: 1.65; color: var(--sle-muted); flex: 1; }
.sle-entry__btn { align-self: flex-start; margin: 10px 0 0; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
/* 右卡的上传状态为空时不占高度，保证两张卡的按钮底边对齐 */
.sle-entry__status:empty { display: none; }
.sle-start__links { font-size: 1rem; margin: 0 0 40px; }
.sle-start__links .sep { margin: 0 12px; color: #aeb7bd; }
.sle-flow { display: flex; align-items: center; gap: 10px 12px; list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--sle-line); color: var(--sle-muted); font-size: 1rem; line-height: 1.3; flex-wrap: wrap; }
.sle-flow li { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 0; white-space: nowrap; }
.sle-flow li + li::before { content: "→"; color: #aeb7bd; margin-right: 12px; line-height: 1; }
.sle-flow .n { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--sle-accent-soft); color: var(--sle-accent); display: grid; place-items: center; font-size: .85rem; font-weight: 700; }

/* 5 问题网格（参照 ACC：标签在上、控件在下、提示在下；数值 4 列、分类 3 列） */
.sle-sect { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--sle-line); }
.sle-sect:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sle-sect__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.sle-sect__head h2 { margin: 0; font-size: 1.3rem; font-weight: 700; }
.sle-sect__meta { color: var(--sle-muted); font-size: .9rem; }
.sle-sect__tool { margin-left: auto; font-size: .9rem; }
.sle-sect__intro { font-size: .98rem; color: var(--sle-muted); margin: -6px 0 18px; line-height: 1.6; }
.sle-qgrid { display: grid; gap: 22px 28px; }
.sle-qgrid + .sle-qgrid { margin-top: 22px; }
.sle-qgrid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sle-qgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sle-qgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 分组块（SLEDAI 五组）：大类标题 > 小类标签；每组一个浅底框，组间留白 */
.sle-groups { display: flex; flex-direction: column; gap: 14px; }
.sle-group { background: #fafbfc; border: 1px solid var(--sle-line); padding: 16px 20px 20px; }
.sle-group__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.12rem; font-weight: 700; color: var(--sle-ink); }
.sle-group__title small { font-size: .85rem; font-weight: 400; color: var(--sle-muted); }
.sle-group__num { width: 22px; height: 22px; border-radius: 50%; background: var(--sle-accent); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.sle-group__grid { gap: 14px 24px; }
.sle-group .sle-q__label { font-size: .95rem; font-weight: 500; }
.sle-group .sle-pills--sm button { min-height: 36px; font-size: .9rem; }
.sle-q { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@supports (grid-template-rows: subgrid) {
  .sle-q { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 8px; align-content: start; }
  .sle-q > :nth-child(2) { align-self: start; }
}
.sle-q__label { font-weight: 600; font-size: 1.05rem; line-height: 1.35; color: var(--sle-ink); }
.sle-q__label small { font-weight: 400; color: var(--sle-muted); }
.sle-q__label .req { color: #d5281b; font-weight: 700; margin-left: 2px; }
.sle-q__hint { font-size: .88rem; color: var(--sle-muted); line-height: 1.45; }
.sle-q__msg { font-size: .85rem; color: #d5281b; font-weight: 600; }
.sle-q .nhsuk-input { width: 100%; max-width: 100%; height: 44px; padding: 4px 12px; font-size: 1.05rem; }
.sle-q .nhsuk-input::placeholder { color: #8a97a0; }
.sle-q.is-error .sle-q__label { color: #d5281b; }
.sle-q.is-error .nhsuk-input, .sle-q.is-error .sle-pills button { border-color: #d5281b; }
.sle-pills { display: flex; width: 100%; }
.sle-pills button { flex: 1 1 0; min-width: 0; min-height: 44px; border: 1px solid #aeb7bd; background: #fff; color: var(--sle-ink); font: inherit; font-size: .95rem; padding: 6px 4px; cursor: pointer; margin-left: -1px; line-height: 1.2; }
.sle-pills button:first-child { margin-left: 0; border-radius: 3px 0 0 3px; }
.sle-pills button:last-child { border-radius: 0 3px 3px 0; }
.sle-pills button:hover { background: var(--sle-accent-soft); }
.sle-pills button[aria-pressed="true"] { background: var(--sle-accent); border-color: var(--sle-accent); color: #fff; font-weight: 600; position: relative; z-index: 1; }
.sle-pills button[aria-pressed="true"].is-neg { background: #4c6272; border-color: #4c6272; }
.sle-pills button[aria-pressed="true"].is-unk { background: #aeb7bd; border-color: #aeb7bd; color: #212b32; }
.sle-pills button[aria-pressed="true"].is-nt { background: repeating-linear-gradient(135deg, #aeb7bd 0 4px, #c9d0d4 4px 8px); border-color: #aeb7bd; color: #212b32; }
.sle-pills button:focus-visible { outline: 3px solid #ffeb3b; outline-offset: 0; z-index: 2; }
.sle-pills--sm button { min-height: 38px; font-size: .95rem; }
.sle-reveal { margin-top: 8px; }

/* 6 随访总览：任务列表 + 预计可输出 */
.nhsuk-task-list__hint { font-size: .9rem; color: var(--sle-muted); }
.sle-empty { border: 1px dashed #aeb7bd; padding: 20px; text-align: center; color: var(--sle-muted); background: #fff; }
.sle-rail h3 { font-size: 1rem; margin: 0 0 8px; }
.sle-rail .m { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--sle-line); font-size: .95rem; }
.sle-rail .m:last-of-type { border-bottom: 0; }
.sle-rail .m .i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; margin-top: 1px; }
.sle-rail .m.y .i { background: #cce5d8; color: #004c23; } .sle-rail .m.n .i { background: #f7d4d1; color: #6b140e; }
.sle-rail .m .why { display: block; font-size: .85rem; color: #6b140e; }
.sle-rail .foot { font-size: .82rem; color: var(--sle-muted); margin: 8px 0 0; }

/* 7 核对页：模块状态卡（参照 ACC 结果卡片行） */
.sle-gate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.sle-gate__card { background: #fff; border: 1px solid var(--sle-line); border-top: 4px solid var(--sle-line); padding: 14px 16px; }
.sle-gate__card.is-on { border-top-color: #007f3b; } .sle-gate__card.is-off { border-top-color: #d5281b; }
.sle-gate__card h3 { font-size: 1rem; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sle-gate__card p { font-size: .9rem; color: var(--sle-muted); margin: 0 0 6px; }
.sle-tri { display: inline-block; min-width: 22px; text-align: center; border-radius: 3px; font-size: .85rem; font-weight: 700; line-height: 20px; }
.sle-tri--p { background: #ccdff1; color: #004281; } .sle-tri--n { background: #e8ecee; color: #354550; } .sle-tri--u { background: #fff59d; color: #4d4712; }
.sle-table-wrap { overflow-x: auto; border: 1px solid var(--sle-line); background: #fff; }
.sle-table-wrap .nhsuk-table { margin-bottom: 0; font-size: .9rem; white-space: nowrap; }
.sle-table-wrap .nhsuk-table__cell, .sle-table-wrap .nhsuk-table__header { padding: 6px 10px; text-align: center; }
.sle-table-wrap .nhsuk-table__header--sticky, .sle-table-wrap .nhsuk-table__cell--sticky { position: sticky; left: 0; z-index: 1; background: #fff; text-align: left; font-weight: 600; border-right: 1px solid var(--sle-line); }
/* 核对表：两行表头（组名 / 列名）、组间竖线、末列“修改”固定在右侧、问题格黄底 */
.sle-table-wrap--review { margin-bottom: 8px; }
.sle-rev-table thead th { vertical-align: bottom; }
.sle-rev-table .sle-th-group { background: #f0f4f5; font-weight: 700; text-align: center; border-bottom: 1px solid var(--sle-line); }
.sle-rev-table .g-start { border-left: 2px solid var(--sle-line); }
.sle-table-wrap .nhsuk-table__header--act, .sle-table-wrap .nhsuk-table__cell--act { position: sticky; right: 0; z-index: 1; background: #fff; border-left: 1px solid var(--sle-line); text-align: center; font-weight: 600; }
.sle-rev-table .nhsuk-table__cell--sticky .nhsuk-tag { font-size: .72rem; padding: 1px 6px; }
.sle-cell--issue { background: #fff59d; }
.sle-tri--nt { background: repeating-linear-gradient(135deg, #e8ecee 0 3px, #d8dde0 3px 6px); color: #354550; font-size: .72rem; }

/* 8 结果页 */
.sle-time__row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.sle-time input[type=range] { flex: 1; min-width: 200px; accent-color: var(--sle-accent); }
.sle-time__sel { font-variant-numeric: tabular-nums; color: var(--sle-muted); white-space: nowrap; }
.sle-time__sel b { color: var(--sle-ink); font-size: 1.15rem; }
.sle-time .sle-pills { width: auto; min-width: 360px; }
/* 精确输入行：数值 + 单位、日期，与滑杆同步 */
.sle-time__row--exact { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--sle-line); gap: 12px 16px; }
.sle-time__lbl { font-weight: 600; }
.sle-time__group { display: inline-flex; align-items: center; gap: 8px; }
.sle-time__row--exact .nhsuk-input, .sle-time__row--exact .nhsuk-select { margin-top: 0; }
.sle-time__pre, .sle-time__or { color: var(--sle-muted); }
.sle-time .nhsuk-input.sle-time__num { width: 110px; height: 44px; font-size: 1.05rem; padding: 4px 10px; }
.sle-time .nhsuk-select.sle-time__unit { width: auto; min-width: 96px; height: 44px; font-size: 1rem; }
.sle-time .nhsuk-input.sle-time__date { width: 180px; height: 44px; font-size: 1rem; padding: 4px 10px; }
.sle-tag-muted { display: inline-block; margin-left: 10px; padding: 2px 8px; background: #e8ecee; color: var(--sle-muted); font-size: .78rem; font-weight: 600; vertical-align: middle; border-radius: 3px; }
.sle-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.sle-out__card { background: #fff; border: 1px solid var(--sle-line); border-top: 5px solid var(--sle-line); padding: 16px 16px 14px; min-width: 0; }
.sle-out__card.flare { border-top-color: var(--sle-flare); } .sle-out__card.severe { border-top-color: var(--sle-severe); } .sle-out__card.sdi { border-top-color: var(--sle-sdi); }
.sle-out__card h3 { font-size: 1.05rem; margin: 0 0 2px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.sle-out__card h3 small { font-size: .75rem; color: #768692; font-weight: 400; }
.sle-out__card .v { font-size: 2.3rem; font-weight: 700; line-height: 1.1; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.sle-out__card .v.na { font-size: 1rem; font-weight: 400; color: var(--sle-muted); }
.sle-out__card .cap { font-size: .9rem; color: var(--sle-muted); margin-bottom: 6px; }
.sle-out__card .chart { margin-bottom: 8px; }
.sle-howto { margin: -6px 0 24px; }
.sle-howto .nhsuk-details__text { font-size: .95rem; }
.sle-out__card .chart svg { width: 100%; height: auto; display: block; margin: 4px 0; }
.sle-out__card .nhsuk-list { font-size: .88rem; color: var(--sle-muted); margin-bottom: 6px; }
.sle-out__card .support { border-top: 1px dashed var(--sle-line); padding-top: 6px; font-size: .82rem; color: var(--sle-muted); }
.sle-out__card .paused { background: #f0f4f5; padding: 10px; font-size: .9rem; margin: 8px 0; }
.sle-traj { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.sle-trow { display: grid; grid-template-columns: 190px 1fr 60px; gap: 12px; align-items: center; margin: 9px 0; font-size: .95rem; }
.sle-trow .bar { height: 14px; background: #e8ecee; } .sle-trow .bar i { display: block; height: 100%; }
.sle-trow .pct { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sle-trow .code { font-weight: 700; margin-right: 6px; }

/* 8b 信息页：左目录 + 右正文 */
.sle-info__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.sle-info__nav ul { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--sle-line); position: sticky; top: 100px; }
.sle-info__nav li { margin: 0; }
.sle-info__nav li + li { border-top: 1px solid var(--sle-line); }
.sle-info__nav a { display: block; padding: 12px 16px; border-left: 4px solid transparent; text-decoration: none; font-weight: 600; font-size: 1rem; }
.sle-info__nav a:hover { background: var(--sle-accent-soft); text-decoration: none; }
.sle-info__nav a.is-current { border-left-color: var(--sle-accent); background: var(--sle-accent-soft); color: var(--sle-accent-dark); }
.sle-prose h2 { font-size: 1.25rem; font-weight: 700; margin: 28px 0 10px; }
.sle-prose h2:first-child { margin-top: 0; }
.sle-prose p, .sle-prose li { font-size: 1.02rem; line-height: 1.7; }
.sle-prose .nhsuk-list { margin-bottom: 8px; }
.sle-prose code { font-size: .92em; background: #f0f4f5; padding: 1px 5px; border-radius: 3px; }
.sle-ph { background: #fff3bf; color: #4d4712; padding: 0 4px; }
.sle-kv .nhsuk-summary-list__key, .sle-kv .nhsuk-summary-list__value { font-size: 1rem; padding-top: 6px; padding-bottom: 6px; }
.sle-kv .nhsuk-summary-list__key { width: 9em; }
.sle-fields .nhsuk-table { white-space: normal; font-size: .92rem; }
.sle-fields .nhsuk-table__cell, .sle-fields .nhsuk-table__header { text-align: left; vertical-align: top; }
.sle-fields__group th { background: #f0f4f5; }

/* 9 页脚：固定在视口底部（仿 ACC：白底、4px 深蓝上边）；左声明、右链接 */
.sle-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--sle-navy); border-top: 0; box-shadow: 0 -2px 6px rgba(0,0,0,.18); box-shadow: none; }
/* 页脚内容与抬头一样铺满整行：声明靠最左、链接靠最右 */
.sle-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; max-width: none; margin: 0; padding: 8px 24px; }
.sle-footer__disc { margin: 0; font-size: .92rem; color: rgba(255,255,255,.88); }
.sle-footer__nav { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: .95rem; white-space: nowrap; }
.sle-footer__nav li { margin: 0; }
.sle-footer__nav a { color: #fff; text-decoration: none; font-weight: 600; }
.sle-footer__nav a:hover { text-decoration: underline; }

.sle-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #212b32; color: #fff; padding: 10px 16px; z-index: 60; }
.sle-hidden { display: none !important; }

@media (max-width: 1000px) { .sle-qgrid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sle-qgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sle-gate { grid-template-columns: 1fr 1fr; } .sle-out { grid-template-columns: 1fr; } .sle-traj { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .sle-page { border: 0; box-shadow: none; padding: 20px 16px 32px; } .sle-main { padding-top: 0; } .sle-info__layout { grid-template-columns: 1fr; } .sle-info__nav ul { position: static; display: flex; flex-wrap: wrap; } .sle-info__nav li + li { border-top: 0; } .sle-pagenav__right { width: 100%; } .sle-pagenav .nhsuk-button { flex: 1; min-width: 0; } .sle-status__note { margin-left: 0; } .sle-header__caption { display: none; } .sle-brand__name { font-size: 1.3rem; } .sle-stepbar li span.t { display: none; } .sle-entry { grid-template-columns: 1fr; } .sle-footer__inner { flex-direction: column; align-items: flex-start; gap: 6px; } .sle-main { padding-bottom: 120px; } }
@media (max-width: 560px) { .sle-qgrid--4, .sle-qgrid--3, .sle-qgrid--2, .sle-gate { grid-template-columns: 1fr; } .sle-trow { grid-template-columns: 1fr; gap: 4px; } .sle-time .sle-pills { min-width: 0; width: 100%; } }
/* 10b 是否类题目：浏览器原生圆形单选钮（用户裁决 A，2026-10-28）；每题带明确"不清楚" */
.rg { display: flex; flex-wrap: wrap; gap: 6px 18px; min-height: 44px; align-items: center; }
.rg label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 1rem; color: var(--sle-ink); line-height: 1.2; margin: 0; }
.rg input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--sle-accent); cursor: pointer; flex: 0 0 18px; }
.rg input[type=radio]:focus-visible { outline: 3px solid #ffeb3b; outline-offset: 2px; }
.sle-q.is-error .rg label { color: #d5281b; }

/* 10c 背景水印（医院院徽“厚德尚道”）：固定在视口中偏右、内容之下，极淡；打印不带 */
/* 院徽水印：放大到比内容卡片更宽、居中置于卡片之后，左右两侧各露出一部分 */
.sle-watermark { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-repeat: no-repeat; background-position: center 52%; background-size: max(1500px, 125vw) auto; opacity: .085; }
body[data-watermark="start"] .sle-watermark { display: none; }
body[data-watermark="start"].is-start .sle-watermark { display: block; }
.sle-main { position: relative; z-index: 1; }
.sle-main { background: transparent; }
@media (min-width: 1700px) { .sle-watermark { background-size: 1700px auto; } }
@media (max-width: 1000px) { .sle-watermark { background-position: center 50%; background-size: 160vw auto; opacity: .07; } }
@media print { .sle-watermark { display: none !important; } }

/* 11 可运行版新增：辅助隐藏、模式提示、错误、弹窗、上传、核对采用值、标识图片 */
.sle-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sle-mode { background: #fff8e1; border-bottom: 1px solid #ffb81c; color: #4d4712; font-size: .95rem; padding: 10px 0; }
.sle-error { color: #d5281b; font-weight: 600; margin: 14px 0 0; font-size: 1rem; }
.sle-error:empty { display: none; }
.sle-busy { color: var(--sle-muted); font-size: 1rem; margin: 12px 0; }
/* 上传状态行绝对定位在卡片底部预留区，出现后不改变两张入口卡的高度与按钮位置 */
.sle-entry__card { position: relative; padding-bottom: 56px; }
.sle-entry__status { position: absolute; left: 32px; right: 32px; bottom: 16px; margin: 0; font-size: .9rem; color: var(--sle-muted); }
.sle-entry__btn.nhsuk-button { cursor: pointer; }
.sle-adopted { font-size: .95rem; background: #f0f4f5; padding: 10px 14px; margin: 0 0 14px; line-height: 1.6; }
.sle-issue { background: #fff; border-left: 6px solid #d5281b; padding: 14px 18px; margin: 0 0 20px; }
.sle-issue h3 { color: #d5281b; font-size: 1.1rem; margin: 0 0 6px; }
.sle-issue ul { margin: 6px 0 0; padding-left: 20px; font-size: .98rem; }
/* 不阻断的提醒：小字、暖黄左边，不用 NHS 大号警示框 */
.sle-notice { background: #fff8e1; border-left: 6px solid #ffb81c; padding: 12px 18px 10px; margin: 0 0 20px; font-size: .95rem; }
.sle-notice h3 { font-size: 1.02rem; margin: 0 0 4px; color: var(--sle-ink); }
.sle-notice__sub { margin: 6px 0 2px; font-weight: 600; color: var(--sle-muted); font-size: .92rem; }
.sle-notice ul { margin: 0 0 4px; padding-left: 20px; }
.sle-notice li { margin-bottom: 2px; }
.sle-modal { position: fixed; inset: 0; z-index: 70; background: rgba(33,43,50,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sle-modal__box { background: #fff; padding: 28px 32px; max-width: 460px; width: 100%; border-top: 6px solid var(--sle-accent); }
.sle-modal__box h2 { margin: 0 0 8px; font-size: 1.35rem; }
.sle-modal__box p { color: var(--sle-muted); font-size: .98rem; }
.sle-modal__box .nhsuk-input { width: 100%; height: 44px; margin: 10px 0 18px; }
.sle-modal__actions { display: flex; gap: 14px; justify-content: flex-end; }
.sle-modal__actions .nhsuk-button { margin: 0; }
.sle-brand__logo img { max-height: 48px; max-width: 230px; display: block; }
.sle-brand__logo.has-img { border: 0; background: transparent; width: auto; }
.sle-gate__card ul { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--sle-muted); }
.sle-gate__notes { margin: -6px 0 22px; } .sle-gate__notes span + span::before { content: '；'; }
.sle-out__card .chart { cursor: crosshair; }
.sle-out__card .readout { font-size: .82rem; color: var(--sle-muted); min-height: 1.3em; margin: 0 0 6px; }
.sle-trow.top .code { color: var(--sle-accent); }
.sle-traj__notes { font-size: .95rem; color: var(--sle-muted); }
@media print { .sle-toast, .sle-pagenav, .sle-footer, .sle-header, .sle-mode, .sle-modal { display: none !important; } }
