:root {
    color-scheme: dark;
    --bg: #070a12;
    --panel: #0d111d;
    --panel-raised: #111725;
    --line: rgba(159, 176, 205, 0.14);
    --line-strong: rgba(159, 176, 205, 0.24);
    --text: #eef3fb;
    --muted: #8693aa;
    --blue: #2588ff;
    --yellow: #f4df22;
    --red: #ff4f72;
    --green: #5ee7a7;
    --scrollbar-track: rgba(7, 11, 19, 0.42);
    --scrollbar-thumb: linear-gradient(180deg, rgba(75, 120, 190, 0.76), rgba(48, 79, 132, 0.72));
    --scrollbar-thumb-hover: linear-gradient(180deg, rgba(95, 148, 226, 0.88), rgba(57, 94, 157, 0.82));
    --scrollbar-thumb-border: rgba(7, 11, 19, 0.68);
    --radius: 18px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI',
        'Microsoft YaHei', sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(94, 130, 188, 0.62) var(--scrollbar-track);
}

*::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

*::-webkit-scrollbar-track {
    border-radius: 999px;
    background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    min-height: 32px;
    border: 2px solid var(--scrollbar-thumb-border);
    border-radius: 999px;
    background: var(--scrollbar-thumb);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

html,
body,
#app {
    min-width: 320px;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    background: radial-gradient(circle at 35% -20%, rgba(71, 69, 177, 0.16), transparent 38%),
        var(--bg);
    color: var(--text);
    -webkit-user-select: none;
    user-select: none;
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.app-shell {
    display: flex;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: grid;
    grid-template-columns: auto minmax(200px, 1fr) auto auto;
    align-items: center;
    min-height: 76px;
    flex: 0 0 auto;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 10, 18, 0.97);
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 196px;
}

.brand > div {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.brand strong {
    font-size: 20px;
    letter-spacing: -0.04em;
}

.brand span {
    color: #8291a9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(91, 154, 255, 0.28);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(37, 136, 255, 0.21), rgba(92, 50, 200, 0.08));
    box-shadow: 0 8px 24px rgba(20, 80, 210, 0.14);
}

.brand-mark i {
    width: 2px;
    border-radius: 4px;
    background: linear-gradient(#45d8e7, #5179ff);
    box-shadow: 0 0 6px #2588ff;
}

.brand-mark i:nth-child(1),
.brand-mark i:nth-child(5) {
    height: 9px;
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(4) {
    height: 20px;
}

.brand-mark i:nth-child(3) {
    height: 29px;
}

.source-status {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding-left: 16px;
}

.source-status div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.source-status strong,
.source-status span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-status strong {
    font-size: 13px;
    font-weight: 650;
}

.source-status span {
    color: var(--muted);
    font-size: 11px;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #687285;
    box-shadow: 0 0 0 4px rgba(104, 114, 133, 0.1);
}

.status-dot.playing {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(94, 231, 167, 0.1), 0 0 12px rgba(94, 231, 167, 0.5);
    animation: pulse 1.8s ease-in-out infinite;
}

.status-dot.loading-file,
.status-dot.loading-mic {
    background: var(--yellow);
}

@keyframes pulse {
    50% {
        opacity: 0.55;
    }
}

.session-clock {
    display: grid;
    justify-items: end;
    gap: 2px;
    min-width: 94px;
    padding: 0 20px;
    border-right: 1px solid var(--line);
}

.session-clock span {
    color: var(--muted);
    font-size: 10px;
}

.session-clock strong {
    font-variant-numeric: tabular-nums;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.session-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

.button,
.icon-button,
.view-actions button,
.panel-actions button {
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: 150ms ease;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 39px;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 650;
}

.button > svg,
.panel-actions button > svg,
.reset-tab-button > svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.button-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toggle-label {
    display: inline-block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.button:hover,
.icon-button:hover,
.view-actions button:hover,
.panel-actions button:hover {
    border-color: rgba(122, 158, 220, 0.48);
    background: rgba(255, 255, 255, 0.07);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.button.primary {
    border-color: #277ee0;
    background: linear-gradient(180deg, #338eff, #176dd4);
    box-shadow: 0 8px 24px rgba(37, 136, 255, 0.18);
}

.button.playback-button {
    color: #ffffff;
}

.button.playback-button svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.button.playback-button.play {
    border-color: #25a96c;
    background: linear-gradient(180deg, #39c984, #209e63);
    box-shadow: 0 8px 24px rgba(32, 158, 99, 0.18);
}

.button.playback-button.pause {
    border-color: #dc4967;
    background: linear-gradient(180deg, #f0627e, #cf3e5c);
    box-shadow: 0 8px 24px rgba(207, 62, 92, 0.18);
}

.button.danger {
    border-color: rgba(255, 79, 114, 0.55);
    color: #ff9aad;
    background: rgba(255, 79, 114, 0.11);
}

.record-icon {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: currentColor;
}

.icon-button {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    color: #aebbd0;
}

.icon-button > svg {
    width: 18px;
    height: 18px;
}

.language-button {
    width: 39px;
    color: #aebbd0;
}

.language-button > svg {
    width: 18px;
    height: 18px;
}

.language-control {
    position: relative;
}

.language-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: 124px;
    gap: 3px;
    padding: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(9, 14, 24, 0.99);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
}

.language-menu button {
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    color: #98a6ba;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.language-menu button:hover,
.language-menu button.active {
    color: #edf4ff;
    background: rgba(37, 136, 255, 0.13);
}

.language-menu button.active::after {
    float: right;
    color: #61a8ff;
    content: '✓';
}

.sliders-icon,
.sliders-icon::before,
.sliders-icon::after {
    position: relative;
    display: block;
    width: 15px;
    height: 1px;
    background: currentColor;
}

.sliders-icon::before,
.sliders-icon::after {
    position: absolute;
    content: '';
}

.sliders-icon::before {
    top: -5px;
}

.sliders-icon::after {
    top: 5px;
}

.workspace {
    position: relative;
    display: block;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.media-panel {
    position: fixed;
    z-index: 42;
    top: 94px;
    left: 12px;
    display: grid;
    width: min(330px, calc(100vw - 24px));
    max-height: calc(100vh - 98px);
    grid-template-rows: auto auto minmax(0, 1fr);
    padding: 12px;
    border: 1px solid rgba(143, 166, 207, 0.22);
    border-radius: 14px;
    background: rgba(7, 11, 19, 0.98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(calc(-100% - 20px));
    pointer-events: none;
    will-change: transform;
    transition: opacity 180ms ease, transform 180ms ease;
}

.media-panel.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.media-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 11px;
}

.media-panel-heading > .panel-drag-handle {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 3px;
    cursor: move;
    touch-action: none;
    user-select: none;
}

.media-panel-heading strong {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.playlist-heading-icon {
    width: 15px !important;
    height: 15px !important;
    color: #6baaff;
}

.media-panel-heading strong small {
    margin-left: 7px;
    color: #718097;
    font-size: 10px;
    font-weight: 650;
}

.media-panel-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.media-panel-heading button {
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #8794a8;
    background: transparent;
    cursor: pointer;
}

.media-panel-heading button.clear-playlist {
    display: grid;
    width: 28px;
    padding: 0;
    place-items: center;
}

.media-panel-heading button.clear-playlist svg {
    width: 13px;
    height: 13px;
}

.media-panel-actions button svg {
    display: block;
    width: 13px;
    height: 13px;
}

.media-panel-heading button:disabled {
    opacity: 0.35;
    cursor: default;
}

.media-panel.collapsed {
    width: min(210px, calc(100vw - 24px));
    max-height: 52px;
    grid-template-rows: auto;
    padding: 8px 10px;
    overflow: hidden;
}

.media-panel.collapsed .media-panel-heading {
    padding: 0;
}

.media-panel.collapsed .eyebrow,
.media-panel.collapsed .clear-playlist,
.media-panel.collapsed > .media-row,
.media-panel.collapsed .media-list {
    display: none;
}

.media-list {
    position: relative;
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 0;
    margin-top: 8px;
    overflow: auto;
}

.analysis-task-toast {
    position: fixed;
    z-index: 70;
    left: 18px;
    bottom: 18px;
    width: min(360px, calc(100vw - 36px));
    padding: 15px;
    border: 1px solid rgba(95, 146, 255, 0.24);
    border-radius: 16px;
    color: #edf4ff;
    background: rgba(12, 18, 31, 0.94);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.98);
    pointer-events: none;
    transition: opacity 220ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.analysis-task-toast.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.analysis-task-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.analysis-task-heading > div {
    display: grid;
    gap: 2px;
}

.analysis-task-heading span,
.analysis-task-heading em {
    color: #8fa0ba;
    font-size: 10px;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.analysis-task-heading strong {
    font-size: 13px;
    font-weight: 700;
}

.analysis-task-dismiss {
    display: grid;
    width: 25px;
    height: 25px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(143, 160, 186, 0.28);
    border-radius: 7px;
    color: #aebbd0;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
    pointer-events: auto;
}

.analysis-task-dismiss:hover {
    border-color: rgba(95, 173, 255, 0.5);
    color: #edf4ff;
    background: rgba(95, 173, 255, 0.12);
}

.analysis-task-dismiss svg {
    width: 14px;
    height: 14px;
}

.analysis-task-heading em {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(91, 154, 255, 0.1);
}

.analysis-total-progress,
.analysis-row-progress {
    display: block;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(133, 154, 190, 0.14);
}

.analysis-total-progress {
    height: 3px;
    margin: 12px 0 10px;
}

.analysis-total-progress i,
.analysis-row-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2e8cff, #5fc9ff);
    transition: width 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.analysis-task-list {
    display: grid;
    gap: 5px;
}

.analysis-task-row {
    display: grid;
    grid-template-columns: 11px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 39px;
    padding: 6px 8px;
    border-radius: 10px;
    transition: background 180ms ease;
}

.analysis-task-row.running,
.analysis-task-row.retrying {
    background: rgba(76, 137, 255, 0.075);
}

.analysis-task-row > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.analysis-task-row strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analysis-task-row small {
    overflow: hidden;
    color: #8796ad;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analysis-task-state {
    width: 8px;
    height: 8px;
    border: 1px solid #65748b;
    border-radius: 50%;
}

.analysis-task-row.running .analysis-task-state,
.analysis-task-row.retrying .analysis-task-state {
    border-color: transparent;
    border-top-color: #58baff;
    animation: analysis-spin 800ms linear infinite;
}

.analysis-task-row.complete .analysis-task-state {
    border-color: #57d69a;
    background: #57d69a;
    box-shadow: 0 0 9px rgba(87, 214, 154, 0.32);
}

.analysis-task-row.error .analysis-task-state {
    border-color: #ff727f;
    background: #ff727f;
}

.analysis-row-progress {
    height: 2px;
    margin-top: 3px;
}

@keyframes analysis-spin {
    to { transform: rotate(360deg); }
}

.media-list.dragging {
    user-select: none;
}

.media-list.dragging .media-row {
    transition: transform 120ms cubic-bezier(0.22, 1, 0.36, 1), border-color 160ms ease,
        box-shadow 160ms ease, opacity 160ms ease;
    will-change: transform;
}

.media-row {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 58px;
    gap: 9px;
    padding: 7px 9px;
    border: 1px solid rgba(126, 148, 186, 0.14);
    border-radius: 10px;
    color: #cbd5e3;
    text-align: left;
    background: rgba(255, 255, 255, 0.025);
    position: relative;
    transition: transform 150ms cubic-bezier(0.22, 1, 0.36, 1), border-color 160ms ease,
        box-shadow 160ms ease, opacity 160ms ease;
}

button.media-row {
    width: 100%;
    cursor: pointer;
}

.media-row.active {
    border-color: rgba(37, 136, 255, 0.58);
    background: rgba(37, 136, 255, 0.11);
    box-shadow: inset 3px 0 #2588ff;
}

.media-row.microphone {
    border-color: rgba(94, 231, 167, 0.2);
}

.media-select {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
    gap: 9px;
    padding: 0;
    border: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.media-drag-handle {
    display: grid;
    width: 20px;
    height: 32px;
    padding: 0;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    color: #718098;
    background: transparent;
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.media-drag-handle:active {
    cursor: grabbing;
}

.media-drag-handle svg {
    width: 15px;
    height: 15px;
}

.media-row.dragging {
    z-index: 1;
    opacity: 0.72;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    transition: none;
    will-change: transform;
}

.media-list.dragging .media-row.dragging {
    transition: none;
}

.media-list.dragging .media-row:not(.dragging) {
    will-change: transform;
}

.media-drop-indicator {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 8px;
    left: 8px;
    height: 2px;
    border-radius: 999px;
    background: #2588ff;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: top 90ms cubic-bezier(0.22, 1, 0.36, 1), opacity 120ms ease;
    will-change: top, opacity;
}

.media-kind {
    display: grid;
    width: 38px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 7px;
    color: #7fb5ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(37, 136, 255, 0.1);
}

.microphone .media-kind {
    color: #77e8b2;
    background: rgba(94, 231, 167, 0.1);
}

.media-copy {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 4px;
}

.media-copy strong,
.media-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-copy strong {
    font-size: 12px;
}

.media-copy small,
.media-empty {
    color: #6f7c91;
    font-size: 10px;
    line-height: 1.4;
}

.media-copy small {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 5px;
}

.media-edited-mark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 1px 5px;
    border: 1px solid rgba(91, 173, 255, 0.28);
    border-radius: 999px;
    color: #86c4ff;
    font-size: 9px;
    font-style: normal;
    line-height: 1.35;
    background: rgba(53, 142, 243, 0.12);
}

.media-save,
.media-remove {
    display: grid;
    width: 24px;
    height: 24px;
    padding: 0;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    color: #9eb0c8;
    font-size: 8px;
    background: transparent;
    cursor: pointer;
}

.media-save svg,
.media-remove svg {
    width: 11px;
    height: 11px;
}

.media-remove {
    color: #a78790;
}

.media-remove:hover {
    border-color: rgba(255, 79, 114, 0.4);
    color: #ff9bad;
}

.media-empty {
    margin: 8px;
    line-height: 1.7;
}

.visualizer-card,
.metrics-panel,
.settings-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(155deg, rgba(17, 23, 37, 0.96), rgba(10, 14, 24, 0.96));
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.2);
}

.visualizer-card {
    display: flex;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    overflow-y: auto;
    background: #05070d;
    box-shadow: none;
}

.visualizer-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 67px;
    flex: 0 0 auto;
    gap: 18px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}

.toolbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    gap: 14px;
    flex-wrap: wrap;
}

.mode-switch {
    display: flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(3, 5, 11, 0.54);
}

.mode-switch button {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 39px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    color: #99a6ba;
    background: transparent;
    cursor: pointer;
}

.mode-switch button.active {
    color: #f5f8fd;
    background: #1b2435;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.mode-switch strong {
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
}

.mode-switch span {
    flex: 0 0 auto;
    color: #748198;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.toolbar-center .plot-toggles,
.overlay-toggles {
    display: flex;
    align-items: center;
    gap: 7px;
}

.toolbar-center .plot-toggles button,
.overlay-toggles button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #69768c;
    font-size: 11px;
    font-weight: 650;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: 150ms ease;
}

.toolbar-center .plot-toggles button:hover,
.overlay-toggles button:hover {
    border-color: var(--line-strong);
    color: #aab7ca;
    background: rgba(255, 255, 255, 0.055);
}

.toolbar-center .plot-toggles button.on,
.overlay-toggles button.on {
    color: #d5ddea;
}

.toolbar-center .plot-toggles i,
.overlay-toggles i {
    display: inline-block;
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    margin-right: 0;
    border-radius: 50%;
    background: currentColor;
}

.toggle-label {
    line-height: normal;
}

.plot-toggles .on.waveform {
    border-color: rgba(23, 133, 186, 0.52);
    color: #8ed8f8;
    background: rgba(23, 133, 186, 0.12);
}

.plot-toggles .on.spectrogram {
    border-color: rgba(170, 186, 214, 0.42);
    color: #d5ddea;
    background: rgba(170, 186, 214, 0.1);
}

.overlay-toggles .on.pitch i {
    color: var(--blue);
    box-shadow: 0 0 8px var(--blue);
}

.overlay-toggles .on.pitch {
    border-color: rgba(54, 150, 255, 0.52);
    background: rgba(54, 150, 255, 0.11);
}

.overlay-toggles .on.formants i {
    color: var(--red);
    box-shadow: 0 0 8px var(--red);
}

.overlay-toggles .on.formants {
    border-color: rgba(255, 79, 114, 0.5);
    background: rgba(255, 79, 114, 0.1);
}

.overlay-toggles .on.intensity i {
    color: var(--yellow);
    box-shadow: 0 0 8px var(--yellow);
}

.overlay-toggles .on.intensity {
    border-color: rgba(228, 235, 84, 0.44);
    background: rgba(228, 235, 84, 0.09);
}

.view-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.view-actions button {
    min-width: 28px;
    height: 30px;
}

.view-actions > .zoom-readout {
    min-width: 38px;
    color: #8e9bb0;
    text-align: center;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.view-actions .export-button {
    min-width: auto;
    margin-left: 6px;
    padding: 0 10px;
    color: #bcc7d8;
    font-size: 10px;
}

.view-actions .icon-action,
.transport-control {
    display: grid;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: #b9c6d9;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.view-actions .icon-action svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.view-actions .view-level-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: auto;
    gap: 5px;
    padding: 0 8px;
    font-size: 10px;
}

.view-actions .view-level-action svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    stroke: none;
}

.view-actions .view-level-action .selection-expand-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.view-actions .view-level-action span {
    color: currentColor;
    font-size: inherit;
    font-weight: 650;
    white-space: nowrap;
}

.view-actions button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.view-actions button:disabled:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.025);
}

.edit-actions {
    position: relative;
    display: flex;
    align-items: center;
}

.edit-actions-toggle {
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease,
        transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.edit-actions.open .edit-actions-toggle {
    color: #dbe9ff;
    border-color: rgba(77, 157, 255, 0.62);
    background: rgba(52, 137, 244, 0.16);
    transform: translateY(-1px);
}

.edit-actions-menu {
    position: absolute;
    z-index: 8;
    right: 0;
    top: calc(100% + 9px);
    display: grid;
    width: 168px;
    gap: 3px;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(15, 22, 36, 0.97);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.025) inset;
    animation: edit-menu-in 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.edit-actions-menu::after {
    position: absolute;
    right: 12px;
    top: -5px;
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    background: #0f1624;
    content: '';
    transform: rotate(225deg);
}

.edit-actions-menu button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    height: 34px;
    gap: 9px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #cbd7e9;
    font-size: 11px;
    text-align: left;
    background: transparent;
}

.edit-actions-menu button:hover {
    border-color: rgba(89, 158, 255, 0.28);
    color: #f1f6ff;
    background: rgba(67, 143, 241, 0.14);
}

.edit-actions-menu button:disabled,
.edit-actions-menu button:disabled:hover {
    border-color: transparent;
    color: #65738a;
    background: transparent;
    cursor: not-allowed;
    opacity: 0.55;
}

.edit-actions-menu button > svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

@keyframes edit-menu-in {
    from {
        opacity: 0;
        transform: translateY(5px) scale(0.97);
        transform-origin: bottom right;
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        transform-origin: bottom right;
    }
}

.transport-control {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.transport-control svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.transport-control.play {
    border-color: rgba(61, 211, 137, 0.5);
    color: #70edae;
    background: rgba(42, 184, 112, 0.13);
}

.transport-control.pause {
    border-color: rgba(255, 79, 114, 0.55);
    color: #ff718c;
    background: rgba(255, 79, 114, 0.13);
}

.reset-tab-button {
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(105, 174, 255, 0.28);
    border-radius: 7px;
    color: #a9cdfc;
    font-size: 10px;
    background: rgba(37, 136, 255, 0.07);
    cursor: pointer;
}

.praat-view {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 78px;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #05070d;
}

.plot-stack {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 18px;
    min-width: 0;
    min-height: 0;
    padding-top: 15px;
}

.axis-stack {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 18px;
    min-width: 0;
    min-height: 0;
    padding-top: 15px;
}

.axis-plots,
.acoustic-plots {
    display: grid;
    min-width: 0;
    min-height: 0;
}

.axis-navigation-space,
.plot-navigation {
    min-height: 18px;
}

.plot-navigation {
    display: flex;
    align-items: center;
}

.waveform-stage,
.spectrogram-stage {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(175, 191, 220, 0.2);
    background: #03050b;
    cursor: crosshair;
}

.waveform-stage canvas,
.spectrogram-stage canvas,
.plot-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#waveformCanvas {
    background: #040712;
}

#waveformInteraction {
    z-index: 2;
}

#waveformInteraction,
#analysisOverlay {
    touch-action: none;
}

.plot-divider {
    position: relative;
    z-index: 7;
    display: grid;
    min-height: 8px;
    place-items: center;
    background: #101827;
    cursor: row-resize;
    touch-action: none;
    user-select: none;
}

.plot-divider::before {
    position: absolute;
    inset: -3px 0;
    content: '';
}

.plot-divider span {
    width: 42px;
    height: 2px;
    border-radius: 2px;
    background: #667892;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.plot-divider:hover span {
    background: #8ca6c9;
}

.axis-divider-space {
    min-height: 8px;
    background: #101827;
}

.waveform-axis {
    position: relative;
    min-height: 0;
    clip-path: inset(0 -100vw);
    color: #7394aa;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.waveform-axis span {
    position: absolute;
    top: 8px;
    white-space: nowrap;
}

.waveform-axis-left {
    border-right: 1px solid var(--line);
}

.waveform-axis-left span {
    right: 6px;
}

.waveform-axis-right {
    border-left: 1px solid var(--line);
}

.waveform-axis-right span {
    left: 6px;
}

.waveform-axis .waveform-axis-title {
    top: calc(50% - 22px);
    right: auto;
    left: 6px;
    writing-mode: horizontal-tb;
    transform: none;
}

.waveform-axis .waveform-scale-mark {
    right: auto;
    left: 6px;
    line-height: 1;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    text-transform: none;
}

.waveform-axis-left .waveform-scale-mark {
    right: 6px;
    left: auto;
    text-align: right;
}

.waveform-axis-left .waveform-scale-mark-unit {
    display: flex;
    width: max-content;
    max-width: calc(100% - 10px);
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    column-gap: 3px;
    row-gap: 1px;
    white-space: normal;
}

.waveform-scale-mark b,
.waveform-scale-mark small {
    display: block;
    flex: 0 0 auto;
    font: inherit;
    line-height: 1;
    white-space: nowrap;
}

.waveform-scale-mark b {
    font-weight: inherit;
}

.waveform-scale-mark small {
    color: #66859a;
    font-size: 8px;
}

.waveform-axis .waveform-scale-mark.scale-top {
    top: 0;
}

.waveform-axis .waveform-scale-mark.scale-mid {
    top: 50%;
    transform: translateY(-50%);
}

.waveform-axis .waveform-scale-mark.scale-bottom {
    top: 100%;
    transform: translateY(-100%);
}

#spectrogramCanvas {
    background: #02040a;
}

#analysisOverlay {
    z-index: 3;
}

.inverted-playhead {
    position: absolute;
    z-index: 4;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ffffff;
    mix-blend-mode: difference;
    transform: translateX(-50%);
    pointer-events: none;
}

.plot-grid {
    z-index: 2;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    pointer-events: none;
}

.plot-grid i {
    border-bottom: 1px solid rgba(194, 207, 231, 0.075);
}

.plot-grid::after {
    position: absolute;
    inset: 0;
    content: '';
    background-image: linear-gradient(
        90deg,
        transparent calc(25% - 0.5px),
        rgba(194, 207, 231, 0.055) 25%,
        transparent calc(25% + 0.5px),
        transparent calc(50% - 0.5px),
        rgba(194, 207, 231, 0.055) 50%,
        transparent calc(50% + 0.5px),
        transparent calc(75% - 0.5px),
        rgba(194, 207, 231, 0.055) 75%,
        transparent calc(75% + 0.5px)
    );
}

.spectrogram-stage[data-theme='praat'] .plot-grid i {
    border-bottom-color: rgba(37, 49, 65, 0.13);
}

.spectrogram-stage[data-theme='praat'] .plot-grid::after {
    background-image: linear-gradient(
        90deg,
        transparent calc(25% - 0.5px),
        rgba(37, 49, 65, 0.11) 25%,
        transparent calc(25% + 0.5px),
        transparent calc(50% - 0.5px),
        rgba(37, 49, 65, 0.11) 50%,
        transparent calc(50% + 0.5px),
        transparent calc(75% - 0.5px),
        rgba(37, 49, 65, 0.11) 75%,
        transparent calc(75% + 0.5px)
    );
}

.cursor-tooltip {
    position: absolute;
    z-index: 5;
    display: grid;
    min-width: min(126px, calc(100% - 16px));
    max-width: calc(100% - 16px);
    max-height: calc(100% - 16px);
    box-sizing: border-box;
    gap: 3px;
    padding: 9px 11px;
    overflow: auto;
    overflow-wrap: anywhere;
    border: 1px solid rgba(162, 180, 211, 0.25);
    border-radius: 8px;
    color: #cbd5e4;
    background: rgba(5, 8, 15, 0.97);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.cursor-tooltip strong {
    color: #fff;
    font-size: 13px;
}

.cursor-tooltip span {
    font-size: 11px;
}

.cursor-tooltip .tooltip-selection {
    margin-top: 3px;
    padding-top: 5px;
    border-top: 1px solid rgba(105, 174, 255, 0.3);
    color: #8fc0ff;
    font-weight: 700;
}

.cursor-time-mark {
    position: absolute;
    z-index: 6;
    bottom: 5px;
    padding: 3px 6px;
    border: 1px solid rgba(255, 79, 114, 0.5);
    border-radius: 5px;
    color: #ff9bad;
    font-size: 8px;
    font-variant-numeric: tabular-nums;
    background: rgba(9, 12, 20, 0.9);
    transform: translateX(-50%);
    pointer-events: none;
}

.selection-reading {
    position: absolute;
    z-index: 6;
    top: 12px;
    left: 50%;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 9px;
    border: 1px solid rgba(105, 174, 255, 0.4);
    border-radius: 7px;
    color: #88bcff;
    font-size: 8px;
    font-variant-numeric: tabular-nums;
    background: rgba(6, 13, 25, 0.88);
    transform: translateX(-50%);
    pointer-events: none;
}

.selection-reading strong {
    color: #ffffff;
    font-size: 11px;
}

.timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #758299;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.history-slider {
    width: 100%;
    height: 2px;
    margin: 0;
    opacity: 0.5;
    accent-color: var(--blue);
}

.zoom-scrollbar {
    position: relative;
    width: 100%;
    height: 14px;
    margin: 2px 0 0;
    padding: 2px;
    box-sizing: border-box;
    border: 1px solid rgba(137, 156, 188, 0.22);
    border-radius: 3px;
    opacity: 0.88;
    background: #090d16;
    background: #111827;
    touch-action: none;
    cursor: pointer;
}

.zoom-scrollbar-thumb {
    position: absolute;
    top: 2px;
    bottom: 2px;
    min-width: 18px;
    border: 1px solid #6f7f98;
    box-sizing: border-box;
    border-radius: 2px;
    background: #536078;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    cursor: grab;
    pointer-events: none;
}

.zoom-scrollbar:active .zoom-scrollbar-thumb {
    border-color: #98a9c2;
    background: #65738c;
    cursor: grabbing;
}

.zoom-scrollbar:focus-visible {
    outline: 1px solid var(--blue);
    outline-offset: 1px;
}

.file-transport {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-width: 0;
    color: #8491a5;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.file-transport .history-slider {
    width: 100%;
    height: 4px;
    opacity: 0.72;
}

.file-transport span {
    position: absolute;
    top: 16px;
    padding: 1px 4px;
    border-radius: 4px;
    color: #9ba8bc;
    font-size: 10px;
    background: rgba(5, 7, 13, 0.82);
    pointer-events: none;
}

.file-transport .transport-current {
    left: 2px;
}

.file-transport .transport-duration {
    right: 2px;
}

.axis {
    position: relative;
    min-width: 0;
    clip-path: inset(0 -100vw);
    container-type: size;
    color: #adb8c9;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.axis span {
    position: absolute;
    white-space: nowrap;
}

.axis-title {
    top: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-orientation: upright;
}

.axis-title-hidden {
    visibility: hidden;
}

.axis-left {
    border-right: 1px solid var(--line);
    text-align: right;
}

.axis-left .axis-title {
    top: 22px;
    right: auto;
    left: calc(100% + 3px);
    z-index: 5;
    writing-mode: vertical-rl;
    transform: none;
}

.axis-left .top,
.axis-left .mid,
.axis-left .bottom,
.axis-left .spectral-pitch-mark {
    right: 6px;
}

.axis-left .top {
    top: 20px;
}

.axis-left .mid {
    top: calc(50% - 4px);
}

.axis-left .bottom {
    bottom: 20px;
}

.spectral-pitch-mark.scale-top {
    top: 0;
}

.spectral-pitch-mark.scale-mid {
    top: 50%;
    transform: translateY(-50%);
}

.spectral-pitch-mark.scale-bottom {
    top: 100%;
    transform: translateY(-100%);
}

.spectral-pitch-mark.aligned {
    transform: translateY(-50%);
}

.axis-right {
    border-left: 1px solid var(--line);
}

.axis-right .axis-title,
.axis-right .top,
.axis-right .bottom {
    left: 6px;
}

.axis-right .intensity-axis-title {
    top: 22px;
    right: auto;
    left: -2px;
    writing-mode: vertical-rl;
    transform: translateX(-100%);
}

.axis-right .frequency-axis-title {
    top: 22px;
    right: auto;
    left: 2px;
    writing-mode: vertical-rl;
    transform: none;
}

.axis-right .top {
    top: 0;
}

.axis-right .bottom {
    bottom: 0;
}

.axis-right .spl-top,
.axis-right .spl-mid,
.axis-right .spl-bottom {
    right: auto;
    left: -6px;
    transform: translateX(-100%);
}

.axis-right .spl-top {
    top: 0;
}

.axis-right .spl-mid {
    top: 50%;
    transform: translateX(-100%) translateY(-50%);
}

.axis-right .spl-bottom {
    top: 100%;
    bottom: auto;
    transform: translateX(-100%) translateY(-100%);
}

.axis-cursor-value {
    z-index: 4;
    padding: 3px 5px;
    border-radius: 4px;
    font-weight: 750;
    font-size: 12px;
    background: #111827;
    transform: translateY(-50%);
}

.axis-left .axis-cursor-value {
    right: 4px;
}

.axis-left .axis-cursor-value.pitch {
    right: auto;
    left: calc(100% + 4px);
    color: #d9ebff;
    border-left: 2px solid #3696ff;
}

.axis-right .axis-cursor-value {
    left: 4px;
}

.axis-right .axis-cursor-value.frequency {
    color: #ffd8df;
    border-left: 2px solid #ff4f72;
}

.axis-right .axis-cursor-value.intensity {
    right: calc(100% + 4px);
    left: auto;
    color: #f4f79a;
    border-right: 2px solid #dcea46;
}

.pitch-color {
    color: #3696ff !important;
}

.intensity-color {
    color: #dcea46 !important;
}

.metrics-panel {
    position: fixed;
    z-index: 42;
    top: 94px;
    right: 20px;
    display: flex;
    width: 296px;
    min-width: 258px;
    min-height: 470px;
    max-width: min(520px, calc(100vw - 40px));
    max-height: calc(100vh - 112px);
    flex-direction: column;
    padding: 20px;
    overflow: auto;
    resize: both;
    background: linear-gradient(155deg, rgba(17, 23, 37, 0.97), rgba(10, 14, 24, 0.98));
    will-change: transform;
    transition: width 180ms ease, min-height 180ms ease, border-radius 180ms ease,
        padding 180ms ease;
}

.metrics-drag-handle {
    flex: 1;
    cursor: move;
    touch-action: none;
    user-select: none;
}

.metrics-heading-actions button svg {
    width: 14px;
    height: 14px;
}

.media-panel.dragging,
.metrics-panel.dragging,
.media-panel.dragging *,
.metrics-panel.dragging * {
    cursor: grabbing !important;
}

.media-panel.dragging,
.metrics-panel.dragging {
    z-index: 44;
    will-change: translate;
    transition: none !important;
}

.metrics-panel.bubble {
    top: 98px;
    width: 92px !important;
    min-width: 92px;
    height: 92px !important;
    min-height: 92px;
    max-height: 92px;
    padding: 0;
    overflow: hidden;
    resize: none;
    border-color: rgba(37, 136, 255, 0.35);
    border-radius: 50%;
    background: radial-gradient(circle at 38% 30%, rgba(71, 139, 255, 0.26), transparent 48%),
        rgba(10, 15, 27, 0.9);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.36), 0 0 34px rgba(37, 136, 255, 0.13);
    cursor: move;
    user-select: none;
}

.metrics-panel.bubble > *:not(.collapsed-reading) {
    display: none;
}

.collapsed-reading {
    display: none;
}

.metrics-panel.bubble .collapsed-reading {
    display: grid;
    width: 100%;
    height: 100%;
    padding: 15px 8px 12px;
    place-content: center;
    place-items: center;
    border: 0;
    color: #eef6ff;
    background: transparent;
    cursor: move;
    touch-action: none;
}

.collapsed-reading span,
.collapsed-reading em,
.collapsed-reading strong {
    color: var(--metric-color, #6fb0ff);
}

.collapsed-reading.pitch {
    --metric-color: #3696ff;
}

.collapsed-reading.intensity {
    --metric-color: #e4eb54;
}

.collapsed-reading.formant {
    --metric-color: #ff6c88;
}

.collapsed-reading span,
.collapsed-reading em {
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.collapsed-reading strong {
    max-width: 75px;
    overflow: hidden;
    font-size: 23px;
    font-weight: 560;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.06em;
    text-overflow: ellipsis;
}

.metrics-heading,
.settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.metrics-heading-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.metrics-heading-actions button {
    display: grid;
    width: 25px;
    height: 25px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #95a3b8;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
}

.eyebrow,
.section-label {
    color: #74829a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.metrics-heading h2,
.settings-header h2 {
    margin: 5px 0 0;
    font-size: 19px;
    font-weight: 680;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.sample-rate {
    padding: 5px 7px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: #8e9bb0;
    font-size: 10px;
}

.playhead-time {
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.primary-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 21px;
}

.primary-metrics article {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.selectable-metric {
    position: relative;
    cursor: pointer;
    outline: none;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease,
        transform 150ms ease;
}

.selectable-metric:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.045);
}

.selectable-metric:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.selectable-metric.pitch.selected {
    border-color: rgba(54, 150, 255, 0.72);
    background: rgba(37, 136, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(54, 150, 255, 0.16);
}

.selectable-metric.intensity.selected {
    border-color: rgba(228, 235, 84, 0.62);
    background: rgba(228, 235, 84, 0.075);
    box-shadow: inset 0 0 0 1px rgba(228, 235, 84, 0.12);
}

.selectable-metric.formant.selected {
    border-color: rgba(255, 79, 114, 0.68);
    background: rgba(255, 79, 114, 0.085);
    box-shadow: inset 0 0 0 1px rgba(255, 79, 114, 0.14);
}

.metric-label {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 700;
}

.primary-metrics strong {
    color: #f8fbff;
    font-size: clamp(25px, 2.2vw, 33px);
    font-weight: 540;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.06em;
}

.primary-metrics em,
.formant-metrics em {
    margin-left: 4px;
    color: #8290a6;
    font-size: 10px;
    font-style: normal;
}

.primary-metrics small {
    display: block;
    overflow: hidden;
    margin-top: 8px;
    color: #657289;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.formant-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.formant-metrics article {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.018);
}

.formant-metrics span {
    display: block;
    margin-bottom: 5px;
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
}

.formant-metrics strong {
    font-size: 15px;
    font-weight: 570;
    font-variant-numeric: tabular-nums;
}

.statistics {
    margin-top: 23px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
}

.statistics dl {
    margin: 12px 0 0;
}

.statistics dl div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(159, 176, 205, 0.08);
}

.statistics dt {
    color: #7d899d;
    font-size: 11px;
}

.statistics dd {
    margin: 0;
    color: #d6dfed;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.calibration-note {
    margin: 18px 0 0;
    color: #5f6c81;
    font-size: 10px;
    line-height: 1.6;
}

.panel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: auto;
    padding-top: 20px;
}

.panel-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 35px;
    color: #9da9bb;
    font-size: 10px;
}

.settings-panel {
    position: fixed;
    z-index: 60;
    top: 88px;
    right: 18px;
    bottom: 18px;
    display: flex;
    width: min(460px, calc(100vw - 36px));
    min-height: 0;
    gap: 20px;
    flex-direction: column;
    padding: 22px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(calc(100% + 30px));
    opacity: 0;
    transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[lang='en'] .settings-panel {
    width: min(640px, calc(100vw - 36px));
}

html[lang='en'] .settings-tabs button {
    white-space: nowrap;
    overflow-wrap: normal;
}

.settings-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(3, 6, 12, 0.55);
}

.settings-tabs button {
    min-width: 0;
    height: 33px;
    padding: 0 4px;
    border: 0;
    border-radius: 7px;
    color: #6f7d93;
    font-size: 11px;
    font-weight: 680;
    background: transparent;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.settings-tabs button.active {
    color: #e5edf8;
    background: #1a2333;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.settings-tab-content {
    display: grid;
    gap: 20px;
}

.reset-tab-button {
    justify-self: end;
    color: #9fbde4;
    font-size: 11px;
}

.settings-panel.open {
    transform: translateX(0);
    opacity: 1;
}

.settings-header button {
    display: grid;
    width: 31px;
    height: 31px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: #9ba7ba;
    background: transparent;
    cursor: pointer;
}

.settings-header button svg {
    width: 18px;
    height: 18px;
}

.reset-tab-button {
    display: inline-grid;
    grid-template-columns: 15px auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
    line-height: 1;
}

.reset-tab-button > svg {
    display: block;
    width: 15px;
    height: 15px;
    transform: translateY(-0.5px);
}

.reset-tab-button > span {
    display: block;
    line-height: 16px;
}

.settings-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.select-row select:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.setting {
    display: grid;
    gap: 9px;
}

.setting > span {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #b4bfce;
    font-size: 12px;
    font-weight: 620;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.setting em {
    flex: 0 0 auto;
    color: #d5dce8;
    font-style: normal;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.setting input,
.history-slider {
    accent-color: var(--blue);
}

.setting input {
    width: 100%;
}

.setting input:disabled {
    opacity: 0.34;
}

.setting > small {
    margin-top: -3px;
    color: #68758a;
    font-size: 10px;
    line-height: 1.55;
}

.effect-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #9aa6b9;
}

.effect-toggle > span {
    display: grid;
    gap: 3px;
}

.effect-toggle strong {
    color: #cbd5e4;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.effect-toggle small {
    color: #68758a;
    font-size: 10px;
    line-height: 1.55;
}

.effect-toggle input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    accent-color: var(--blue);
}

.calibration-readout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 11px;
    border: 1px solid rgba(37, 136, 255, 0.16);
    border-radius: 8px;
    background: rgba(37, 136, 255, 0.035);
}

.calibration-readout > span {
    display: grid;
    gap: 3px;
}

.calibration-readout strong {
    color: #cbd5e4;
    font-size: 12px;
    font-weight: 650;
}

.calibration-readout small {
    color: #68758a;
    font-size: 10px;
    line-height: 1.55;
}

.calibration-readout em {
    flex: 0 0 auto;
    color: #d5dce8;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.waveform-setting-section-label {
    padding-top: 4px;
    color: #7f8da3;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.glass-effects .topbar {
    background: rgba(7, 10, 18, 0.86);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
}

html.glass-effects .language-menu {
    background: rgba(9, 14, 24, 0.98);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

html.glass-effects .media-panel {
    background: rgba(7, 11, 19, 0.94);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

html.glass-effects .cursor-tooltip {
    background: rgba(5, 8, 15, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

html.glass-effects .metrics-panel {
    background: linear-gradient(155deg, rgba(17, 23, 37, 0.88), rgba(10, 14, 24, 0.92));
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
}

html.glass-effects .settings-panel {
    background: linear-gradient(155deg, rgba(17, 23, 37, 0.88), rgba(10, 14, 24, 0.92));
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
}

.select-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.select-row.one {
    grid-template-columns: 1fr;
}

.select-row label {
    color: #a8b4c5;
    font-size: 11px;
    font-weight: 620;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.select-row select {
    width: 100%;
    height: 36px;
    margin-top: 7px;
    padding: 0 8px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: #d4ddea;
    font-size: 12px;
    font-weight: 500;
    background: #0c111d;
}

.palette-setting > span {
    color: #a8b4c5;
    font-size: 11px;
    font-weight: 620;
}

.palette-setting > div {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 10px;
}

.palette-setting button {
    width: 35px;
    height: 35px;
    padding: 0;
    border: 2px solid transparent;
    overflow: hidden;
    border-radius: 9px;
    background-clip: padding-box !important;
    appearance: none;
    cursor: pointer;
}

.palette-setting button.active {
    border-color: #e9f0fb;
    box-shadow: 0 0 0 2px rgba(37, 136, 255, 0.45);
}

.palette-setting small {
    display: block;
    margin-top: 7px;
    color: #68758a;
    font-size: 10px;
}

.waveform-palette-setting button {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.waveform-palette-setting button > span {
    display: block;
    height: 100%;
}

.mode-explainer {
    padding: 14px;
    border: 1px solid rgba(37, 136, 255, 0.18);
    border-radius: 11px;
    background: rgba(37, 136, 255, 0.055);
}

.setting-help {
    margin: -2px 0 0;
    padding: 11px 12px;
    border-left: 2px solid rgba(37, 136, 255, 0.45);
    color: #6d7b90;
    font-size: 10.5px;
    line-height: 1.65;
    background: rgba(37, 136, 255, 0.035);
}

.mode-explainer strong {
    color: #bcd8ff;
    font-size: 12px;
}

.mode-explainer p {
    margin: 7px 0 0;
    color: #79879c;
    font-size: 12px;
    line-height: 1.65;
}

.settings-backdrop {
    position: fixed;
    z-index: 50;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.35);
    cursor: default;
}

@media (max-width: 1100px) {
    .topbar {
        grid-template-columns: auto 1fr auto;
    }

    .session-clock {
        display: none;
    }

    .metrics-panel {
        top: 86px;
        right: 12px;
    }

    .primary-metrics,
    .statistics dl {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .topbar {
        position: relative;
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 5px;
        padding: 6px 8px;
    }

    .source-status {
        display: none;
    }

    .brand {
        min-width: 0;
        gap: 9px;
    }

    .brand-mark {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .brand strong {
        font-size: 18px;
    }

    .brand span {
        font-size: 9px;
    }

    .top-actions {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        width: 100%;
        padding-left: 0;
        gap: 4px;
    }

    .session-actions {
        display: contents;
    }

    .top-actions .button.secondary {
        display: inline-flex;
        grid-column: span 4;
    }

    .top-actions .button {
        min-width: 0;
        min-height: 30px;
        padding: 0 6px;
        gap: 4px;
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
    }

    .top-actions .button.primary,
    .top-actions .button.danger,
    .top-actions .button.playback-button {
        grid-column: span 3;
    }

    .top-actions:not(.has-playback) .button.primary,
    .top-actions:not(.has-playback) .button.danger {
        grid-column: span 6;
    }

    .session-actions > .icon-button,
    .session-actions > .language-control {
        grid-column: span 2;
        min-width: 0;
    }

    .top-actions .button > svg {
        width: 14px;
        height: 14px;
    }

    .top-actions .icon-button,
    .top-actions .language-button {
        width: 100%;
        height: 30px;
    }

    .workspace {
        padding: 0;
    }

    .visualizer-toolbar {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        gap: 5px;
        padding: 6px 7px;
    }

    .mode-switch {
        grid-column: 1 / -1;
        width: 100%;
    }

    .toolbar-center {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        width: 100%;
        gap: 4px;
    }

    .toolbar-center .plot-toggles,
    .toolbar-center .overlay-toggles {
        display: contents;
    }

    .toolbar-center .plot-toggles button,
    .toolbar-center .overlay-toggles button {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 29px;
        padding: 0 2px;
        font-size: 10px;
        white-space: nowrap;
    }

    .view-actions {
        grid-column: 1 / -1;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 4px;
    }

    .mode-switch button {
        flex: 1;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        min-height: 35px;
        padding: 0 6px;
        row-gap: 2px;
    }

    .mode-switch strong {
        max-width: 100%;
        overflow: hidden;
        font-size: 11px;
        text-overflow: ellipsis;
    }

    .mode-switch span {
        font-size: 8px;
    }

    .view-actions button {
        height: 28px;
    }

    .view-actions > .zoom-readout {
        min-width: 34px;
    }

    .view-actions .view-level-action {
        width: auto;
        min-width: 32px;
        max-width: 76px;
        flex: 0 1 auto;
        gap: 3px;
        padding: 0 6px;
        overflow: hidden;
    }

    .view-actions .view-level-action span {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .view-actions .view-level-action svg {
        flex: 0 0 auto;
    }

    .edit-actions-menu {
        right: auto;
        left: 0;
        top: calc(100% + 8px);
        width: 154px;
    }

    .edit-actions-menu::after {
        right: auto;
        left: 12px;
        top: -5px;
    }

    .praat-view {
        grid-template-columns: 50px minmax(0, 1fr) 74px;
        min-height: 0;
    }

    .plot-stack {
        grid-template-rows: minmax(0, 1fr) 18px;
        padding-top: 7px;
    }

    .axis-stack {
        grid-template-rows: minmax(0, 1fr) 18px;
        padding-top: 7px;
    }

    .media-panel,
    .metrics-panel {
        z-index: 42;
        top: 12px;
        max-height: calc(100dvh - 24px);
    }

    .metrics-panel {
        right: 12px;
        width: min(296px, calc(100vw - 24px));
        min-width: min(258px, calc(100vw - 24px));
    }

    .settings-panel {
        top: max(12px, env(safe-area-inset-top));
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: calc(100vw - 24px);
        padding: 16px;
    }

    .axis {
        font-size: 9px;
    }

    .axis-cursor-value {
        padding: 1px 3px;
        border-radius: 3px;
        font-size: 8px;
        font-weight: 700;
    }

    .cursor-tooltip {
        min-width: min(98px, calc(100% - 12px));
        max-width: min(140px, calc(100% - 12px));
        max-height: calc(100% - 12px);
        gap: 1px;
        padding: 5px 7px;
        border-radius: 6px;
    }

    .cursor-tooltip strong {
        font-size: 10px;
    }

    .cursor-tooltip span {
        font-size: 8px;
    }

    .cursor-tooltip .tooltip-pitch,
    .cursor-tooltip .tooltip-intensity,
    .cursor-tooltip .selection-range {
        display: none;
    }

    .axis-title {
        display: block;
        font-size: 8px;
    }

    .primary-metrics strong {
        font-size: 26px;
    }
}

@media (max-width: 700px) {
    .settings-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .settings-tabs button {
        min-height: 35px;
        height: auto;
        padding: 6px 4px;
        line-height: 1.15;
    }
}

html.light-ui {
    color-scheme: light;
    --bg: #eef2f7;
    --panel: #ffffff;
    --panel-raised: #f7f9fc;
    --line: rgba(54, 68, 91, 0.14);
    --line-strong: rgba(54, 68, 91, 0.24);
    --text: #172033;
    --muted: #667085;
    --scrollbar-track: rgba(204, 213, 226, 0.7);
    --scrollbar-thumb: linear-gradient(180deg, #aebdce, #8f9fb3);
    --scrollbar-thumb-hover: linear-gradient(180deg, #9eafc3, #7f91a8);
    --scrollbar-thumb-border: rgba(255, 255, 255, 0.82);
}

html.light-ui * {
    scrollbar-color: #9aabbe var(--scrollbar-track);
}

html.light-ui *::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

html.light-ui *::-webkit-scrollbar-thumb {
    border-color: var(--scrollbar-thumb-border);
    background: var(--scrollbar-thumb);
}

html.light-ui *::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

html.light-ui body {
    background: radial-gradient(circle at 35% -20%, rgba(79, 104, 184, 0.12), transparent 38%),
        var(--bg);
}

html.light-ui .topbar,
html.light-ui.glass-effects .topbar {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 18px rgba(33, 47, 72, 0.07);
}

html.light-ui .visualizer-card,
html.light-ui .visualizer-toolbar,
html.light-ui .praat-view {
    background: #f3f6fa;
}

html.light-ui .visualizer-toolbar {
    border-bottom-color: rgba(54, 68, 91, 0.16);
}

html.light-ui .axis-cursor-value {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(36, 50, 76, 0.18);
}

html.light-ui .cursor-tooltip,
html.light-ui.glass-effects .cursor-tooltip {
    color: #475467;
    border-color: rgba(54, 68, 91, 0.18);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(36, 50, 76, 0.18);
}

html.light-ui .cursor-tooltip strong {
    color: #172033;
}

html.light-ui .cursor-tooltip .tooltip-selection {
    color: #1769c2;
    border-top-color: rgba(23, 105, 194, 0.24);
}

html.light-ui .axis-left .axis-cursor-value.pitch {
    color: #0969c7;
}

html.light-ui .axis-right .axis-cursor-value.frequency {
    color: #bc2947;
}

html.light-ui .axis-right .axis-cursor-value.intensity {
    color: #6b7100;
}

html.light-ui .media-panel,
html.light-ui.glass-effects .media-panel,
html.light-ui .metrics-panel,
html.light-ui.glass-effects .metrics-panel,
html.light-ui .settings-panel,
html.light-ui.glass-effects .settings-panel {
    border-color: rgba(54, 68, 91, 0.16);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 60px rgba(36, 50, 76, 0.16);
}

html.light-ui .language-menu,
html.light-ui.glass-effects .language-menu {
    border-color: rgba(54, 68, 91, 0.18);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 36px rgba(36, 50, 76, 0.16);
}

html.light-ui .button,
html.light-ui .icon-button,
html.light-ui .view-actions button,
html.light-ui .panel-actions button,
html.light-ui .media-panel-heading button,
html.light-ui .settings-header button,
html.light-ui .reset-tab-button {
    color: #475467;
    background: rgba(255, 255, 255, 0.72);
}

html.light-ui .button:hover,
html.light-ui .icon-button:hover,
html.light-ui .view-actions button:hover,
html.light-ui .panel-actions button:hover {
    border-color: rgba(53, 105, 181, 0.42);
    background: #ffffff;
}

html.light-ui .button.primary {
    color: #ffffff;
    border-color: #1769c2;
    background: linear-gradient(180deg, #287fdf, #1769c2);
    box-shadow: 0 8px 22px rgba(23, 105, 194, 0.2);
}

html.light-ui .button.primary:hover {
    color: #ffffff;
    border-color: #0f5dad;
    background: linear-gradient(180deg, #2074cf, #125fae);
}

html.light-ui .language-button,
html.light-ui .theme-button {
    color: #344054;
    border-color: rgba(54, 68, 91, 0.2);
    background: #ffffff;
}

html.light-ui .language-menu button {
    color: #475467;
}

html.light-ui .language-menu button:hover,
html.light-ui .language-menu button.active {
    color: #1d4f91;
    background: #e7f1ff;
}

html.light-ui .brand strong,
html.light-ui .source-status strong,
html.light-ui .session-clock strong,
html.light-ui .media-panel-heading strong,
html.light-ui .metrics-heading h2,
html.light-ui .settings-header h2,
html.light-ui .primary-metrics strong,
html.light-ui .formant-metrics strong {
    color: #172033;
}

html.light-ui .source-status span,
html.light-ui .session-clock span,
html.light-ui .media-panel-heading strong small,
html.light-ui .eyebrow,
html.light-ui .setting > span,
html.light-ui .setting > small,
html.light-ui .effect-toggle,
html.light-ui .effect-toggle small,
html.light-ui .select-row label,
html.light-ui .palette-setting > span,
html.light-ui .palette-setting small,
html.light-ui .statistics dt,
html.light-ui .calibration-note,
html.light-ui .panel-actions button {
    color: #667085;
}

html.light-ui .mode-switch,
html.light-ui .settings-tabs {
    border-color: rgba(54, 68, 91, 0.16);
    background: #e8edf4;
}

html.light-ui .mode-switch button,
html.light-ui .settings-tabs button {
    color: #667085;
}

html.light-ui .mode-switch button.active,
html.light-ui .settings-tabs button.active {
    color: #172033;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(36, 50, 76, 0.12);
}

html.light-ui .toolbar-center .plot-toggles button,
html.light-ui .overlay-toggles button,
html.light-ui .view-actions button {
    color: #667085;
    background: rgba(255, 255, 255, 0.66);
}

html.light-ui .toolbar-center .plot-toggles button.on,
html.light-ui .overlay-toggles button.on {
    color: #344054;
}

html.light-ui .media-row {
    color: #475467;
    background: #f8fafc;
}

html.light-ui .media-row:hover,
html.light-ui .media-row.active {
    background: #eef5ff;
}

html.light-ui .edit-actions-menu,
html.light-ui.glass-effects .edit-actions-menu {
    border-color: rgba(54, 68, 91, 0.18);
    color: #344054;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(36, 50, 76, 0.16);
}

html.light-ui .edit-actions-menu::after,
html.light-ui.glass-effects .edit-actions-menu::after {
    border-color: rgba(54, 68, 91, 0.18);
    background: #ffffff;
}

html.light-ui .edit-actions-menu button {
    color: #475467;
}

html.light-ui .edit-actions-menu button:hover {
    border-color: rgba(53, 105, 181, 0.22);
    color: #172033;
    background: rgba(53, 105, 181, 0.08);
}

html.light-ui .edit-actions-menu button:disabled,
html.light-ui .edit-actions-menu button:disabled:hover {
    color: #98a2b3;
    background: transparent;
}

html.light-ui .media-drag-handle {
    color: #7c8da5;
}

html.light-ui .media-drop-indicator {
    background: #287fdf;
}

html.light-ui .media-row.dragging {
    box-shadow: 0 8px 20px rgba(36, 50, 76, 0.16);
}

html.light-ui .axis,
html.light-ui .waveform-axis {
    color: #526177;
}

html.light-ui .plot-divider,
html.light-ui .axis-divider-space {
    background: #dce3ec;
}

html.light-ui .plot-divider span {
    background: #8796aa;
}

html.light-ui .zoom-scrollbar {
    border-color: rgba(54, 68, 91, 0.24);
    background: #e3e8ef;
}

html.light-ui .zoom-scrollbar-thumb {
    border-color: #77869a;
    background: #aeb9c8;
}

html.light-ui .zoom-scrollbar:active .zoom-scrollbar-thumb {
    border-color: #60748e;
    background: #91a2b8;
}

html.light-ui .primary-metrics article,
html.light-ui .formant-metrics article {
    background: #f7f9fc;
}

html.light-ui .statistics dd,
html.light-ui .setting em,
html.light-ui .effect-toggle strong,
html.light-ui .calibration-readout strong,
html.light-ui .calibration-readout em {
    color: #344054;
}

html.light-ui .calibration-readout small {
    color: #667085;
}

html.light-ui .calibration-readout {
    border-color: rgba(37, 136, 255, 0.16);
    background: rgba(37, 136, 255, 0.045);
}

html.light-ui .select-row select {
    border-color: rgba(54, 68, 91, 0.22);
    color: #344054;
    background: #ffffff;
}

html.light-ui .palette-setting button.active {
    border-color: #344054;
    box-shadow: 0 0 0 2px rgba(37, 136, 255, 0.36);
}

html.light-ui .intensity-color {
    color: #807000 !important;
}

html.light-ui .collapsed-reading.intensity {
    --metric-color: #807000;
}

html.light-ui .overlay-toggles .on.intensity i {
    color: #8a7800;
    box-shadow: 0 0 6px rgba(138, 120, 0, 0.38);
}

html.light-ui .microphone .media-kind {
    color: #167a52;
    background: rgba(22, 122, 82, 0.1);
}

html.light-ui .status-dot.playing {
    background: #23835e;
    box-shadow: 0 0 0 4px rgba(35, 131, 94, 0.12), 0 0 8px rgba(35, 131, 94, 0.26);
}

html.light-ui .analysis-task-toast {
    color: #172033;
    border-color: rgba(53, 105, 181, 0.2);
    background: rgba(250, 252, 255, 0.96);
    box-shadow: 0 18px 42px rgba(36, 50, 76, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

html.light-ui .analysis-task-dismiss {
    border-color: rgba(54, 68, 91, 0.18);
    color: #667085;
    background: rgba(54, 68, 91, 0.035);
}

html.light-ui .analysis-task-dismiss:hover {
    border-color: rgba(53, 105, 181, 0.34);
    color: #344054;
    background: rgba(53, 105, 181, 0.08);
}

html.light-ui .analysis-task-heading span,
html.light-ui .analysis-task-heading em,
html.light-ui .analysis-task-row small {
    color: #667085;
}

html.light-ui .analysis-task-heading em,
html.light-ui .analysis-task-row.running,
html.light-ui .analysis-task-row.retrying {
    background: rgba(40, 127, 223, 0.08);
}

html.light-ui .analysis-total-progress,
html.light-ui .analysis-row-progress {
    background: rgba(53, 74, 107, 0.13);
}

@media (max-width: 760px) {
    .analysis-task-toast {
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        width: auto;
        padding: 13px;
        border-radius: 14px;
    }

    .analysis-task-row {
        min-height: 36px;
    }
}

html.light-ui .setting-help {
    color: #5f6f86;
    background: rgba(37, 136, 255, 0.06);
}

html.light-ui .settings-backdrop {
    background: rgba(81, 94, 116, 0.22);
}
