/* 在线分贝仪 */
.db-range, .tg-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 999px;
    background: var(--c-surface-soft, #eef1f5);
    outline: none;
}
.db-range::-webkit-slider-thumb, .tg-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0096dc;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}
.db-range::-moz-range-thumb, .tg-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0096dc;
    cursor: pointer;
    border: 2px solid #fff;
}

.db-gauge { text-align: center; margin-bottom: 14px; }
.db-gauge-num {
    font-size: 40px;
    font-weight: 800;
    color: #0096dc;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.db-gauge-num small {
    font-size: 16px;
    font-weight: 700;
    margin-left: 4px;
    color: var(--c-text-sub, #5b6572);
}

.db-gauge-bar {
    height: 10px;
    margin: 10px 0 6px;
    border-radius: 999px;
    background: var(--c-surface-soft, #eef1f5);
    overflow: hidden;
}
.db-gauge-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #eab308 55%, #ef4444);
    transition: width .15s linear;
}
.db-gauge-sub {
    font-size: 12.5px;
    color: var(--c-text-muted, #9aa5b1);
}

.db-chart-wrap {
    margin: 14px 0;
    overflow-x: auto;
}
.db-chart-wrap canvas {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: var(--c-surface-soft, #f6f8fa);
}

.db-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.7;
}
.db-note.is-warn { background: rgba(220, 38, 38, .1); color: #b91c1c; }
.db-note.is-info { background: rgba(0, 150, 220, .1); color: #0a7fc0; }

[data-theme="dark"] .db-note.is-warn { color: #f87171; }
[data-theme="dark"] .db-note.is-info { color: #58bdf0; }

@media (max-width: 768px) {
    .db-gauge-num { font-size: 32px; }
}
