/* 倾角测量仪 */
.tm-gate-list {
    margin: 12px 0 16px;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--c-text-sub, #5b6572);
}
.tm-gate-note { margin-top: 10px; font-size: 13px; line-height: 1.7; }
.tm-err { color: #b91c1c; }

/* 主显示 */
.tm-hero {
    text-align: center;
    padding: 16px 12px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--c-surface-soft, #f6f8fa);
}
.tm-hero-num {
    font-size: 46px;
    font-weight: 800;
    color: #0096dc;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.tm-hero-num small {
    font-size: 18px;
    font-weight: 700;
    margin-left: 3px;
    color: var(--c-text-sub, #5b6572);
}
.tm-hero-sub {
    margin-top: 6px;
    font-size: 13px;
    color: var(--c-text-sub, #5b6572);
}

/* 斜面示意 */
.tm-slope {
    position: relative;
    height: 110px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: var(--c-surface-soft, #f6f8fa);
    overflow: hidden;
}
.tm-slope-ground {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 26px;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(120, 130, 145, .55) 0 6px, transparent 6px 12px);
}
.tm-slope-line {
    position: absolute;
    left: 8%;
    right: 8%;
    bottom: 26px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0096dc, #38bdf8);
    transform-origin: left center;
    transition: transform .1s linear;
}
.tm-slope-tag {
    position: absolute;
    right: 10px;
    top: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 150, 220, .12);
    color: #0a7fc0;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.tm-cap {
    text-align: center;
    font-size: 12.5px;
    color: var(--c-text-sub, #5b6572);
    margin-bottom: 14px;
}

/* 倾角条 */
.tm-bar-wrap { margin-bottom: 14px; }
.tm-bar-label {
    font-size: 12.5px;
    color: var(--c-text-sub, #5b6572);
    margin-bottom: 6px;
}
.tm-bar-label span {
    font-weight: 700;
    color: var(--c-text, #222);
    font-variant-numeric: tabular-nums;
}
.tm-bar {
    position: relative;
    height: 26px;
    border-radius: 999px;
    background: var(--c-surface-soft, #eef1f5);
    border: 1px solid var(--c-border, #d5dbe3);
    overflow: hidden;
}
.tm-bar-zero {
    position: absolute;
    left: 50%;
    top: 3px;
    bottom: 3px;
    width: 2px;
    margin-left: -1px;
    background: rgba(120, 130, 145, .5);
}
.tm-bar-cursor {
    position: absolute;
    top: 3px;
    width: 4px;
    height: 20px;
    margin-left: -2px;
    border-radius: 2px;
    background: #0096dc;
    transition: left .08s linear;
}

/* 按钮 / 提示 */
.tm-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tm-btns .btn { flex: 1 1 30%; min-width: 108px; }

.tm-hold {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px dashed var(--c-border, #d5dbe3);
}
.tm-hold-k { font-size: 12px; color: var(--c-text-sub, #5b6572); }
.tm-hold-v {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #0096dc;
    font-variant-numeric: tabular-nums;
}

.tm-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
}
.tm-note.is-info { background: rgba(0, 150, 220, .1); color: #0a7fc0; }
.tm-note.is-ok { background: rgba(22, 163, 74, .12); color: #15803d; }
.tm-note.is-err { background: rgba(220, 38, 38, .1); color: #b91c1c; }

[data-theme="dark"] .tm-note.is-info { color: #58bdf0; }
[data-theme="dark"] .tm-note.is-ok { color: #4ade80; }
[data-theme="dark"] .tm-note.is-err { color: #f87171; }
[data-theme="dark"] .tm-err { color: #f87171; }
[data-theme="dark"] .tm-slope-tag { color: #58bdf0; }

@media (max-width: 768px) {
    .tm-hero-num { font-size: 36px; }
    .tm-btns .btn { flex: 1 1 100%; }
}
