/* MAP / 脉压 / 休克指数：三卡片 + 双刻度条 */

.mp-copy { min-width: 0; }
.mp-hl { color: var(--dk-accent); }

.mp-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mp-jump a {
    padding: 6px 12px; font-size: 12.5px; color: var(--dk-ink-2); text-decoration: none;
    border: 1px solid var(--dk-line); border-radius: 99px; background: var(--dk-surface);
    transition: color .14s, border-color .14s, background .14s;
}
.mp-jump a:hover { color: var(--dk-accent); border-color: var(--dk-accent-line); background: var(--dk-accent-soft); }

#mpCut, #mpSi, #mpTrap, #mpFaq { scroll-margin-top: 84px; }

.mp-tool { position: sticky; top: 82px; }

.mp-form {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px; padding: 14px 16px 6px;
}
.mp-field { display: grid; gap: 5px; min-width: 0; }
.mp-field > span:first-child { font-size: 12px; font-weight: 600; color: var(--dk-ink-2); }
.mp-box {
    display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 9px;
    border: 1px solid var(--dk-line-strong); border-radius: 8px; background: var(--dk-surface);
    transition: border-color .15s, box-shadow .15s;
}
.mp-box:focus-within { border-color: var(--dk-accent); box-shadow: 0 0 0 3px var(--dk-accent-soft); }
.mp-box input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: none; padding: 0;
    background: transparent; color: var(--dk-ink);
    font-family: var(--dk-mono); font-size: 13.5px;
}
.mp-box i { font-style: normal; font-size: 10px; color: var(--dk-muted); }

/* 三卡片 */
.mp-cards {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px; margin-top: 12px;
    border-top: 1px solid var(--dk-line); border-bottom: 1px solid var(--dk-line);
    background: var(--dk-line);
}
.mp-card {
    display: grid; gap: 1px; padding: 11px 12px;
    background: var(--dk-surface-2);
}
.mp-card.is-accent { background: var(--dk-accent-soft); }
.mp-k { font-size: 10.5px; color: var(--dk-muted); }
.mp-card b {
    font-family: var(--cl-serif); font-size: 26px; line-height: 1.15;
    color: var(--dk-ink); font-variant-numeric: tabular-nums;
}
.mp-card.is-accent b { color: var(--dk-accent); }
.mp-card em { font-style: normal; font-size: 10px; color: var(--dk-muted); }

/* 刻度条 */
.mp-bars { display: grid; gap: 11px; padding: 12px 16px 0; }
.mp-bk { font-size: 10.5px; color: var(--dk-muted); }
.mp-track {
    position: relative; height: 8px; margin-top: 5px;
    border-radius: 99px; background: var(--dk-surface-3); overflow: hidden;
}
.mp-track i {
    position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px;
    background: linear-gradient(90deg, #38bdf8, #22c55e 45%, #f59e0b 72%, #dc2626);
    transition: width .24s ease;
}
.mp-track span {
    position: absolute; top: 50%; width: 3px; height: 14px;
    border-radius: 2px; background: var(--dk-ink);
    transform: translate(-50%, -50%); opacity: 0;
    transition: left .24s ease, opacity .18s;
}
.mp-track span.on { opacity: 1; }

.mp-say {
    margin: 10px 0 0; padding: 0 16px;
    font-size: 12px; line-height: 1.7; color: var(--dk-ink-2);
}

.mp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px 16px; }
.mp-presets { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.mp-preset {
    border: 1px dashed var(--dk-line-strong); background: transparent;
    color: var(--dk-muted); font-size: 11.5px; padding: 4px 9px; border-radius: 99px; cursor: pointer;
    transition: color .14s, border-color .14s;
}
.mp-preset:hover { color: var(--dk-accent); border-color: var(--dk-accent-line); }

.mp-rel { display: block; }
.mp-rel h3 { font-size: 15.5px; margin-bottom: 6px; }
.mp-rel p { margin: 0; font-size: 13px; color: var(--dk-muted); line-height: 1.65; }

:root[data-theme="dark"] .mp-card.is-accent b,
:root[data-theme="dark"] .mp-jump a:hover,
:root[data-theme="dark"] .mp-preset:hover { color: #93c5fd; }

@media (max-width: 960px) { .mp-tool { position: static; } }

@media (max-width: 620px) {
    .mp-form { grid-template-columns: 1fr; }
    .mp-cards { grid-template-columns: 1fr; }
    .mp-card b { font-size: 22px; }
    .mp-presets { margin-left: 0; }
    .mp-tool .dk-tool-head h2 { min-width: 0; }
    .mp-tool .dk-tool-head > span { flex: none; white-space: nowrap; }
}
