:root {
    --bg: #0b0f14;
    --bg-main: #0b0f14;
    --panel: rgba(15, 20, 28, 0.75);
    --panel-hover: rgba(15, 20, 28, 0.85);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-border-hover: rgba(0, 191, 207, 0.35);
    --line: rgba(255, 255, 255, 0.08);
    --elevated: rgba(15, 20, 28, 0.85);

    --accent: #00bfcf;
    --accent1: #00bfcf;
    --accent-hover: #33d4e2;
    --accent-glow: rgba(0, 191, 207, 0.25);

    --text: #e6eef6;
    --text-main: #e6eef6;
    --text-muted: #a6b0bd;
    --text-dim: rgba(255, 255, 255, 0.4);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);

    --sidebar: 272px;
    --di-topbar-offset: 84px;
    --page-gutter: max(16px, calc((100% - 1260px) / 2));

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Hiragino Sans", Meiryo, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans Thai", "Noto Sans Devanagari", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-color: rgba(150, 150, 150, 0.5) rgba(11, 15, 20, 0.5);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(11, 15, 20, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 150, 0.5);
    border-radius: 10px;
    border: 2px solid rgba(11, 15, 20, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 191, 207, 0.6);
}

body {
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20340%20260%27%20width%3D%27340%27%20height%3D%27260%27%20fill%3D%27none%27%3E%3Cg%20opacity%3D%270.17%27%3E%3Cg%20id%3D%27crescent-moon%27%20transform%3D%27translate%28230%2C%2020%29%27%3E%3Cpath%20d%3D%27M40%2C0%20C22%2C0%208%2C14%208%2C32%20C8%2C50%2022%2C64%2040%2C64%20C48%2C64%2055%2C61%2061%2C56%20C45%2C54%2033%2C40%2033%2C24%20C33%2C13%2039%2C4%2048%2C0%20C45%2C0%2042%2C0%2040%2C0%20Z%27%20fill%3D%27rgba%280%2C191%2C207%2C0.05%29%27%20stroke%3D%27rgba%280%2C191%2C207%2C0.15%29%27%20stroke-width%3D%271%27%2F%3E%3C%2Fg%3E%3Cg%20id%3D%27bat-1%27%20transform%3D%27translate%28170%2C%2045%29%20scale%280.9%29%20rotate%28-12%29%27%3E%3Cpath%20d%3D%27M25%2C12%20C20%2C4%2012%2C2%200%2C6%20C7%2C14%2012%2C18%2018%2C17%20C16%2C21%2012%2C25%206%2C26%20C15%2C28%2022%2C23%2025%2C17%20C28%2C23%2035%2C28%2044%2C26%20C38%2C25%2034%2C21%2032%2C17%20C38%2C18%2043%2C14%2050%2C6%20C38%2C2%2030%2C4%2025%2C12%20Z%27%20fill%3D%27rgba%280%2C191%2C207%2C0.07%29%27%20stroke%3D%27rgba%280%2C191%2C207%2C0.16%29%27%20stroke-width%3D%270.8%27%2F%3E%3C%2Fg%3E%3Cg%20id%3D%27bat-2%27%20transform%3D%27translate%28115%2C%2080%29%20scale%280.65%29%20rotate%28-5%29%27%3E%3Cpath%20d%3D%27M25%2C12%20C20%2C4%2012%2C2%200%2C6%20C7%2C14%2012%2C18%2018%2C17%20C16%2C21%2012%2C25%206%2C26%20C15%2C28%2022%2C23%2025%2C17%20C28%2C23%2035%2C28%2044%2C26%20C38%2C25%2034%2C21%2032%2C17%20C38%2C18%2043%2C14%2050%2C6%20C38%2C2%2030%2C4%2025%2C12%20Z%27%20fill%3D%27rgba%280%2C191%2C207%2C0.06%29%27%20stroke%3D%27rgba%280%2C191%2C207%2C0.14%29%27%20stroke-width%3D%270.8%27%2F%3E%3C%2Fg%3E%3Cg%20id%3D%27bat-3%27%20transform%3D%27translate%28235%2C%20110%29%20scale%280.55%29%20rotate%2810%29%27%3E%3Cpath%20d%3D%27M25%2C12%20C20%2C4%2012%2C2%200%2C6%20C7%2C14%2012%2C18%2018%2C17%20C16%2C21%2012%2C25%206%2C26%20C15%2C28%2022%2C23%2025%2C17%20C28%2C23%2035%2C28%2044%2C26%20C38%2C25%2034%2C21%2032%2C17%20C38%2C18%2043%2C14%2050%2C6%20C38%2C2%2030%2C4%2025%2C12%20Z%27%20fill%3D%27rgba%280%2C191%2C207%2C0.055%29%27%20stroke%3D%27rgba%280%2C191%2C207%2C0.12%29%27%20stroke-width%3D%270.8%27%2F%3E%3C%2Fg%3E%3Cg%20id%3D%27hanging-web%27%20transform%3D%27translate%28270%2C%200%29%27%3E%3Cpath%20d%3D%27M70%2C0%20L70%2C55%20M70%2C0%20L15%2C0%20M70%2C0%20L30%2C40%20M70%2C0%20L48%2C50%27%20stroke%3D%27rgba%280%2C191%2C207%2C0.12%29%27%20stroke-width%3D%270.9%27%2F%3E%3Cpath%20d%3D%27M70%2C25%20Q55%2C24%2050%2C15%20Q45%2C8%2040%2C0%27%20stroke%3D%27rgba%280%2C191%2C207%2C0.09%29%27%20stroke-width%3D%270.8%27%20fill%3D%27none%27%2F%3E%3Cpath%20d%3D%27M70%2C45%20Q45%2C43%2038%2C28%20Q30%2C15%2020%2C0%27%20stroke%3D%27rgba%280%2C191%2C207%2C0.09%29%27%20stroke-width%3D%270.8%27%20fill%3D%27none%27%2F%3E%3C%2Fg%3E%3Cg%20id%3D%27embers%27%3E%3Ccircle%20cx%3D%27155%27%20cy%3D%27140%27%20r%3D%271.2%27%20fill%3D%27rgba%280%2C191%2C207%2C0.22%29%27%2F%3E%3Ccircle%20cx%3D%2785%27%20cy%3D%27110%27%20r%3D%271%27%20fill%3D%27rgba%28139%2C92%2C246%2C0.18%29%27%2F%3E%3Ccircle%20cx%3D%27205%27%20cy%3D%27180%27%20r%3D%271.4%27%20fill%3D%27rgba%280%2C191%2C207%2C0.2%29%27%2F%3E%3Cpath%20d%3D%27M180%2C95%20Q180%2C98%20182%2C98%20Q180%2C98%20180%2C101%20Q180%2C98%20178%2C98%20Q180%2C98%20180%2C95%20Z%27%20fill%3D%27rgba%2857%2C215%2C228%2C0.22%29%27%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"), radial-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px);
    background-repeat: no-repeat, repeat;
    background-position: top 90px right 25px, 0 0;
    background-size: 340px 260px, 28px 28px;
    background-attachment: scroll, scroll;
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 640px){
    body {
        background-position: top 75px right 10px, 0 0;
        background-size: 200px 150px, 28px 28px;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: 0.95rem;
    color: inherit;
}

button {
    cursor: pointer;
    background: transparent;
    border: 0;
}

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

.icon {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

.skip-link {
    position: fixed;
    left: 18px;
    top: -100px;
    z-index: 100;
    background: var(--accent);
    color: #071019;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 12px;
}

.button-order-icon {
    font-size: 13px;
    line-height: 1;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
}

.button-order-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.button-order-current:hover .button-order-label,
.button-order-switcher[open] .button-order-label {
    color: var(--text-main);
}

@keyframes premiumShine {
    0% { background-position: 130% 0; }
    100% { background-position: -130% 0; }
}

@keyframes navDropSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.wiki-user-order-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 7px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.wiki-user-order-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.wiki-user-order-icon {
    font-size: 12px;
    line-height: 1;
    color: var(--accent, #00bfcf);
}

.wiki-user-order-title {
    font-size: 11px;
    line-height: 1.2;
}

.wiki-user-order-switch {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    padding: 2px;
    gap: 2px;
}

.wiki-user-order-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 6px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.wiki-user-order-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.wiki-user-order-btn.active,
.wiki-user-order-btn[aria-current="true"] {
    background: rgba(0, 191, 207, 0.14);
    border-color: rgba(0, 191, 207, 0.3);
    color: var(--accent, #00bfcf);
    font-weight: 600;
}

.sidebar {
    position: fixed;
    top: var(--di-topbar-offset);
    bottom: 16px;
    left: var(--page-gutter);
    width: var(--sidebar);
    z-index: 35;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px 14px 18px;
}

.sidebar-close-row {
    display: none;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.close-menu {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--text-muted);
}

.nav-group {
    padding: 10px 0 6px;
}

.nav-group h2 {
    color: #828a97;
    font-size: 9px;
    letter-spacing: 1.6px;
    padding: 0 12px;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    margin: 2px 0;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    color: #b5bcc7;
    line-height: 1.45;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.nav-link .icon {
    width: 17px;
    height: 17px;
    color: #8c96a5;
    transition: color 0.15s;
}

.nav-link span:first-of-type:not(.nav-flag-wrap),
.nav-flag-wrap + span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.nav-link:hover .icon {
    color: #fff;
}

.nav-link[aria-current="page"], .nav-link.active {
    background: rgba(0, 191, 207, 0.12);
    border-color: rgba(0, 191, 207, 0.35);
    color: #00bfcf;
    font-weight: 600;
}

.nav-link[aria-current="page"] .icon, .nav-link.active .icon {
    color: var(--accent);
}

.nav-count-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.nav-link.active .nav-count-badge {
    background: rgba(0, 191, 207, 0.2);
    color: #00bfcf;
}

.nav-pct-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(0, 191, 207, 0.12);
    color: #00bfcf;
    margin-left: auto;
}

.sidebar-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 18px 12px 4px;
    color: #7f8998;
    font-size: 11px;
}

.sidebar-foot strong {
    font-size: 11px;
    color: #bac0ca;
    display: block;
}

.sidebar-foot span:not(.status-dot) {
    display: block;
    font-size: 10px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    margin-left: auto;
    box-shadow: none;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 0;
}

.nav-backdrop[hidden] {
    display: none;
}

main.main-content {
    margin: 0 var(--page-gutter) 0 calc(var(--page-gutter) + var(--sidebar) + 24px);
    min-height: calc(100vh - var(--di-topbar-offset));
    display: flex;
    flex-direction: column;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0 18px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumbs .icon {
    width: 13px;
    height: 13px;
    color: #606a78;
}

.breadcrumbs a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    transition: color 0.15s;
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumbs .crumb-sep {
    color: #4a5462;
    font-size: 11px;
}

.breadcrumbs span:last-child {
    color: #c0c7d1;
    font-weight: 500;
}

.page-heading {
    padding: 6px 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.eyebrow {
    color: var(--accent1);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 14px;
    font-weight: 700;
    border: 1px solid color-mix(in srgb, var(--accent1) 38%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent1) 8%, transparent);
}

.eyebrow-line {
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: var(--accent1);
}

.page-heading h1 {
    font-size: 34px;
    letter-spacing: -0.8px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.page-heading p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 13px;
    max-width: 820px;
    line-height: 1.6;
}

.reading-layout {
    padding: 0 0 32px;
    width: 100%;
    margin: 0;
    flex: 1;
}

.di-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 2rem;
}

.di-stat-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 14px;
}

.di-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(0, 191, 207, 0.12);
    color: var(--accent);
}

.di-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
}

.di-stat-lbl {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.di-locale-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.di-locale-card:hover {
    transform: translateY(-2px);
    border-color: var(--panel-border-hover);
    background: var(--panel-hover);
}

.di-locale-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.di-flag-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.di-locale-names {
    flex: 1;
}

.di-locale-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.di-locale-native {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.di-progress-container {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.di-progress-labels {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.di-progress-bar-bg {
    background: rgba(255, 255, 255, 0.06);
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
}

.di-progress-fill-approved {
    background: var(--success);
    height: 100%;
}

.di-progress-fill-translated {
    background: linear-gradient(90deg, #00bfcf, #33d4e2);
    height: 100%;
}

.di-locale-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.di-stat-tag {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.di-filter-bar {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.di-scope-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    gap: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.di-scope-tab {
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: background 0.15s ease, color 0.15s ease;
}

.di-scope-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.di-scope-tab.active {
    background: var(--accent);
    color: #071019;
}

.di-search-input {
    flex: 1;
    min-width: 220px;
    background: rgba(11, 15, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0 14px;
    height: 42px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.di-search-input:focus {
    border-color: var(--accent);
    background: rgba(15, 20, 28, 0.95);
    box-shadow: none;
}

.di-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
}

.di-btn:hover {
    transform: translateY(-1px);
}

.di-btn-sm {
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
}

.di-btn-primary {
    background: var(--accent);
    color: #071019;
}

.di-btn-primary:hover {
    background: var(--accent-hover);
    color: #071019;
}

.di-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.di-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 191, 207, 0.4);
}

.di-btn-success {
    background: var(--success);
    color: #fff;
}

.di-btn-danger {
    background: var(--danger);
    color: #fff;
}

.di-key-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color 0.15s ease;
}

.di-key-card:hover {
    border-color: var(--panel-border-hover);
}

.di-key-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.di-key-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.di-key-name {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(0, 191, 207, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 191, 207, 0.2);
}

.di-tag-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
}

.di-status-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-approved {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-translated {
    background: rgba(0, 191, 207, 0.12);
    color: #00bfcf;
    border: 1px solid rgba(0, 191, 207, 0.3);
}

.status-missing {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-pending {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.di-key-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width: 850px){
    .di-key-body {
        grid-template-columns: 1fr;
    }
}

.di-text-box-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.di-text-box-content {
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-word;
}

.di-placeholder-tag {
    background: rgba(0, 191, 207, 0.15);
    color: #00bfcf;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
}

a.di-key-name {
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.di-key-name:hover {
    background: rgba(0, 191, 207, 0.16);
    border-color: rgba(0, 191, 207, 0.45);
    color: #fff;
}

.di-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    vertical-align: middle;
}

.di-placeholder-chip {
    background: rgba(0, 191, 207, 0.12);
    border: 1px solid rgba(0, 191, 207, 0.3);
    color: #00bfcf;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    box-shadow: none;
}

.di-placeholder-chip:hover {
    background: rgba(0, 191, 207, 0.25);
    color: #fff;
    transform: translateY(-1px);
}

.di-placeholder-chip:active {
    transform: translateY(0);
}

.di-upvote-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    box-shadow: none;
}

.di-upvote-btn:hover {
    background: rgba(0, 191, 207, 0.12);
    color: var(--accent);
    border-color: rgba(0, 191, 207, 0.35);
}

.di-upvote-btn.has-voted {
    background: rgba(0, 191, 207, 0.22);
    color: #00bfcf;
    border-color: #00bfcf;
    font-weight: 800;
}

.di-proposal-item {
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.di-proposal-item:hover {
    border-color: rgba(0, 191, 207, 0.25) !important;
}

.di-comment-item {
    transition: border-color 0.15s ease;
}

.di-comment-item:hover {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.di-copy-btn {
    cursor: pointer;
}

.di-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    place-items: center;
    padding: 1.5rem;
}

.di-modal-overlay.active {
    display: grid;
}

.di-modal-card {
    background: rgba(11, 15, 20, 0.95);
    border: 1px solid rgba(0, 191, 207, 0.35);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.di-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
}

.di-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.di-modal-close {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.di-modal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.di-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

html[data-button-order="cancel_first"] .di-modal-footer,
body[data-button-order="cancel_first"] .di-modal-footer,
html[data-button-order="cancel_first"] #diActionModalFooter,
body[data-button-order="cancel_first"] #diActionModalFooter {
    display: flex;
}
html[data-button-order="cancel_first"] .di-modal-footer > .di-btn-secondary,
html[data-button-order="cancel_first"] .di-modal-footer > [onclick*="closeActionModal"],
html[data-button-order="cancel_first"] #diActionModalFooter > .di-btn-secondary,
html[data-button-order="cancel_first"] #diActionModalFooter > [onclick*="closeActionModal"],
body[data-button-order="cancel_first"] .di-modal-footer > .di-btn-secondary,
body[data-button-order="cancel_first"] .di-modal-footer > [onclick*="closeActionModal"],
body[data-button-order="cancel_first"] #diActionModalFooter > .di-btn-secondary,
body[data-button-order="cancel_first"] #diActionModalFooter > [onclick*="closeActionModal"] {
    order: 1;
}
html[data-button-order="cancel_first"] .di-modal-footer > .di-btn-primary,
html[data-button-order="cancel_first"] .di-modal-footer > .di-btn-success,
html[data-button-order="cancel_first"] .di-modal-footer > .di-btn-danger,
html[data-button-order="cancel_first"] .di-modal-footer > #diActionConfirmBtn,
html[data-button-order="cancel_first"] #diActionModalFooter > .di-btn-primary,
html[data-button-order="cancel_first"] #diActionModalFooter > .di-btn-success,
html[data-button-order="cancel_first"] #diActionModalFooter > .di-btn-danger,
html[data-button-order="cancel_first"] #diActionModalFooter > #diActionConfirmBtn,
body[data-button-order="cancel_first"] .di-modal-footer > .di-btn-primary,
body[data-button-order="cancel_first"] .di-modal-footer > .di-btn-success,
body[data-button-order="cancel_first"] .di-modal-footer > .di-btn-danger,
body[data-button-order="cancel_first"] .di-modal-footer > #diActionConfirmBtn,
body[data-button-order="cancel_first"] #diActionModalFooter > .di-btn-primary,
body[data-button-order="cancel_first"] #diActionModalFooter > .di-btn-success,
body[data-button-order="cancel_first"] #diActionModalFooter > .di-btn-danger,
body[data-button-order="cancel_first"] #diActionModalFooter > #diActionConfirmBtn {
    order: 2;
}

html[data-button-order="save_first"] .di-modal-footer,
body[data-button-order="save_first"] .di-modal-footer,
html[data-button-order="save_first"] #diActionModalFooter,
body[data-button-order="save_first"] #diActionModalFooter {
    display: flex;
}
html[data-button-order="save_first"] .di-modal-footer > .di-btn-primary,
html[data-button-order="save_first"] .di-modal-footer > .di-btn-success,
html[data-button-order="save_first"] .di-modal-footer > .di-btn-danger,
html[data-button-order="save_first"] .di-modal-footer > #diActionConfirmBtn,
html[data-button-order="save_first"] #diActionModalFooter > .di-btn-primary,
html[data-button-order="save_first"] #diActionModalFooter > .di-btn-success,
html[data-button-order="save_first"] #diActionModalFooter > .di-btn-danger,
html[data-button-order="save_first"] #diActionModalFooter > #diActionConfirmBtn,
body[data-button-order="save_first"] .di-modal-footer > .di-btn-primary,
body[data-button-order="save_first"] .di-modal-footer > .di-btn-success,
body[data-button-order="save_first"] .di-modal-footer > .di-btn-danger,
body[data-button-order="save_first"] .di-modal-footer > #diActionConfirmBtn,
body[data-button-order="save_first"] #diActionModalFooter > .di-btn-primary,
body[data-button-order="save_first"] #diActionModalFooter > .di-btn-success,
body[data-button-order="save_first"] #diActionModalFooter > .di-btn-danger,
body[data-button-order="save_first"] #diActionModalFooter > #diActionConfirmBtn {
    order: 1;
}
html[data-button-order="save_first"] .di-modal-footer > .di-btn-secondary,
html[data-button-order="save_first"] .di-modal-footer > [onclick*="closeActionModal"],
html[data-button-order="save_first"] #diActionModalFooter > .di-btn-secondary,
html[data-button-order="save_first"] #diActionModalFooter > [onclick*="closeActionModal"],
body[data-button-order="save_first"] .di-modal-footer > .di-btn-secondary,
body[data-button-order="save_first"] .di-modal-footer > [onclick*="closeActionModal"],
body[data-button-order="save_first"] #diActionModalFooter > .di-btn-secondary,
body[data-button-order="save_first"] #diActionModalFooter > [onclick*="closeActionModal"] {
    order: 2;
}

.di-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: var(--panel);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--panel-border);
}

.di-leaderboard-table th {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 1.25rem;
    text-align: left;
    color: var(--text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--line);
}

.di-leaderboard-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    color: var(--text-main);
}

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

.di-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
}

.rank-1 { background: #ffd700; color: #071019; }
.rank-2 { background: #c0c0c0; color: #071019; }
.rank-3 { background: #cd7f32; color: #071019; }
.rank-other { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }

.di-toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.di-toast {
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    box-shadow: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-success {
    background: rgba(16, 185, 129, 0.92);
    color: #fff;
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.toast-error {
    background: rgba(239, 68, 68, 0.92);
    color: #fff;
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.toast-info {
    background: rgba(15, 20, 28, 0.95);
    color: #fff;
    border: 1px solid rgba(0, 191, 207, 0.4);
}

.site-footer {
    width: 100%;
    margin: 60px 0 30px;
    padding: 24px 18px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    position: relative;
    box-sizing: border-box;
    box-shadow: none;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 207, 0.2), transparent);
    pointer-events: none;
}

.site-footer h4 {
    margin: 0 0 12px 0;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
}

.site-footer p,
.site-footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.7;
}

.site-footer a:hover {
    color: var(--accent1);
}

.site-footer .footer-meta {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.site-footer .footer-note {
    font-size: 0.78rem;
    color: #64748b;
}

@media (max-width: 800px){
    .site-footer {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 14px;
    }
}

@media (max-width: 900px){
    :root {
        --sidebar: 300px;
    }

    main.main-content {
        margin: 0 16px;
    }

    .sidebar {
        transform: translateX(calc(-100% - 24px));
        transition: transform 0.25s ease;
        left: 16px;
        width: min(var(--sidebar), calc(100vw - 32px));
        z-index: 13050;
    }

    .nav-backdrop {
        z-index: 13040;
    }

    body.nav-open .sidebar {
        transform: translateX(0);
    }

    body.nav-open {
        overflow: hidden;
    }

    .sidebar-close-row {
        display: flex;
    }

}

@media (max-width: 720px){
    :root {
        --di-topbar-offset: 120px;
    }

    .breadcrumbs {
        gap: 7px;
    }

    .page-heading {
        padding: 6px 0 20px;
    }

    .page-heading h1 {
        font-size: 26px;
    }
}

.di-modal-footer-start {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    border-top: 1px solid var(--line);
}

#status-notif-wrapper {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    pointer-events: none;
}

.status-notification {
    --status-accent: var(--accent, #00bfcf);
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: min(390px, calc(100vw - 32px));
    padding: 11px 13px;
    color: #f4f7fa;
    background: #0f151d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: none;
    pointer-events: auto;
}

.status-notification.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.status-notification--warning { --status-accent: #e5b94f; }
.status-notification--deploy { --status-accent: #e5b94f; }
.status-notification--error { --status-accent: #ef5b64; }
.status-notification--info { --status-accent: #5aa9ff; }
.status-notification--success { --status-accent: #10b981; }

.status-notification__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--status-accent);
    background: color-mix(in srgb, var(--status-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--status-accent) 28%, transparent);
}

.status-notification__content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.status-notification-highlight {
    color: var(--status-accent);
}

.unauth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at top, rgba(239, 68, 68, 0.08) 0%, transparent 60%), var(--bg);
}

.unauth-card {
    width: 100%;
    max-width: 440px;
    background: var(--panel);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 16px;
    padding: 36px 32px;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: none;
}

.unauth-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 2px solid rgba(239, 68, 68, 0.4);
    display: block;
}

.unauth-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.unauth-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.unauth-ip-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.unauth-btn-full {
    width: 100%;
    justify-content: center;
}

.di-flag-svg {
    width: 28px;
    height: 19px;
    object-fit: cover;
    border-radius: 3px;
    vertical-align: middle;
    display: inline-block;
}
.nav-count-badge--warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.4);
}
.sidebar-sync-info {
    padding: 4px 12px 6px;
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-sync-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    flex-shrink: 0;
}
.sidebar-sync-text {
    color: var(--text-muted);
    font-weight: 600;
}
.nav-flag-wrap {
    display: inline-flex;
    align-items: center;
    width: 22px;
    flex-shrink: 0;
}
.nav-flag-wrap .di-flag-svg {
    width: 22px;
    height: 15px;
}
.nav-pct-pill--complete {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}
.nav-pct-pill--zero {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
}
.di-modal-card--wide {
    max-width: 680px;
}
.di-table-wrap {
    overflow-x: auto;
}
.th-rank {
    width: 70px;
}
.text-right {
    text-align: right;
}
.td-empty {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-muted);
}
.leaderboard-user-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.leaderboard-username {
    font-weight: 600;
}
.td-approved {
    text-align: right;
    font-weight: 700;
    color: var(--success);
}
.td-submitted {
    text-align: right;
    color: var(--text-muted);
}
.td-last-active {
    text-align: right;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.di-page-header-row {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.di-header-locale-flex {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.di-locale-flag-large {
    font-size: 2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}
.di-locale-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
.di-locale-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.di-btn-dim {
    color: var(--text-dim);
}
.di-browse-meta-bar {
    margin-bottom: 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.di-sync-status-indicator {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.di-status-dot-accent {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}
.di-sync-text-main {
    color: var(--text-main);
    font-weight: 600;
}
.di-empty-panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
}
.di-key-header--wrap {
    flex-wrap: wrap;
    gap: 0.75rem;
}
.di-key-meta--wrap {
    flex-wrap: wrap;
    gap: 0.5rem;
}
.di-key-name--bold {
    font-weight: 700;
}
.di-tag-badge--sm {
    font-size: 0.78rem;
}
.di-actions-flex {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.di-btn-compact {
    padding: 0.35rem 0.65rem;
}
.di-box-content--valid {
    color: var(--text-main);
}
.di-box-content--missing {
    color: var(--danger);
}
.di-pagination-wrap {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.di-pagination-ellipsis {
    padding: 0.35rem 0.5rem;
    color: var(--text-dim);
}
.di-sync-status-card {
    margin-bottom: 1.5rem;
    background: var(--panel);
    border: 1px solid rgba(0, 191, 207, 0.35);
    border-radius: var(--radius-md);
    padding: 0.95rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.di-sync-status-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.di-sync-status-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(0, 191, 207, 0.12);
    color: var(--accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.di-sync-status-title {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.di-sync-relative {
    color: var(--accent);
}
.di-sync-formatted {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 400;
}
.di-sync-status-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.di-sync-status-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.di-tag-badge--active-indicator {
    background: rgba(16, 185, 129, 0.12);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}
.di-flag-icon-wrap {
    display: inline-flex;
    align-items: center;
}
.di-tag-badge--canonical {
    margin-left: auto;
    background: rgba(0, 191, 207, 0.12);
    color: var(--accent);
    border: 1px solid rgba(0, 191, 207, 0.3);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}
.di-tag-badge--approved-pill {
    margin-left: auto;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    line-height: 1;
}
.di-tag-badge--review-pill {
    margin-left: auto;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    line-height: 1;
}
.di-source-lang-label {
    color: var(--accent);
    font-weight: 600;
}
.di-canonical-100-label {
    color: var(--success);
    font-weight: 700;
}
.di-progress-fill--source {
    width: 100%;
    background: var(--accent);
}
.di-btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
}
.di-stat-approved-label {
    color: var(--success);
    font-weight: 700;
}
.di-btn-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.di-locale-badge-card {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    background: var(--panel);
    border: 1px solid var(--panel-border);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
}
.di-flag-container {
    display: inline-flex;
    align-items: center;
    width: 22px;
    flex-shrink: 0;
}
.di-locale-name-strong {
    color: #fff;
}
.di-locale-code-accent {
    color: var(--accent);
    font-weight: 700;
}
.di-locale-native-muted {
    color: var(--text-dim);
    font-size: 0.8rem;
}
.di-key-card--spaced {
    margin-bottom: 1.75rem;
}
.di-key-name--lg {
    font-size: 1.1rem;
    padding: 0.35rem 0.75rem;
    font-weight: 700;
}
.di-tag-badge--padded {
    font-size: 0.8rem;
    padding: 0.25rem 0.55rem;
}
.di-context-explainer {
    margin: 0.85rem 0 0.5rem 0;
    background: rgba(0, 191, 207, 0.05);
    border: 1px solid rgba(0, 191, 207, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.di-context-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.di-context-body {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-main);
}
.di-context-title {
    color: #fff;
}
.di-context-desc {
    margin: 0.2rem 0 0 0;
    color: var(--text-dim);
}
.di-key-body--spaced {
    margin-top: 0.5rem;
}
.di-box-label--dim {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}
.di-box-content--white {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
}
.di-subdivider-box {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.di-subdivider-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 0.4rem;
}
.di-subdivider-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.di-box-label--accent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}
.di-canonical-check-badge {
    font-size: 0.72rem;
    color: var(--success);
    font-weight: 600;
}
.di-canonical-note {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--text-dim);
}
.di-box-label--dim-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}
.di-box-label-subtext {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: none;
}
.di-box-content--main {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
}
.di-target-actions {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.di-target-actions-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.di-meta-author-text {
    font-size: 0.78rem;
    color: var(--text-dim);
}
.di-missing-notice-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px dashed rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    padding: 1rem;
    color: #fca5a5;
    font-size: 0.9rem;
}
.di-card--panel-spaced {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
}
.di-card-section-header {
    margin-bottom: 1.25rem;
}
.di-card-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.nav-count-badge--sm {
    font-size: 0.8rem;
}
.di-card-section-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.di-proposals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.di-empty-card-dark {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 2.5rem;
    text-align: center;
    color: var(--text-muted);
}
.di-proposal-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
}
.di-proposal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.di-proposal-user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.di-proposal-username {
    color: #fff;
    font-size: 0.95rem;
}
.di-proposal-date {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-left: 0.4rem;
}
.di-status-badge--compact {
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
}
.di-proposal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.di-proposal-text {
    font-size: 1rem;
    color: #fff;
    line-height: 1.5;
    word-break: break-word;
}
.di-proposal-form-section {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.di-proposal-form-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}
.di-proposal-form-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.di-form-fields-flex {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.di-proposal-textarea {
    width: 100%;
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    padding: 12px 14px;
    line-height: 1.5;
}
.di-placeholder-notice {
    font-size: 0.85rem;
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    display: none;
}
.di-form-submit-row {
    display: flex;
    justify-content: flex-start;
}
.di-login-prompt-box {
    background: rgba(0, 191, 207, 0.08);
    border: 1px dashed rgba(0, 191, 207, 0.3);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
}
.di-login-prompt-text {
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}
.di-card--panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}
.di-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.di-comment-item {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.di-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.di-comment-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.di-comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.di-comment-username {
    color: #fff;
    font-size: 0.9rem;
}
.di-comment-date {
    font-size: 0.78rem;
    color: var(--text-dim);
}
.di-comment-content {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.di-comment-form-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}
.di-comment-form-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}
.di-comment-textarea {
    width: 100%;
    border-radius: 8px;
    resize: vertical;
    min-height: 70px;
    padding: 12px 14px;
    line-height: 1.5;
}
.di-comment-login-prompt {
    background: rgba(0, 191, 207, 0.08);
    border: 1px dashed rgba(0, 191, 207, 0.3);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
}
.di-comment-login-text {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
}
.di-review-header-left {
    color: var(--text-dim);
    font-size: 0.95rem;
}
.di-review-sync-info {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.di-accent-icon-wrap {
    color: var(--accent);
}
.text-white {
    color: #fff;
}
.di-scope-tab--flex {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.di-filter-bar--spaced {
    margin-bottom: 1.5rem;
}
.di-tag-badge--flex {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.di-review-actions-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.di-proposal-preview-box {
    background: rgba(0, 191, 207, 0.08);
    border: 1px solid rgba(0, 191, 207, 0.25);
    border-radius: var(--radius-sm);
    padding: 1rem;
}
.di-proposal-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.di-proposal-preview-date {
    font-size: 0.75rem;
    color: var(--text-dim);
}
.di-proposal-preview-content {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
    line-height: 1.45;
}
.di-pct-0 { width: 0%; }
.di-pct-1 { width: 1%; }
.di-pct-2 { width: 2%; }
.di-pct-3 { width: 3%; }
.di-pct-4 { width: 4%; }
.di-pct-5 { width: 5%; }
.di-pct-6 { width: 6%; }
.di-pct-7 { width: 7%; }
.di-pct-8 { width: 8%; }
.di-pct-9 { width: 9%; }
.di-pct-10 { width: 10%; }
.di-pct-11 { width: 11%; }
.di-pct-12 { width: 12%; }
.di-pct-13 { width: 13%; }
.di-pct-14 { width: 14%; }
.di-pct-15 { width: 15%; }
.di-pct-16 { width: 16%; }
.di-pct-17 { width: 17%; }
.di-pct-18 { width: 18%; }
.di-pct-19 { width: 19%; }
.di-pct-20 { width: 20%; }
.di-pct-21 { width: 21%; }
.di-pct-22 { width: 22%; }
.di-pct-23 { width: 23%; }
.di-pct-24 { width: 24%; }
.di-pct-25 { width: 25%; }
.di-pct-26 { width: 26%; }
.di-pct-27 { width: 27%; }
.di-pct-28 { width: 28%; }
.di-pct-29 { width: 29%; }
.di-pct-30 { width: 30%; }
.di-pct-31 { width: 31%; }
.di-pct-32 { width: 32%; }
.di-pct-33 { width: 33%; }
.di-pct-34 { width: 34%; }
.di-pct-35 { width: 35%; }
.di-pct-36 { width: 36%; }
.di-pct-37 { width: 37%; }
.di-pct-38 { width: 38%; }
.di-pct-39 { width: 39%; }
.di-pct-40 { width: 40%; }
.di-pct-41 { width: 41%; }
.di-pct-42 { width: 42%; }
.di-pct-43 { width: 43%; }
.di-pct-44 { width: 44%; }
.di-pct-45 { width: 45%; }
.di-pct-46 { width: 46%; }
.di-pct-47 { width: 47%; }
.di-pct-48 { width: 48%; }
.di-pct-49 { width: 49%; }
.di-pct-50 { width: 50%; }
.di-pct-51 { width: 51%; }
.di-pct-52 { width: 52%; }
.di-pct-53 { width: 53%; }
.di-pct-54 { width: 54%; }
.di-pct-55 { width: 55%; }
.di-pct-56 { width: 56%; }
.di-pct-57 { width: 57%; }
.di-pct-58 { width: 58%; }
.di-pct-59 { width: 59%; }
.di-pct-60 { width: 60%; }
.di-pct-61 { width: 61%; }
.di-pct-62 { width: 62%; }
.di-pct-63 { width: 63%; }
.di-pct-64 { width: 64%; }
.di-pct-65 { width: 65%; }
.di-pct-66 { width: 66%; }
.di-pct-67 { width: 67%; }
.di-pct-68 { width: 68%; }
.di-pct-69 { width: 69%; }
.di-pct-70 { width: 70%; }
.di-pct-71 { width: 71%; }
.di-pct-72 { width: 72%; }
.di-pct-73 { width: 73%; }
.di-pct-74 { width: 74%; }
.di-pct-75 { width: 75%; }
.di-pct-76 { width: 76%; }
.di-pct-77 { width: 77%; }
.di-pct-78 { width: 78%; }
.di-pct-79 { width: 79%; }
.di-pct-80 { width: 80%; }
.di-pct-81 { width: 81%; }
.di-pct-82 { width: 82%; }
.di-pct-83 { width: 83%; }
.di-pct-84 { width: 84%; }
.di-pct-85 { width: 85%; }
.di-pct-86 { width: 86%; }
.di-pct-87 { width: 87%; }
.di-pct-88 { width: 88%; }
.di-pct-89 { width: 89%; }
.di-pct-90 { width: 90%; }
.di-pct-91 { width: 91%; }
.di-pct-92 { width: 92%; }
.di-pct-93 { width: 93%; }
.di-pct-94 { width: 94%; }
.di-pct-95 { width: 95%; }
.di-pct-96 { width: 96%; }
.di-pct-97 { width: 97%; }
.di-pct-98 { width: 98%; }
.di-pct-99 { width: 99%; }
.di-pct-100 { width: 100%; }

.custom-select-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.custom-select {
    position: relative;
    user-select: none;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.custom-select[data-disabled="true"],
.custom-select.disabled {
    pointer-events: none;
    opacity: 0.55;
    cursor: not-allowed;
}

.custom-select-trigger {
    background: rgba(11, 15, 20, 0.7);
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    border: 1px solid var(--line);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    min-height: 38px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
}

.custom-select-trigger > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.custom-select-trigger:hover {
    background: rgba(15, 20, 28, 0.85);
    border-color: rgba(0, 191, 207, 0.4);
}

.custom-select.open .custom-select-trigger {
    border-color: var(--accent);
    background: rgba(15, 20, 28, 0.95);
}

.custom-select .select-caret {
    margin-left: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select.open .select-caret {
    transform: rotate(180deg);
    color: var(--accent);
}

.custom-select-dropdown {
    background: #0b0f14;
    border: 1px solid rgba(0, 191, 207, 0.3);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    z-index: 5000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: none;
    transform: scale(0.98);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    box-sizing: border-box;
    width: 100%;
    top: calc(100% + 6px);
    left: 0;
    overflow: hidden;
    box-shadow: none;
}

.custom-select.open .custom-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
}

.custom-select.drop-up .custom-select-dropdown {
    top: auto;
    bottom: calc(100% + 6px);
}

.custom-select-search {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 12px;
    outline: none;
    box-sizing: border-box;
}

.custom-options {
    list-style: none;
    margin: 0;
    padding: 4px;
    max-height: 220px;
    overflow-y: auto;
}

.custom-option {
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 12.5px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.custom-option.active {
    background: var(--accent-dim);
    color: var(--accent);
    font-weight: 600;
}

.native-select-mirror,
.native-select-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.di-filter-select-wrapper,
.custom-select-wrapper.di-filter-select {
    min-width: 150px;
    width: auto;
    display: inline-block;
}

.filter-bar .custom-select-wrapper,
.review-filters .custom-select-wrapper {
    min-width: 140px;
    width: auto;
}

.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.slider {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.4s;
    border-radius: 24px;
    flex-shrink: 0;
}

.slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.switch-text {
    white-space: nowrap;
    font-size: 0.95rem;
    color: white;
}

.switch input:checked + .slider {
    background: var(--accent);
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
}



.di-js-loading {
    text-align:center;
    padding: 2rem;
    color: var(--text-muted);
}

.di-js-mt-sm {
    margin-top:0.35rem;
}

.di-js-mt-md {
    margin-top: 1rem;
}

.di-js-mb-sm {
    margin-bottom:0.5rem;
}

.di-js-proposal-text {
    font-size:0.95rem;
    color: var(--text-main);
    line-height: 1.4;
}

.di-js-detail-box {
    background: rgba(0,0,0,0.25);
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.04);
}

.di-js-form-stack {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.di-js-ph-notice {
    font-size: 0.82rem;
    color: var(--warning);
    display: none;
}

.di-js-btn-row {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
}

.di-js-login-box {
    margin-top: 1.25rem;
    background: rgba(0, 191, 207, 0.08);
    border: 1px dashed rgba(0, 191, 207, 0.3);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
}

.di-js-login-text {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.di-js-empty-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
}

.di-js-confirm-text {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.di-js-chip-section {
    margin-top: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.di-js-chip-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.35rem;
}

.di-js-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.di-js-modal-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.di-js-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: rgba(0,0,0,0.25);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.05);
}

.di-js-modal-title {
    color: #fff;
    font-size: 0.95rem;
}

.di-js-upper {
    text-transform: uppercase;
}

.di-js-source-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
}

.di-js-source-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.di-js-small-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.di-js-btn-mini {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
}

.di-js-source-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #fff;
    word-break: break-word;
}

.di-js-dim {
    color: var(--text-dim);
}

.di-js-field-stack {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.di-js-textarea {
    resize: vertical;
    width: 100%;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 10px 12px;
}

.di-js-modal-ph-notice {
    font-size: 0.82rem;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    display: none;
    line-height: 1.4;
}

.di-js-reject-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.di-js-full {
    width: 100%;
}

.di-js-text-main {
    color: var(--text-main);
}

.di-js-text-danger {
    color: var(--danger);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.di-flag-icon {
    width: 24px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.di-flag-img {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    display: block;
}

.login_button {
    background: var(--accent1);
    color: #071019;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}

.login_button svg {
    flex-shrink: 0;
}

.login_button:hover {
    background: var(--accent-hover);
    color: #071019;
    transform: translateY(-1px);
}

.site-header .header-left {
    min-width: 0;
}

.site-header .header-center {
    min-width: 0;
    padding: 0 8px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(460px, 100%);
    height: 36px;
    padding: 0 6px 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(8, 13, 20, 0.45);
    color: var(--text-muted);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search-form:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.search-form:focus-within {
    border-color: color-mix(in srgb, var(--accent1) 55%, transparent);
    background: rgba(8, 13, 20, 0.7);
}

.search-form .icon {
    width: 16px;
    height: 16px;
}

.search-form input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-size: 0.85rem;
    padding: 0;
}

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

.search-form input:focus-visible {
    outline: none;
}

.search-submit {
    background: transparent;
    border: 0;
    display: grid;
    place-items: center;
    padding: 6px;
    border-radius: 8px;
    color: var(--text-muted);
}

.search-submit:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.search-submit .icon {
    width: 15px;
    height: 15px;
}

.nav-user-menu {
    display: flex;
    align-items: center;
}

.nav-ud-item-icon .icon {
    width: 14px;
    height: 14px;
}

.nav-user-dropdown {
    max-width: calc(100vw - 24px);
}

.nav-ud-item:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.wiki-user-order-box {
    margin: 2px 0;
}

@media (max-width: 900px) {
    .site-header .header-center {
        overflow: visible;
    }
}

@media (max-width: 720px) {
    .site-header {
        height: auto;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "left nav" "center center";
        row-gap: 8px;
        padding: 8px 10px;
    }

    .site-header .header-left {
        grid-area: left;
    }

    .site-header .header-center {
        grid-area: center;
        padding: 0;
        overflow: visible;
    }

    .site-header .nav {
        grid-area: nav;
    }

    .search-form {
        width: 100%;
    }

    .nav-user-dropdown {
        right: -4px;
    }
}

@media (max-width: 480px) {
    .site-header .header-left {
        gap: 6px;
    }
}
@media(min-width:901px){
:root{--page-gutter:0px;--sidebar:288px}
.sidebar{top:92px;bottom:0;left:0;background:transparent;border:0;border-right:1px solid rgba(255,255,255,0.04);border-radius:0;padding:18px 12px 36px}
main.main-content{margin:0 0 0 var(--sidebar);padding:30px 36px 100px;box-sizing:border-box;min-width:0}
main.main-content>*{width:100%;max-width:1200px;margin-left:auto;margin-right:auto;box-sizing:border-box}
}
.nav-link{font-size:0.9rem;min-height:38px;border-left:3px solid transparent}
.nav-link[aria-current="page"],.nav-link.active{border-left-color:var(--accent,#00bfcf)}
.nav-group h2{font-size:0.76rem;color:#8d98a8;letter-spacing:1.1px;font-weight:800}
.nav-count-badge{font-size:0.7rem}
.page-heading h1{font-size:1.5rem}
.di-stat-card{padding:16px 18px}
.di-stat-val{font-size:1.15rem}
.di-grid-locales{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.di-locale-card{padding:18px}
.di-locale-title{font-size:1.05rem}
