:root {
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.65);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: 0.2s ease;

    --editor-item-bg: #111116;
    --editor-item-border: #1f1f27;
    --editor-item-hover: #1a1a23;
    --editor-item-border-hover: #3f3f4e;
    --editor-preview-bg: #18181b;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

a:not(.btn):not(.nav-link):not(.logo):not(.editor-shortcut-btn) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a:not(.btn):not(.nav-link):not(.logo):not(.editor-shortcut-btn):hover,
.footer-disclaimer a:hover {
    text-decoration-thickness: 2px;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.page {
    flex: 1;
}

.page.hidden {
    display: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    gap: 2rem;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex: 1;
}

.stats {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    flex: 1;
}

.logo-wrapper {
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 600;
    background: url('https://cdn.7tv.app/paint/01JPNDC5W5S8MJ4T20GBANNPW4/layer/01JWSBH2HKVWQ6PBNF0992JM9T/4x.avif') center/cover;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.nav-link svg {
    width: 18px;
    height: 18px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-purple);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.search-container {
    flex: 1;
    min-width: 250px;
    min-height: 44px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    height: 100%;
    min-height: 44px;
    padding: 0 3rem 0 3.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.clear-btn.visible {
    display: flex;
}

.tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.sort-container label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.sort-select {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.sort-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    min-height: 44px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.checkbox-label:hover {
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-purple);
    cursor: pointer;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    gap: 1rem;
    width: 100%;
}

.loading.hidden {
    display: none !important;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.results-info {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.results-info.hidden {
    display: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.grid.hidden {
    display: none;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
}

.card-paint-preview {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141414;
    overflow: hidden;
    padding: 1rem;
}

.paint-text {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    word-break: break-word;
}

.card-badge-preview {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141414;
}

.card-badge-preview img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.card-content {
    padding: 1rem;
}

.card-title-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.card-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-purple);
    white-space: nowrap;
    flex-shrink: 0;
}

.card-type.badge-type {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.card-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'SF Mono', Monaco, monospace;
}

.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
}

.empty-state.visible {
    display: flex;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
}

.detail-page {
    padding-top: 0;
}

.editor-shortcut-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    margin-left: 1rem;
}

.editor-shortcut-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
}

.editor-shortcut-btn svg {
    width: 20px;
    height: 20px;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.detail-header {
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.detail-title-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.editor-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.detail-action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.editor-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border-hover);
}

.editor-action-btn svg {
    width: 16px;
    height: 16px;
}

.detail-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-purple);
    flex-shrink: 0;
    position: relative;
    top: -0.4rem;
}

.detail-type.badge-type {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
}

.detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.detail-id {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-id code {
    font-family: 'SF Mono', Monaco, monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--text-secondary);
}

.detail-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.paint-animation-preview {
    margin: 1.5rem auto 0;
    max-width: 400px;
    height: 80px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paint-animation-preview.hidden {
    display: none;
}

.paint-animation-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.paint-animation-preview .paint-text {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.detail-description {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.preview-section {
    padding: 2rem;
}

.preview-section.hidden {
    display: none;
}

.preview-box {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    padding: 2rem;
    overflow: hidden;
}

.preview-text {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
    outline: none;
    min-width: 100px;
    cursor: text;
}

.preview-text:focus {
    outline: 2px dashed rgba(255, 255, 255, 0.3);
    outline-offset: 8px;
    border-radius: var(--radius-sm);
}

.preview-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.badge-preview-section {
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.badge-preview-section.hidden {
    display: none;
}

.badge-preview-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: var(--radius-md);
}

.badge-large-image {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.clickable-id {
    cursor: pointer;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    position: relative;
}

.clickable-id:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.clickable-id.copied::after {
    content: 'Copied';
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 0.875rem;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.flash-feedback {
    animation: flashFeedback 0.4s ease-out;
}

@keyframes flashFeedback {
    0% {
        filter: brightness(1.3);
    }

    100% {
        filter: brightness(1);
    }
}

.site-footer {
    position: sticky;
    bottom: 0;
    z-index: 999;
    background: var(--bg-dark);
    padding: 0.5rem 0;
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-disclaimer {
    color: var(--text-muted);
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.footer-disclaimer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-disclaimer a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.7;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--bg-card-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.context-menu {
    position: fixed;
    z-index: 1000;
    min-width: 180px;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.15s ease-out;
}

.context-menu.hidden {
    display: none;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.context-menu-item svg {
    opacity: 0.7;
}


.editor-sticky-preview {
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--bg-dark);
    margin: -2rem 0 2rem 0;
    padding: 1.5rem 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-bottom: 0px;
}

.editor-sticky-preview-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.editor-preview-box {
    position: relative;
    background: var(--editor-preview-bg);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

.chat-preview {
    display: flex;
    align-items: center;
}

.editor-badges-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 20px;
}

.editor-badge-preview {
    height: 70px;
    width: auto;
    display: block;
}

.editor-badge-preview.hidden {
    display: none;
}

.editor-name-preview {
    font-size: 70px;
    font-weight: 800;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    text-align: center;
    word-break: break-word;
    line-height: 1.2;
    outline: none;
    cursor: text;
}

.editor-name-preview:focus {
    outline: 2px dashed rgba(255, 255, 255, 0.3);
    outline-offset: 8px;
    border-radius: var(--radius-sm);
}

.lookup-btn,
.refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 20px;
    flex-shrink: 0;
    opacity: 0;
    pointer-events: none;
}

.refresh-btn {
    margin-left: 10px;
}

.chat-preview:focus-within .lookup-btn,
.chat-preview:focus-within .refresh-btn {
    opacity: 1;
    pointer-events: auto;
}

.lookup-btn:hover,
.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
}

.lookup-btn svg,
.refresh-btn svg {
    width: 16px;
    height: 16px;
}

.editor-selection-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.editor-top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.editor-top-controls .search-container {
    flex: 1;
    min-width: 250px;
    min-height: 44px;
}

.editor-top-controls .search-input {
    min-height: 44px;
}

.selection-stacked {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.selection-group {
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
    user-select: none;
    margin-bottom: 0.25rem;
}

.section-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.column-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin: 0;
}

.chevron {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.selection-group.collapsed .chevron {
    transform: rotate(-90deg);
}

.collapse-content {
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    max-height: 100000px;
    opacity: 1;
}

.selection-group.collapsed .collapse-content {
    max-height: 0;
    opacity: 0;
}

.items-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding-top: 24px;
    overflow: visible;
}

.custom-tooltip {
    position: fixed;
    z-index: 9999;
    padding: 0.5rem 0.875rem;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.custom-tooltip.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.editor-item-small {
    background: var(--editor-item-bg);
    border: 1px solid var(--editor-item-border);
    border-radius: 4px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: 70px;
}

.editor-item-small:hover {
    background: var(--editor-item-hover);
    border-color: var(--editor-item-border-hover);
    transform: translateY(-1px);
}

.editor-item-small.active {
    background: #1e1b2e;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.editor-item-small span {
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
}

#editor-badges-column .editor-item-small,
#editor-ffz-badges .editor-item-small,
#editor-bttv-badges .editor-item-small,
#editor-chatterino-badges .editor-item-small {
    width: 85px;
    height: 85px;
    min-width: 85px;
}

#editor-badges-column .editor-item-small img,
#editor-ffz-badges .editor-item-small img,
#editor-bttv-badges .editor-item-small img,
#editor-chatterino-badges .editor-item-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#editor-paints-cloud .editor-item-small {
    min-width: 90px;
    font-size: 0.9rem;
}

.section-empty-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    font-style: italic;
    padding: 1rem;
    text-align: center;
    width: 100%;
}

.none-label {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}


@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        align-items: flex-start;
    }

    .header-nav {
        width: 100%;
    }

    .nav-link {
        flex: 1;
        justify-content: center;
    }

    .stats {
        width: 100%;
        justify-content: space-around;
    }

    .controls {
        flex-direction: column;
    }

    .search-container {
        min-width: unset;
    }

    .tabs {
        width: 100%;
        justify-content: center;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .detail-title {
        font-size: 1.75rem;
    }

    .preview-text {
        font-size: 2.5rem;
    }
}