/* HC14 · blood-sugar-log「血糖光谱」：琥珀 + 深蓝绿 + 目标带 */
.hc14--bs {
    --bg: #f5f7f4;
    --surface: #ffffff;
    --surface-2: #eef3ef;
    --ink: #1d2b27;
    --sub: #4e645d;
    --muted: #879a92;
    --line: #dce7e0;
    --line-strong: #b8cbc0;
    --c1: #1d6b62;
    --c2: #d58b20;
    --tint: #e2f1eb;
    --on-c1: #ffffff;
    --warn: #a87110;
    --warn-tint: #fbf0d6;
    --danger: #b64040;
    --danger-tint: #fbe8e6;
    --shadow: 0 14px 32px rgba(20,60,50,.07);
    background: linear-gradient(120deg, rgba(213,139,32,.05), transparent 45%), var(--bg);
}
html[data-theme="dark"] .hc14--bs {
    --bg: #101a18;
    --surface: #182723;
    --surface-2: #1f312c;
    --ink: #eef7f2;
    --sub: #b0c7bd;
    --muted: #80988d;
    --line: #2a4039;
    --line-strong: #3c5a50;
    --c1: #58c3ae;
    --c2: #e9ae51;
    --tint: #193a32;
    --on-c1: #0c221c;
    --danger-tint: #3a2222;
    --warn-tint: #352b12;
    --shadow: 0 16px 36px rgba(0,0,0,.34);
}
.bs-hero h1 em { font-style:normal; color:var(--c2); }
.bs-hero .hc14-sub b { color:var(--c1); }
.bs-console { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(230px,.75fr); gap:18px; }
.bs-entry { padding:24px; border-radius:18px; background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow); }
.bs-tag { font-family:var(--mono); font-size:11px; letter-spacing:.14em; color:var(--c2); font-weight:700; }
.bs-entry h2 { font-size:21px; margin:6px 0 14px; }
.bs-slot { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.bs-slot label { position:relative; cursor:pointer; }
.bs-slot input { position:absolute; opacity:0; pointer-events:none; }
.bs-slot span { display:inline-block; padding:7px 15px; border-radius:999px; border:1.5px solid var(--line-strong); color:var(--sub); font-size:13px; font-weight:700; }
.bs-slot input:checked + span { background:var(--c2); border-color:var(--c2); color:#fff; }
.bs-entry .hc14-input { font-family:var(--mono); background:var(--surface-2); }
.bs-gauge { padding:24px 20px; border-radius:18px; background:var(--surface); border:1px solid var(--line); display:flex; flex-direction:column; align-items:center; gap:14px; }
.bs-ring {
    width:172px; height:172px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center;
    background:conic-gradient(var(--c1) 0 62%, var(--line) 62% 100%); position:relative;
}
.bs-ring::before { content:""; position:absolute; inset:14px; border-radius:50%; background:var(--surface); }
.bs-ring > * { position:relative; z-index:1; }
.bs-ring span { font-size:12px; color:var(--muted); }
.bs-ring strong { font-family:var(--mono); font-size:34px; color:var(--c1); line-height:1.2; }
.bs-ring small { font-size:11px; color:var(--muted); }
.bs-gauge p { margin:0; font-size:12px; line-height:1.7; color:var(--muted); }
.bs-chart-card { padding:18px; border-radius:16px; background:var(--surface); border:1px solid var(--line); }
.bs-chart { width:100%; height:230px; }
.bs-chart svg { width:100%; height:100%; display:block; }
.bs-legend { display:flex; gap:18px; font-size:12px; color:var(--muted); margin-top:8px; }
.bs-legend i { display:inline-block; width:14px; height:3px; border-radius:2px; background:var(--c1); vertical-align:middle; margin-right:5px; }
@media (max-width: 860px) { .bs-console { grid-template-columns:1fr; } }
