/* =====================================================================
 *  T19-44 髂胫束疼痛自查 · 独立视觉（运动蓝绿 / 腿侧图 + 分级灯）
 * ===================================================================== */

.t19.itb {
    --a1: #0f6b7d;
    --a1b: #0a4753;
    --a1s: #e2f1f4;
    --a1i: #0c5462;
    --a2: #3fb3c9;
    --a2b: #8fd8e6;
    --a2s: rgba(63, 179, 201, .15);
    --a2i: #63c6d8;
}

.itb-hero { padding-bottom: 26px; }
.itb-quick { background: var(--t19-card-2); }

/* ---------- 分级灯 ---------- */
.itb-grade { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 18px; }
.itb-lamp {
    display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
    border: 3px solid var(--t19-line); background: var(--t19-card-2);
    font-family: var(--t19-font-num); font-size: var(--t19-fs-26); font-weight: 800; color: var(--t19-ink-3);
}
.itb-lamp.lv-ok { border-color: #2f9e6e; background: rgba(47, 158, 110, .10); color: #2f9e6e; }
.itb-lamp.lv-warn { border-color: #d69a2c; background: rgba(214, 154, 44, .12); color: #b8791c; }
.itb-lamp.lv-bad { border-color: #d4574c; background: rgba(212, 87, 76, .10); color: #c0392f; }
.itb-grade-info { display: grid; gap: 5px; }
.itb-grade-l { font-size: var(--t19-fs-18); font-weight: 750; color: var(--t19-ink); }
.itb-grade-d { font-size: var(--t19-fs-13); color: var(--t19-ink-2); line-height: 1.75; }

.itb-sub-h { margin-top: 20px; }
.itb-reasons li { padding-left: 22px; font-size: var(--t19-fs-13); }
.itb-reasons b { color: var(--t19-accent-ink); }

/* ---------- 行动清单 ---------- */
.itb-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.itb-act { padding: 12px 13px; border: 1px solid var(--t19-line); border-radius: var(--t19-r-sm); background: var(--t19-card-2); }
.itb-act b { display: block; font-size: var(--t19-fs-13); margin-bottom: 3px; color: var(--t19-accent-ink); }
.itb-act span { font-size: var(--t19-fs-12); color: var(--t19-ink-2); line-height: 1.7; }

.itb-escape { width: auto; min-width: 132px; padding: 6px 10px; font-size: var(--t19-fs-12); }
.itb-ai { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--t19-line); border-radius: var(--t19-r-sm); background: var(--t19-card-2); font-size: var(--t19-fs-14); line-height: 1.85; color: var(--t19-ink-2); }

/* ---------- 腿侧图 ---------- */
.itb-leg { display: grid; gap: 12px; justify-items: center; margin-bottom: 16px; }
.itb-leg svg { width: 120px; height: 300px; }
.itb-leg [data-pos] { cursor: pointer; }
.itb-leg [data-pos]:hover ellipse { fill: var(--t19-accent-soft); }
.itb-leg [data-pos].is-on ellipse { fill: var(--t19-accent-soft); }
.itb-leg-legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.itb-signal li { font-size: var(--t19-fs-13); }

/* ---------- 日志 ---------- */
.itb-log-wrap { margin-top: 12px; max-height: 380px; }
.itb-log-empty td { text-align: center; color: var(--t19-ink-3); padding: 20px 10px; white-space: normal; }
.itb-log-body input {
    width: 100%; padding: 5px 7px;
    border: 1px solid var(--t19-line); border-radius: 6px;
    background: var(--t19-card); color: var(--t19-ink);
    font-family: inherit; font-size: var(--t19-fs-12);
}
.itb-log-body input:focus { outline: none; border-color: var(--t19-accent); box-shadow: 0 0 0 2px var(--t19-accent-soft); }
.itb-log-body td { padding: 6px 8px; }
.itb-row-del {
    border: 1px solid var(--t19-line); background: transparent; color: var(--t19-ink-3);
    border-radius: 6px; width: 26px; height: 26px; cursor: pointer; line-height: 1;
}
.itb-row-del:hover { border-color: var(--t19-bad); color: var(--t19-bad); }
.itb-score {
    display: inline-block; min-width: 34px; padding: 1px 7px; border-radius: 4px;
    font-family: var(--t19-font-num); font-weight: 700; font-size: var(--t19-fs-12);
    background: var(--t19-accent-soft); color: var(--t19-accent-ink);
}
.itb-score.is-high { background: rgba(192, 57, 47, .13); color: var(--t19-bad); }

@media (max-width: 860px) {
    .itb-grade { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .itb-actions { grid-template-columns: 1fr; }
}
