/* HC14 · drug-dosage-check「处方笺」：纸白底 + 蓝黑墨 + 珊瑚警示 + 骑缝章 */
.hc14--dose {
    --bg: #f7f5f0;
    --surface: #fffdf8;
    --surface-2: #f1eee6;
    --ink: #1d2937;
    --sub: #4b5c6b;
    --muted: #8b98a3;
    --line: #dcd8cd;
    --line-strong: #bfb9ab;
    --c1: #265d7a;
    --c2: #c96a4b;
    --tint: #e8f0f4;
    --on-c1: #ffffff;
    --warn: #9d6f13;
    --warn-tint: #f8efd8;
    --danger: #b3402e;
    --danger-tint: #fae7e1;
    --shadow: 0 2px 3px rgba(40,50,60,.04), 0 14px 32px rgba(40,50,60,.07);
    --font: "Songti SC", "STSong", "SimSun", "PingFang SC", serif;
    background:
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(38,93,122,.045) 31px 32px),
        var(--bg);
}
html[data-theme="dark"] .hc14--dose {
    --bg: #12181d;
    --surface: #1b242b;
    --surface-2: #222d35;
    --ink: #eef2f4;
    --sub: #b4c1c9;
    --muted: #84949e;
    --line: #2c3a43;
    --line-strong: #40535f;
    --c1: #6fb6d6;
    --c2: #e39a7f;
    --tint: #1d3642;
    --on-c1: #0d1c24;
    --danger-tint: #3a231e;
    --warn-tint: #352b14;
    background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(111,182,214,.045) 31px 32px), var(--bg);
}
.dose-hero h1 em { font-style:normal; color:var(--c2); }
.dose-hero .hc14-sub b { color:var(--c2); }

.dose-sheet {
    position:relative; padding:26px 28px 24px; border:2px solid var(--line-strong);
    border-radius:4px; background:var(--surface); box-shadow:var(--shadow);
}
.dose-sheet::before {
    content:""; position:absolute; left:14px; top:0; bottom:0; width:1px; background:var(--c2); opacity:.35;
}
.dose-sheet-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; border-bottom:2px solid var(--ink); padding-bottom:14px; margin-bottom:16px; }
.dose-sheet-head span { display:block; font-family:var(--mono); font-size:11px; letter-spacing:.18em; color:var(--muted); }
.dose-sheet-head strong { display:block; font-size:24px; letter-spacing:.12em; margin-top:2px; }
.dose-stamp {
    width:82px; height:82px; flex:none; border:3px double var(--c2); border-radius:50%;
    color:var(--c2); font-size:12px; font-weight:800; line-height:1.35; text-align:center;
    display:grid; place-items:center; transform:rotate(-14deg); opacity:.82;
}
.dose-warn {
    padding:12px 14px; margin-bottom:20px; background:var(--danger-tint);
    border-left:4px solid var(--c2); color:var(--danger); font-size:13px; line-height:1.7;
}
.dose-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:14px 20px; }
.dose-grid .hc14-input { font-family:var(--mono); background:var(--surface-2); border-radius:6px; border-width:1px 1px 2px; }

.dose-result { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; }
.dose-cell { padding:20px; border:1px solid var(--line); border-radius:8px; background:var(--surface); }
.dose-cell .lab { font-size:12px; color:var(--muted); letter-spacing:.06em; }
.dose-cell strong { display:block; font-family:var(--mono); font-size:30px; color:var(--c1); line-height:1.25; margin-top:6px; }
.dose-cell small { color:var(--sub); font-size:12px; }
.dose-cell.is-over { border-color:var(--c2); background:var(--danger-tint); }
.dose-cell.is-over strong { color:var(--danger); }
.dose-checklist { margin-top:18px; padding:18px 20px; border:1px dashed var(--line-strong); border-radius:8px; background:var(--surface-2); }
.dose-checklist h3 { font-size:16px; margin-bottom:10px; }
.dose-checklist ul { margin:0; padding-left:20px; font-size:13px; line-height:1.9; }

.dose-steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; margin-bottom:18px; }
.dose-steps > div { padding:18px; border:1px solid var(--line); border-top:3px solid var(--c1); border-radius:6px; background:var(--surface); }
.dose-steps b { display:block; font-family:var(--mono); font-size:12px; color:var(--c2); }
.dose-steps span { display:block; font-weight:750; margin:6px 0; }
.dose-steps small { display:block; color:var(--muted); line-height:1.7; }
