@media (max-width: 560px) {
    .keyword-manager-grid,
    .keyword-threshold-field,
    .keyword-manager-item {
        grid-template-columns: 1fr;
    }

    .keyword-manager-item-actions {
        justify-content: flex-start;
    }
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    margin-top: 1rem;
}

.main-grid-column {
    display: grid;
    align-content: start;
    gap: 1rem;
    min-width: 0;
}

.card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 1rem;
    background: #fff7ea;
    background:
        linear-gradient(180deg, oklch(97% 0.03 82 / 0.98), oklch(92.8% 0.04 82 / 0.96)),
        var(--paper-soft);
    border: 2px solid rgba(23, 18, 13, 0.28);
    border: 2px solid var(--border-strong);
    border-radius: 22px;
    box-shadow: var(--shadow-sm), inset 0 1px 0 oklch(99% 0.012 82 / 0.78);
}

html.theme-dark .card {
    background:
        linear-gradient(180deg, oklch(22% 0.018 164 / 0.98), oklch(18% 0.018 164 / 0.96)),
        var(--paper-soft);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--card-accent, linear-gradient(90deg, var(--accent), var(--accent-amber)));
}

.card--recent {
    --card-accent: linear-gradient(90deg, var(--accent-amber), #e2b35e);
}

.card--favorites {
    --card-accent: linear-gradient(90deg, var(--accent-olive), #91a253);
}

.card--library,
.card--top-sounds {
    --card-accent: linear-gradient(90deg, var(--accent), #df7f53);
}

.card--top-users,
.card--timeline {
    --card-accent: linear-gradient(90deg, var(--ink), #5b4e41);
}

.card--heatmap {
    --card-accent: linear-gradient(90deg, var(--accent-olive), var(--accent-amber));
}

.card--activity {
    --card-accent: linear-gradient(90deg, var(--accent-amber), var(--accent));
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-title-stack {
    display: grid;
    gap: 0.28rem;
}

.card-kicker {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.card-title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.card-copy {
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.9rem;
    max-width: 40ch;
}

.table-caption {
    margin: 0 0 0.75rem;
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.search-input,
.filter-select {
    width: 100%;
    padding: 0.72rem 0.86rem;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(23, 18, 13, 0.2);
    border: 2px solid var(--border);
    background: #f7efe5;
    background: oklch(94% 0.025 82 / 0.92);
    color: var(--ink);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.filter-select {
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.035em;
}

.search-input::placeholder {
    color: #897c70;
}

html.theme-dark .search-input::placeholder {
    color: #91887f;
}

.search-shell {
    position: relative;
    min-width: 0;
}

.search-shell .search-input {
    padding-right: 2.4rem;
}

.search-clear-button {
    position: absolute;
    top: 50%;
    right: 0.48rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--ink-muted);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-50%);
}

.search-clear-button.visible {
    display: inline-flex;
}

html.theme-dark .search-clear-button {
    background: rgba(255, 255, 255, 0.08);
}

.search-input {
    margin-bottom: 0;
}

.library-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.library-controls .search-input {
    margin-bottom: 0;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: rgba(197, 72, 52, 0.42);
    background: #fffefb;
    box-shadow: 0 0 0 4px rgba(197, 72, 52, 0.08);
}

html.theme-dark .search-input:focus,
html.theme-dark .filter-select:focus {
    background: #1f2522;
    box-shadow: 0 0 0 4px rgba(228, 95, 73, 0.14);
}

.filters-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.actions-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.actions-controls .filters-grid {
    margin-bottom: 0;
}

.result-meta {
    min-height: 1.05rem;
    margin: -0.12rem 0 0.45rem;
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.filters-grid.cols-1 {
    grid-template-columns: 1fr;
}

.filters-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filters-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.filter-label {
    color: var(--ink-muted);
    font-size: 0.66rem;
    font-weight: 700;
}

.placeholder-filter {
    pointer-events: none;
}

.filter-placeholder {
    display: block;
    min-height: 3rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(23, 18, 13, 0.035));
}

.filter-select {
    min-height: 2.58rem;
    appearance: none;
    -webkit-appearance: none;
    padding: 0.68rem 2.74rem 0.68rem 0.86rem;
    border: 2px solid rgba(23, 18, 13, 0.24);
    border-color: oklch(19.5% 0.024 58 / 0.34);
    background: rgb(247, 239, 229);
    background:
        linear-gradient(180deg, oklch(98% 0.014 82 / 0.98), oklch(92% 0.028 82 / 0.9)),
        oklch(96.1% 0.018 82 / 0.82);
    color: rgb(23, 18, 13);
    box-shadow: 2px 2px 0 rgba(23, 18, 13, 0.08), inset 0 1px 0 rgba(255, 253, 248, 0.8);
    box-shadow:
        2px 2px 0 oklch(19.5% 0.024 58 / 0.12),
        inset 0 1px 0 oklch(98.2% 0.012 82 / 0.8);
    cursor: pointer;
    text-transform: none;
}

.select-shell {
    position: relative;
    isolation: isolate;
    border-radius: var(--radius-sm);
    transition:
        filter var(--motion-duration-fast) ease,
        transform var(--motion-duration-fast) var(--ease-out-quint);
}

.select-shell::before,
.select-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.select-shell::before {
    right: 0.36rem;
    top: 50%;
    z-index: 1;
    width: 1.84rem;
    height: 1.84rem;
    border: 1px solid rgba(197, 72, 52, 0.3);
    border-color: oklch(58% 0.15 32 / 0.32);
    border-radius: 9px;
    background: rgb(251, 241, 225);
    background:
        linear-gradient(180deg, oklch(74% 0.12 72 / 0.22), oklch(68% 0.13 72 / 0.1)),
        oklch(97% 0.018 82 / 0.84);
    box-shadow: inset 0 1px 0 rgba(255, 253, 248, 0.7), 0 1px 0 rgba(23, 18, 13, 0.04);
    box-shadow:
        inset 0 1px 0 oklch(98.2% 0.012 82 / 0.7),
        0 1px 0 oklch(19.5% 0.024 58 / 0.04);
    transform: translateY(-50%);
}

.select-shell::after {
    right: 1rem;
    top: 50%;
    z-index: 2;
    width: 0.46rem;
    height: 0.46rem;
    border-right: 2px solid rgb(151, 57, 43);
    border-bottom: 2px solid rgb(151, 57, 43);
    border-color: oklch(46% 0.13 32);
    transform: translateY(-65%) rotate(45deg);
}

.select-shell:hover {
    transform: translateY(-1px);
}

.select-shell:active {
    transform: translateY(0);
}

.select-shell:hover .filter-select,
.select-shell:focus-within .filter-select {
    border-color: rgba(197, 72, 52, 0.46);
    border-color: oklch(58% 0.15 32 / 0.52);
    background: rgb(250, 243, 233);
    background:
        linear-gradient(180deg, oklch(98% 0.014 82 / 0.98), oklch(92% 0.032 82 / 0.94)),
        oklch(97.2% 0.018 82 / 0.9);
    box-shadow: 3px 3px 0 rgba(197, 72, 52, 0.12), inset 0 1px 0 rgba(255, 253, 248, 0.84);
    box-shadow:
        3px 3px 0 oklch(58% 0.15 32 / 0.15),
        inset 0 1px 0 oklch(98.2% 0.012 82 / 0.84);
}

.select-shell:active .filter-select {
    box-shadow: 1px 1px 0 rgba(197, 72, 52, 0.1), inset 0 1px 0 rgba(255, 253, 248, 0.76);
    box-shadow:
        1px 1px 0 oklch(58% 0.15 32 / 0.12),
        inset 0 1px 0 oklch(98.2% 0.012 82 / 0.76);
}

.select-shell:focus-within::before {
    border-color: rgba(197, 72, 52, 0.44);
    border-color: oklch(58% 0.15 32 / 0.48);
    background: rgb(250, 237, 219);
    background:
        linear-gradient(180deg, oklch(68% 0.13 72 / 0.18), var(--accent-soft)),
        oklch(97% 0.018 82 / 0.88);
}

.filter-select:disabled {
    color: var(--ink-muted);
    cursor: progress;
    opacity: 0.74;
}

html.theme-dark .filter-select {
    border-color: rgba(244, 240, 232, 0.18);
    border-color: oklch(89% 0.018 82 / 0.18);
    background: rgb(28, 34, 31);
    background:
        linear-gradient(180deg, oklch(25% 0.018 154 / 0.92), oklch(18% 0.016 154 / 0.9)),
        oklch(17% 0.02 154);
    color: rgb(244, 240, 232);
    color: oklch(94% 0.012 82);
    box-shadow: 2px 2px 0 rgba(5, 7, 6, 0.34), inset 0 1px 0 rgba(244, 240, 232, 0.08);
    box-shadow:
        2px 2px 0 oklch(5% 0.01 164 / 0.34),
        inset 0 1px 0 oklch(89% 0.018 82 / 0.08);
}

html.theme-dark .select-shell::before {
    border-color: rgba(243, 185, 85, 0.28);
    border-color: oklch(74% 0.12 72 / 0.32);
    background: rgb(33, 39, 36);
    background:
        linear-gradient(180deg, oklch(74% 0.12 72 / 0.2), oklch(17% 0.02 154 / 0.86)),
        oklch(22% 0.018 154 / 0.9);
    box-shadow: inset 0 1px 0 rgba(244, 240, 232, 0.1);
    box-shadow: inset 0 1px 0 oklch(89% 0.018 82 / 0.1);
}

html.theme-dark .select-shell::after {
    border-right-color: rgb(243, 185, 85);
    border-bottom-color: rgb(243, 185, 85);
    border-color: oklch(82% 0.12 72);
}

html.theme-dark .select-shell:hover .filter-select,
html.theme-dark .select-shell:focus-within .filter-select {
    border-color: rgba(243, 185, 85, 0.42);
    border-color: oklch(74% 0.12 72 / 0.5);
    background: rgb(31, 38, 34);
    background:
        linear-gradient(180deg, oklch(27% 0.02 154 / 0.96), oklch(20% 0.018 154 / 0.92)),
        oklch(17% 0.02 154);
    box-shadow: 3px 3px 0 rgba(5, 7, 6, 0.38), inset 0 1px 0 rgba(244, 240, 232, 0.12);
    box-shadow:
        3px 3px 0 oklch(5% 0.01 164 / 0.38),
        inset 0 1px 0 oklch(89% 0.018 82 / 0.12);
}

html.theme-dark .select-shell:focus-within::before {
    border-color: rgba(243, 185, 85, 0.46);
    border-color: oklch(82% 0.12 72 / 0.48);
    background: rgb(36, 42, 38);
    background:
        linear-gradient(180deg, oklch(74% 0.12 72 / 0.26), oklch(58% 0.15 32 / 0.16)),
        oklch(23% 0.018 154 / 0.94);
}

.select-shell:has(.filter-select:disabled) {
    transform: none;
}

.select-shell:has(.filter-select:disabled)::before,
.select-shell:has(.filter-select:disabled)::after {
    opacity: 0.48;
}

.table-container {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    padding-bottom: var(--table-bottom-inset);
    border-radius: 14px;
    border: 2px solid rgba(23, 18, 13, 0.2);
    border: 2px solid var(--border);
    background: #fbf4ea;
    background: oklch(96.5% 0.02 82 / 0.9);
    position: relative;
}

html.theme-dark .table-container {
    border-color: rgba(244, 240, 232, 0.14);
    background: rgba(20, 25, 22, 0.82);
}

.table-container.is-loading::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 38%;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
    animation: tableLoadingWave 1s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.table-container.is-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 28%;
    height: 3px;
    border-radius: 999px;
    background: var(--accent-amber-soft);
    animation: tableLoadingWave 1.6s cubic-bezier(0.45, 0, 0.55, 1) infinite reverse;
}

.table-container.is-loading table {
    opacity: 0.58;
}

.table-container,
.activity-feed {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.08);
}

.table-container::-webkit-scrollbar,
.activity-feed::-webkit-scrollbar {
    width: 0.4rem;
    height: 0.4rem;
}

.table-container::-webkit-scrollbar-track,
.activity-feed::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.table-container::-webkit-scrollbar-thumb,
.activity-feed::-webkit-scrollbar-thumb {
    min-height: 1.85rem;
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.sound-row-context-menu {
    position: fixed;
    z-index: 1200;
    display: none;
    width: max-content;
    max-width: min(18rem, calc(100vw - 1rem));
    min-width: 8.25rem;
    padding: 0.35rem;
    border: 1px solid rgba(23, 18, 13, 0.14);
    border-radius: 8px;
    background: rgba(255, 250, 241, 0.98);
    box-shadow: 0 16px 34px rgba(23, 18, 13, 0.18);
}

.sound-row-context-menu.open {
    display: inline-grid;
}

.sound-row-context-menu button {
    width: 100%;
    min-height: 2.25rem;
    padding: 0.45rem 0.65rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
}

.sound-row-context-menu button:hover,
.sound-row-context-menu button:focus-visible {
    outline: none;
    background: rgba(197, 72, 52, 0.1);
}

.sound-row-context-menu button:first-child {
    color: var(--accent);
}

html.theme-dark .sound-row-context-menu {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(28, 32, 29, 0.98);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th,
td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.72rem 0.5rem;
    height: var(--table-header-height);
    background: var(--paper-soft);
    border-bottom: 1px solid var(--border);
    color: var(--ink-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
}

html.theme-dark th {
    background: rgba(22, 27, 24, 0.97);
    border-bottom-color: rgba(244, 240, 232, 0.14);
}

td {
    padding: 0.56rem 0.5rem;
    height: var(--table-row-height);
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    vertical-align: middle;
}

tbody tr {
    height: var(--table-row-height);
    transition: background 0.18s ease;
}

tbody tr.row-reveal {
    animation: rowReveal 0.25s ease-out both;
}

tbody tr.row-reveal.empty-row {
    animation: none;
}

tbody tr:nth-child(even) {
    background: oklch(98.2% 0.012 82 / 0.45);
}

html.theme-dark tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.04);
}

tbody tr:hover {
    background: var(--accent-soft);
}

html.theme-dark tbody tr:hover {
    background: rgba(228, 95, 73, 0.12);
}

.placeholder-row {
    pointer-events: none;
}

.placeholder-row td {
    color: transparent;
}

.placeholder-row td::before {
    content: "";
    display: block;
    width: min(100%, 9rem);
    height: 0.72rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(23, 18, 13, 0.08), rgba(23, 18, 13, 0.035));
}

tr:last-child td {
    border-bottom: none;
}

.filename {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sound-label,
.filename .sound-title,
.filename .sound-duration {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sound-label,
.filename {
    line-height: 1.15;
}

.filename .sound-title {
    font-weight: 700;
}

.filename .sound-duration {
    margin-top: 0.16rem;
    color: var(--ink-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0;
}

.play-button,
.play-btn,
.pagination button,
.login-modal-close,
.login-modal-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform var(--motion-duration-fast) var(--ease-out-quint),
        box-shadow var(--motion-duration-fast) var(--ease-out-quint),
        background var(--motion-duration-fast) ease,
        border-color var(--motion-duration-fast) ease,
        color var(--motion-duration-fast) ease,
        opacity var(--motion-duration-fast) ease;
}

.play-button,
.play-btn {
    position: relative;
    min-width: 2.7rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.75rem;
    border: 3px solid var(--ink);
    border-radius: 14px;
    background:
        linear-gradient(180deg, oklch(28.5% 0.022 58), var(--ink));
    color: var(--paper);
    box-shadow:
        var(--button-cartoon-shadow),
        var(--button-cartoon-highlight);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    overflow: hidden;
    isolation: isolate;
}

.play-button::before,
.play-btn::before,
.web-control-button::before,
.web-upload-control-button::before,
.sound-options-button::before,
.pagination button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.25), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.play-button:active::before,
.play-btn:active::before,
.web-control-button:active::before,
.web-upload-control-button:active::before,
.sound-options-button:active::before,
.pagination button:active::before {
    animation: buttonFlash 0.3s ease-out;
}

html.theme-dark .play-button::before,
html.theme-dark .play-btn::before,
html.theme-dark .web-control-button::before,
html.theme-dark .web-upload-control-button::before,
html.theme-dark .pagination button::before {
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 60%);
}

.sound-options-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border: 2px solid var(--border-strong);
    border-radius: 12px;
    background:
        linear-gradient(180deg, oklch(98.2% 0.012 82 / 0.88), var(--paper-muted));
    color: var(--ink);
    box-shadow:
        4px 5px 0 oklch(19.5% 0.024 58 / 0.12),
        var(--button-cartoon-highlight);
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 900;
    line-height: 1;
    transition:
        transform var(--motion-duration-fast) var(--ease-out-quint),
        background var(--motion-duration-fast) ease,
        border-color var(--motion-duration-fast) ease,
        box-shadow var(--motion-duration-fast) var(--ease-out-quint);
}

.sound-options-button:hover {
    transform: translate(-3px, -3px) rotate(4deg) scale(1.06);
    border-color: rgba(197, 72, 52, 0.35);
    background: rgba(197, 72, 52, 0.08);
    box-shadow:
        6px 7px 0 oklch(19.5% 0.024 58 / 0.14),
        var(--button-cartoon-highlight);
    animation: doodleWobble 0.4s ease-in-out;
}

.sound-options-button:active {
    transform: translate(3px, 3px) scale(0.88) rotate(-1deg);
    box-shadow:
        1px 2px 0 oklch(19.5% 0.024 58 / 0.12),
        var(--button-cartoon-highlight);
    animation: doodlePress 0.2s ease-out;
}

html.theme-dark .sound-options-button {
    background: rgba(255, 255, 255, 0.08);
}

.play-button:hover:not(:disabled),
.play-btn:hover:not(:disabled),
.pagination button:hover:not(:disabled),
.login-modal-close:hover,
.login-modal-login:hover {
    transform: translate(-3px, -3px) rotate(-2deg) scale(1.04);
    animation: doodleWobble 0.6s ease-in-out;
}

.play-button:hover:not(:disabled),
.play-btn:hover:not(:disabled) {
    box-shadow:
        var(--button-cartoon-shadow-hover),
        var(--button-cartoon-highlight);
}

.play-button:active:not(:disabled),
.play-btn:active:not(:disabled) {
    transform: translate(3px, 3px) scale(0.88) rotate(1deg);
    box-shadow:
        var(--button-cartoon-shadow-active),
        var(--button-cartoon-highlight);
    animation: doodlePress 0.2s ease-out;
}

.play-button:disabled,
.play-btn:disabled,
.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
}

.play-button.login-required,
.play-btn.login-required {
    background:
        linear-gradient(180deg, oklch(60% 0.16 28), var(--error));
    border-color: var(--error);
    color: var(--paper);
    box-shadow:
        4px 5px 0 oklch(48% 0.15 28 / 0.22),
        var(--button-cartoon-highlight);
}

.play-button.sent,
.play-btn.sent {
    overflow: visible;
    background:
        linear-gradient(180deg, oklch(64% 0.12 154), var(--success));
    border-color: var(--success);
    box-shadow:
        4px 5px 0 oklch(53% 0.11 154 / 0.22),
        var(--button-cartoon-highlight);
}

.play-button.sent::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid var(--success);
    animation: sentRing 0.45s ease-out forwards;
    pointer-events: none;
}

.play-button.warn,
.play-btn.warn {
    background:
        linear-gradient(180deg, oklch(78% 0.13 72), var(--accent-amber));
    border-color: var(--accent-amber);
    color: #17120d;
    box-shadow:
        4px 5px 0 oklch(68% 0.13 72 / 0.22),
        var(--button-cartoon-highlight);
}

.play-button.error,
.play-btn.error {
    animation: errorShake 0.3s ease-out;
    background:
        linear-gradient(180deg, oklch(60% 0.16 28), var(--error));
    border-color: var(--error);
    box-shadow:
        4px 5px 0 oklch(48% 0.15 28 / 0.22),
        var(--button-cartoon-highlight);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

.pagination button {
    padding: 0.72rem 1rem;
    border: 3px solid var(--border-strong);
    border-radius: 999px;
    background:
        linear-gradient(180deg, oklch(98.2% 0.012 82 / 0.82), var(--paper-muted));
    color: var(--ink);
    box-shadow:
        4px 5px 0 var(--ink-faint),
        var(--button-cartoon-highlight);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pagination button:hover:not(:disabled) {
    box-shadow:
        6px 7px 0 var(--ink-faint),
        var(--button-cartoon-highlight);
}

.pagination button:active:not(:disabled) {
    transform: translate(3px, 3px) scale(0.92) rotate(1deg);
    box-shadow:
        1px 2px 0 var(--ink-faint),
        var(--button-cartoon-highlight);
    animation: doodlePress 0.2s ease-out;
}

.pagination-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.pagination-page-input {
    width: 3.8rem;
    min-height: 2.35rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font: inherit;
    text-align: center;
}

.pagination-page-input:focus {
    outline: 2px solid rgba(197, 72, 52, 0.28);
    outline-offset: 2px;
}

.action-badge {
    display: -webkit-box;
    max-width: 72px;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0.32rem 0.44rem;
    border-radius: 8px 11px 9px 12px;
    border: 2px solid var(--border-strong);
    background: var(--accent-soft);
    box-shadow: 2px 2px 0 oklch(19.5% 0.024 58 / 0.22), var(--button-cartoon-highlight);
    font-size: 0.52rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.02em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.action-badge.play,
.action-badge.favorite {
    background: var(--accent-amber);
    border-color: var(--ink);
    color: var(--ink);
}

.action-badge.join {
    background: var(--accent-olive);
    border-color: var(--ink);
    color: var(--ink);
}

.action-badge.leave {
    background: var(--paper-strong);
    border-color: var(--ink);
    color: var(--ink);
}

.action-badge.keyword {
    background: oklch(62% 0.08 70);
    border-color: var(--ink);
    color: var(--ink);
}

.action-badge.system {
    background: var(--discord);
    border-color: var(--ink);
    color: var(--paper);
}

.action-badge.other {
    background: oklch(70% 0.02 250 / 0.35);
    border-color: var(--ink);
    color: var(--ink);
}

#actionsTable td:nth-child(2),
#favoritesTable td:first-child,
#allSoundsTable td:first-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#actionsTable th:first-child,
#actionsTable td:first-child {
    width: 5.25rem;
}

#actionsTable td:first-child {
    overflow: visible;
}

#actionsTable th:nth-child(2),
#actionsTable td:nth-child(2) {
    width: calc(100% - 15.75rem);
}

#actionsTable th:nth-child(3),
#actionsTable td:nth-child(3) {
    width: 7rem;
}

#actionsTable th:nth-child(4),
#actionsTable td:nth-child(4) {
    width: 4.5rem;
    text-align: center;
}

#favoritesTable th:first-child,
#favoritesTable td:first-child {
    width: calc(100% - 3.75rem);
}

#favoritesTable th:nth-child(2),
#favoritesTable td:nth-child(2) {
    width: 3.75rem;
    text-align: center;
    overflow: visible;
}

#favoritesTable .sound-options-column,
#allSoundsTable .sound-options-column {
    display: none;
}

#allSoundsTable th:first-child,
#allSoundsTable td:first-child {
    width: calc(100% - 9.25rem);
}

#allSoundsTable th:nth-child(2),
#allSoundsTable td:nth-child(2) {
    width: 5.5rem;
}

#allSoundsTable th:nth-child(3),
#allSoundsTable td:nth-child(3) {
    width: 3.75rem;
    text-align: center;
    overflow: visible;
}

.analytics-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
}

.analytics-toolbar-standalone .time-selector {
    border-color: var(--border-strong);
    background: var(--paper-soft);
    box-shadow: var(--shadow-sm);
}

.analytics-toolbar-standalone .time-btn {
    color: var(--ink-muted);
}

.analytics-toolbar-standalone .time-btn:hover {
    color: var(--ink);
}

.analytics-toolbar-standalone .time-btn.active {
    background: var(--ink);
    color: var(--paper);
}

.time-selector {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.34rem;
    border-radius: 999px;
    border: 1px solid rgba(248, 238, 223, 0.16);
    background: rgba(255, 255, 255, 0.08);
}

.time-btn {
    padding: 0.76rem 1rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(248, 238, 223, 0.68);
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition:
        background 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}

.time-btn:hover {
    color: #fff9f0;
}

.time-btn.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff9f0;
}

.stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.05rem 1.1rem 1.15rem;
    border-radius: 22px;
    border: 1px solid var(--border-strong);
    background: var(--paper-soft);
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--card-accent, linear-gradient(90deg, var(--accent), var(--accent-amber)));
}

.stat-card:nth-child(2) {
    --card-accent: linear-gradient(90deg, var(--ink), #5b4e41);
}

.stat-card:nth-child(3) {
    --card-accent: linear-gradient(90deg, var(--accent-olive), #98aa5a);
}

.stat-card:nth-child(4) {
    --card-accent: linear-gradient(90deg, var(--accent-amber), #e6b55f);
}

.stat-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--paper-muted);
    box-shadow: inset 0 0 0 1px var(--border);
    font-size: 1.2rem;
}

html.theme-dark .stat-icon,
html.theme-dark .activity-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(244, 240, 232, 0.12);
}

.stat-value {
    margin-top: 0.85rem;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(1.85rem, 3.6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.07em;
    line-height: 0.95;
}

.stat-label {
    margin-top: 0.5rem;
    color: var(--ink-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 0.95rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--paper-muted);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.leaderboard-item:hover {
    transform: translateY(-2px);
    border-color: rgba(23, 18, 13, 0.16);
    box-shadow: var(--shadow-sm);
}

.rank {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--ink-faint);
    font-size: 0.9rem;
    font-weight: 700;
}

.rank.gold {
    background: linear-gradient(135deg, oklch(82% 0.13 82), var(--accent-amber));
}

.rank.silver {
    background: linear-gradient(135deg, oklch(84% 0.015 250), oklch(68% 0.025 250));
}

.rank.bronze {
    background: linear-gradient(135deg, oklch(70% 0.11 58), oklch(58% 0.12 52));
}

.item-info {
    min-width: 0;
}

.item-name {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-bar {
    margin-top: 0.5rem;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(23, 18, 13, 0.08);
}

html.theme-dark .item-bar {
    background: rgba(244, 240, 232, 0.12);
}

.item-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-amber), var(--accent-olive));
    transition: width 0.35s ease;
}

.item-count {
    color: var(--accent-deep);
    font-size: 0.88rem;
    font-weight: 700;
}

.card-full {
    grid-column: 1 / -1;
}

.heatmap-container {
    overflow: visible;
}

.heatmap {
    display: grid;
    min-width: 0;
    grid-template-columns: 34px repeat(7, minmax(0, 1fr));
    gap: 3px;
    align-items: center;
}

.heatmap-header,
.heatmap-row-label {
    color: var(--ink-muted);
}

.heatmap-header {
    padding-bottom: 0.2rem;
    font-size: 0.54rem;
    text-align: center;
}

.heatmap-row-label {
    padding-right: 0.32rem;
    font-size: 0.54rem;
    font-weight: 700;
    text-align: right;
}

.heatmap-cell {
    min-height: 44px;
    position: relative;
    border-radius: 5px;
    border: 1px solid rgba(23, 18, 13, 0.08);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.heatmap-cell:hover {
    transform: scale(1.08);
    border-color: rgba(23, 18, 13, 0.16);
    box-shadow: 0 8px 16px rgba(68, 42, 18, 0.12);
    z-index: 5;
}

.heatmap-cell[data-level="1"] {
    background: rgba(107, 116, 48, 0.18);
}

.heatmap-cell[data-level="2"] {
    background: rgba(107, 116, 48, 0.34);
}

.heatmap-cell[data-level="3"] {
    background: rgba(204, 139, 50, 0.44);
}

.heatmap-cell[data-level="4"] {
    background: rgba(197, 72, 52, 0.62);
}

.heatmap-cell[data-level="5"] {
    background: var(--accent);
}

html.theme-dark .heatmap-cell {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(244, 240, 232, 0.12);
}

html.theme-dark .heatmap-cell[data-level="1"] {
    background: rgba(176, 191, 97, 0.22);
}

html.theme-dark .heatmap-cell[data-level="2"] {
    background: rgba(176, 191, 97, 0.42);
}

html.theme-dark .heatmap-cell[data-level="3"] {
    background: rgba(229, 164, 71, 0.58);
}

html.theme-dark .heatmap-cell[data-level="4"] {
    background: rgba(228, 95, 73, 0.76);
}

html.theme-dark .heatmap-cell[data-level="5"] {
    background: #ff7962;
}

.heatmap-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);
    transform: translateX(-50%);
    padding: 0.5rem 0.65rem;
    border-radius: 12px;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 14px 20px rgba(23, 18, 13, 0.22);
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.heatmap-cell:hover .heatmap-tooltip {
    opacity: 1;
}

.chart-container {
    height: 280px;
    position: relative;
}

#timelineChart {
    width: 100%;
    height: 100%;
}

.activity-feed {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.activity-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(23, 18, 13, 0.08);
    animation: riseIn 0.35s ease both;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(23, 18, 13, 0.08);
    background: rgba(255, 255, 255, 0.58);
    font-size: 1rem;
}

.activity-icon.play {
    background: rgba(197, 72, 52, 0.08);
}

.activity-icon.favorite {
    background: var(--accent-amber-soft);
}

.activity-icon.join {
    background: var(--accent-olive-soft);
}

.activity-icon.leave {
    background: rgba(23, 18, 13, 0.06);
}

.activity-content {
    min-width: 0;
}

.activity-text {
    font-size: 0.92rem;
}

.activity-text strong {
    color: var(--accent-deep);
}

.activity-time {
    margin-top: 0.2rem;
    color: var(--ink-muted);
    font-size: 0.78rem;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner {
    width: 38px;
    height: 38px;
    border: 2px solid rgba(23, 18, 13, 0.08);
    border-top-color: var(--accent);
    border-radius: 999px;
    animation: spin 0.85s linear infinite;
}

.empty-state {
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem 0;
}

.login-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(23, 18, 13, 0.42);
    backdrop-filter: blur(8px);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.login-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.login-modal-card {
    width: min(440px, 100%);
    padding: 1.6rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, var(--paper-soft) 0%, var(--paper-muted) 100%);
    box-shadow: 0 28px 48px rgba(68, 42, 18, 0.18);
}

html.theme-dark .login-modal-card {
    background: linear-gradient(180deg, #1f2521 0%, #121614 100%);
}

.login-modal-title {
    margin: 0 0 0.65rem;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.login-modal-text {
    margin: 0;
    color: var(--ink-muted);
}

.login-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.login-modal-close,
.login-modal-login:not(.auth-button) {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-modal-close {
    border: 2px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.6);
    color: var(--ink);
    box-shadow: 4px 4px 0 rgba(23, 18, 13, 0.1), var(--button-cartoon-highlight);
}

.login-modal-login:not(.auth-button) {
    border: 2px solid var(--accent-deep);
    background: var(--accent);
    color: #fff7ef;
    text-decoration: none;
    box-shadow: 5px 5px 0 rgba(197, 72, 52, 0.2), var(--button-cartoon-highlight);
}

.login-modal-login.auth-button {
    text-decoration: none;
}

.voice-members-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(23, 18, 13, 0.42);
    backdrop-filter: blur(8px);
    z-index: 80;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.voice-members-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.voice-members-card {
    width: min(430px, 100%);
    max-height: min(620px, calc(100vh - 3rem));
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, var(--paper-soft) 0%, var(--paper-muted) 100%);
    box-shadow: 0 28px 48px rgba(68, 42, 18, 0.18);
}

html.theme-dark .voice-members-card {
    background: linear-gradient(180deg, #1f2521 0%, #121614 100%);
}

.voice-members-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.voice-members-title {
    margin: 0.1rem 0 0;
    font-size: 1.25rem;
    line-height: 1.1;
}

.voice-members-close {
    width: 2.3rem;
    height: 2.3rem;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--ink);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

html.theme-dark .voice-members-close {
    background: rgba(255, 255, 255, 0.08);
}

.voice-members-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.voice-member-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 3.25rem;
    padding: 0.55rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.38);
    animation: queueEnter 0.25s var(--ease-out-quart) both;
}

.voice-member-row:nth-child(2) { animation-delay: 0.03s; }
.voice-member-row:nth-child(3) { animation-delay: 0.06s; }
.voice-member-row:nth-child(4) { animation-delay: 0.09s; }
.voice-member-row:nth-child(5) { animation-delay: 0.12s; }
.voice-member-row:nth-child(6) { animation-delay: 0.15s; }
.voice-member-row:nth-child(7) { animation-delay: 0.18s; }
.voice-member-row:nth-child(8) { animation-delay: 0.21s; }
.voice-member-row:nth-child(9) { animation-delay: 0.24s; }
.voice-member-row:nth-child(10) { animation-delay: 0.27s; }

html.theme-dark .voice-member-row {
    background: rgba(255, 255, 255, 0.06);
}

.voice-member-avatar {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.88rem;
    font-weight: 800;
}

.voice-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voice-member-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.voice-members-empty {
    margin: 0;
    color: var(--ink-muted);
    font-weight: 700;
}

.voice-members-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 60;
    display: none;
    width: min(18rem, calc(100vw - 1.5rem));
    max-height: min(24rem, calc(100vh - 8rem));
    flex-direction: column;
    padding: 0.85rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, var(--paper-soft) 0%, var(--paper-muted) 100%);
    box-shadow: 0 18px 42px rgba(23, 18, 13, 0.22);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

html.theme-dark .voice-members-dropdown {
    background: linear-gradient(180deg, #1f2521 0%, #121614 100%);
}

.voice-members-dropdown.open {
    display: flex;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.voice-members-dropdown-header {
    margin-bottom: 0.65rem;
}

.voice-members-dropdown-title {
    margin: 0.1rem 0 0;
    font-size: 1.05rem;
    line-height: 1.1;
}

.voice-members-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.sound-hover-target {
    position: relative;
}

.sound-hover-target::after {
    content: '';
    position: absolute;
    left: 1px;
    top: 22%;
    bottom: 22%;
    width: 2px;
    border-radius: 999px;
    background: var(--accent);
    opacity: 0;
    transform: scaleY(0.35);
    transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.sound-hover-target:hover::after {
    opacity: 1;
    transform: scaleY(1);
}

.sound-hover-card {
    position: fixed;
    z-index: 65;
    display: none;
    width: min(18rem, calc(100vw - 1.5rem));
    padding: 0.85rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, var(--paper-soft) 0%, var(--paper-muted) 100%);
    box-shadow: 0 18px 42px rgba(23, 18, 13, 0.22);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-6px);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

html.theme-dark .sound-hover-card {
    background: linear-gradient(180deg, #1f2521 0%, #121614 100%);
}

.sound-hover-card.open {
    display: block;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.sound-hover-card-header {
    margin-bottom: 0.65rem;
}

.sound-hover-card-title {
    margin: 0.1rem 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 1.05rem;
    line-height: 1.1;
}

.sound-hover-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sound-hover-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    min-height: 2.35rem;
    padding: 0.5rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.38);
}

html.theme-dark .sound-hover-card-row {
    background: rgba(255, 255, 255, 0.06);
}

.sound-hover-card-label {
    color: var(--ink-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sound-hover-card-value {
    min-width: 0;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
}

.section-reveal {
    animation: riseIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tables-grid > .card:nth-child(1),
.stats-grid > .stat-card:nth-child(1),
.main-grid > .card:nth-child(1) {
    animation-delay: 0.05s;
}

.tables-grid > .card:nth-child(2),
.stats-grid > .stat-card:nth-child(2),
.main-grid > .card:nth-child(2) {
    animation-delay: 0.1s;
}

.tables-grid > .card:nth-child(3),
.stats-grid > .stat-card:nth-child(3),
.main-grid > .card:nth-child(3) {
    animation-delay: 0.15s;
}

.stats-grid > .stat-card:nth-child(4),
.main-grid > .card:nth-child(4) {
    animation-delay: 0.2s;
}

.stats-grid > .stat-card,
.main-grid > .card,
.tables-grid > .card {
    animation: riseIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-soundboard .control-room {
    animation: riseIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.05s;
}

body.page-soundboard .tables-grid > .card {
    animation: riseIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-soundboard .tables-grid > .card:nth-child(1) {
    animation-delay: 0.12s;
}

body.page-soundboard .tables-grid > .card:nth-child(2) {
    animation-delay: 0.2s;
}

body.page-soundboard .tables-grid > .card:nth-child(3) {
    animation-delay: 0.28s;
}
