/* 在线音频信号发生器 */
.tg-sweep {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: var(--c-surface-soft, #f6f8fa);
    border: 1px solid var(--c-border, #e3e8ef);
}
.tg-sweep-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.tg-sweep-row:last-child { margin-bottom: 0; }
.tg-sweep-row label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-text-sub, #5b6572);
    min-width: 40px;
}
.tg-sweep-row .calc-input { max-width: 110px; }

.tg-presets { margin-top: 16px; }
.tg-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.tg-preset {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid var(--c-border, #e3e8ef);
    background: var(--c-surface, #fff);
    color: var(--c-text-sub, #5b6572);
    font-size: 12px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.tg-preset:hover {
    background: #0096dc;
    border-color: #0096dc;
    color: #fff;
}

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

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

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