@font-face {
    font-family: "Nu Helvetica Neue";
    src: url("https://fonts.cdnfonts.com/s/14188/HelveticaNeue-Roman.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Nu Helvetica Neue";
    src: url("https://fonts.cdnfonts.com/s/14188/HelveticaNeueBold.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/inter-cyrillic.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0400-045F, U+0490-0491, U+2116;
}

@font-face {
    font-family: "Inter";
    src: url("fonts/inter-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: dark;
    --bg: #0e0e10;
    --panel: #18181b;
    --panel-2: #22222a;
    --line: #31313a;
    --text: #f2eff8;
    --muted: #a8a2b5;
    --purple: #9147ff;
    --purple-soft: #bf94ff;
    --green: #43d17a;
    --amber: #f7b955;
    --cyan: #64d7ff;
    --red: #ff6680;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Nu Helvetica Neue", "Inter", Helvetica, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 28px;
    background: rgba(14, 14, 16, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

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

.brand-mark {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    font-size: 20px;
    line-height: 1.1;
}

.brand span,
.section-head p,
.meta-row,
small {
    color: var(--muted);
}

.brand span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
}

.tabs,
.segmented {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.tab,
.segmented button,
.ascii-item {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
}

.tab.is-active,
.segmented button.is-active,
.ascii-item.is-active {
    background: var(--purple);
    color: white;
}

.segmented button.is-locked,
.switch.is-locked {
    opacity: 0.48;
    cursor: not-allowed;
}

.segmented button.is-locked {
    background: transparent;
    color: var(--muted);
}

main {
    width: min(1180px, calc(100vw - 32px));
    margin: 28px auto 56px;
}

.view {
    display: none;
}

.view.is-active {
    display: block;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

h2 {
    font-size: 28px;
    letter-spacing: 0;
}

.section-head p {
    margin-top: 7px;
}

.meta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.meta-row span,
.switch {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.meta-row strong {
    margin-left: 4px;
    color: var(--purple-soft);
}

.meta-row .updated-meta {
    min-height: 30px;
    padding: 0 9px;
    border-color: rgba(168, 162, 181, 0.18);
    background: rgba(168, 162, 181, 0.055);
    color: var(--muted);
    font-size: 0.78rem;
}

.toolbar {
    position: sticky;
    top: 75px;
    z-index: 12;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px;
    background: rgba(14, 14, 16, 0.94);
    border: 1px solid var(--line);
    border-radius: 8px;
    backdrop-filter: blur(14px);
}

input,
select {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    outline: none;
}

input {
    flex: 1;
    min-width: 220px;
    padding: 0 12px;
}

input[type="checkbox"] {
    flex: none;
    min-width: 18px;
    width: 18px;
    min-height: 18px;
    accent-color: var(--purple);
}

select {
    padding: 0 10px;
}

.load-more-row {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.load-more-button {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    background: var(--panel);
    color: var(--purple-soft);
    border: 1px solid var(--line);
}

.load-more-button:hover {
    background: var(--panel-2);
}

.load-more-button[hidden] {
    display: none;
}

.switch {
    gap: 8px;
    color: var(--muted);
    white-space: nowrap;
}

.rotation-mode-notice {
    display: none;
    width: max-content;
    max-width: 100%;
    margin: -2px 0 12px;
    padding: 8px 12px;
    border: 1px solid rgba(247, 185, 85, 0.35);
    border-radius: 8px;
    background: rgba(247, 185, 85, 0.1);
    color: var(--amber);
    font-size: 13px;
    line-height: 1.35;
}

.rotation-mode-notice.is-visible {
    display: block;
}

.rotation-mode-notice.is-pulsing,
.segmented button.is-pulsing,
.switch.is-pulsing {
    animation: rotation-lock-pulse 0.34s ease;
}

.rotation-hint {
    margin: -2px 0 12px;
    padding: 12px 14px;
    border: 1px solid rgba(247, 185, 85, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(247, 185, 85, 0.11), rgba(100, 215, 255, 0.055)),
        var(--panel);
    color: #d8cfbf;
    font-size: 13px;
    line-height: 1.45;
}

.rotation-hint-label {
    display: block;
    margin-bottom: 4px;
    color: var(--amber);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.rotation-hint strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 1rem;
}

.rotation-hint p {
    margin: 0;
}

.rotation-hint b {
    color: var(--amber);
}

.api-notice {
    margin: -2px 0 12px;
    padding: 10px 12px;
    border: 1px solid rgba(247, 185, 85, 0.28);
    border-radius: 8px;
    background: rgba(247, 185, 85, 0.09);
    color: #e3d7bf;
    font-size: 13px;
    line-height: 1.45;
}

.api-notice[data-tone="error"] {
    border-color: rgba(255, 102, 128, 0.3);
    background: rgba(255, 102, 128, 0.08);
    color: #ffc5cf;
}

.soft-error {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 24px 16px;
    text-align: center;
}

.soft-error strong {
    color: var(--text);
    font-size: 1rem;
}

.soft-error p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.soft-error button {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 6px;
    background: var(--purple);
    color: white;
    font-weight: 700;
}

@keyframes rotation-lock-pulse {
    0% {
        transform: translateX(0);
        box-shadow: none;
    }

    35% {
        transform: translateX(-3px);
        box-shadow: 0 0 0 1px rgba(247, 185, 85, 0.35);
    }

    70% {
        transform: translateX(3px);
        box-shadow: 0 0 0 1px rgba(247, 185, 85, 0.2);
    }

    100% {
        transform: translateX(0);
        box-shadow: none;
    }
}

.table-shell {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.emote-table-shell {
    max-height: calc(100vh - 210px);
    min-height: 420px;
    overflow-anchor: none;
}

.chat-table-shell {
    max-height: calc(100vh - 210px);
    min-height: 420px;
    overflow-anchor: none;
}

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

.emote-table {
    min-width: 780px;
}

.chat-table th:nth-child(1),
.chat-table td:nth-child(1) {
    width: 88px;
    min-width: 88px;
}

.chat-table th:nth-child(2),
.chat-table td:nth-child(2) {
    width: auto;
    min-width: 0;
}

.chat-table th:nth-child(3),
.chat-table td:nth-child(3),
.chat-table th:nth-child(4),
.chat-table td:nth-child(4) {
    width: 150px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.number-compact {
    display: none;
}

.label-compact {
    display: none;
}

.data-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #111116;
    color: var(--purple-soft);
    font-size: 13px;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover td {
    background: #262631;
}

.virtual-spacer td {
    padding: 0;
    border-bottom: 0;
    background: transparent;
}

.table-loader {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--muted);
}

.table-loader::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid rgba(191, 148, 255, 0.22);
    border-top-color: var(--purple-soft);
    border-radius: 50%;
    animation: table-loader-spin 0.9s linear infinite;
}

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

.rank-cell {
    width: 96px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.emote-cell {
    width: 104px;
}

.emote-table th:nth-child(1),
.emote-table td:nth-child(1) {
    width: 96px;
    min-width: 96px;
    overflow: visible;
    text-overflow: clip;
}

.emote-table th:nth-child(2),
.emote-table td:nth-child(2) {
    width: 108px;
    text-align: center;
    overflow: visible;
    text-overflow: clip;
}

.emote-table th:nth-child(3),
.emote-table td:nth-child(3) {
    width: auto;
    min-width: 0;
}

.emote-table th:nth-child(4),
.emote-table td:nth-child(4) {
    width: 150px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    overflow: visible;
    text-overflow: clip;
}

.emote-table th:nth-child(5),
.emote-table td:nth-child(5) {
    width: 156px;
    min-width: 156px;
    text-align: left;
    overflow: visible;
}

.emote-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    vertical-align: middle;
    opacity: 0.82;
    transition: opacity 0.16s ease;
}

.emote-loader {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 45%, rgba(145, 71, 255, 0.16), transparent 42%),
        linear-gradient(135deg, #191922, #101014);
    box-shadow: inset 0 0 0 1px rgba(191, 148, 255, 0.12);
    vertical-align: middle;
}

.emote-loader::before {
    content: "";
    position: absolute;
    inset: auto 6px 6px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.emote-loader::after {
    content: "";
    position: absolute;
    left: 6px;
    bottom: 6px;
    width: calc(100% - 12px);
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--purple), var(--purple-soft));
    box-shadow: 0 0 10px rgba(145, 71, 255, 0.32);
    transform: scaleX(0.12);
    transform-origin: left center;
    animation: emote-loader-fill var(--loader-duration, 2400ms) cubic-bezier(0.2, 0.78, 0.28, 1) var(--loader-delay, 0ms) infinite alternate;
}

.emote-loader .emote-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    opacity: 0;
}

.emote-loader.is-loaded {
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.emote-loader.is-loaded::before,
.emote-loader.is-loaded::after,
.emote-loader.is-error::before,
.emote-loader.is-error::after {
    display: none;
}

.emote-loader.is-loaded .emote-img {
    opacity: 1;
}

.emote-img.is-loaded {
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    animation: none;
    opacity: 1;
}

.emote-img.is-error {
    background:
        radial-gradient(circle at center, rgba(255, 102, 128, 0.32) 0 2px, transparent 3px),
        linear-gradient(135deg, #191922, #101014);
    box-shadow: inset 0 0 0 1px rgba(255, 102, 128, 0.22);
    animation: none;
    opacity: 1;
}

@keyframes emote-loader-fill {
    0% {
        transform: scaleX(0.12);
    }

    72% {
        transform: scaleX(0.88);
    }

    100% {
        transform: scaleX(0.96);
    }
}

.emote-table.density-compact .emote-img,
.emote-table.density-compact .emote-loader {
    width: 32px;
    height: 32px;
}

.emote-table.density-compact .emote-loader::before,
.emote-table.density-compact .emote-loader::after {
    left: 5px;
    right: 5px;
    bottom: 5px;
    width: calc(100% - 10px);
    height: 4px;
}

.emote-table.density-large .emote-img,
.emote-table.density-large .emote-loader {
    width: 64px;
    height: 64px;
}

.removed td,
.renamed td {
    color: #777282;
}

.emote-name-stack {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    vertical-align: middle;
}

.emote-name-main {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emote-former-names {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    flex: 1 1 0;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.emote-former-label {
    flex: 0 0 auto;
    color: #777282;
    font-weight: 500;
}

.emote-former-values {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emote-name-change {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    vertical-align: middle;
}

.emote-name-old,
.emote-name-current,
.emote-name-current-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emote-name-old {
    flex: 0 1 auto;
    max-width: min(34%, 180px);
    color: var(--muted);
    text-decoration-line: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(168, 162, 181, 0.72);
}

.emote-name-current {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    flex: 1 1 0;
    max-width: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.emote-name-current-label {
    flex: 0 0 auto;
    color: #777282;
    font-weight: 500;
}

.emote-name-current-value {
    flex: 1 1 auto;
    color: var(--muted);
}

.muted-dash {
    color: var(--muted);
}

.status {
    display: inline-flex;
    align-items: center;
    max-width: none;
    width: max-content;
    flex: 0 0 auto;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    background: rgba(67, 209, 122, 0.14);
    color: var(--green);
    font-size: 13px;
    white-space: nowrap;
}

.status-stack {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    max-width: 100%;
}

.removed .status {
    background: rgba(255, 102, 128, 0.12);
    color: var(--red);
}

.status-rotation {
    background: rgba(247, 185, 85, 0.16);
    color: var(--amber);
}

.status-removed {
    background: rgba(255, 102, 128, 0.12);
    color: var(--red);
}

.status-no-stats,
.removed .status-no-stats {
    background: rgba(168, 162, 181, 0.13);
    color: var(--muted);
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.command-card,
.ascii-preview-panel,
.ascii-list-panel {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.command-card {
    display: grid;
    align-content: start;
    gap: 10px;
}

.command-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.command-card strong {
    color: var(--purple-soft);
    font-size: 1rem;
    line-height: 1.35;
}

.command-card span {
    color: var(--muted);
    line-height: 1.45;
}

.command-card small {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(177, 136, 255, 0.12);
    color: var(--purple-soft);
    font-size: 0.76rem;
}

.command-syntax,
.command-examples code {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.command-examples {
    display: grid;
    gap: 6px;
}

.command-examples > span {
    color: var(--purple-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.command-aliases,
.command-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ascii-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 14px;
}

.ascii-list-panel {
    display: grid;
    align-content: start;
    gap: 10px;
    max-height: calc(100vh - 170px);
    position: sticky;
    top: 145px;
}

.ascii-list {
    display: grid;
    gap: 6px;
    overflow: auto;
    padding-right: 4px;
}

.ascii-item {
    width: 100%;
    text-align: left;
}

.ascii-preview-panel {
    min-width: 0;
}

.ascii-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ascii-preview-title {
    min-width: 0;
    color: var(--purple-soft);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
    color: var(--purple-soft);
}

.copy-button:hover:not(:disabled) {
    background: #292934;
}

.copy-button:disabled {
    cursor: default;
    opacity: 0.5;
}

.copy-button.is-copied {
    border-color: rgba(67, 209, 122, 0.38);
    background: rgba(67, 209, 122, 0.12);
    color: var(--green);
}

.copy-button.is-error {
    border-color: rgba(255, 102, 128, 0.38);
    background: rgba(255, 102, 128, 0.12);
    color: var(--red);
}

.copy-button-icon {
    position: relative;
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
}

.copy-button-icon::before {
    content: "";
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 12px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    opacity: 0.72;
}

.ascii-preview {
    min-height: 520px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    overflow: auto;
    color: var(--text);
    font: 15px/1.18 "Courier New", monospace;
    text-align: left;
    white-space: pre;
}

.empty-state {
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 900px) {
    .topbar,
    .section-head,
    .toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar {
        position: static;
        top: auto;
    }

    .tabs,
    .segmented {
        overflow-x: auto;
    }

    .toolbar > input,
    .toolbar > select,
    .toolbar > .segmented {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    #commandsView .segmented {
        gap: 3px;
    }

    #commandsView .segmented button {
        padding: 0 9px;
        font-size: 0.88rem;
    }

    .command-grid,
    .ascii-layout {
        grid-template-columns: 1fr;
    }

    .ascii-list-panel {
        max-height: none;
        position: static;
    }

    .emote-table-shell {
        max-height: 65vh;
        min-height: 360px;
    }

    .chat-table-shell {
        max-height: 65vh;
        min-height: 360px;
    }

    main {
        width: min(100vw - 20px, 1180px);
        margin-top: 18px;
    }
}

@media (max-width: 640px) {
    .emote-table-shell {
        max-height: 68vh;
        min-height: 360px;
        overflow-x: hidden;
        background: transparent;
    }

    .emote-table {
        display: block;
        min-width: 0;
        table-layout: auto;
    }

    .emote-table thead {
        display: none;
    }

    .emote-table tbody {
        display: block;
        padding: 8px;
    }

    .emote-table tbody tr {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr) auto;
        grid-template-areas:
            "image name rank"
            "image usage status";
        align-items: center;
        gap: 5px 12px;
        min-height: 80px;
        margin-bottom: 8px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--panel);
    }

    .emote-table tbody tr:hover td {
        background: transparent;
    }

    .emote-table .virtual-spacer {
        display: block;
        min-height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .emote-table .virtual-spacer td {
        display: block;
        height: inherit;
        padding: 0;
        border: 0;
    }

    .emote-table th,
    .emote-table td,
    .emote-table th:nth-child(n),
    .emote-table td:nth-child(n) {
        width: auto;
        min-width: 0;
        padding: 0;
        border-bottom: 0;
        overflow: visible;
        text-align: left;
        white-space: normal;
    }

    .emote-table td:nth-child(1) {
        grid-area: rank;
        justify-self: end;
        color: var(--muted);
        font-size: 13px;
    }

    .emote-table td:nth-child(2) {
        grid-area: image;
        justify-self: center;
    }

    .emote-table td:nth-child(3) {
        grid-area: name;
        align-self: end;
        overflow: hidden;
        color: var(--text);
        font-size: 16px;
        font-weight: 700;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .emote-table .emote-name-stack,
    .emote-table .emote-name-change {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        line-height: 1.05;
    }

    .emote-table .emote-name-main {
        max-width: 100%;
    }

    .emote-table .emote-former-names {
        max-width: 100%;
        gap: 3px;
        font-size: 12px;
        font-weight: 600;
    }

    .emote-table .emote-former-values {
        color: var(--muted);
    }

    .emote-table .emote-name-old {
        max-width: 100%;
        font-size: 12px;
        font-weight: 600;
    }

    .emote-table .emote-name-current {
        max-width: 100%;
        gap: 3px;
        font-size: 12px;
        font-weight: 600;
    }

    .emote-table .emote-name-current-value {
        color: var(--muted);
    }

    .emote-table td:nth-child(4) {
        grid-area: usage;
        align-self: start;
        color: var(--muted);
        font-size: 13px;
        font-variant-numeric: tabular-nums;
    }

    .emote-table td:nth-child(4)::before {
        content: "Использовано ";
        color: #777282;
    }

    .emote-table td:nth-child(5) {
        grid-area: status;
        justify-self: end;
        max-width: 128px;
    }

    .emote-table .status-stack {
        align-items: flex-end;
        gap: 5px;
    }

    .emote-table .status {
        min-height: 22px;
        padding: 0 7px;
        font-size: 12px;
    }

    .emote-table .emote-loader,
    .emote-table .emote-img {
        width: 44px;
        height: 44px;
    }

    .emote-table.density-compact tbody tr {
        min-height: 66px;
        grid-template-columns: 44px minmax(0, 1fr) auto;
    }

    .emote-table.density-compact .emote-loader,
    .emote-table.density-compact .emote-img {
        width: 34px;
        height: 34px;
    }

    .emote-table.density-large tbody tr {
        min-height: 100px;
        grid-template-columns: 74px minmax(0, 1fr) auto;
    }

    .emote-table.density-large .emote-loader,
    .emote-table.density-large .emote-img {
        width: 64px;
        height: 64px;
    }

    .chat-table-shell {
        max-height: 68vh;
        min-height: 320px;
        overflow-x: hidden;
        background: var(--panel);
    }

    .chat-table {
        display: table;
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .chat-table th,
    .chat-table td {
        height: 44px;
        padding: 6px 6px;
        overflow: hidden;
        font-size: 12px;
        line-height: 1.15;
    }

    .chat-table th {
        height: 32px;
        padding-top: 7px;
        padding-bottom: 7px;
        font-size: 11px;
        letter-spacing: 0;
    }

    .chat-table .label-full {
        display: none;
    }

    .chat-table .label-compact {
        display: inline;
    }

    .chat-table th:nth-child(1),
    .chat-table td:nth-child(1) {
        width: 38px;
        min-width: 38px;
        color: var(--muted);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .chat-table th:nth-child(2),
    .chat-table td:nth-child(2) {
        width: auto;
        min-width: 0;
    }

    .chat-table th:nth-child(3),
    .chat-table td:nth-child(3),
    .chat-table th:nth-child(4),
    .chat-table td:nth-child(4) {
        width: 62px;
        min-width: 62px;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    .chat-user-cell {
        color: var(--text);
        font-weight: 650;
    }

    .chat-user-text {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow-wrap: anywhere;
    }

    .chat-number-cell {
        color: #d7d2df;
        font-size: 12px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

    .chat-number-cell::before {
        content: none;
        display: none;
    }

    .chat-table .number-full {
        display: none;
    }

    .chat-table .number-compact {
        display: inline;
    }

    .ascii-layout {
        gap: 10px;
    }

    .ascii-list-panel {
        order: 2;
        gap: 8px;
        padding: 10px;
    }

    .ascii-list-panel input {
        width: 100%;
        min-width: 0;
    }

    .ascii-list {
        display: grid;
        gap: 6px;
        overflow: visible;
        padding: 0;
    }

    .ascii-item {
        width: 100%;
        max-width: none;
        min-height: 34px;
        padding: 0 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ascii-preview-panel {
        order: 1;
        padding: 12px;
    }

    .ascii-preview-head {
        gap: 8px;
        margin-bottom: 10px;
    }

    .ascii-preview-title {
        font-size: 15px;
        line-height: 1.2;
    }

    .copy-button {
        min-height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }

    .ascii-preview {
        width: 100%;
        min-height: 260px;
        max-height: 52vh;
        margin: 0;
        padding: 12px;
        overflow: auto;
        border: 1px solid rgba(49, 49, 58, 0.85);
        border-radius: 8px;
        background: #111116;
        font-size: 12px;
        line-height: 1.12;
    }
}
