:root {
    --bg: #0b0f14;
    --panel: rgba(255, 255, 255, 0.04);
    --muted: #a6b0bd;
    --accent: #00bfcf;
    --accent1: #00bfcf;
    --accent2: #dfdfdf;
    --accent-hover: #33d4e2;
    --line: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.03);
    --di-topbar-offset: 92px;
    --page-max: 1200px;
    --page-narrow: 920px;
    --page-gutter: 24px;
    --page-top-gap: 32px;
    --page-head-gap: 32px;
    --page-footer-gap: 64px;
}

* {
    box-sizing: border-box;
}

input[type="hidden"] {
    display: none !important;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    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: #e6eef6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.15;
    padding-bottom: 60px;
    padding-top: var(--di-topbar-offset);
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
}

.auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user {
    color: rgba(255,255,255,0.7);
    font-size: 0.88rem;
    font-weight: 500;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.12);
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
}

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

.top-left-button {
    color: #b8c2cf;
    font-weight: 500;
    background: transparent;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.82rem;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    min-height: 32px;
    letter-spacing: 0.001em;
    white-space: nowrap;
    line-height: 1;
}

.top-left-button:hover {
    color: #eef5ff;
    background: rgba(8, 13, 20, 0.45);
    border-color: rgba(255, 255, 255, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    justify-self: end;
}

.lang-switcher {
    position: relative;
    margin-right: 6px;
}

.changelog-nav-button {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.72);
    border: none;
    border-radius: 6px;
    background: transparent;
    flex: 0 0 auto;
}

.changelog-nav-button svg {
    width: 20px;
    height: 20px;
    display: block;
}

.changelog-nav-button:hover {
    color: var(--accent, var(--accent1, #00bfcf));
    background: transparent;
}

.lang-current {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

.lang-current::-webkit-details-marker {
    display: none;
}

.lang-current:hover {
    opacity: 0.8;
}

.lang-switcher[open] .lang-current {
    opacity: 0.8;
}

.lang-current .flag-emoji svg {
    width: 24px;
    height: 16px;
}

.lang-current .flag-emoji img,
.lang-option-flag .flag-emoji img {
    width: 24px;
    height: 16px;
    display: block;
    border-radius: 3px;
    object-fit: cover;
}

.lang-caret {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease;
}

.lang-switcher[open] .lang-caret {
    transform: rotate(180deg);
}

.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: #33d4e2;
    color: #071019;
    transform: translateY(-1px);
}

.site-header {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1260px, calc(100% - 32px));
    z-index: 13100;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 9px 16px;
    min-height: 54px;
    border-radius: 16px;
    backdrop-filter: blur(14px);
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
        linear-gradient(105deg, rgba(12, 17, 26, 0.62), rgba(9, 14, 22, 0.58));
    background-size: 28px 28px, 100% 100%;
    background-position: 7px 0, 0 0;
    background-attachment: fixed, scroll;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
    gap: 14px;
}

.site-header::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 25%;
    right: 25%;
    height: 56px;
    background: radial-gradient(ellipse 60% 100% at 50% 0%, color-mix(in srgb, var(--accent, var(--accent1, #00bfcf)) 6%, transparent) 0%, color-mix(in srgb, var(--accent, var(--accent1, #00bfcf)) 2%, transparent) 50%, transparent 85%);
    pointer-events: none;
    z-index: -1;
}

.site-header::after {
    display: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
}

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

.home-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.home-icon::before {
    content: "";
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: url('/_dk5504b32058c161c27822bd8c/_dkb26d1033dae247de097ca9f3.png') center/contain no-repeat;
}

.home-icon:hover {
    transform: scale(1.05);
    border-color: transparent;
    background: transparent;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.brand-link:hover,
.brand-link:focus-visible {
    color: #ffffff;
}

.brand-link:hover .home-icon,
.brand-link:focus-visible .home-icon {
    transform: scale(1.05);
}

.brand-link:focus-visible {
    outline: 2px solid var(--accent1);
    outline-offset: 3px;
}

.brand-name {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
    transition: filter 0.2s ease;
}

.brand-link:hover .brand-name,
.brand-link:focus-visible .brand-name {
    filter: brightness(1.15);
}

.header-links {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: center;
    justify-content: center;
}

.brand-text {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    min-width: 0;
}

.brand-sub {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 2px;
}

.di-has-topbar {
    padding-top: var(--di-topbar-offset, 84px);
}

.top-left-button.is-active,
.top-left-button[aria-current="page"] {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.page-container {
    width: min(var(--page-max), calc(100% - 2 * var(--page-gutter)));
    min-width: 0;
    margin: 0 auto;
    padding: var(--page-top-gap) 0 0;
}

.page-container--narrow {
    width: min(var(--page-narrow), calc(100% - 2 * var(--page-gutter)));
}

.page-container--flush {
    padding-top: 0;
}

.page-hero {
    max-width: 760px;
    margin: 0 auto var(--page-head-gap);
    text-align: center;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 28%, transparent);
    background: color-mix(in srgb, var(--accent1, #00bfcf) 8%, transparent);
    color: var(--accent1);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent1);
}

.page-hero-title {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 4.8vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 80%, #b6f1f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero-desc {
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 0 0 var(--page-head-gap);
}

.page-head-main {
    flex: 1 1 320px;
    min-width: 0;
}

.page-head-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.page-head-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--accent1);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-head-back:hover {
    color: #ffffff;
}

.page-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--accent1);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.7rem, 3.6vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.page-subtitle {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .nav .login_button {
        padding: 7px 10px;
    }

    .nav .login_button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

.top-link-premium {
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-decoration: none;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.top-link-premium:not(.top-link-premium-disabled):not([aria-disabled="true"]) {
    color: #00d4e6;
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 30%, transparent);
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent1, #00bfcf) 12%, transparent), color-mix(in srgb, var(--accent1, #00bfcf) 4%, transparent));
    cursor: pointer;
    opacity: 1;
}

.top-link-premium:not(.top-link-premium-disabled):not([aria-disabled="true"]):hover,
.top-link-premium:not(.top-link-premium-disabled):not([aria-disabled="true"]):focus {
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent1, #00bfcf) 18%, transparent), color-mix(in srgb, var(--accent1, #00bfcf) 8%, transparent));
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 50%, transparent);
    color: #33e8f5;
    cursor: pointer;
}

.top-link-premium:not(.top-link-premium-disabled):not([aria-disabled="true"]).active {
    color: #33e8f5;
    background: linear-gradient(140deg, color-mix(in srgb, var(--accent1, #00bfcf) 22%, transparent), color-mix(in srgb, var(--accent1, #00bfcf) 10%, transparent));
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 70%, transparent);
}

.top-link-premium:not(.top-link-premium-disabled):not([aria-disabled="true"])::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 34%,
        rgba(255, 255, 255, 0.52) 50%,
        rgba(255, 255, 255, 0.04) 66%,
        transparent 100%
    );
    background-size: 230% 100%;
    background-position: -140% 0;
    animation: premiumShine 3.2s linear infinite;
    pointer-events: none;
}

.top-link-premium-disabled,
.top-link-premium[aria-disabled="true"] {
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    cursor: not-allowed;
    opacity: 0.55;
    user-select: none;
}

.top-link-premium-disabled:hover,
.top-link-premium-disabled:focus,
.top-link-premium[aria-disabled="true"]:hover,
.top-link-premium[aria-disabled="true"]:focus {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.top-link-premium-disabled::before,
.top-link-premium[aria-disabled="true"]::before {
    display: none;
}

.top-link-premium > * {
    position: relative;
    z-index: 1;
}

.premium-text {
    color: inherit;
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

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

.toast {
    background: var(--panel);
    backdrop-filter: blur(12px);
    color: var(--accent2);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: rgba(0, 195, 255, 0.12);
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 20%, transparent);
    color: var(--accent1, #00bfcf);
}

.toast.error {
    background: rgba(255, 69, 69, 0.12);
    border-color: rgba(255, 69, 69, 0.2);
    color: #ff4545;
}

.toast.info {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--accent2);
}

.toast.warning {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.site-footer {
    width: min(var(--page-max), calc(100% - 2 * var(--page-gutter)));
    margin: var(--page-footer-gap) auto 30px;
    padding: 24px 0;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    position: relative;
}

.community-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    overflow: hidden;
    color: #061015;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
}

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

.community-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.community-info strong {
    color: #ffffff;
    font-size: 0.94rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.community-info small {
    color: var(--muted);
    font-size: 0.82rem;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent1, #00bfcf) 12%, transparent), transparent);
    pointer-events: none;
}

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

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

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

.footer-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-hidden {
    display: none !important;
}

#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(--accent1);
    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;
}

.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: #38ef7d; }

.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;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.toast-emoji-thumb {
    width: 22px;
    height: 22px;
    min-width: 22px;
    max-height: 22px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
    border-radius: 4px;
    flex-shrink: 0;
}

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

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    width: min(840px, calc(100% - 32px));
    background: linear-gradient(180deg, rgba(14, 20, 29, 0.96) 0%, rgba(10, 14, 21, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    z-index: 9998;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: none;
    overflow: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cookie-banner::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent1, #00bfcf) 50%, transparent), transparent);
    pointer-events: none;
    z-index: 10;
}

.cookie-banner__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent1, #00bfcf) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    line-height: 1;
}

.cookie-banner__content h4 {
    margin: 0 0 3px 0;
    font-size: 1rem;
    color: #f4fbff;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cookie-banner__content p {
    margin: 0;
    color: var(--muted, #8b9bb4);
    font-size: 0.86rem;
    line-height: 1.45;
}

.cookie-banner__actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    border-radius: 10px;
    padding: 9px 15px;
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    box-shadow: none;
    text-decoration: none;
    border: 1px solid transparent;
    font-family: inherit;
    transition: filter 0.18s ease, transform 0.15s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cookie-btn:active {
    transform: translateY(0);
}

.cookie-btn.primary {
    background: var(--accent1, #00bfcf);
    color: #061118;
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 50%, transparent);
    font-weight: 600;
}

.cookie-btn.primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.cookie-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

.cookie-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 35%, transparent);
    transform: translateY(-1px);
}

.cookie-btn.ghost {
    background: transparent;
    color: var(--muted, #8b9bb4);
    border-color: rgba(255, 255, 255, 0.08);
    font-weight: 500;
}

.cookie-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 12, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
    transition: opacity 0.2s ease;
}

.cookie-dialog {
    width: min(520px, calc(100vw - 32px));
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.98), rgba(10, 14, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    animation: modalSlideIn 0.25s cubic-bezier(.16, 1, .3, 1);
    display: flex;
    flex-direction: column;
}

.cookie-dialog::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent1, #00bfcf) 50%, transparent), transparent);
    pointer-events: none;
    z-index: 10;
}

.cookie-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cookie-dialog__title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-dialog__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent1, #00bfcf) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
}

.cookie-dialog__header h3 {
    margin: 0;
    font-size: 1.12rem;
    color: #f4fbff;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.cookie-icon-button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    box-shadow: none;
}

.cookie-icon-button:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.cookie-dialog__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-dialog__intro {
    margin: 0 0 16px 0;
    color: var(--muted, #8b9bb4);
    font-size: 0.88rem;
    line-height: 1.5;
}

.cookie-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.18s ease, border-color 0.18s ease;
}

.cookie-row:hover {
    background: rgba(255, 255, 255, 0.035);
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 20%, transparent);
}

.cookie-row__text,
.cookie-row > div:first-child {
    flex: 1;
    min-width: 0;
}

.cookie-row strong {
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.cookie-row p {
    margin: 0;
    color: var(--muted, #8b9bb4);
    font-size: 0.84rem;
    line-height: 1.4;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex: 0 0 46px;
    cursor: pointer;
    margin: 0;
}

.cookie-toggle input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

.cookie-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.cookie-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    top: 2px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.cookie-toggle:hover .cookie-slider {
    border-color: rgba(255, 255, 255, 0.22);
}

.cookie-toggle input:checked + .cookie-slider {
    background: var(--accent1, #00bfcf);
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 50%, transparent);
}

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

.cookie-toggle input:disabled + .cookie-slider {
    cursor: not-allowed;
}

.cookie-toggle input:checked:disabled + .cookie-slider {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 70%, transparent);
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 35%, transparent);
    cursor: not-allowed;
}

.cookie-toggle input:not(:checked):disabled + .cookie-slider {
    opacity: 0.45;
    cursor: not-allowed;
}

.cookie-btn:focus-visible,
.cookie-icon-button:focus-visible,
.cookie-toggle input:focus-visible + .cookie-slider {
    outline: 2px solid var(--accent1);
    outline-offset: 2px;
}

.cookie-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

body.cookie-modal-open {
    overflow: hidden;
}

.cookie-required-notice {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
    width: min(420px, calc(100% - 32px));
    margin: 0;
    padding: 12px 14px;
    color: #fff;
    background: #2a1c20;
    border: 1px solid rgba(237, 91, 100, 0.55);
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .site-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .cookie-banner {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .cookie-banner__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .cookie-banner__actions .cookie-btn {
        flex: 1;
    }
}

hr {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 16px 0;
}

.di-ph-dropdown {
    position: fixed;
    min-width: 280px;
    max-width: 480px;
    max-height: 320px;
    background: rgba(10, 14, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(12px);
    overflow: hidden;
    z-index: 99999;
}

.di-ph-dropdown-header {
    padding: 10px 14px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.di-ph-dropdown-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 4px;
}

.di-ph-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.di-ph-item:hover,
.di-ph-item.selected {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 8%, transparent);
}

.di-ph-key {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent1);
    white-space: nowrap;
    flex-shrink: 0;
}

.di-ph-item-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 0;
}

.di-ph-role-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    min-height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: none;
}

.di-ph-special-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(88, 101, 242, 0.25);
    color: #dee0fc;
    font-weight: 700;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.di-ph-key-special {
    color: #dee0fc;
}

.di-ph-item.is-conditional {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
}

.di-ph-item.is-conditional .di-ph-desc {
    text-align: left;
}

.di-ph-conditional-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 5px 8px;
    border-left: 2px solid var(--accent1);
    border-radius: 0 5px 5px 0;
    background: color-mix(in srgb, var(--accent1, #00bfcf) 6%, transparent);
    color: var(--accent1);
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.78rem;
    font-weight: 600;
}

.di-ph-conditional-content {
    padding-left: 9px;
    color: var(--text);
    white-space: nowrap;
}

.di-ph-conditional-variable {
    color: var(--accent1);
}

.di-ph-conditional-close {
    color: var(--accent1);
}

.di-ph-desc {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 120px;
    flex-shrink: 1;
}

.di-ph-empty {
    padding: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 0.82rem;
}

.di-ph-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 12px;
}

.di-ph-category-header {
    padding: 8px 12px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.di-embed-editor {
    display: flex;
    max-width: 520px;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 0 12px;
    background: #2b2d31;
    border: 1px solid rgba(0, 0, 0, 0.2);
    font-family: 'gg sans', 'Noto Sans', Helvetica, Arial, sans-serif;
}

.di-ee-render-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 520px;
    margin: 18px auto 14px;
    min-height: 30px;
}

.di-ee-render-mode-label {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
}

.module-card .di-ee-render-mode .switch,
.di-ee-render-mode .switch,
.di-ee-render-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    margin-bottom: 0;
}

.di-ee-render-mode .slider {
    margin: 0;
}

.di-ee-render-mode .switch-text {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
}

.embed-format-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.embed-format-choice-label {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.embed-format-choice .button-group {
    flex: 1;
}

.custom-select.has-unavailable-selection .custom-select-trigger,
.custom-select .custom-option.active[data-channel-unavailable="true"],
.custom-select .custom-option.active[data-role-unavailable="true"] {
    color: #ff9b9b !important;
    border-color: rgba(237, 66, 69, .55) !important;
    background: rgba(237, 66, 69, .12) !important;
}

.report-actions-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.report-action-tabs-wrap {
    margin-bottom: 2px;
}

.report-action-tabs-wrap .button-group {
    display: flex;
    max-width: 440px;
}

.report-action-panel,
.report-actions-panel {
    padding: 6px 0 0;
}

.report-action-config.hidden {
    display: none !important;
}

.report-action-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.report-action-panel-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.report-action-panel-info h5 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #e6eef6;
}

.report-action-panel-info .card-description {
    margin: 3px 0 0 0;
    font-size: 0.85rem;
    color: #8b9bb4;
}

.report-action-panel .setting-row,
.report-action-config .setting-row {
    gap: 20px;
}

.report-action-panel .report-action-modal-settings,
.report-action-panel .report-action-default-details,
.report-action-panel .report-action-dm-settings,
.report-action-config .report-action-modal-settings,
.report-action-config .report-action-default-details,
.report-action-config .report-action-dm-settings {
    margin-top: 16px;
}

.report-action-panel .report-action-fields,
.report-action-config .report-action-fields {
    display: grid;
    gap: 10px;
    margin: 12px 0 0 0;
}

.report-action-field-item {
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    overflow: visible;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.report-action-field-item:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.report-action-field-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    border-radius: 10px;
    background: transparent;
    transition: background 0.15s ease;
    gap: 12px;
}

.report-action-field-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.report-action-field-header .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.report-action-field-drag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent1, #00bfcf);
    background: color-mix(in srgb, var(--accent1, #00bfcf) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 25%, transparent);
    border-radius: 6px;
    padding: 2px 7px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.report-action-field-title {
    font-size: 0.9rem;
    color: #e6eef6;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
}

.report-action-field-type-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 2px 8px;
    flex-shrink: 0;
}

.report-action-field-req-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.1;
    margin-left: 0;
    flex-shrink: 0;
}

.report-action-field-req-badge.is-required {
    color: #ED4245;
    background: rgba(237, 66, 69, 0.12);
    border: 1px solid rgba(237, 66, 69, 0.25);
}

.report-action-field-req-badge.is-optional {
    display: none !important;
}

.report-action-field-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.report-action-field-item.open .automod-arrow {
    transform: rotate(180deg);
    color: #fff;
}

.report-action-field-body {
    padding: 14px 16px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.report-action-fields-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
}

.report-rewards-section .report-reward-rules-block,
.report-rewards-config .report-reward-rules-block {
    margin-top: 16px;
}

.report-rewards-section > .card-description,
.report-rewards-config > .card-description {
    margin-bottom: 16px;
}

.report-rewards-section .report-reward-rules-list,
.report-rewards-config .report-reward-rules-list {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.report-rewards-section .report-reward-rule,
.report-rewards-config .report-reward-rule {
    margin: 0;
}

.report-rewards-section .report-reward-rule-header,
.report-rewards-config .report-reward-rule-header {
    cursor: pointer;
}

.report-rewards-config .report-reward-rule-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.report-rewards-config .report-reward-rule.open .automod-arrow {
    transform: rotate(180deg);
    color: #fff;
}

.report-rewards-config .report-reward-rule-content {
    padding-top: 16px;
}

.report-rewards-actions {
    margin-top: 12px;
    display: flex;
    align-items: center;
}

.discord-v2-container {
    display: grid;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.28);
    border-left: 4px solid var(--discord-v2-accent, var(--accent1));
    border-radius: 4px;
    background: #2b2d31;
}

.discord-v2-message { max-width: 520px; }
.discord-v2-author { color: #f2f3f5; font-size: 0.875rem; font-weight: 700; line-height: 1.35; }
.discord-v2-title { color: #f2f3f5; font-size: 1rem; font-weight: 700; line-height: 1.35; }
.discord-v2-description, .discord-v2-field-value { color: #dbdee1; line-height: 1.375; }
.discord-v2-fields { display: grid; gap: 8px; }
.discord-v2-field { display: grid; gap: 2px; }
.discord-v2-field-name { color: #f2f3f5; font-weight: 700; line-height: 1.375; }
.discord-v2-media { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.discord-v2-media img { width: 100%; max-height: 190px; object-fit: cover; border-radius: 4px; }
.discord-v2-footer { color: #949ba4; font-size: 0.78rem; line-height: 1.35; }

.di-embed-editor.is-components-v2 .di-ee-body {
    margin: 0;
    padding: 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.di-embed-editor.is-components-v2 {
    display: block;
    position: relative;
    border: 1px solid rgba(0, 0, 0, .28);
    border-radius: 4px;
    background: #2b2d31;
}

.di-embed-editor.is-components-v2 .di-ee-color-bar {
    display: block;
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    z-index: 2;
    border-radius: 4px 0 0 4px;
}

.di-embed-editor.is-components-v2 .di-ee-body {
    padding-left: 18px;
}

.di-ee-color-bar {
    width: 4px;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
    border-radius: 8px 0 0 8px;
    transition: width .14s ease;
}

.di-ee-color-bar:hover,
.di-ee-color-bar:focus-within {
    width: 10px;
}

.di-embed-editor.is-components-v2 .di-ee-color-bar:hover,
.di-embed-editor.is-components-v2 .di-ee-color-bar:focus-within {
    width: 10px;
}

.di-ee-color-row-inner,
.di-ee-color-row-inner.custom-color-row {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 2;
}

.di-ee-color-row-inner input[type="color"],
.di-ee-color-row-inner .custom-color-hex {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.di-ee-color-row-inner .custom-color-trigger,
.custom-color-trigger.di-ee-color-trigger-proxy {
    display: none !important;
}

.di-ee-color-bar:focus-visible {
    outline: 2px solid var(--accent1, #00bfcf);
    outline-offset: 2px;
}

.di-ee-body {
    flex: 1;
    padding: 8px 16px 12px 12px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.di-ee-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.di-ee-author-section {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.di-ee-author-icon,
.di-ee-footer-icon {
    position: relative;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px dashed rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.2);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    padding: 0;
    overflow: visible;
}

.di-ee-author-icon.has-image,
.di-ee-footer-icon.has-image {
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.1);
}

.di-ee-author-icon {
    width: 24px;
    height: 24px;
}

.di-ee-footer-icon {
    width: 20px;
    height: 20px;
}

.di-ee-author-icon:hover,
.di-ee-footer-icon:hover {
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 40%, transparent);
    color: color-mix(in srgb, var(--accent1, #00bfcf) 50%, transparent);
    background: color-mix(in srgb, var(--accent1, #00bfcf) 5%, transparent);
}

.di-ee-author-icon img,
.di-ee-footer-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.di-ee-author-remove,
.di-ee-footer-remove {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 5;
    width: 15px;
    height: 15px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: #ed4245;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: none;
}

.di-ee-footer-remove {
    width: 13px;
    height: 13px;
    font-size: 8px;
    top: -4px;
    right: -4px;
}

.di-ee-author-icon:hover .di-ee-author-remove,
.di-ee-author-remove:focus-visible,
.di-ee-footer-icon:hover .di-ee-footer-remove,
.di-ee-footer-remove:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

.di-ee-author-remove:hover,
.di-ee-footer-remove:hover {
    background: #c03537;
    transform: scale(1.15);
}

.di-ee-author-input,
.di-ee-title-input,
.di-ee-desc-input,
.di-ee-footer-input,
.di-ee-field-name,
.di-ee-field-value {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 2px 6px;
    color: #dcddde;
    font-family: 'gg sans', 'Noto Sans', Helvetica, Arial, sans-serif;
    font-size: 0.82rem;
    transition: border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
}

.di-ee-author-input:hover,
.di-ee-title-input:hover,
.di-ee-desc-input:hover,
.di-ee-footer-input:hover,
.di-ee-field-name:hover,
.di-ee-field-value:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.06);
}

.di-ee-author-input:focus,
.di-ee-title-input:focus,
.di-ee-desc-input:focus,
.di-ee-footer-input:focus,
.di-ee-field-name:focus,
.di-ee-field-value:focus {
    background: rgba(255, 255, 255, 0.04);
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 35%, transparent);
    outline: none;
}

.di-ee-author-input::placeholder,
.di-ee-title-input::placeholder,
.di-ee-desc-input::placeholder,
.di-ee-footer-input::placeholder,
.di-ee-field-name::placeholder,
.di-ee-field-value::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

.di-ee-author-input {
    font-size: 0.75rem;
    font-weight: 600;
}

.di-ee-title-input {
    font-weight: 700;
    font-size: 1rem;
    color: #f2f3f5;
    padding: 3px 6px;
}

.di-ee-title-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.di-ee-desc-input {
    min-height: 80px;
    resize: vertical;
    font-size: 0.875rem;
    line-height: 1.375;
    color: #dbdee1;
}

.di-ee-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px dashed rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.12);
    transition: border-color 0.2s ease, background 0.2s ease;
    overflow: hidden;
    position: relative;
}

.di-ee-thumbnail:hover {
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 30%, transparent);
    background: color-mix(in srgb, var(--accent1, #00bfcf) 2%, transparent);
}

.di-ee-thumbnail.has-image {
    border: none;
    background: transparent;
}

.di-ee-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.di-ee-thumb-placeholder {
    opacity: 0.35;
}

.di-ee-fields-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.di-ee-field {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    padding: 4px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.15s ease;
}

.di-ee-field:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.di-ee-field.full-width {
    grid-column: 1 / -1;
}

.di-ee-field-name {
    font-weight: 600;
    font-size: 0.75rem;
    color: #fff;
    padding: 2px 4px;
}

.di-ee-field-value {
    font-size: 0.75rem;
    color: #b5bac1;
    padding: 1px 4px;
}

.di-ee-field-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    margin-bottom: 2px;
    z-index: 2;
}

.di-ee-field:hover .di-ee-field-actions {
    opacity: 1;
}

.di-ee-field-inline-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.di-ee-inline-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
    user-select: none;
}

.di-ee-inline-switch {
    transform: scale(0.55);
    transform-origin: center;
    margin: 0;
}

.di-ee-field-remove {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.di-ee-field-remove:hover {
    background: rgba(237, 66, 69, 0.15);
    color: #ed4245;
}

.di-ee-add-field {
    grid-column: 1 / -1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    padding: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(.16,1,.3,1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.di-ee-add-field:hover {
    background: rgba(255,255,255,0.08);
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 35%, transparent);
    color: var(--accent1);
}

.di-ee-image-zone {
    width: 100%;
    min-height: 60px;
    border: 1.5px dashed rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    overflow: hidden;
    margin-top: 4px;
    position: relative;
}

.di-ee-image-zone:hover {
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 20%, transparent);
    background: color-mix(in srgb, var(--accent1, #00bfcf) 1%, transparent);
}

.di-ee-image-zone.has-image {
    border: none;
    min-height: unset;
}

.di-ee-image-zone.drag-over {
    border-color: var(--accent1);
    background: color-mix(in srgb, var(--accent1, #00bfcf) 4%, transparent);
}

.di-ee-image-img {
    width: 100%;
    border-radius: 4px;
    max-height: 300px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.15);
}

.di-ee-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.di-ee-image-placeholder svg {
    opacity: 0.25;
}

.di-ee-image-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #ed4245;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}

.di-ee-image-zone:hover .di-ee-image-remove {
    opacity: 1;
}

.di-ee-footer-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 6px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.di-ee-footer-input {
    font-size: 0.72rem;
    color: #949ba4;
}

.di-ee-footer-row.is-premium-locked {
    position: relative;
    cursor: pointer;
}

.di-ee-footer-row.is-premium-locked .di-ee-footer-icon,
.di-ee-footer-row.is-premium-locked .di-ee-footer-input {
    user-select: none;
    pointer-events: none;
}

.di-ee-footer-locked-overlay {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: rgba(8, 12, 18, 0.48);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s ease;
}

.di-ee-footer-row.is-premium-locked:hover .di-ee-footer-locked-overlay {
    background: rgba(8, 12, 18, 0.38);
}

.di-ee-footer-center-lock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(14, 19, 27, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #dcddde;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1;
    pointer-events: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.di-ee-footer-center-lock svg {
    width: 12px;
    height: 12px;
    display: block;
    color: var(--accent1, #00bfcf);
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.di-ee-footer-lock-text {
    line-height: 1;
    white-space: nowrap;
    color: inherit;
}

.di-ee-footer-row.is-premium-locked:hover .di-ee-footer-center-lock {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 12%, transparent);
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 38%, transparent);
    color: #ffffff;
}

.di-ee-footer-row.is-premium-locked:hover .di-ee-footer-center-lock svg {
    color: #38e1ef;
}

.di-ee-preview-btn-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding-top: 0;
    margin-top: 10px;
}

.di-ee-thumbnail-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    width: 22px;
    height: 22px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #ed4245;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, border-color 0.15s;
    box-shadow: none;
}

.di-ee-thumbnail:hover .di-ee-thumbnail-remove,
.di-ee-thumbnail-remove:focus-visible {
    opacity: 1;
}

.di-ee-thumbnail-remove:hover {
    background: rgba(237, 66, 69, 0.18);
    border-color: rgba(237, 66, 69, 0.45);
}

.di-ee-preview-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    padding: 3px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.di-ee-preview-btn:hover {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 6%, transparent);
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 25%, transparent);
    color: var(--accent1);
}

.di-ee-upload-input {
    display: none;
}

@media (max-width: 600px) {
    .di-embed-editor {
        max-width: 100%;
    }
    .di-ee-thumbnail {
        width: 60px;
        height: 60px;
    }
    .di-ee-fields-area {
        grid-template-columns: 1fr;
    }
    .di-ee-field.full-width,
    .di-ee-field {
        grid-column: 1 / -1;
    }
}

.di-embed-editor .ph-highlight-wrapper {
    width: 100%;
}

.di-ee-author-section .ph-highlight-wrapper {
    flex: 1;
    min-width: 0;
}

.di-ee-field .ph-highlight-wrapper {
    width: 100%;
}

.di-ee-footer-row .ph-highlight-wrapper {
    flex: 1;
    min-width: 0;
}

[data-auto-scale],
.di-auto-scale,
.di-auto-scale-target,
.di-is-auto-scaled {
    transform-origin: top center;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), margin-bottom 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.lang-option-flag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-option-flag .lang-label {
    font-size: 0.76rem;
    font-weight: 600;
    white-space: nowrap;
}

.lang-option-flag:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.06);
}

.lang-option-flag.active {
    color: var(--accent1);
    background: color-mix(in srgb, var(--accent1, #00bfcf) 10%, transparent);
}

.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;
}

.lang-option-flag .flag-emoji {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.lang-option-flag .flag-emoji svg,
.lang-current .flag-emoji svg,
.lang-option-flag .flag-emoji img,
.lang-current .flag-emoji img {
    display: block;
    border-radius: 3px;
}

.lang-menu-flags {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: min(220px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    max-height: min(520px, calc(100vh - 92px));
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 10, 16, 0.97);
    z-index: 95;
    backdrop-filter: blur(16px);
    white-space: nowrap;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--accent1, #00bfcf) 42%, transparent) rgba(255, 255, 255, 0.05);
}

.lang-switcher[open] .lang-menu-flags {
    display: flex;
}

.lang-menu-flags::-webkit-scrollbar {
    width: 7px;
}

.lang-menu-flags::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.lang-menu-flags::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 42%, transparent);
    border-radius: 999px;
}

.di-confirm-modal,
.di-dialog-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 14, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.di-confirm-dialog {
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.98), rgba(10, 14, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 28px;
    max-width: 420px;
    width: 90%;
    animation: modalSlideIn 0.25s cubic-bezier(.16,1,.3,1);
    position: relative;
    overflow: hidden;
}

.di-confirm-dialog::before,
.di-dialog-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent1, #00bfcf) 45%, transparent), transparent);
    pointer-events: none;
    z-index: 10;
}

@keyframes modalSlideIn {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.di-confirm-dialog h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f4fbff;
}

.di-confirm-dialog p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.di-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.di-confirm-actions.di-confirm-actions-stacked {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.di-confirm-actions button,
.di-confirm-actions .di-action-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.di-confirm-actions .confirm-cancel {
    background: rgba(255, 255, 255, 0.04);
    color: #f4fbff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.di-confirm-actions .confirm-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
}

.di-confirm-actions .confirm-danger {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fff;
}

.di-confirm-actions .confirm-danger:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.42);
}

.di-dialog-panel {
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.98), rgba(10, 14, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    max-width: 460px;
    width: min(92vw, 460px);
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.di-dialog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: color-mix(in srgb, var(--accent1, #00bfcf) 84%, transparent);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.di-dialog-title {
    margin: 8px 0 0;
}

.di-dialog-title:first-child {
    margin-top: 0;
}

.di-dialog-copy {
    color: rgba(226, 236, 243, 0.88);
}

.di-dialog-actions {
    margin-top: 20px;
}

.di-action-btn {
    min-width: 110px;
}

.di-action-btn.muted {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.di-action-btn.muted:hover {
    background: rgba(255, 255, 255, 0.1);
}

.di-action-btn.primary {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 12%, transparent);
    color: #ecfdff;
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 20%, transparent);
}

.di-action-btn.primary:hover {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 20%, transparent);
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 34%, transparent);
}

.di-action-btn.danger {
    background: rgba(239, 68, 68, 0.14);
    color: #fff;
    border-color: rgba(239, 68, 68, 0.28);
}

.di-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.42);
}

hr.darkline {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    margin: 16px 0;
}

.nav-user-menu {
    position: relative;
    z-index: 905;
}

.nav-avatar-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease;
    flex-shrink: 0;
}

.nav-avatar-btn:hover,
.nav-avatar-btn.open {
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 50%, transparent);
}

.nav-avatar-btn > img {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: none;
}

.nav-avatar-btn.has-rank-outline {
    border: 2px solid var(--rank-outline-color, transparent);
    position: relative;
    overflow: visible;
}

.nav-avatar-btn.has-rank-outline:not([data-rank-ready]):not([class*="nav-avatar-rank-"]) {
    border-color: transparent !important;
}

.nav-avatar-btn.has-rank-outline:not([data-rank-ready]):not([class*="nav-avatar-rank-"])::before {
    display: none !important;
}

.nav-avatar-btn.has-rank-outline:hover,
.nav-avatar-btn.has-rank-outline.open {
    border-color: var(--rank-outline-color, transparent);
    filter: brightness(1.12);
}

.nav-avatar-btn.has-rank-outline > img {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    position: relative;
    z-index: 1;
}

.nav-avatar-btn.has-rank-outline::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 34%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(255, 255, 255, 0.1) 66%,
        transparent 100%
    );
    background-size: 230% 100%;
    background-position: -140% 0;
    animation: premiumShine 3.2s linear infinite;
    pointer-events: none;
    z-index: 2;
    -webkit-mask: radial-gradient(circle, transparent calc(50% - 2.5px), #000 calc(50% - 2px));
    mask: radial-gradient(circle, transparent calc(50% - 2.5px), #000 calc(50% - 2px));
}

.nav-ud-avatar.has-rank-outline {
    border: 2px solid var(--rank-outline-color, transparent);
}

.nav-ud-avatar.has-rank-outline:not([data-rank-ready]):not([class*="nav-avatar-rank-"]) {
    border-color: transparent !important;
}

.nav-avatar-rank-owner { --rank-outline-color: #e74c3c; }
.nav-avatar-rank-admin { --rank-outline-color: #e67e22; }
.nav-avatar-rank-developer { --rank-outline-color: #9b59b6; }
.nav-avatar-rank-moderator { --rank-outline-color: #2ecc71; }
.nav-avatar-rank-support { --rank-outline-color: #3498db; }
.nav-avatar-rank-reviewer { --rank-outline-color: #1abc9c; }
.nav-avatar-rank-editor { --rank-outline-color: #f1c40f; }
.nav-avatar-rank-premium { --rank-outline-color: var(--accent1, #00bfcf); }
.nav-avatar-rank-team { --rank-outline-color: #e74c3c; }

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 215px;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: rgba(10, 14, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 1px;
    z-index: 13110;
    animation: navDropSlide 0.15s ease;
}

.nav-user-dropdown.open {
    display: flex;
}

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

.nav-ud-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 2px;
}

.nav-ud-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.nav-ud-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    gap: 1px;
}

.nav-ud-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.nav-ud-rank {
    font-size: 10px;
    color: var(--rank-outline-color, rgba(255, 255, 255, 0.7));
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

.nav-ud-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 3px 0;
}

.nav-ud-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #c4cdd8;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
    line-height: 1;
}

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

.nav-ud-item-icon {
    width: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.nav-ud-item-danger {
    color: #ed4245;
}

.nav-ud-item-danger:hover {
    color: #ff6b6b;
    background: rgba(237, 66, 69, 0.08);
}

.nav-ud-item-disabled {
    opacity: 0.38;
    cursor: not-allowed;
    color: #64748b;
    user-select: none;
}

.nav-ud-item-disabled:hover {
    color: #64748b;
    background: transparent;
}

.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #e6eef6;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.mobile-menu-btn:hover {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 12%, transparent);
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 40%, transparent);
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .header-links {
        display: none;
    }
    .header-links.open {
        display: flex;
        position: fixed;
        top: 84px;
        left: 13px;
        right: 13px;
        background: rgba(15,20,28,0.98);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.09);
        border-radius: 16px;
        padding: 10px;
        flex-direction: column;
        gap: 6px;
        z-index: 50;
        animation: slideDown 0.2s ease;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    :root {
        --di-topbar-offset: 76px;
        --page-gutter: 16px;
        --page-top-gap: 20px;
        --page-head-gap: 24px;
        --page-footer-gap: 40px;
    }

    .site-header {
        top: 8px;
        width: calc(100% - 14px);
        height: 56px;
        border-radius: 16px;
        padding: 0 10px;
    }

    .top-left-button {
        min-height: 34px;
    }

    .user-info {
        gap: 6px;
        flex-wrap: wrap;
    }
    .user-info .user {
        display: none;
    }
    .login_button {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    .site-footer {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 0;
    }
}

@media (max-width: 480px) {

    .cookie-banner {
        bottom: 8px;
        width: calc(100% - 16px);
        padding: 12px;
        gap: 10px;
        border-radius: 16px;
    }

    .cookie-banner__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 1.15rem;
    }

    .cookie-banner__content p {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .cookie-banner__actions {
        gap: 6px;
    }

    .cookie-banner__actions .cookie-btn {
        padding: 8px 6px;
        font-size: 0.76rem;
    }
}

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

.di-tooltip {
    position: fixed;
    z-index: 99999;
    max-width: 280px;
    padding: 6px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(11, 15, 20, 0.95), rgba(16, 22, 30, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e6eef6;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.01em;
    pointer-events: none;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(14px);
    white-space: normal;
    word-wrap: break-word;
    box-shadow: none;
    overflow: hidden;
}

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

.di-emoji-picker {
    position: absolute;
    z-index: 100005;
    width: 360px;
    background: var(--bg, #0b0f14);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    display: none;
    flex-direction: column;
}
.di-emoji-picker.visible {
    display: flex;
}
.di-emoji-picker-tabs {
    display: flex;
    align-items: center;
    padding: 6px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    gap: 2px;
    position: relative;
}
.di-emoji-tab {
    background: none;
    border: none;
    padding: 0;
    height: 32px;
    font-size: 1.15rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
    position: relative;
    z-index: 1;
    flex: 1;
    color: rgba(255,255,255,0.4);
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.di-emoji-tab:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.8);
}
.di-emoji-tab.active {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 15%, transparent);
    color: var(--accent1, #00bfcf);
}
.di-emoji-tab-server {
    color: rgba(255,255,255,0.4);
    border-right: 1px solid rgba(255,255,255,0.07);
    flex: 0 0 36px;
    margin-right: 2px;
    border-right: none;
}
.di-emoji-tab-server.active {
    color: var(--accent1, #00bfcf);
}
.di-emoji-tab-indicator {
    display: none;
}
.di-emoji-search-wrap {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}
.di-emoji-search-icon {
    display: none;
}
.di-emoji-search {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    color: #f0f4ff;
    font-size: 0.85rem;
    padding: 7px 12px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
.di-emoji-search:focus {
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 45%, transparent);
    background: rgba(255,255,255,0.08);
}
.di-emoji-body {
    padding: 8px 8px 6px;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--accent1, #00bfcf) 25%, transparent) transparent;
}
.di-emoji-body::-webkit-scrollbar {
    width: 4px;
}
.di-emoji-body::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 25%, transparent);
    border-radius: 4px;
}
.di-emoji-category-label {
    font-size: 0.71rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 8px 2px 5px;
    font-weight: 600;
}
[data-section]:first-child .di-emoji-category-label {
    margin-top: 2px;
}
.di-emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    margin-bottom: 4px;
}
.di-emoji-btn {
    background: none;
    border: none;
    padding: 2px;
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.1s, transform 0.1s;
    line-height: 1.2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.di-emoji-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.18);
}
.di-emoji-btn.di-emoji-guild img,
.di-emoji-guild-img {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    display: block !important;
    flex-shrink: 0 !important;
    border-radius: 4px;
}
.di-emoji-empty {
    color: rgba(255,255,255,0.3);
    font-size: 0.82rem;
    text-align: center;
    padding: 20px 0;
}
.di-emoji-empty-sm {
    padding: 8px 0 10px;
}
.di-emoji-trigger {
    position: absolute;
    top: 50%;
    margin-top: -11px;
    right: 6px;
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 5px;
    cursor: pointer;
    color: rgba(255,255,255,0.55);
    font-size: 0.92rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, color 0.15s, background 0.15s, border-color 0.15s;
    padding: 0;
    z-index: 2;
    flex-shrink: 0;
}
.di-emoji-wrap-textarea .di-emoji-trigger {
    top: 5px;
    margin-top: 0;
}
.di-emoji-input-wrap:focus-within .di-emoji-trigger {
    opacity: 1;
    pointer-events: auto;
}
.di-emoji-trigger:hover {
    color: var(--accent1, #00bfcf);
    background: color-mix(in srgb, var(--accent1, #00bfcf) 12%, transparent);
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 35%, transparent);
    opacity: 1;
}
.di-emoji-input-wrap {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.di-emoji-wrapped {
    padding-right: 32px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.di-emoji-input-wrap > .ph-highlight-wrapper {
    width: 100%;
}

.di-emoji-input-wrap > .ph-highlight-wrapper .ph-highlight-backdrop {
    padding-right: 32px !important;
    box-sizing: border-box;
}


.di-empty-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 24px 18px;
    margin-bottom: 12px;
    border: 1.5px dashed rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92em;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.di-empty-card:hover {
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 35%, transparent);
    color: rgba(255, 255, 255, 0.7);
    background: color-mix(in srgb, var(--accent1, #00bfcf) 4%, transparent);
}

.di-empty-card-icon {
    font-size: 1.6em;
    line-height: 1;
    opacity: 0.65;
}

.di-empty-card-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.98em;
}

.di-empty-card-hint {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.45);
    max-width: 340px;
}

.di-empty-card.hidden {
    display: none;
}

.di-confirm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
    z-index: 10;
}

.di-confirm-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

.di-pre-ticket-modal {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 14, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.di-pre-ticket-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.di-pre-ticket-dialog {
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.98), rgba(10, 14, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 28px;
    max-width: 480px;
    width: 90%;
    animation: modalSlideIn 0.25s cubic-bezier(.16,1,.3,1);
    position: relative;
    overflow: hidden;
}

.di-ticket-textarea {
    width: 100%;
    min-height: 120px;
    max-height: 240px;
    padding: 12px;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.di-ticket-textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 40%, transparent);
    background: color-mix(in srgb, var(--accent1, #00bfcf) 4%, transparent);
}

.di-ticket-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.di-ticket-char-count {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    text-align: right;
    margin-bottom: 16px;
}

.di-ticket-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s ease;
    z-index: 10;
}

.di-ticket-close:hover {
    background: rgba(255, 255, 255, 0.12);
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

table {
    max-width: 100%;
}

.site-footer,
.module-page {
    min-width: 0;
}

.module-card,
.overview-card,
.guild-card,
.forms-card,
.ach-card {
    min-width: 0;
}

.custom-select-dropdown,
.lang-menu,
.lang-menu-flags {
    max-width: calc(100vw - 24px);
}

@media (max-width: 900px) {
    .site-header {
        width: min(100% - 18px, 100%);
        top: 8px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .header-center {
        min-width: 0;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .header-center::-webkit-scrollbar {
        display: none;
    }

    .header-links {
        justify-content: flex-start;
        white-space: nowrap;
    }

    .lang-menu-flags {
        position: fixed;
        top: 58px;
        right: 10px;
        max-height: calc(100dvh - 72px);
    }
}

@media (max-width: 560px) {
    .site-header {
        min-height: 48px;
    }

    .brand-name {
        max-width: 38vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .lang-current {
        padding: 3px;
    }

    .lang-current .flag-emoji img,
    .lang-option-flag .flag-emoji img {
        width: 22px;
        height: 15px;
    }

    .di-flag-icon {
        width: 22px;
        height: 15px;
    }

    .lang-menu-flags {
        top: 54px;
        right: 8px;
        left: auto;
        min-width: min(216px, calc(100vw - 16px));
        max-width: calc(100vw - 16px);
        max-height: calc(100dvh - 64px);
    }
}

.applications-home-showcase .badge-new,[data-module-card="applications"] .badge-new{display:inline-flex;align-items:center;margin-left:6px;padding:2px 6px;border:1px solid color-mix(in srgb, color-mix(in srgb, var(--accent1, #00bfcf) 70%, #fff) 45%, transparent);border-radius:999px;color:color-mix(in srgb, var(--accent1, #00bfcf) 70%, #fff);font-size:.62rem;font-weight:900;vertical-align:middle}

.discord-custom-emoji {
    width: 1.375em;
    height: 1.375em;
    vertical-align: -0.25em;
    object-fit: contain;
    display: inline-block;
}

.button-order-switcher,
[data-button-order-switcher] {
    display: none !important;
}

.di-confirm-actions .confirm-cancel,
.di-confirm-actions .btn-secondary,
.di-confirm-actions .di-action-btn.muted,
.di-dialog-actions .confirm-cancel,
.di-dialog-actions .btn-secondary,
.di-dialog-actions .di-action-btn.muted {
    order: 1;
}

.di-confirm-actions .confirm-primary,
.di-confirm-actions .confirm-danger,
.di-confirm-actions .btn-primary,
.di-confirm-actions .application-modal-submit,
.di-confirm-actions .di-action-btn:not(.confirm-cancel):not(.muted),
.di-dialog-actions .confirm-primary,
.di-dialog-actions .confirm-danger,
.di-dialog-actions .btn-primary,
.di-dialog-actions .application-modal-submit,
.di-dialog-actions .di-action-btn:not(.confirm-cancel):not(.muted) {
    order: 2;
}

.cookie-dialog__actions #cookie-cancel-secondary {
    order: 1;
}

.cookie-dialog__actions #cookie-save {
    order: 2;
}

.di-confirm-actions .btn-back,
.di-confirm-actions .setup-wizard-btn-back,
.di-confirm-actions .di-aw-btn-back,
.di-confirm-actions [data-action="back"],
.di-confirm-actions [data-wiz-back],
.di-dialog-actions .btn-back,
.di-dialog-actions .setup-wizard-btn-back,
.di-dialog-actions .di-aw-btn-back,
.di-dialog-actions [data-action="back"],
.di-dialog-actions [data-wiz-back] {
    order: -2 !important;
}

.di-confirm-actions .btn-next,
.di-confirm-actions .setup-wizard-btn-next,
.di-confirm-actions .di-aw-btn-next,
.di-confirm-actions [data-action="next"],
.di-confirm-actions [data-wiz-next],
.di-dialog-actions .btn-next,
.di-dialog-actions .setup-wizard-btn-next,
.di-dialog-actions .di-aw-btn-next,
.di-dialog-actions [data-action="next"],
.di-dialog-actions [data-wiz-next] {
    order: -1 !important;
}

html[data-button-order="save_first"] .di-confirm-actions .confirm-primary,
html[data-button-order="save_first"] .di-confirm-actions .confirm-danger,
html[data-button-order="save_first"] .di-confirm-actions .btn-primary,
html[data-button-order="save_first"] .di-confirm-actions .application-modal-submit,
html[data-button-order="save_first"] .di-confirm-actions .di-action-btn:not(.confirm-cancel):not(.muted),
html[data-button-order="save_first"] .di-dialog-actions .confirm-primary,
html[data-button-order="save_first"] .di-dialog-actions .confirm-danger,
html[data-button-order="save_first"] .di-dialog-actions .btn-primary,
html[data-button-order="save_first"] .di-dialog-actions .application-modal-submit,
html[data-button-order="save_first"] .di-dialog-actions .di-action-btn:not(.confirm-cancel):not(.muted),
body[data-button-order="save_first"] .di-confirm-actions .confirm-primary,
body[data-button-order="save_first"] .di-confirm-actions .confirm-danger,
body[data-button-order="save_first"] .di-confirm-actions .btn-primary,
body[data-button-order="save_first"] .di-confirm-actions .application-modal-submit,
body[data-button-order="save_first"] .di-confirm-actions .di-action-btn:not(.confirm-cancel):not(.muted),
body[data-button-order="save_first"] .di-dialog-actions .confirm-primary,
body[data-button-order="save_first"] .di-dialog-actions .confirm-danger,
body[data-button-order="save_first"] .di-dialog-actions .btn-primary,
body[data-button-order="save_first"] .di-dialog-actions .application-modal-submit,
body[data-button-order="save_first"] .di-dialog-actions .di-action-btn:not(.confirm-cancel):not(.muted) {
    order: 1;
}

html[data-button-order="save_first"] .di-confirm-actions .confirm-cancel,
html[data-button-order="save_first"] .di-confirm-actions .btn-secondary,
html[data-button-order="save_first"] .di-confirm-actions .di-action-btn.muted,
html[data-button-order="save_first"] .di-dialog-actions .confirm-cancel,
html[data-button-order="save_first"] .di-dialog-actions .btn-secondary,
html[data-button-order="save_first"] .di-dialog-actions .di-action-btn.muted,
body[data-button-order="save_first"] .di-confirm-actions .confirm-cancel,
body[data-button-order="save_first"] .di-confirm-actions .btn-secondary,
body[data-button-order="save_first"] .di-confirm-actions .di-action-btn.muted,
body[data-button-order="save_first"] .di-dialog-actions .confirm-cancel,
body[data-button-order="save_first"] .di-dialog-actions .btn-secondary,
body[data-button-order="save_first"] .di-dialog-actions .di-action-btn.muted {
    order: 2;
}

html[data-button-order="cancel_first"] .di-confirm-actions .confirm-cancel,
html[data-button-order="cancel_first"] .di-confirm-actions .btn-secondary,
html[data-button-order="cancel_first"] .di-confirm-actions .di-action-btn.muted,
html[data-button-order="cancel_first"] .di-dialog-actions .confirm-cancel,
html[data-button-order="cancel_first"] .di-dialog-actions .btn-secondary,
html[data-button-order="cancel_first"] .di-dialog-actions .di-action-btn.muted,
body[data-button-order="cancel_first"] .di-confirm-actions .confirm-cancel,
body[data-button-order="cancel_first"] .di-confirm-actions .btn-secondary,
body[data-button-order="cancel_first"] .di-confirm-actions .di-action-btn.muted,
body[data-button-order="cancel_first"] .di-dialog-actions .confirm-cancel,
body[data-button-order="cancel_first"] .di-dialog-actions .btn-secondary,
body[data-button-order="cancel_first"] .di-dialog-actions .di-action-btn.muted {
    order: 1;
}

html[data-button-order="cancel_first"] .di-confirm-actions .confirm-primary,
html[data-button-order="cancel_first"] .di-confirm-actions .confirm-danger,
html[data-button-order="cancel_first"] .di-confirm-actions .btn-primary,
html[data-button-order="cancel_first"] .di-confirm-actions .application-modal-submit,
html[data-button-order="cancel_first"] .di-confirm-actions .di-action-btn:not(.confirm-cancel):not(.muted),
html[data-button-order="cancel_first"] .di-dialog-actions .confirm-primary,
html[data-button-order="cancel_first"] .di-dialog-actions .confirm-danger,
html[data-button-order="cancel_first"] .di-dialog-actions .btn-primary,
html[data-button-order="cancel_first"] .di-dialog-actions .application-modal-submit,
html[data-button-order="cancel_first"] .di-dialog-actions .di-action-btn:not(.confirm-cancel):not(.muted),
body[data-button-order="cancel_first"] .di-confirm-actions .confirm-primary,
body[data-button-order="cancel_first"] .di-confirm-actions .confirm-danger,
body[data-button-order="cancel_first"] .di-confirm-actions .btn-primary,
body[data-button-order="cancel_first"] .di-confirm-actions .application-modal-submit,
body[data-button-order="cancel_first"] .di-confirm-actions .di-action-btn:not(.confirm-cancel):not(.muted),
body[data-button-order="cancel_first"] .di-dialog-actions .confirm-primary,
body[data-button-order="cancel_first"] .di-dialog-actions .confirm-danger,
body[data-button-order="cancel_first"] .di-dialog-actions .btn-primary,
body[data-button-order="cancel_first"] .di-dialog-actions .application-modal-submit,
body[data-button-order="cancel_first"] .di-dialog-actions .di-action-btn:not(.confirm-cancel):not(.muted) {
    order: 2;
}

html[data-button-order="save_first"] .cookie-dialog__actions #cookie-save,
body[data-button-order="save_first"] .cookie-dialog__actions #cookie-save {
    order: 1;
}

html[data-button-order="save_first"] .cookie-dialog__actions #cookie-cancel-secondary,
body[data-button-order="save_first"] .cookie-dialog__actions #cookie-cancel-secondary {
    order: 2;
}

html[data-button-order="cancel_first"] .cookie-dialog__actions #cookie-cancel-secondary,
body[data-button-order="cancel_first"] .cookie-dialog__actions #cookie-cancel-secondary {
    order: 1;
}

html[data-button-order="cancel_first"] .cookie-dialog__actions #cookie-save,
body[data-button-order="cancel_first"] .cookie-dialog__actions #cookie-save {
    order: 2;
}

.di-copilot-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(11, 15, 22, 0.95);
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 35%, transparent);
    border-radius: 10px;
    padding: 9px 16px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.di-copilot-launcher:hover {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 12%, transparent);
    border-color: var(--accent1, #00bfcf);
    color: #38e1ef;
    transform: translateY(-1px);
    box-shadow: none;
}

.di-copilot-launcher.is-active,
.di-copilot-panel.is-open ~ .di-copilot-launcher {
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px) scale(0.92);
    visibility: hidden;
}

.di-copilot-launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent1, #00bfcf);
}

.di-copilot-launcher-badge {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 35%, transparent);
    color: var(--accent1, #00bfcf);
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    font-weight: 800;
}

.di-copilot-panel {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 440px;
    max-width: calc(100vw - 32px);
    height: 600px;
    max-height: calc(100vh - 48px);
    background: linear-gradient(135deg, rgba(11, 15, 20, 0.98), rgba(16, 22, 30, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.97);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.di-copilot-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.di-copilot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(11, 15, 22, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.di-copilot-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.di-copilot-header-icon {
    color: var(--accent1, #00bfcf);
    display: inline-flex;
}

.di-copilot-header-title {
    color: #f8fafc;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.di-copilot-header-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--accent1, #00bfcf) 12%, transparent);
    color: var(--accent1, #00bfcf);
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 35%, transparent);
    letter-spacing: 0.04em;
}

.di-copilot-close-btn,
.di-copilot-clear-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    box-shadow: none;
}

.di-copilot-close-btn {
    font-size: 20px;
}

.di-copilot-close-btn:hover,
.di-copilot-clear-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.di-copilot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overscroll-behavior: contain;
}

.di-copilot-messages::-webkit-scrollbar {
    width: 5px;
}

.di-copilot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.di-copilot-messages::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 30%, transparent);
    border-radius: 999px;
}

.di-copilot-messages::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 55%, transparent);
}

.di-copilot-msg {
    display: flex;
    flex-direction: column;
    max-width: 90%;
}

.di-copilot-msg--user {
    align-self: flex-end;
}

.di-copilot-msg--assistant {
    align-self: flex-start;
    max-width: 100%;
}

.di-copilot-msg--user .di-copilot-msg-bubble {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 32%, transparent);
    color: #f8fafc;
    border-radius: 12px 12px 2px 12px;
    padding: 10px 14px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
}

.di-copilot-msg--assistant .di-copilot-msg-bubble {
    background: rgba(20, 25, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border-radius: 12px 12px 12px 2px;
    padding: 13px 15px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.di-copilot-msg-bubble p {
    margin: 0 0 8px 0;
}

.di-copilot-msg-bubble p:last-child {
    margin-bottom: 0;
}

.di-copilot-msg-bubble strong {
    color: #fff;
    font-weight: 600;
}

.di-copilot-msg-bubble em {
    font-style: italic;
    color: #cbd5e1;
}

.di-copilot-msg-bubble code {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: monospace;
    font-size: 0.82rem;
    color: #38bdf8;
}

.di-copilot-msg-bubble ul.di-copilot-list,
.di-copilot-msg-bubble ol.di-copilot-list {
    margin: 6px 0 8px 0;
    padding-left: 20px;
}

.di-copilot-msg-bubble ul.di-copilot-list:last-child,
.di-copilot-msg-bubble ol.di-copilot-list:last-child {
    margin-bottom: 0;
}

.di-copilot-msg-bubble li {
    margin: 3px 0;
    line-height: 1.45;
}

.di-copilot-chips {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
}

.di-copilot-chip {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.di-copilot-chip:hover {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 10%, transparent);
    border-color: color-mix(in srgb, var(--accent1, #00bfcf) 35%, transparent);
    color: var(--accent1, #00bfcf);
    transform: translateY(-1px);
}

.di-copilot-dots {
    display: flex;
    gap: 5px;
    padding: 4px 6px;
}

.di-copilot-dots span {
    width: 6px;
    height: 6px;
    background: var(--accent1, #00bfcf);
    border-radius: 50%;
    animation: diCopilotPulse 1.2s infinite ease-in-out;
}

.di-copilot-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.di-copilot-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes diCopilotPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1.1); opacity: 1; }
}

.di-copilot-diff-card {
    background: rgba(14, 18, 25, 0.85);
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 28%, transparent);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.di-copilot-diff-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.di-copilot-diff-badge {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 35%, transparent);
    color: var(--accent1, #00bfcf);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 5px;
}

.di-copilot-diff-title {
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.86rem;
}

.di-copilot-diff-explanation {
    color: #94a3b8;
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.4;
}

.di-copilot-diff-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
}

.di-copilot-diff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.di-copilot-diff-table th {
    text-align: left;
    color: #8b9bb4;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.76rem;
}

.di-copilot-diff-table td {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.di-copilot-diff-label {
    color: #cbd5e1;
    font-weight: 500;
}

.di-copilot-diff-old {
    color: #f87171;
    text-decoration: line-through;
}

.di-copilot-diff-old-keep {
    color: #94a3b8;
    text-decoration: none;
}

.di-copilot-diff-arrow {
    color: #64748b;
    text-align: center;
}

.di-copilot-diff-new {
    color: #34d399;
    font-weight: 600;
}

.di-copilot-diff-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.di-copilot-btn-apply,
.di-copilot-btn-cancel {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 0 10px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.di-copilot-btn-jump {
    flex: 1 1 100%;
    width: 100%;
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 0 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.8rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, filter 0.15s ease, transform 0.15s ease;
}

.di-copilot-btn-apply {
    background: var(--accent1, #00bfcf);
    border: 1px solid var(--accent1, #00bfcf);
    color: #040c12;
    font-weight: 700;
}

.di-copilot-btn-apply:hover:not(:disabled) {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.di-copilot-btn-apply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.di-copilot-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
    font-weight: 600;
}

.di-copilot-btn-cancel:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.di-copilot-btn-jump {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 32%, transparent);
    color: var(--accent1, #00bfcf);
    font-weight: 600;
    text-decoration: none;
    gap: 4px;
}

.di-copilot-btn-jump:hover {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 18%, transparent);
    border-color: var(--accent1, #00bfcf);
    color: #ffffff;
    transform: translateY(-1px);
}

.di-copilot-btn-undo {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.82rem;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.15s ease;
}

.di-copilot-btn-undo:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
}

.di-copilot-status-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
}

.di-copilot-status-badge.is-applied {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.di-copilot-status-badge.is-discarded {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.di-copilot-input-area {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(11, 15, 22, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.di-copilot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 11px 14px;
    color: #f8fafc;
    font-size: 0.85rem;
    resize: none;
    min-height: 44px;
    max-height: 120px;
    overflow-y: hidden;
    box-shadow: none;
    outline: none;
    font-family: inherit;
    line-height: 1.35;
    transition: border-color 0.15s ease;
}

.di-copilot-input:focus {
    border-color: var(--accent1, #00bfcf);
    box-shadow: none;
}

.di-copilot-send-btn {
    background: var(--accent1, #00bfcf) !important;
    border: 1px solid var(--accent1, #00bfcf) !important;
    color: #040c12 !important;
    border-radius: 8px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
    flex-shrink: 0 !important;
    transition: filter 0.2s ease, transform 0.15s ease !important;
}

.di-copilot-send-btn svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #040c12 !important;
    stroke-width: 2.2 !important;
    display: block !important;
    margin: 0 !important;
    transform: translate(-1.5px, 1.5px) !important;
}

.di-copilot-send-btn:hover:not(:disabled) {
    filter: brightness(1.12) !important;
    transform: translateY(-1px) !important;
}

.di-copilot-send-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.di-copilot-clarification-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    background: rgba(11, 15, 22, 0.75);
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 25%, transparent);
    border-radius: 8px;
    padding: 12px;
    box-shadow: none;
}

.di-copilot-clarification-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent1, #00bfcf);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.di-copilot-clarification-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.di-copilot-clarification-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.di-copilot-clarification-card .custom-select-wrapper {
    width: 100%;
    margin-bottom: 0;
}

.di-copilot-clarification-card .custom-select-trigger {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.82rem;
    color: #f8fafc;
    box-shadow: none;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    overflow: hidden;
}

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

.di-copilot-clarification-card .custom-select-trigger > span:last-child {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.72rem;
    color: #8b9bb4;
}

.di-copilot-clarification-card .multi-select-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.di-copilot-clarification-card .multi-select-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: color-mix(in srgb, var(--accent1, #00bfcf) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 35%, transparent);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 0.78rem;
    color: #e2e8f0;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.di-copilot-clarification-card .multi-select-chip span:not(.role-color-dot):not(.chip-remove) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.di-copilot-clarification-card .custom-select.open .custom-select-trigger {
    border-color: var(--accent1, #00bfcf);
}

.di-copilot-btn-confirm-selection {
    background: var(--accent1, #00bfcf);
    border: 1px solid var(--accent1, #00bfcf);
    color: #040c12;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: none;
    margin-top: 4px;
    transition: filter 0.15s ease;
}

.di-copilot-btn-confirm-selection:hover:not(:disabled) {
    filter: brightness(1.12);
}

.di-copilot-btn-confirm-selection:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.di-copilot-clarification-confirmed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 4px;
    box-shadow: none !important;
}

.di-copilot-channel-name-wrap {
    margin-top: 8px;
}

.di-copilot-new-channel-name {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 0.82rem;
    color: #f8fafc;
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.15s ease;
}

.di-copilot-new-channel-name:focus {
    border-color: var(--accent1, #00bfcf);
    box-shadow: none !important;
}

.di-copilot-create-channel-opt {
    color: var(--accent1, #00bfcf) !important;
    font-weight: 600;
}

.di-copilot-category-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin-top: 4px;
    box-shadow: none !important;
}

.di-copilot-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #e2e8f0;
}

.di-copilot-category-badge {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 35%, transparent);
    color: var(--accent1, #00bfcf);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.di-copilot-same-roles-row {
    display: flex;
    align-items: center;
    margin-top: 6px;
    margin-bottom: 4px;
}

.di-copilot-same-roles-row .switch {
    margin: 0;
}

.di-copilot-same-roles-row .switch-text.di-copilot-same-roles-text {
    white-space: normal;
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.35;
}

.di-copilot-clarification-sublabel {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 4px;
    margin-bottom: 2px;
}

.di-copilot-wz-hidden {
    display: none !important;
}

.di-copilot-mention {
    display: inline-block;
    background: color-mix(in srgb, var(--accent1, #00bfcf) 14%, transparent);
    border-radius: 4px;
    padding: 0 5px;
    color: #67e8f9;
    font-weight: 600;
}

.di-copilot-wz-card {
    gap: 8px;
}

.di-copilot-wz-progress {
    display: flex;
    gap: 5px;
    align-items: center;
}

.di-copilot-wz-dot {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.di-copilot-wz-dot.is-done {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 55%, transparent);
}

.di-copilot-wz-dot.is-active {
    background: var(--accent1, #00bfcf);
}

.di-copilot-wz-progress-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
}

.di-copilot-wz-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.di-copilot-wz-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.di-copilot-wz-hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #94a3b8;
}

.di-copilot-wz-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.di-copilot-wz-field--toggle {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.di-copilot-wz-field--toggle .di-copilot-wz-label {
    flex: 1;
    min-width: 0;
}

.di-copilot-wz-field--toggle .di-copilot-wz-field-hint {
    display: none;
}

.di-copilot-wz-label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.di-copilot-wz-req {
    color: #f87171;
    margin-left: 3px;
}

.di-copilot-wz-field-hint {
    font-size: 0.72rem;
    color: #8b9bb4;
    line-height: 1.35;
}

.di-copilot-wz-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 0.82rem;
    font-family: inherit;
    color: #f8fafc;
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.15s ease;
}

.di-copilot-wz-input:focus {
    border-color: var(--accent1, #00bfcf);
    box-shadow: none !important;
}

.di-copilot-wz-textarea {
    resize: vertical;
    min-height: 64px;
    line-height: 1.4;
}

.di-copilot-wz-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.di-copilot-wz-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    box-shadow: none !important;
}

.di-copilot-wz-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.di-copilot-wz-row-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent1, #00bfcf);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.di-copilot-wz-row-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.di-copilot-wz-row-remove,
.di-copilot-wz-add,
.di-copilot-wz-btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.di-copilot-wz-row-remove:hover:not(:disabled),
.di-copilot-wz-add:hover:not(:disabled),
.di-copilot-wz-btn--ghost:hover:not(:disabled) {
    border-color: var(--accent1, #00bfcf);
    color: #67e8f9;
}

.di-copilot-wz-add {
    align-self: flex-start;
    border-style: dashed;
}

.di-copilot-wz-error {
    font-size: 0.78rem;
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
}

.di-copilot-wz-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.di-copilot-wz-nav-spacer {
    flex: 1;
}

.di-copilot-wz-btn {
    margin-top: 0;
}

.di-copilot-wz-card.is-locked .di-copilot-wz-body {
    display: none;
}

.di-copilot-wz-field--invalid > .di-copilot-wz-label {
    color: #fca5a5;
}

.di-copilot-wz-field--invalid .di-copilot-wz-input,
.di-copilot-wz-field--invalid .custom-select-trigger {
    border-color: #f87171 !important;
    background: rgba(239, 68, 68, 0.08) !important;
    box-shadow: none !important;
}

.di-copilot-wz-field--invalid .di-copilot-wz-input:focus {
    border-color: #f87171 !important;
}

.di-copilot-wz-field--invalid.di-copilot-wz-field--repeater > .di-copilot-wz-rows {
    outline: 1px solid #f87171;
    outline-offset: 2px;
    border-radius: 6px;
}

.di-copilot-preview-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 2px;
}

.di-copilot-preview-wrap {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #313338;
    box-sizing: border-box;
    width: 100%;
}

.di-copilot-preview-wrap .discord-mock-message {
    padding: 12px 14px;
    gap: 12px;
    background: transparent;
    font-size: 0.84rem;
    line-height: 1.35;
    border-radius: 0;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.di-copilot-preview-wrap .discord-bot-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
    flex-shrink: 0;
}

.di-copilot-preview-wrap .discord-msg-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.di-copilot-preview-wrap .discord-msg-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.di-copilot-preview-wrap .discord-bot-name {
    font-size: 0.86rem;
    font-weight: 600;
}

.di-copilot-preview-wrap .discord-bot-badge {
    font-size: 0.58rem;
    padding: 1px 4px;
}

.di-copilot-preview-wrap .discord-msg-timestamp {
    font-size: 0.68rem;
}

.di-copilot-preview-wrap .discord-embed {
    max-width: 100%;
    margin-top: 4px;
    border-radius: 4px;
    background: #2b2d31;
    border: 1px solid rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.di-copilot-preview-wrap .discord-embed-color-bar {
    width: 4px;
    flex-shrink: 0;
    border-radius: 4px 0 0 4px;
}

.di-copilot-preview-wrap .discord-embed-body {
    padding: 8px 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.di-copilot-preview-wrap .discord-embed-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.di-copilot-preview-wrap .discord-embed-description {
    font-size: 0.82rem;
    line-height: 1.38;
    color: #dbdee1;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
}

.di-copilot-preview-wrap .discord-embed-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.72rem;
    color: #949ba4;
    word-break: break-word;
}

.di-copilot-preview-wrap .discord-text-content {
    font-size: 0.84rem;
    line-height: 1.38;
    color: #dbdee1;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    margin-top: 4px;
}

.di-copilot-preview-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #949ba4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.di-copilot-preview-wrap .discord-preview-empty {
    font-style: italic;
    color: #80848e;
}

.di-copilot-preview-wrap .discord-embed-thumbnail {
    float: right;
    margin-left: 12px;
    margin-bottom: 6px;
}

.di-copilot-preview-wrap .discord-embed-thumbnail img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
}

.di-copilot-preview-wrap .discord-embed-image {
    margin-top: 8px;
}

.di-copilot-preview-wrap .discord-embed-image img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    display: block;
}

.di-copilot-preview-wrap .discord-link {
    color: #00a8fc;
    text-decoration: none;
}

.di-copilot-preview-wrap .di-copilot-img-blocked {
    display: inline-block;
    max-width: 100%;
    margin-top: 8px;
    padding: 4px 8px;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 4px;
    font-size: 0.72rem;
    color: #94a3b8;
    overflow-wrap: anywhere;
}

.di-copilot-preview-wrap .discord-link:hover {
    text-decoration: underline;
}

.di-copilot-preview-wrap .discord-mention {
    color: #c9cdfb;
    background: rgba(88, 101, 242, 0.3);
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 500;
}

.di-copilot-preview-wrap .discord-mention.discord-mention-special {
    color: #f0b232;
    background: rgba(240, 178, 50, 0.15);
}

.di-copilot-preview-wrap .discord-custom-emoji {
    width: 20px;
    height: 20px;
    vertical-align: -4px;
    object-fit: contain;
}
.di-copilot-confirm-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.08);
}

.di-copilot-confirm-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fca5a5;
}

.di-copilot-confirm-refs {
    font-size: 0.8rem;
    color: #fcd34d;
}

.di-copilot-undo-note {
    font-size: 0.75rem;
    color: #fcd34d;
    align-self: center;
}

.di-copilot-confirm-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.85rem;
}

.di-copilot-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.di-copilot-type-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent1, #00bfcf) 45%, transparent);
    background: color-mix(in srgb, var(--accent1, #00bfcf) 10%, transparent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.di-copilot-type-option:hover:not(:disabled) {
    background: color-mix(in srgb, var(--accent1, #00bfcf) 22%, transparent);
    border-color: var(--accent1, #00bfcf);
}

.di-copilot-type-option:disabled {
    opacity: 0.45;
    cursor: default;
}
