:root {
    color-scheme: dark;
    --bg: #08090d;
    --surface: #0d0e14;
    --surface-2: #12131b;
    --panel: #11121a;
    --panel-strong: #151622;
    --line: rgba(139, 92, 246, 0.26);
    --line-soft: rgba(244, 244, 244, 0.09);
    --text: #f3f0fa;
    --muted: #9a94a8;
    --purple: #8b5cf6;
    --brand: var(--purple);
    --purple-2: #c084fc;
    --pink: #f472b6;
    --cyan: #22d3ee;
    --green: #22c55e;
    --red: #ef4444;
}

* {
    scrollbar-color: rgba(139, 92, 246, 0.55) rgba(244, 244, 244, 0.04);
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: #111827;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a,
button,
input,
textarea,
select {
    letter-spacing: 0;
}

.shell {
    width: min(1480px, 100%);
    margin: 0 auto;
}

.topbar {
    border-bottom: 1px solid var(--line-soft);
    background: rgba(8, 9, 13, 0.94);
    backdrop-filter: blur(12px);
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    box-shadow: none;
}

.panel-strong {
    background: var(--panel-strong);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
}

.glow-line {
    display: none;
}

.app-sidebar {
    background: #090a0f;
}

.brand-link:hover .brand-text {
    color: #F4F4F4;
}

.brand-mark {
    background: #151322;
    border: 1px solid rgba(139, 92, 246, 0.24);
}

.user-chip {
    max-width: min(16rem, 42vw);
}

.user-chip span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-text {
    color: #f5f3ff;
}

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

.hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.role-checklist {
    display: grid;
    gap: 0.15rem;
    max-height: 15rem;
    overflow-y: auto;
    padding: 0.55rem;
    background: rgba(244, 244, 244, 0.72);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(244, 244, 244, 0.24);
    scrollbar-color: #b58dff transparent;
    scrollbar-width: thin;
}

.role-checklist::-webkit-scrollbar {
    width: 0.65rem;
}

.role-checklist::-webkit-scrollbar-track {
    background: transparent;
}

.role-checklist::-webkit-scrollbar-thumb {
    background: #b58dff;
    border-radius: 999px;
}

.role-checklist.is-disabled {
    opacity: 0.62;
    background: rgba(244, 244, 244, 0.42);
}

.role-checklist.is-disabled .role-check-row {
    cursor: not-allowed;
}

.role-checklist.is-disabled .role-check-row:hover {
    background: transparent;
}

.role-check-row {
    display: grid;
    grid-template-columns: 1.1rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    min-height: 1.7rem;
    padding: 0.2rem 0.25rem;
    color: var(--text);
    font-weight: 650;
    border-radius: 6px;
    cursor: pointer;
}

.role-check-row:hover {
    background: rgba(0, 98, 255, 0.08);
}

.role-check-row input {
    width: 0.95rem;
    height: 0.95rem;
    accent-color: var(--blue, #0062ff);
}

.role-check-row input:disabled {
    cursor: not-allowed;
}

.role-check-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-tag-caption {
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(0, 98, 255, 0.16);
    border-radius: 6px;
    background: rgba(0, 98, 255, 0.06);
}

.tag-role-section.is-disabled .role-tag-caption {
    border-color: rgba(120, 113, 108, 0.18);
    background: rgba(120, 113, 108, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    font-weight: 700;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
    transform: none;
}

.btn-primary {
    background: #7c3aed;
    color: #F4F4F4;
    box-shadow: none;
}

.btn-secondary {
    background: #171821;
    border: 1px solid var(--line-soft);
    color: #F4F4F4;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.32);
    color: #fecaca;
}

.btn-disabled {
    background: rgba(244, 244, 244, 0.04);
    border: 1px solid rgba(244, 244, 244, 0.08);
    color: #8b819c;
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
}

.icon-btn {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
}

.field,
.select,
.textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--line-soft);
    background: #0b0c12;
    color: var(--text);
    outline: none;
    padding: 0.75rem 0.85rem;
}

.textarea {
    min-height: 7rem;
    resize: vertical;
}

.field:focus,
.select:focus,
.textarea:focus {
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

.label {
    display: block;
    margin-bottom: 0.4rem;
    color: #d8ccff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.help {
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.channel-select-search {
    display: grid;
    gap: 0.32rem;
    margin-bottom: 0.48rem;
}

.channel-select-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
}

.channel-select-search-input {
    min-height: 38px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.channel-select-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 0.76rem;
    border-radius: 8px;
    border: 1px solid var(--line-soft);
    background: rgba(244, 244, 244, 0.04);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
}

.channel-select-clear:hover {
    border-color: rgba(139, 92, 246, 0.44);
    color: var(--text);
}

.channel-select-meta {
    min-height: 1rem;
    color: var(--muted);
    font-size: 0.72rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 1.75rem;
    border-radius: 6px;
    border: 1px solid var(--line-soft);
    background: rgba(244, 244, 244, 0.06);
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.badge-good {
    border-color: rgba(34, 197, 94, 0.34);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.badge-warn {
    border-color: rgba(251, 191, 36, 0.34);
    background: rgba(251, 191, 36, 0.1);
    color: #fde68a;
}

.badge-bad {
    border-color: rgba(239, 68, 68, 0.34);
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.data-table th {
    color: var(--muted);
    font-size: 0.72rem;
    text-align: left;
    text-transform: uppercase;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(244, 244, 244, 0.1);
}

.data-table td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(244, 244, 244, 0.05);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    border-radius: 8px;
    color: #bdb6ca;
    padding: 0.64rem 0.72rem;
    font-weight: 700;
}

.nav-link:hover {
    background: #12131b;
    color: #F4F4F4;
}

.nav-link-active {
    background: #17142a;
    color: #F4F4F4;
    border: 1px solid rgba(139, 92, 246, 0.28);
}

.guild-card,
.guild-info {
    background: #0f1017;
    border: 1px solid rgba(244, 244, 244, 0.08);
    border-radius: 8px;
}

.sidebar-heading {
    color: #d9d4e7;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    padding: 0 0 0.55rem;
    text-transform: uppercase;
}

.info-list {
    padding: 0;
}

.info-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0.75rem;
    align-items: center;
    min-height: 1.8rem;
    border-top: 1px solid rgba(244, 244, 244, 0.06);
    color: var(--muted);
    font-size: 0.76rem;
}

.info-row:first-child {
    border-top: 0;
}

.info-row strong {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    min-width: 0;
    color: #efeaf8;
    font-weight: 700;
    text-align: right;
}

.status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #22c55e;
}

.sidebar-invoices {
    box-shadow: none;
}

.invoice-mini {
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(244, 244, 244, 0.07);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.65rem;
    color: #eee9ff;
}

.invoice-mini-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.invoice-mini-thumb {
    width: 2.8rem;
    height: 2.8rem;
    flex: 0 0 auto;
    border-radius: 8px;
    border: 1px solid rgba(244, 244, 244, 0.12);
    object-fit: cover;
    background: rgba(244, 244, 244, 0.05);
}

.invoice-mini-thumb-empty,
.invoice-thumb-empty {
    display: inline-grid;
    place-items: center;
    color: var(--muted);
}

.invoice-mini:hover {
    border-color: rgba(192, 132, 252, 0.35);
    background: rgba(139, 92, 246, 0.12);
}

.invoice-mini-top,
.invoice-mini-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    min-width: 0;
}

.invoice-mini-top {
    font-size: 0.72rem;
}

.invoice-mini-bottom {
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.68rem;
}

.sidebar-empty {
    border-radius: 8px;
    border: 1px dashed rgba(244, 244, 244, 0.12);
    color: var(--muted);
    font-size: 0.78rem;
    padding: 0.9rem;
    text-align: center;
}

.invoice-image-link {
    display: inline-flex;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: zoom-in;
    outline: none;
}

.invoice-image-link:focus-visible {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.34);
}

.invoice-thumb {
    width: 4.75rem;
    height: 3.5rem;
    border-radius: 8px;
    border: 1px solid rgba(244, 244, 244, 0.12);
    object-fit: cover;
    background: rgba(244, 244, 244, 0.05);
}

.invoice-thumb-large {
    width: 6rem;
    height: 4.25rem;
}

.invoice-thumb-empty {
    width: 4.75rem;
    height: 3.5rem;
    border-radius: 8px;
    border: 1px dashed rgba(244, 244, 244, 0.14);
    background: rgba(244, 244, 244, 0.04);
}

.invoice-preview-modal {
    width: min(940px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    padding: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.invoice-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.invoice-preview-frame {
    min-height: 0;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}

.invoice-preview-frame img {
    display: block;
    width: min(100%, 900px);
    height: auto;
    margin: 0 auto;
}

.setup-progress {
    height: 0.45rem;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(244, 244, 244, 0.08);
    background: rgba(244, 244, 244, 0.05);
}

.setup-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #22c55e;
}

.setup-checklist-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.setup-check-item {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
    gap: 0.7rem;
    align-items: center;
    min-height: 3.7rem;
    border-radius: 8px;
    border: 1px solid rgba(244, 244, 244, 0.08);
    background: #0b0c12;
    color: #f3f0fa;
    padding: 0.65rem 0.75rem;
}

.setup-check-item:hover {
    border-color: rgba(192, 132, 252, 0.28);
    background: #101119;
}

.setup-check-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
}

.setup-check-item.is-done .setup-check-icon {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.setup-check-copy {
    min-width: 0;
}

.setup-check-title,
.setup-check-detail {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.setup-check-title {
    font-size: 0.9rem;
    font-weight: 800;
}

.setup-check-detail {
    color: var(--muted);
    font-size: 0.78rem;
}

.setup-check-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4rem;
    border-radius: 6px;
    border: 1px solid var(--line-soft);
    padding: 0.24rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.invoice-report-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.4rem;
}

.invoice-report-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    border-radius: 6px;
    border: 1px solid rgba(244, 244, 244, 0.08);
    background: rgba(244, 244, 244, 0.04);
    color: var(--muted);
    padding: 0.26rem 0.58rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.invoice-report-strip strong {
    color: #f3f0fa;
}

.invoice-filter-panel {
    display: grid;
    grid-template-columns: minmax(13rem, 1.5fr) repeat(4, minmax(8.25rem, 1fr)) auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(244, 244, 244, 0.08);
    background: #0d0e14;
    padding: 0.9rem;
}

.invoice-filter-main,
.invoice-filter-field {
    min-width: 0;
}

.invoice-filter-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0.55rem;
    min-width: max-content;
}

.invoice-filter-panel .field:disabled,
.invoice-filter-panel .select:disabled,
.invoice-export-btn:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.invoice-filter-panel .field:disabled,
.invoice-filter-panel .select:disabled {
    background: #0a0b10;
    color: #7f778b;
}

.invoice-export-btn:disabled {
    color: #8b819c;
}

.invoice-search {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
    width: min(100%, 42rem);
}

.invoice-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.invoice-search-field {
    padding-left: 2.35rem;
}

.toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text);
    cursor: pointer;
}

.toggle-row input {
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
    accent-color: var(--purple);
}

.toggle-row strong,
.toggle-row small {
    display: block;
}

.toggle-row small {
    margin-top: 0.15rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.roster-voice-box {
    border: 1px solid rgba(244, 244, 244, 0.08);
    border-radius: 8px;
    background: rgba(244, 244, 244, 0.025);
    padding: 1rem;
}

.roster-multi {
    min-height: 6.5rem;
}

.roster-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.roster-type-card,
.ticket-panel-card,
.ticket-v2-card,
.ticket-link-card {
    border: 1px solid rgba(244, 244, 244, 0.08);
    border-radius: 8px;
    background: #0f1017;
    padding: 1rem;
}

.ticket-v2-card .badge {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    aspect-ratio: auto;
    justify-content: center;
    white-space: nowrap;
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
}

.roster-color-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 4px rgba(244, 244, 244, 0.06);
}

.roster-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(244, 244, 244, 0.07);
    border-radius: 8px;
    background: rgba(244, 244, 244, 0.025);
    padding: 0.85rem 1rem;
}

.verify-preview {
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.22);
    background: #0d0e14;
    padding: 1rem;
}

.verify-preview-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(244, 244, 244, 0.07);
}

.verify-preview-message {
    margin: 1rem 0;
    color: #d9d3e8;
    line-height: 1.6;
    white-space: pre-wrap;
}

.review-list {
    display: grid;
    gap: 0.85rem;
}

.review-card {
    display: grid;
    gap: 0.75rem;
    border: 1px solid rgba(244, 244, 244, 0.08);
    border-radius: 8px;
    background: #0f1017;
    padding: 1rem;
}

.review-card-top,
.review-card-meta,
.review-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.review-card h3 {
    overflow: hidden;
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.review-card p {
    color: var(--muted);
    line-height: 1.55;
}

.review-stars {
    color: #f59e0b;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0;
}

.review-card-meta {
    color: var(--muted);
    font-size: 0.78rem;
}

.review-image-link {
    color: var(--purple);
    font-size: 0.82rem;
    font-weight: 800;
}

.review-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
}

.toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    max-width: min(24rem, calc(100vw - 2rem));
    border-radius: 8px;
    border: 1px solid rgba(192, 132, 252, 0.36);
    background: rgba(20, 15, 34, 0.98);
    color: #F4F4F4;
    padding: 0.9rem 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .data-table {
        min-width: 640px;
    }

    .setup-check-item {
        grid-template-columns: 2rem minmax(0, 1fr);
    }

    .setup-check-state {
        grid-column: 2;
        justify-self: start;
    }

    .invoice-report-strip {
        justify-content: flex-start;
    }

    .invoice-filter-panel {
        grid-template-columns: 1fr;
    }

    .invoice-filter-actions {
        justify-content: stretch;
        min-width: 0;
    }

    .invoice-filter-actions .btn {
        flex: 1 1 auto;
    }

    .invoice-search {
        flex-direction: column;
    }
}

@media (min-width: 769px) and (max-width: 1180px) {
    .invoice-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invoice-filter-main,
    .invoice-filter-actions {
        grid-column: 1 / -1;
    }
}

/* Claude black/white dashboard integration */
:root {
    color-scheme: light;
    --bg: #F4F4F4;
    --surface: rgba(244, 244, 244, 0.86);
    --surface-2: rgba(244, 244, 244, 0.86);
    --panel: rgba(244, 244, 244, 0.88);
    --panel-strong: rgba(244, 244, 244, 0.9);
    --hover: rgba(0, 98, 255, 0.08);
    --line: rgba(18, 24, 38, 0.12);
    --line-soft: rgba(18, 24, 38, 0.16);
    --line-strong: #171717;
    --text: #0a0a0a;
    --muted: #5f5d57;
    --faint: #858178;
    --blue: #0062ff;
    --brand: var(--blue);
    --violet: #6853ed;
    --purple: #6853ed;
    --purple-2: #0062ff;
    --pink: #0a0a0a;
    --cyan: #0a0a0a;
    --green: #1f8a4c;
    --red: #b4321e;
}

html,
body {
    height: 100%;
}

body {
    background:
        linear-gradient(135deg, #F4F4F4 0%, #F4F4F4 36%, rgba(0, 98, 255, 0.16) 66%, rgba(104, 83, 237, 0.22) 100%);
    background-attachment: fixed;
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0;
}

body,
button,
input,
textarea,
select {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dashboard-root {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 56px 1fr;
}

.dashboard-frame {
    min-height: 0;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 300px;
    overflow: hidden;
}

.dashboard-root.no-guild .dashboard-frame {
    display: block;
    overflow-y: auto;
}

.dashboard-root.no-guild .app-main {
    min-height: calc(100vh - 56px);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 244, 244, 0.78);
    backdrop-filter: blur(14px);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    height: 100%;
    padding-right: 14px;
    border-right: 1px solid var(--line);
}

.brand-mark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: var(--surface);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
    border: 0;
}

.brand-logo-mark {
    overflow: hidden;
    background: #F4F4F4;
    border: 1px solid rgba(18, 24, 38, 0.14);
}

.brand-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.16);
}

.brand-preview-logo {
    overflow: hidden;
    background: #F4F4F4;
    border: 1px solid rgba(18, 24, 38, 0.14);
}

.brand-preview-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
}

.brand-copy {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.brand-text {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.brand-version {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
}

.topbar-search {
    position: relative;
    width: min(360px, 40vw);
}

.topbar-search input {
    width: 100%;
    height: 32px;
    padding: 0 32px 0 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(244, 244, 244, 0.58);
    color: var(--text);
    outline: 0;
}

.topbar-search input:focus {
    background: var(--surface);
    border-color: var(--blue);
    box-shadow: none;
}

.topbar-search svg {
    position: absolute;
    left: 9px;
    top: 8px;
    color: var(--muted);
}

.topbar-search kbd {
    position: absolute;
    top: 7px;
    right: 8px;
    padding: 1px 5px;
    border: 1px solid var(--line-soft);
    border-radius: 3px;
    background: var(--surface);
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
}

.topbar-spacer {
    flex: 1;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: min(18rem, 44vw);
    padding: 4px 6px 4px 4px;
    border-radius: 6px;
    background: transparent;
    border: 0;
}

.user-chip:hover {
    background: var(--hover);
}

.user-chip img {
    border: 1px solid var(--line);
}

.user-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.icon-btn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: var(--muted);
}

.icon-btn:hover {
    background: var(--hover);
    color: var(--text);
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 30px;
    min-width: 0;
    padding: 0 10px;
    gap: 6px;
    border-radius: 6px;
    font-weight: 800;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(244, 244, 244, 0.58);
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.logout-btn span {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
}

.logout-btn svg,
.logout-btn i {
    flex: 0 0 auto;
}

.logout-btn:hover {
    border-color: rgba(0, 98, 255, 0.28);
    background: rgba(244, 244, 244, 0.82);
}

.activity-card {
    min-height: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(244, 244, 244, 0.56);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.activity-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.activity-card-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #0062ff;
    background: rgba(0, 98, 255, 0.1);
}

.activity-card h3 {
    font-weight: 900;
    line-height: 1.1;
}

.activity-card-head p,
.activity-empty,
.activity-row-main p,
.activity-row-main span,
.activity-row-side span {
    color: var(--muted);
}

.activity-empty {
    display: grid;
    place-items: center;
    min-height: 112px;
    text-align: center;
    font-size: 13px;
}

.activity-list {
    display: grid;
    gap: 10px;
}

.activity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 8px;
    background: rgba(244, 244, 244, 0.72);
}

.activity-row-main {
    min-width: 0;
}

.activity-row-main h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.activity-row-main p,
.activity-row-main span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}

.activity-row-side {
    min-width: 64px;
    text-align: right;
}

.activity-row-side strong,
.activity-row-side span {
    display: block;
}

.activity-row-side strong {
    font-size: 18px;
    line-height: 1;
}

.activity-row-side span {
    margin-top: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.activity-open {
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    color: #0062ff;
    background: rgba(0, 98, 255, 0.08);
    font-size: 12px;
    font-weight: 900;
}

.app-sidebar,
.app-rightbar {
    min-height: 0;
    overflow-y: auto;
    background: rgba(244, 244, 244, 0.72);
    backdrop-filter: blur(14px);
}

.app-sidebar {
    border-right: 1px solid var(--line);
    padding: 14px 10px 24px;
}

.app-rightbar {
    border-left: 1px solid var(--line);
}

.app-main {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 28px;
    background: transparent;
}

.app-main > .mb-8:first-child,
.app-main > form,
.app-main > section,
.app-main > div {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.nav-server-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.nav-server-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line);
    object-fit: cover;
    flex: 0 0 auto;
}

.nav-server-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: var(--surface);
    font-weight: 800;
}

.nav-server-name,
.nav-server-id {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-server-name {
    font-size: 13px;
    font-weight: 700;
}

.nav-server-id {
    color: var(--muted);
    font-size: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.nav-section,
.side-title,
.sidebar-heading {
    padding: 14px 10px 6px;
    color: var(--faint);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #1f1f1f;
    font-weight: 600;
    border: 0;
}

.nav-link:hover {
    background: var(--hover);
    color: var(--blue);
}

.nav-link-active {
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: var(--surface);
    border: 0;
    box-shadow: 0 10px 28px rgba(0, 98, 255, 0.16);
}

.nav-link svg {
    opacity: 0.72;
}

.nav-link-active svg {
    opacity: 1;
}

.resource-widget {
    margin: 2px 0 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(244, 244, 244, 0.54);
    box-shadow: inset 0 1px 0 rgba(244, 244, 244, 0.48);
}

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

.resource-head {
    color: var(--text);
    font-size: 11px;
    font-weight: 800;
}

.resource-head span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.resource-head strong {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 2px 6px;
    background: rgba(31, 138, 76, 0.12);
    color: var(--green);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.resource-row {
    margin-top: 10px;
    color: var(--muted);
    font-size: 10px;
}

.resource-row strong {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 10px;
    font-weight: 800;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-meter {
    height: 7px;
    margin-top: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(18, 24, 38, 0.1);
}

.resource-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    transition: width 220ms ease;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 9px;
}

.resource-grid div {
    min-width: 0;
    border: 1px solid rgba(18, 24, 38, 0.1);
    border-radius: 6px;
    background: rgba(244, 244, 244, 0.58);
    padding: 7px;
}

.resource-grid span,
.resource-grid strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-grid span {
    color: var(--faint);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.resource-grid strong {
    margin-top: 3px;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
}

.resource-status-block {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid rgba(18, 24, 38, 0.1);
}

.resource-status-title {
    color: var(--faint);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.resource-status-list {
    display: grid;
    gap: 6px;
    margin-top: 7px;
}

.resource-latency-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.resource-latency-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.resource-latency-grid div {
    min-width: 0;
    border: 1px solid rgba(18, 24, 38, 0.1);
    border-radius: 6px;
    background: rgba(244, 244, 244, 0.58);
    padding: 7px;
}

.resource-latency-grid span,
.resource-latency-grid strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.resource-latency-grid span {
    color: var(--faint);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.resource-latency-grid strong {
    margin-top: 3px;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 900;
}

.resource-latency-grid .is-good strong {
    color: var(--green);
}

.resource-latency-grid .is-warn strong {
    color: #8a5b12;
}

.resource-latency-grid .is-bad strong {
    color: var(--red);
}

.resource-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 24px;
    color: var(--muted);
    font-size: 10px;
}

.resource-service span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.resource-service strong {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 2px 6px;
    background: rgba(180, 50, 30, 0.1);
    color: var(--red);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.resource-service-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(180, 50, 30, 0.1);
}

.resource-service.is-online strong {
    background: rgba(31, 138, 76, 0.12);
    color: var(--green);
}

.resource-service.is-online .resource-service-dot {
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(31, 138, 76, 0.12);
}

.resource-service.is-warning strong {
    background: rgba(138, 91, 18, 0.12);
    color: #8a5b12;
}

.resource-service.is-warning .resource-service-dot {
    background: #c78b22;
    box-shadow: 0 0 0 3px rgba(199, 139, 34, 0.12);
}

.resource-updated {
    margin-top: 8px;
    color: var(--faint);
    font-size: 10px;
}

.resource-provider {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid rgba(18, 24, 38, 0.1);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(244, 244, 244, 0.72), rgba(244, 244, 244, 0.52)),
        linear-gradient(135deg, rgba(0, 98, 255, 0.08), rgba(104, 83, 237, 0.09));
    color: var(--faint);
    text-decoration: none;
}

.resource-provider span {
    color: var(--faint);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.resource-provider img {
    display: block;
    width: auto;
    max-width: 104px;
    height: 18px;
    object-fit: contain;
}

.resource-provider:hover {
    border-color: rgba(0, 98, 255, 0.24);
    background: rgba(244, 244, 244, 0.76);
}

.resource-widget-offline .resource-head strong {
    background: rgba(180, 50, 30, 0.12);
    color: var(--red);
}

.resource-widget-offline .resource-meter span {
    background: var(--red);
}

.side-block {
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.server-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.server-icon,
.server-icon-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex: 0 0 auto;
}

.server-icon {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: var(--surface);
    font-size: 18px;
    font-weight: 800;
}

.server-icon-img {
    object-fit: cover;
    border: 1px solid var(--line);
}

.server-name {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.server-id {
    margin-top: 2px;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
}

.server-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.panel,
.panel-strong,
.guild-info,
.guild-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(10, 10, 10, 0.04), 0 1px 2px rgba(10, 10, 10, 0.04);
}

.muted,
.help {
    color: var(--muted);
}

.label {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
}

.field,
.select,
.textarea {
    border: 1px solid var(--line-soft);
    background: var(--surface);
    color: var(--text);
    border-radius: 6px;
}

.field:focus,
.select:focus,
.textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.1);
}

.btn {
    min-height: 2.25rem;
    border-radius: 6px;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: var(--surface);
}

.btn-primary:hover {
    filter: brightness(0.96);
}

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--hover);
}

.btn-danger {
    background: #f4e8e5;
    border-color: #efc5bc;
    color: var(--red);
}

.badge {
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    font-size: 11px;
}

.badge-good {
    border-color: #cfe4d4;
    background: #e4eee5;
    color: var(--green);
}

.badge-warn {
    border-color: #ecd8ad;
    background: #efe6cf;
    color: #8a5b12;
}

.badge-bad {
    border-color: #edc6bf;
    background: #edddd9;
    color: var(--red);
}

.brand-text,
.text-white,
.text-purple-200,
.text-cyan-200,
.text-pink-200 {
    color: var(--text) !important;
}

.text-green-200,
.text-green-300 {
    color: var(--green) !important;
}

.text-zinc-400 {
    color: var(--muted) !important;
}

.info-list {
    gap: 0;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 28px;
    padding: 5px 0;
    border: 0;
    color: var(--muted);
    font-size: 12px;
}

.info-row strong {
    min-width: 0;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    margin-right: 7px;
    background: var(--green);
    vertical-align: middle;
}

.status-dot.off {
    background: var(--red);
}

.status-dot.on {
    background: var(--green);
}

.divider {
    height: 1px;
    margin: 8px 0;
    background: var(--line);
}

.sidebar-empty {
    border: 1px dashed var(--line-soft);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
    padding: 1rem;
    text-align: center;
}

.invoice-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.invoice-mini:hover {
    background: transparent;
}

.invoice-mini-thumb {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid var(--line);
    object-fit: cover;
}

.invoice-mini-body {
    min-width: 0;
    flex: 1;
}

.invoice-mini-top,
.invoice-mini-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.invoice-mini-top {
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
}

.invoice-mini-bottom {
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
}

.data-table th {
    color: var(--muted);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

.data-table td {
    border-bottom: 1px solid var(--line);
}

.table-wrap {
    border-color: var(--line);
    background: var(--surface);
}

.setup-progress,
.setup-progress span {
    background: var(--line);
}

.setup-progress span {
    background: var(--text);
}

.setup-check-item,
.roster-type-card,
.ticket-panel-card,
.ticket-v2-card,
.ticket-link-card,
.roster-list-row,
.roster-voice-box,
.verify-preview,
.invoice-filter-panel {
    border-color: var(--line);
    background: var(--surface);
}

.setup-check-item:hover,
.roster-type-card:hover,
.ticket-panel-card:hover,
.ticket-v2-card:hover,
.ticket-link-card:hover {
    background: var(--surface-2);
}

.invoice-filter-panel .field:disabled,
.invoice-filter-panel .select:disabled {
    background: #e9e7df;
    color: var(--faint);
}

.invoice-thumb-empty,
.invoice-mini-thumb-empty,
.sidebar-empty,
.setup-check-icon {
    background: var(--surface-2);
    border-color: var(--line);
}

.setup-checklist h2 {
    min-width: 0;
    color: var(--text);
    line-height: 1.15;
}

.setup-checklist h2 svg {
    flex: 0 0 auto;
}

.setup-checklist .badge {
    flex: 0 0 auto;
    background: rgba(244, 244, 244, 0.74);
    color: var(--text);
}

.setup-check-item {
    color: var(--text);
    background: rgba(244, 244, 244, 0.72);
}

.setup-check-title {
    color: var(--text);
}

.setup-check-detail {
    color: var(--muted);
}

.setup-check-icon {
    color: var(--blue);
}

.setup-check-item.is-done .setup-check-icon {
    color: var(--green);
}

.setup-check-state.badge-warn {
    border-color: #ecd8ad;
    background: #efe6cf;
    color: #8a5b12;
}

.setup-check-state.badge-good {
    border-color: #cfe4d4;
    background: #e4eee5;
    color: var(--green);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.module-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(244, 244, 244, 0.66);
    padding: 16px;
    cursor: pointer;
}

.review-card {
    border-color: var(--line);
    background: rgba(244, 244, 244, 0.66);
}

.review-card p,
.review-card-meta {
    color: var(--muted);
}

.review-stars {
    color: var(--blue);
}

.review-image-link {
    color: var(--blue);
}

.module-card-on {
    border-color: rgba(0, 98, 255, 0.28);
    background: rgba(244, 244, 244, 0.86);
}

.module-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--muted);
}

.module-card-on .module-icon {
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: #F4F4F4;
}

.module-copy {
    min-width: 0;
}

.module-title,
.module-desc {
    display: block;
}

.module-title {
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
}

.module-desc {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.module-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.module-switch span {
    display: block;
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #d8d8d8;
    transition: background 160ms ease;
}

.module-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #F4F4F4;
    box-shadow: 0 2px 8px rgba(18, 24, 38, 0.18);
    transition: transform 160ms ease;
}

.module-switch input:checked + span {
    background: linear-gradient(135deg, var(--blue), var(--violet));
}

.module-switch input:checked + span::after {
    transform: translateX(20px);
}

.module-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.modal-backdrop {
    background: rgba(20, 20, 18, 0.42);
}

.toast {
    background: var(--text);
    color: var(--surface);
    border-color: var(--text);
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.12), 0 2px 6px rgba(10, 10, 10, 0.08);
}

body.is-navigating {
    cursor: progress;
}

body.is-navigating::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 42%;
    height: 3px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    animation: dashboard-load-bar 900ms ease-in-out infinite;
}

@keyframes dashboard-load-bar {
    0% {
        transform: translateX(-100%);
    }

    55% {
        transform: translateX(130%);
    }

    100% {
        transform: translateX(240%);
    }
}

.dashboard-skeleton {
    max-width: 1200px;
    margin: 0 auto;
}

.skeleton-title {
    display: grid;
    gap: 10px;
    margin-bottom: 28px;
}

.skeleton-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.skeleton-content-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
}

.skeleton-line,
.skeleton-block,
.skeleton-card,
.skeleton-panel {
    display: block;
    overflow: hidden;
    position: relative;
    border-radius: 7px;
    background: rgba(244, 244, 244, 0.62);
}

.skeleton-line::after,
.skeleton-block::after,
.skeleton-card::after,
.skeleton-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(0, 98, 255, 0.14), transparent);
    animation: skeleton-shimmer 1.15s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-line {
    height: 14px;
}

.skeleton-line.w-35 {
    width: 35%;
    height: 34px;
}

.skeleton-line.w-45 {
    width: 45%;
}

.skeleton-line.w-55 {
    width: 55%;
}

.skeleton-line.w-70 {
    width: 70%;
}

.skeleton-card {
    height: 118px;
}

.skeleton-panel {
    min-height: 330px;
}

.invoice-mini-skeleton .invoice-mini {
    pointer-events: none;
}

.invoice-mini-skeleton .invoice-mini-thumb {
    border: 0;
}

.not-found-page {
    min-height: calc(100vh - 56px);
    width: 100%;
    max-width: none !important;
    margin: -28px !important;
    width: calc(100% + 56px);
    display: grid;
    place-items: center;
    padding: 44px 22px;
    background:
        linear-gradient(120deg, rgba(244, 244, 244, 0.98), rgba(244, 244, 244, 0.82) 42%, rgba(0, 98, 255, 0.18) 74%, rgba(104, 83, 237, 0.22)),
        linear-gradient(rgba(18, 24, 38, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 24, 38, 0.035) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
}

.not-found-shell {
    width: min(1060px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: stretch;
    border: 1px solid rgba(18, 24, 38, 0.14);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(244, 244, 244, 0.88), rgba(244, 244, 244, 0.68)),
        linear-gradient(135deg, rgba(0, 98, 255, 0.08), rgba(104, 83, 237, 0.08));
    box-shadow: 0 26px 90px rgba(18, 24, 38, 0.16);
    padding: 18px;
}

.not-found-copy {
    min-width: 0;
    padding: 34px;
}

.not-found-code {
    display: block;
    margin-top: 34px;
    color: var(--text);
    font-size: 7rem;
    font-weight: 950;
    line-height: 1;
    letter-spacing: 0;
}

.not-found-logo {
    width: 72px;
    height: 72px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #F4F4F4;
    box-shadow: 0 16px 36px rgba(0, 98, 255, 0.18);
}

.not-found-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.14);
}

.not-found-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    border: 1px solid rgba(0, 98, 255, 0.16);
    border-radius: 999px;
    background: rgba(244, 244, 244, 0.68);
    padding: 8px 12px;
    color: var(--blue);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.not-found-copy h1 {
    max-width: 560px;
    margin-top: 28px;
    color: var(--text);
    font-size: 3.2rem;
    font-weight: 950;
    line-height: 1;
}

.not-found-copy-text {
    max-width: 540px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.not-found-path {
    min-width: 0;
    border: 1px solid rgba(18, 24, 38, 0.12);
    border-radius: 12px;
    background: rgba(244, 244, 244, 0.74);
    padding: 12px;
}

.not-found-path span,
.not-found-path strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.not-found-path span {
    color: var(--faint);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.not-found-path strong {
    margin-top: 5px;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.not-found-visual {
    min-width: 0;
    display: grid;
    align-content: space-between;
    gap: 16px;
    border: 1px solid rgba(18, 24, 38, 0.12);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(10, 10, 10, 0.92), rgba(24, 24, 28, 0.9)),
        linear-gradient(rgba(244, 244, 244, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 244, 244, 0.06) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
    color: #F4F4F4;
    padding: 18px;
}

.not-found-visual-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    color: rgba(244, 244, 244, 0.76);
    font-size: 12px;
    font-weight: 800;
}

.not-found-terminal-dots {
    display: inline-flex;
    gap: 6px;
}

.not-found-terminal-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ef4444;
}

.not-found-terminal-dots i:nth-child(2) {
    background: #f59e0b;
}

.not-found-terminal-dots i:nth-child(3) {
    background: #22c55e;
}

.not-found-visual .not-found-path {
    border-color: rgba(244, 244, 244, 0.12);
    background: rgba(244, 244, 244, 0.08);
}

.not-found-visual .not-found-path span {
    color: rgba(244, 244, 244, 0.48);
}

.not-found-visual .not-found-path strong {
    color: #F4F4F4;
}

.not-found-trace {
    display: grid;
    gap: 8px;
}

.trace-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    border: 1px solid rgba(244, 244, 244, 0.11);
    border-radius: 12px;
    background: rgba(244, 244, 244, 0.07);
    padding: 9px 10px;
    color: rgba(244, 244, 244, 0.82);
    font-size: 12px;
    font-weight: 800;
}

.trace-row span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.trace-row.is-ok span {
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

.trace-row.is-missing span {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.trace-line {
    width: 2px;
    height: 18px;
    margin-left: 20px;
    background: linear-gradient(180deg, rgba(0, 98, 255, 0.5), rgba(104, 83, 237, 0.12));
}

.not-found-suggestions {
    display: grid;
    gap: 10px;
}

.not-found-suggestions a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border: 1px solid rgba(244, 244, 244, 0.11);
    border-radius: 12px;
    background: rgba(244, 244, 244, 0.08);
    color: #F4F4F4;
    padding: 10px 12px;
    font-weight: 800;
}

.not-found-suggestions a:hover {
    border-color: rgba(244, 244, 244, 0.22);
    background: rgba(244, 244, 244, 0.12);
}

html {
    scroll-behavior: smooth;
}

.app-main > .home-page {
    max-width: none;
    margin: 0;
}

.home-page {
    overflow: hidden;
    color: var(--text);
}

.home-hero {
    min-height: calc(100vh - 56px);
    display: grid;
    place-items: center;
    padding: clamp(44px, 7vw, 92px) 22px;
    background:
        linear-gradient(120deg, rgba(244, 244, 244, 0.94), rgba(244, 244, 244, 0.72) 45%, rgba(0, 98, 255, 0.18) 72%, rgba(104, 83, 237, 0.2)),
        linear-gradient(rgba(18, 24, 38, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 24, 38, 0.035) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
}

.home-hero-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    text-align: center;
}

.home-eyebrow,
.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-eyebrow {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(244, 244, 244, 0.7);
}

.home-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    box-shadow: 0 0 0 5px rgba(0, 98, 255, 0.1);
}

.home-title {
    margin-top: 22px;
    color: var(--text);
    font-size: clamp(58px, 10vw, 136px);
    font-weight: 950;
    line-height: 0.9;
    letter-spacing: 0;
}

.home-subtitle {
    width: min(760px, 100%);
    margin: 24px auto 0;
    color: var(--muted);
    font-size: clamp(17px, 2.2vw, 24px);
    line-height: 1.45;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.home-hosting-provider {
    width: fit-content;
    max-width: min(100%, 360px);
    min-height: 46px;
    margin: 18px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(18, 24, 38, 0.12);
    border-radius: 999px;
    background: rgba(244, 244, 244, 0.74);
    box-shadow: 0 14px 46px rgba(18, 24, 38, 0.08);
    padding: 8px 14px 8px 16px;
    color: var(--muted);
    text-decoration: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.home-hosting-provider:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 98, 255, 0.26);
    background: rgba(244, 244, 244, 0.9);
    box-shadow: 0 18px 56px rgba(0, 98, 255, 0.12);
}

.home-hosting-provider span {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hosting-provider img {
    display: block;
    width: auto;
    max-width: 156px;
    height: 24px;
    object-fit: contain;
}

.home-limited {
    width: min(760px, 100%);
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(18, 24, 38, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(244, 244, 244, 0.86), rgba(244, 244, 244, 0.62)),
        linear-gradient(135deg, rgba(0, 98, 255, 0.14), rgba(104, 83, 237, 0.14));
    box-shadow: 0 20px 70px rgba(18, 24, 38, 0.12);
    padding: 16px;
    text-align: left;
}

.home-limited-copy {
    min-width: 0;
}

.home-limited-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border: 1px solid rgba(0, 98, 255, 0.16);
    border-radius: 999px;
    background: rgba(244, 244, 244, 0.72);
    color: var(--blue);
    padding: 4px 9px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.home-limited strong {
    display: block;
    margin-top: 9px;
    color: var(--text);
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 950;
    line-height: 1;
}

.home-limited p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.home-limited-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.home-preview {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    width: min(900px, 100%);
    margin: 44px auto 0;
    padding: 16px;
    border: 1px solid rgba(18, 24, 38, 0.14);
    border-radius: 18px;
    background: rgba(244, 244, 244, 0.74);
    box-shadow: 0 28px 90px rgba(18, 24, 38, 0.14);
    transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transform-style: preserve-3d;
}

.home-preview-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.home-preview-top .brand-preview-logo {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    flex: 0 0 auto;
}

.home-preview-top strong,
.home-preview-top span {
    display: block;
}

.home-preview-top strong {
    color: var(--text);
    font-size: 14px;
}

.home-preview-top div span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.home-preview-status {
    margin-left: auto;
    border-radius: 999px;
    background: rgba(31, 138, 76, 0.12);
    color: var(--green);
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
}

.home-preview-grid {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 220px;
    gap: 12px;
    padding: 12px 0 0;
}

.home-preview-panel {
    min-height: 184px;
    border: 1px solid rgba(18, 24, 38, 0.1);
    border-radius: 12px;
    background: rgba(244, 244, 244, 0.68);
    padding: 14px;
    text-align: left;
}

.home-preview-menu {
    display: grid;
    gap: 8px;
}

.home-preview-menu span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border-radius: 8px;
    padding: 8px;
    color: var(--muted);
    font-weight: 700;
}

.home-preview-menu .is-active {
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: #F4F4F4;
}

.home-mini-chart {
    display: flex;
    align-items: end;
    gap: 10px;
    height: 94px;
    padding: 8px 4px;
}

.home-mini-chart span {
    flex: 1;
    border-radius: 999px 999px 5px 5px;
    background: linear-gradient(180deg, var(--blue), var(--violet));
}

.home-preview-lines {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.home-preview-lines span,
.home-preview-invoices span {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: rgba(18, 24, 38, 0.1);
}

.home-preview-lines span:nth-child(1) {
    width: 78%;
}

.home-preview-lines span:nth-child(2) {
    width: 58%;
}

.home-preview-lines span:nth-child(3) {
    width: 68%;
}

.home-preview-invoices {
    display: grid;
    align-content: start;
    gap: 12px;
}

.home-preview-invoices strong {
    margin-bottom: 4px;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    width: min(900px, 100%);
    margin: 22px auto 0;
}

.home-stats div {
    border: 1px solid rgba(18, 24, 38, 0.1);
    border-radius: 12px;
    background: rgba(244, 244, 244, 0.58);
    padding: 14px;
    text-align: left;
}

.home-stats strong,
.home-stats span {
    display: block;
}

.home-stats strong {
    font-size: 20px;
    font-weight: 900;
}

.home-stats span {
    color: var(--muted);
    font-size: 12px;
}

.home-section {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(54px, 7vw, 90px) 0;
}

.home-section-head {
    max-width: 720px;
    margin-bottom: 28px;
}

.home-section-head h2,
.home-cta h2 {
    margin-top: 10px;
    color: var(--text);
    font-size: clamp(30px, 4.6vw, 58px);
    font-weight: 950;
    line-height: 1;
}

.home-section-head p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.home-reason-grid,
.home-feature-grid,
.home-flow {
    display: grid;
    gap: 14px;
}

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

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

.home-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-reason,
.home-feature-card,
.home-flow article {
    min-height: 100%;
    border: 1px solid rgba(18, 24, 38, 0.12);
    border-radius: 14px;
    background: rgba(244, 244, 244, 0.66);
    padding: 22px;
}

.home-reason span,
.home-flow article span,
.home-feature-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: #F4F4F4;
    font-weight: 900;
}

.home-reason h3,
.home-feature-card h3,
.home-flow article h3 {
    margin-top: 18px;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.home-reason p,
.home-feature-card p,
.home-flow article p {
    margin-top: 9px;
    color: var(--muted);
    line-height: 1.6;
}

.home-flow-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-cta {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto clamp(44px, 7vw, 84px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(18, 24, 38, 0.12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(244, 244, 244, 0.78), rgba(0, 98, 255, 0.1), rgba(104, 83, 237, 0.12));
    padding: clamp(24px, 5vw, 42px);
}

.motion-ready [data-animate] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 520ms ease,
        transform 520ms cubic-bezier(.2, .7, .2, 1),
        filter 520ms ease;
    transition-delay: var(--animate-delay, 0ms);
    filter: blur(6px);
}

.motion-ready [data-animate="scale-in"] {
    transform: translateY(16px) scale(0.975);
}

.motion-ready [data-animate].is-visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

.motion-ready [data-animate="scale-in"].is-visible.home-preview {
    transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.panel,
.panel-strong,
.guild-card,
.setup-check-item,
.roster-type-card,
.roster-list-row,
.resource-widget,
.home-reason,
.home-feature-card,
.home-flow article,
.module-card,
.home-preview,
.not-found-shell,
.server-card,
.invoice-mini {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease,
        filter 180ms ease;
}

.btn,
.nav-link,
.icon-btn,
.brand-link,
.data-table tbody tr,
.home-preview-menu span {
    transition:
        transform 160ms ease,
        background 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 98, 255, 0.14);
}

.btn:active,
.icon-btn:active {
    transform: translateY(1px) scale(0.99);
}

.panel:hover,
.panel-strong:hover,
.home-reason:hover,
.home-feature-card:hover,
.home-flow article:hover,
.module-card:hover,
.not-found-shell:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 98, 255, 0.26);
    box-shadow: 0 18px 48px rgba(18, 24, 38, 0.1);
}

.nav-link:hover {
    transform: translateX(3px);
}

.data-table tbody tr:hover {
    background: rgba(0, 98, 255, 0.045);
}

.home-mini-chart span {
    animation: home-bar-rise 900ms cubic-bezier(.2, .7, .2, 1) both;
}

.home-mini-chart span:nth-child(2) {
    animation-delay: 90ms;
}

.home-mini-chart span:nth-child(3) {
    animation-delay: 160ms;
}

.home-mini-chart span:nth-child(4) {
    animation-delay: 230ms;
}

.home-mini-chart span:nth-child(5) {
    animation-delay: 300ms;
}

@keyframes home-bar-rise {
    from {
        transform: scaleY(0.15);
        transform-origin: bottom;
    }

    to {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
}

@media (max-width: 1180px) {
    .dashboard-frame {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .app-rightbar {
        display: none;
    }
}

@media (max-width: 760px) {
    .dashboard-root {
        display: block;
    }

    .topbar {
        position: static;
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        padding: 10px;
    }

    .brand-link {
        min-width: 0;
        border-right: 0;
    }

    .topbar-search {
        order: 4;
        width: 100%;
    }

    .dashboard-frame {
        display: block;
        overflow: visible;
    }

    .app-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .app-main {
        overflow: visible;
        padding: 18px;
    }

    .skeleton-card-grid,
    .skeleton-content-grid {
        grid-template-columns: 1fr;
    }

    .not-found-page {
        margin: -18px !important;
        width: calc(100% + 36px);
        padding: 22px;
    }

    .not-found-shell {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px;
    }

    .not-found-copy {
        padding: 20px;
    }

    .not-found-code {
        margin-top: 24px;
        font-size: 4.2rem;
    }

    .not-found-logo {
        width: 56px;
        height: 56px;
    }

    .not-found-copy h1 {
        font-size: 2.1rem;
    }

    .not-found-visual {
        padding: 14px;
    }

    .home-preview-grid,
    .home-reason-grid,
    .home-feature-grid,
    .home-flow,
    .home-stats {
        grid-template-columns: 1fr;
    }

    .home-preview {
        transform: none !important;
    }

    .home-title {
        font-size: clamp(48px, 18vw, 80px);
    }

    .home-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-limited {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }

    .home-hosting-provider {
        width: 100%;
        max-width: 100%;
        border-radius: 14px;
    }

    .home-hosting-provider img {
        max-width: 140px;
    }

    .home-limited-actions {
        justify-content: center;
    }

    .module-grid,
    .module-card {
        grid-template-columns: 1fr;
    }

    .module-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Responsive polish pass: 720p through 4K, tablet, and phones */
:root {
    --dashboard-sidebar-w: clamp(212px, 11.5vw, 258px);
    --dashboard-rightbar-w: clamp(280px, 16vw, 360px);
    --dashboard-content-max: 1560px;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

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

.app-main,
.app-sidebar,
.app-rightbar,
.panel,
.panel-strong,
.server-card,
.table-wrap {
    min-width: 0;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
}

.dashboard-frame {
    grid-template-columns: var(--dashboard-sidebar-w) minmax(0, 1fr) var(--dashboard-rightbar-w);
}

.app-main {
    --main-pad: clamp(18px, 1.45vw, 36px);
    padding: var(--main-pad);
}

.app-main > .mb-8:first-child,
.app-main > form,
.app-main > section,
.app-main > div {
    max-width: min(var(--dashboard-content-max), 100%);
}

.not-found-page {
    margin: calc(var(--main-pad) * -1) !important;
    width: calc(100% + (var(--main-pad) * 2));
}

.home-hero-inner,
.home-section,
.home-cta {
    width: min(1440px, calc(100% - 44px));
}

.home-preview,
.home-stats {
    width: min(1080px, 100%);
}

@media (min-width: 1920px) {
    :root {
        --dashboard-content-max: 1680px;
    }

    .dashboard-root.has-guild .dashboard-frame {
        max-width: 2200px;
        width: 100%;
        margin: 0 auto;
        border-left: 1px solid var(--line);
        border-right: 1px solid var(--line);
    }

    .home-hero-inner,
    .home-section,
    .home-cta {
        width: min(1520px, calc(100% - 88px));
    }
}

@media (max-width: 1360px) and (min-width: 921px) {
    .dashboard-frame {
        grid-template-columns: 218px minmax(0, 1fr);
    }

    .app-rightbar {
        display: none;
    }

    .topbar-search {
        width: min(300px, 32vw);
    }

    .app-main {
        --main-pad: 20px;
    }
}

@media (max-height: 760px) and (min-width: 921px) {
    .topbar {
        height: 50px;
    }

    .dashboard-root {
        grid-template-rows: 50px 1fr;
    }

    .app-sidebar {
        padding-top: 10px;
    }

    .nav-section,
    .side-title,
    .sidebar-heading {
        padding-top: 10px;
    }

    .nav-link {
        min-height: 30px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .resource-widget {
        padding: 8px;
    }

    .app-main {
        --main-pad: 18px;
    }

    .home-hero {
        min-height: auto;
        padding-top: 42px;
        padding-bottom: 42px;
    }
}

@media (max-width: 920px) {
    .dashboard-root {
        display: block;
        min-height: 100vh;
    }

    .topbar {
        position: sticky;
        top: 0;
        height: auto;
        min-height: 54px;
        flex-wrap: wrap;
        padding: 9px 12px;
    }

    .brand-link {
        min-width: 0;
        height: 38px;
        border-right: 0;
        padding-right: 0;
    }

    .topbar-search {
        order: 5;
        width: 100%;
    }

    .dashboard-frame {
        display: block;
        overflow: visible;
    }

    .app-sidebar {
        min-height: 0;
        max-height: none;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 10px 12px;
    }

    .nav-server-mini {
        padding: 4px 2px 10px;
        margin-bottom: 8px;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        overflow-x: visible;
        overflow-y: hidden;
        padding-bottom: 6px;
        scrollbar-width: thin;
        overscroll-behavior-x: contain;
    }

    .nav-section {
        display: none;
    }

    .nav-link {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .nav-link:hover {
        transform: none;
    }

    .resource-widget {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
        order: 20;
        margin: 4px 0 0;
    }

    .resource-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .app-main {
        --main-pad: 16px;
        overflow: visible;
        padding: var(--main-pad);
    }

    .app-main > .mb-8:first-child {
        margin-bottom: 18px;
    }

    .app-main > .grid,
    .app-main > form.grid,
    .app-main > section.grid,
    .app-main .grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .table-wrap {
        border-radius: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .data-table {
        min-width: 680px;
    }

    .invoice-filter-panel,
    .module-grid,
    .roster-type-grid,
    .home-preview-grid,
    .home-reason-grid,
    .home-feature-grid,
    .home-flow,
    .home-stats {
        grid-template-columns: 1fr;
    }

    .home-hero {
        min-height: auto;
        padding: 52px 18px;
    }

    .home-preview {
        transform: none !important;
    }

    .home-section,
    .home-cta {
        width: min(calc(100% - 32px), 900px);
    }

    .not-found-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 12px;
    }

    .topbar {
        gap: 8px;
    }

    .brand-copy {
        gap: 5px;
    }

    .brand-version,
    .user-copy,
    .topbar-search {
        display: none;
    }

    .topbar .btn {
        min-height: 36px;
        padding: 0.5rem 0.68rem;
        font-size: 12px;
    }

    .app-sidebar {
        padding: 9px 10px;
    }

    .nav-server-mini {
        gap: 8px;
    }

    .nav-server-icon {
        width: 28px;
        height: 28px;
    }

    .nav-server-name {
        font-size: 12px;
    }

    .nav-server-id {
        max-width: 11rem;
    }

    .nav-link {
        min-height: 36px;
        gap: 8px;
        padding: 7px 10px;
        font-size: 12px;
    }

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

    .resource-status-list {
        gap: 4px;
    }

    .app-main {
        --main-pad: 12px;
    }

    .app-main .grid {
        grid-template-columns: 1fr !important;
    }

    .panel,
    .panel-strong {
        border-radius: 10px;
    }

    .btn {
        min-height: 38px;
        padding: 0.56rem 0.72rem;
    }

    .data-table {
        min-width: 620px;
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 0.72rem 0.78rem;
    }

    .invoice-filter-actions,
    .module-actions,
    .not-found-actions,
    .home-actions {
        width: 100%;
    }

    .invoice-filter-actions .btn,
    .module-actions .btn,
    .not-found-actions .btn,
    .home-actions .btn {
        flex: 1 1 100%;
    }

    .home-title {
        font-size: 3.2rem;
        line-height: 0.95;
    }

    .home-subtitle {
        font-size: 1rem;
    }

    .home-preview,
    .home-reason,
    .home-feature-card,
    .home-flow article,
    .home-cta {
        border-radius: 12px;
    }

    .not-found-page {
        padding: 14px;
    }

    .not-found-copy {
        padding: 18px;
    }

    .not-found-code {
        font-size: 4rem;
    }

    .not-found-copy h1 {
        font-size: 2rem;
    }

    .not-found-visual {
        padding: 12px;
    }

    .modal-backdrop {
        align-items: flex-end;
        padding: 10px;
    }

    .modal-backdrop > form,
    .modal-backdrop > div {
        max-height: calc(100vh - 24px);
        overflow-y: auto;
    }
}

@media (max-width: 380px) {
    .brand-text {
        max-width: 8.2rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-title {
        font-size: 2.75rem;
    }

    .not-found-code {
        font-size: 3.4rem;
    }

    .not-found-copy h1 {
        font-size: 1.72rem;
    }
}

.emoji-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.emoji-input-wrap .field {
    width: 100%;
    padding-right: 3rem;
}

.emoji-input-button {
    position: absolute;
    right: .35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: .65rem;
    background: rgba(244, 244, 244, .72);
    color: #111827;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.emoji-input-button:hover {
    background: #F4F4F4;
    border-color: rgba(0, 98, 255, .34);
    color: #0062ff;
}

.emoji-input-button svg {
    width: 1rem;
    height: 1rem;
}

.emoji-picker {
    position: fixed;
    z-index: 3200;
    border: 1px solid rgba(17, 24, 39, .18);
    border-radius: .75rem;
    background: #3b4650;
    color: #f8fafc;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
    overflow: hidden;
    animation: emojiPickerIn .14s ease-out;
}

.emoji-picker.hidden {
    display: none;
}

.emoji-picker-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .1rem;
    padding: .35rem .45rem .2rem;
    background: #2e3740;
    border-bottom: 1px solid rgba(244, 244, 244, .08);
}

.emoji-picker-tab {
    height: 2rem;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #0d1117;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .45rem .45rem 0 0;
    cursor: pointer;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.emoji-picker-tab svg {
    width: 1.15rem;
    height: 1.15rem;
    stroke-width: 2.35;
}

.emoji-picker-tab:hover,
.emoji-picker-tab.is-active {
    color: #e9ddff;
    background: rgba(104, 83, 237, .18);
    border-bottom-color: #b65cff;
}

.emoji-picker-search {
    width: calc(100% - .75rem);
    height: 2rem;
    margin: .35rem .375rem .15rem;
    border: 1px solid rgba(0, 0, 0, .34);
    border-radius: .65rem;
    background: #52606c;
    color: #F4F4F4;
    outline: 0;
    padding: 0 .65rem;
    font: inherit;
}

.emoji-picker-search::placeholder {
    color: rgba(244, 244, 244, .55);
}

.emoji-picker-search:focus {
    border-color: #b65cff;
    box-shadow: 0 0 0 2px rgba(182, 92, 255, .25);
}

.emoji-picker-title {
    margin: .2rem .4rem .35rem;
    background: #f4f4f4;
    color: #20262d;
    font-weight: 700;
    line-height: 1.7rem;
    padding: 0 .45rem;
}

.emoji-picker-grid {
    min-height: 8.5rem;
    max-height: 15rem;
    overflow-y: auto;
    padding: .35rem .45rem .55rem;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: .25rem;
}

.emoji-picker-grid.has-custom {
    grid-template-columns: repeat(9, minmax(0, 1fr));
}

.emoji-picker-item {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: .42rem;
    background: transparent;
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
    cursor: pointer;
    transition: background .12s ease, transform .12s ease;
}

.emoji-picker-item:hover {
    background: rgba(244, 244, 244, .16);
    transform: translateY(-1px);
}

.emoji-picker-custom-item img {
    width: 1.7rem;
    height: 1.7rem;
    object-fit: contain;
    border-radius: .3rem;
    display: block;
    flex: 0 0 auto;
}

.emoji-picker-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 1.4rem .5rem;
    color: rgba(244, 244, 244, .72);
    text-align: center;
    font-weight: 700;
}

.dashboard-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, .54);
    backdrop-filter: blur(10px);
}

.dashboard-dialog-backdrop.hidden {
    display: none;
}

.dashboard-dialog {
    width: min(440px, 100%);
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 1rem;
    background: rgba(244, 244, 244, .96);
    box-shadow: 0 26px 80px rgba(15, 23, 42, .28);
    color: #111827;
    padding: 1.25rem;
    animation: emojiPickerIn .14s ease-out;
}

.dashboard-dialog-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .85rem;
    color: #0062ff;
    background: linear-gradient(135deg, rgba(0, 98, 255, .12), rgba(104, 83, 237, .18));
    margin-bottom: 1rem;
}

.dashboard-dialog-copy h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
}

.dashboard-dialog-copy p {
    margin: .45rem 0 0;
    color: #4b5563;
    line-height: 1.55;
}

.dashboard-dialog-input {
    margin-top: 1rem;
}

.dashboard-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.2rem;
}

.dashboard-dialog-actions .btn {
    min-width: 6.25rem;
}

@keyframes emojiPickerIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 520px) {
    .emoji-picker {
        position: fixed;
        left: 10px !important;
        right: 10px;
        top: auto !important;
        bottom: 10px;
        width: auto !important;
    }

    .emoji-picker-grid,
    .emoji-picker-grid.has-custom {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        max-height: 13rem;
    }
}

html,
body {
    min-height: 100%;
    background:
        linear-gradient(135deg, #F4F4F4 0%, #F4F4F4 24%, rgba(0, 98, 255, 0.22) 58%, rgba(104, 83, 237, 0.32) 100%);
    background-attachment: fixed;
    background-size: 100% 100%;
}

.dashboard-root,
.dashboard-root.has-guild .dashboard-frame {
    width: 100%;
}

@media (min-width: 1920px) {
    .dashboard-root.has-guild .dashboard-frame {
        max-width: none;
        margin: 0;
        border-left: 0;
        border-right: 0;
    }
}

.price-cell {
    color: #0f9f5f;
    vertical-align: middle;
}

.price-line {
    display: inline-block;
    min-width: 10rem;
}

.live-price-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: .55rem;
    padding: .22rem .5rem;
    border: 1px solid rgba(0, 98, 255, .24);
    border-radius: 999px;
    background: rgba(0, 98, 255, .08);
    color: #0057e6;
    font-family: var(--font-main);
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.auto-currency-toggle {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: .9rem;
    background: rgba(244, 244, 244, .64);
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auto-currency-toggle:hover {
    border-color: rgba(0, 98, 255, .32);
    background: rgba(244, 244, 244, .86);
}

.auto-currency-toggle input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #0062ff;
}

.auto-currency-icon {
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    background: linear-gradient(135deg, rgba(0, 98, 255, .12), rgba(104, 83, 237, .16));
    color: #0062ff;
}

.auto-currency-toggle strong,
.auto-currency-toggle small {
    display: block;
}

.auto-currency-toggle small {
    margin-top: .12rem;
    color: rgba(17, 24, 39, .58);
    font-weight: 700;
}

.live-locked-field {
    background:
        linear-gradient(#F4F4F4, #F4F4F4) padding-box,
        linear-gradient(135deg, rgba(0, 98, 255, .42), rgba(104, 83, 237, .38)) border-box;
    border-color: transparent;
    color: #0f172a;
}

.channel-native-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.channel-combobox {
    position: relative;
    width: 100%;
}

.channel-combo-control {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.75rem;
}

.channel-combo-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.channel-combo-input::-webkit-search-cancel-button {
    cursor: pointer;
}

.channel-combo-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-soft);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: rgba(244, 244, 244, .78);
    color: rgba(17, 24, 39, .72);
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.channel-combo-toggle:hover {
    background: #F4F4F4;
    color: #0062ff;
    border-color: rgba(0, 98, 255, .34);
}

.channel-combo-toggle svg {
    width: 1rem;
    height: 1rem;
    transition: transform .16s ease;
}

.channel-combobox.is-open .channel-combo-toggle svg {
    transform: rotate(180deg);
}

.channel-combo-menu {
    position: absolute;
    z-index: 1300;
    left: 0;
    right: 0;
    top: calc(100% + .42rem);
    display: none;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .14);
    border-radius: .9rem;
    background: rgba(244, 244, 244, .98);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .2);
}

.channel-combobox.is-open .channel-combo-menu {
    display: block;
    animation: comboIn .14s ease-out;
}

.channel-combo-list {
    max-height: 17rem;
    overflow-y: auto;
    padding: .45rem;
}

.channel-combo-option {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .16rem .75rem;
    align-items: center;
    padding: .7rem .75rem;
    border: 0;
    border-radius: .65rem;
    background: transparent;
    color: #111827;
    text-align: left;
    cursor: pointer;
    transition: background .14s ease, color .14s ease, transform .14s ease;
}

.channel-combo-option:hover,
.channel-combo-option:focus {
    outline: 0;
    background: rgba(0, 98, 255, .08);
}

.channel-combo-option.is-selected {
    background: linear-gradient(135deg, rgba(0, 98, 255, .13), rgba(104, 83, 237, .16));
}

.channel-combo-option.is-empty {
    color: rgba(17, 24, 39, .62);
}

.channel-combo-text {
    grid-column: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.channel-combo-id {
    grid-column: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(17, 24, 39, .48);
    font-size: .72rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.channel-combo-check {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: .2rem .5rem;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, .1);
    color: rgba(17, 24, 39, .58);
    font-size: .7rem;
    font-weight: 800;
}

.channel-combo-option.is-selected .channel-combo-check {
    border-color: rgba(0, 98, 255, .24);
    background: rgba(0, 98, 255, .1);
    color: #0057e6;
}

.channel-combo-empty {
    padding: 1.25rem .75rem;
    color: rgba(17, 24, 39, .58);
    font-weight: 800;
    text-align: center;
}

.channel-combo-meta {
    border-top: 1px solid rgba(17, 24, 39, .08);
    padding: .6rem .8rem;
    background: rgba(248, 250, 252, .92);
    color: rgba(17, 24, 39, .58);
    font-size: .72rem;
    font-weight: 700;
}

@keyframes comboIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .channel-combo-menu {
        position: fixed;
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 12px;
        max-height: 70vh;
    }

    .channel-combo-list {
        max-height: calc(70vh - 3.5rem);
    }
}

.discord-preview-card,
.verify-preview {
    background: #313338 !important;
    border-color: rgba(0, 0, 0, .36) !important;
    color: #f2f3f5 !important;
}

.discord-preview-card .text-white,
.discord-preview-card .font-bold,
.discord-preview-card #previewTitle,
.discord-preview-card #tosPreviewTitle,
.verify-preview #previewTitle {
    color: #f2f3f5 !important;
}

.discord-preview-card .text-zinc-300,
.discord-preview-card #previewDescription,
.discord-preview-card #tosPreviewText,
.verify-preview .verify-preview-message {
    color: #dbdee1 !important;
}

.discord-preview-card .text-zinc-400,
.discord-preview-card .muted,
.discord-preview-card #previewFooter,
.discord-preview-card #tosPreviewFooter,
.discord-preview-note,
.verify-preview .muted {
    color: #b5bac1 !important;
}

.discord-preview-card .badge {
    background: #f2f3f5 !important;
    border-color: rgba(244, 244, 244, .14) !important;
    color: #111827 !important;
}

.discord-preview-select {
    background: #1e1f22 !important;
    border: 1px solid rgba(244, 244, 244, .08);
    color: #dbdee1 !important;
}

.verify-preview-header {
    border-bottom-color: rgba(244, 244, 244, .1) !important;
}

.server-search-panel {
    position: sticky;
    top: 70px;
    z-index: 5;
}

.server-search-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
}

.server-search-box > svg {
    color: var(--muted);
}

.server-search-box .field {
    min-height: 2.75rem;
}

.home-new-section {
    border-top: 1px solid var(--line);
}

.home-feature-card-accent {
    background:
        linear-gradient(135deg, rgba(244, 244, 244, .74), rgba(244, 244, 244, .58)),
        linear-gradient(135deg, rgba(0, 98, 255, .1), rgba(104, 83, 237, .12));
}

.home-preview-section {
    border-bottom: 1px solid var(--line);
}

.home-live-section {
    border-bottom: 1px solid var(--line);
}

.home-live-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 16px;
    align-items: stretch;
}

.home-live-card {
    min-width: 0;
    border: 1px solid rgba(18, 24, 38, .12);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(244, 244, 244, .78), rgba(244, 244, 244, .62)),
        linear-gradient(135deg, rgba(0, 98, 255, .08), rgba(104, 83, 237, .1));
    box-shadow: 0 22px 70px rgba(18, 24, 38, .09);
    padding: 20px;
}

.home-live-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.home-live-card-head span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--text);
    font-size: .95rem;
    font-weight: 950;
}

.home-live-card-head > strong {
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(31, 138, 76, .12);
    color: var(--green);
    padding: 5px 9px;
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.home-live-ram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
    color: var(--muted);
    font-weight: 800;
}

.home-live-ram strong {
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.home-live-meter {
    height: 10px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(18, 24, 38, .1);
}

.home-live-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    transition: width 240ms ease;
}

.home-live-metrics,
.home-ping-grid {
    display: grid;
    gap: 10px;
}

.home-live-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
}

.home-live-metrics div,
.home-ping-grid div {
    min-width: 0;
    border: 1px solid rgba(18, 24, 38, .1);
    border-radius: 12px;
    background: rgba(244, 244, 244, .58);
    padding: 12px;
}

.home-live-metrics span,
.home-live-metrics strong,
.home-ping-grid span,
.home-ping-grid strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-live-metrics span,
.home-ping-grid span {
    color: var(--faint);
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-live-metrics strong,
.home-ping-grid strong {
    margin-top: 5px;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .82rem;
    font-weight: 950;
}

.home-live-services {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.home-live-services div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    border: 1px solid rgba(18, 24, 38, .09);
    border-radius: 12px;
    background: rgba(244, 244, 244, .48);
    padding: 8px 10px;
    color: var(--muted);
    font-weight: 800;
}

.home-live-services span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.home-live-services i {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(180, 50, 30, .1);
}

.home-live-services strong {
    color: var(--red);
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
}

.home-live-services .is-online i {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(31, 138, 76, .12);
}

.home-live-services .is-online strong {
    color: var(--green);
}

.home-live-services .is-warning i {
    background: #c78b22;
    box-shadow: 0 0 0 4px rgba(199, 139, 34, .12);
}

.home-live-services .is-warning strong {
    color: #8a5b12;
}

.home-live-ping > p {
    margin-top: 12px;
    color: var(--muted);
    font-weight: 800;
}

.home-ping-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.home-ping-grid div:first-child {
    grid-column: 1 / -1;
}

.home-ping-grid .is-good strong {
    color: var(--green);
}

.home-ping-grid .is-warn strong {
    color: #8a5b12;
}

.home-ping-grid .is-bad strong {
    color: var(--red);
}

.home-live-updated {
    margin-top: 14px;
    color: var(--faint);
    font-size: .78rem;
    font-weight: 800;
}

.home-live-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(560px, 100%);
    min-height: 56px;
    margin: 18px auto 0;
    padding: 10px 18px;
    border: 1px solid rgba(18, 24, 38, .12);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(244, 244, 244, .8), rgba(244, 244, 244, .58)),
        linear-gradient(135deg, rgba(0, 98, 255, .09), rgba(104, 83, 237, .11));
    box-shadow: 0 18px 60px rgba(18, 24, 38, .08);
    color: var(--muted);
    text-decoration: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.home-live-provider:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 98, 255, .26);
    background: rgba(244, 244, 244, .88);
    box-shadow: 0 20px 64px rgba(0, 98, 255, .1);
}

.home-live-provider span {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .7rem;
    font-weight: 950;
    text-transform: uppercase;
}

.home-live-provider img {
    display: block;
    width: auto;
    max-width: 180px;
    height: 28px;
    object-fit: contain;
}

.home-system-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-system-preview-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 18px;
    border: 1px solid rgba(18, 24, 38, .12);
    border-radius: 16px;
    background: rgba(244, 244, 244, .68);
    box-shadow: 0 18px 48px rgba(18, 24, 38, .06);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.home-system-preview-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 98, 255, .28);
    box-shadow: 0 22px 58px rgba(18, 24, 38, .11);
}

.home-system-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.home-system-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: #F4F4F4;
}

.home-system-card-top span:not(.home-system-icon) {
    display: block;
    color: var(--blue);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-system-card-top h3 {
    margin-top: 2px;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 950;
}

.home-system-preview-card > p {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.55;
}

.home-system-screen {
    margin-top: auto;
    padding-top: 18px;
}

.home-system-screen-head {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid rgba(18, 24, 38, .1);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: #15171d;
    color: #f2f3f5;
}

.home-system-screen-head > span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #ef4444;
}

.home-system-screen-head > span:nth-child(2) {
    background: #f59e0b;
}

.home-system-screen-head > span:nth-child(3) {
    background: #22c55e;
}

.home-system-screen-head strong {
    margin-left: auto;
    font-size: .74rem;
    font-weight: 900;
}

.home-system-screen-body {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(18, 24, 38, .1);
    border-radius: 0 0 12px 12px;
    background: rgba(244, 244, 244, .78);
}

.home-system-stat {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
}

.home-system-stat strong {
    color: var(--text);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 950;
    line-height: .9;
}

.home-system-stat span {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-align: right;
}

.home-system-list {
    display: grid;
    gap: 8px;
}

.home-system-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 7px 9px;
    border: 1px solid rgba(18, 24, 38, .08);
    border-radius: 8px;
    background: rgba(244, 244, 244, .66);
    color: var(--text);
    font-size: .8rem;
    font-weight: 800;
}

.home-system-list svg {
    flex: 0 0 auto;
    color: #0062ff;
}

.home-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.home-module-grid article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    min-height: 100%;
    padding: 18px;
    border: 1px solid rgba(18, 24, 38, .12);
    border-radius: 14px;
    background: rgba(244, 244, 244, .64);
}

.home-module-grid article > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: rgba(0, 98, 255, .09);
    color: #0062ff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .78rem;
    font-weight: 900;
}

.home-module-grid h3 {
    color: var(--text);
    font-size: 16px;
    font-weight: 900;
}

.home-module-grid p {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.55;
}

.home-command-section {
    border-top: 1px solid var(--line);
}

.home-command-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-command-grid article {
    min-height: 100%;
    padding: 22px;
    border: 1px solid rgba(18, 24, 38, .12);
    border-radius: 14px;
    background: rgba(244, 244, 244, .66);
}

.home-command-label {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 98, 255, .12), rgba(104, 83, 237, .14));
    color: #0057e6;
    font-size: .75rem;
    font-weight: 900;
}

.home-command-grid code {
    display: block;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid rgba(18, 24, 38, .1);
    border-radius: 10px;
    background: rgba(244, 244, 244, .72);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    line-height: 1.6;
    white-space: normal;
}

.home-command-grid p {
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.home-module-grid article,
.home-command-grid article {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.home-module-grid article:hover,
.home-command-grid article:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 98, 255, .26);
    box-shadow: 0 18px 48px rgba(18, 24, 38, .1);
}

@media (max-width: 640px) {
    .server-search-panel {
        position: static;
    }

    .server-search-box {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .server-search-box .badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 1180px) {
    .home-live-grid,
    .home-system-preview-grid,
    .home-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-live-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .home-live-grid,
    .home-system-preview-grid,
    .home-module-grid,
    .home-command-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-live-card {
        border-radius: 16px;
        padding: 16px;
    }

    .home-live-card-head,
    .home-live-ram {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-live-card-head {
        gap: 10px;
    }

    .home-live-ram {
        gap: 6px;
    }

    .home-live-metrics,
    .home-ping-grid {
        grid-template-columns: 1fr;
    }

    .home-ping-grid div:first-child {
        grid-column: auto;
    }

    .home-live-services div {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .home-live-provider {
        align-items: center;
        flex-direction: column;
        gap: 8px;
        border-radius: 14px;
    }

    .home-live-provider img {
        max-width: 160px;
    }
}

.product-filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(244, 244, 244, 0.76), rgba(246, 248, 255, 0.66));
}

.ticket-stat-card {
    display: grid;
    gap: 0.45rem;
}

.ticket-stat-icon {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--brand);
    background: var(--surface-2);
}

.ticket-stat-card strong {
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    line-height: 1;
}

.ticket-stat-card small,
.ticket-mini-stat small {
    color: var(--muted);
    font-weight: 700;
}

.ticket-stat-card small span {
    display: inline-flex;
    margin-right: 0.35rem;
    padding: 0.08rem 0.42rem;
    border-radius: 6px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.14);
}

.ticket-mini-stat {
    display: grid;
    gap: 0.35rem;
}

.ticket-mini-stat > span {
    color: var(--muted);
    font-weight: 800;
}

.ticket-mini-stat strong {
    font-size: 1.55rem;
}

.ticket-chart-card svg {
    width: 100%;
    height: auto;
    min-height: 210px;
    overflow: visible;
}

.chart-grid line {
    stroke: rgba(148, 163, 184, 0.16);
    stroke-dasharray: 4 6;
}

.ticket-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ticket-line.opened { stroke: #818cf8; }
.ticket-line.claimed { stroke: #6853ED; }
.ticket-line.closed { stroke: #22c55e; }
.ticket-line.response { stroke: #7c8cff; }
.ticket-line.messages { stroke: #f59e0b; }

.ticket-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.ticket-chart-legend span {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 3px;
}

.ticket-chart-legend .opened { background: #818cf8; }
.ticket-chart-legend .claimed { background: #6853ED; }
.ticket-chart-legend .closed { background: #22c55e; }
.ticket-chart-legend .response { background: #7c8cff; }
.ticket-chart-legend .messages { background: #f59e0b; }

.ticket-chart-days {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
    overflow-x: auto;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    margin-top: -0.4rem;
    scrollbar-width: none;
}

.ticket-chart-days::-webkit-scrollbar {
    display: none;
}

.ticket-chart-days span {
    flex: 0 0 auto;
}

.ticket-staff-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) repeat(3, minmax(6rem, auto));
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    padding: 1rem;
}

.ticket-staff-person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ticket-staff-avatar {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    object-fit: cover;
    flex: none;
    border: 1px solid var(--line);
    background: var(--surface-2);
}

.ticket-staff-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-weight: 900;
}

.ticket-staff-rank {
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #111827;
    background: #f59e0b;
    font-weight: 900;
}

.ticket-staff-row div:not(.min-w-0) span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
}

.ticket-staff-row div:not(.min-w-0) strong {
    display: block;
    margin-top: 0.2rem;
}

@media (max-width: 760px) {
    .ticket-staff-row {
        grid-template-columns: auto minmax(0, 1fr);
    }
}

.product-filter-main {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.product-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(9rem, 1fr));
    gap: 10px;
}

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

.product-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.product-search-field {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 0 14px 0 38px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.product-search-field:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.12);
    background: rgba(244, 244, 244, 0.94);
}

.product-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: max-content;
}

.product-filter-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px;
    padding: 16px;
    border: 1px dashed var(--line-soft);
    border-radius: 8px;
    background: rgba(244, 244, 244, 0.62);
}

.product-filter-empty.hidden {
    display: none;
}

.discord-button-preview-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #313338;
}

.discord-button-preview {
    min-height: 34px;
    border: 0;
    border-radius: 3px;
    color: #F4F4F4;
    cursor: default;
    font-weight: 700;
    padding: 0 14px;
}

.discord-button-primary {
    background: #5865f2;
}

.discord-button-success {
    background: #248046;
}

.discord-button-secondary {
    background: #4e5058;
}

.discord-button-danger {
    background: #da373c;
}

.security-action-note {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(244, 244, 244, 0.66);
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
    padding: 12px;
}

.security-action-note[data-action="ban"] {
    border-color: rgba(180, 50, 30, 0.24);
    background: rgba(180, 50, 30, 0.08);
    color: #7a2c1b;
}

.security-action-note[data-action="timeout"] {
    border-color: rgba(0, 98, 255, 0.2);
    background: rgba(0, 98, 255, 0.07);
    color: #1c4d8f;
}

@media (max-width: 1180px) {
    .product-filter-panel {
        grid-template-columns: 1fr;
    }

    .product-filter-actions {
        justify-content: space-between;
    }
}

@media (max-width: 920px) {
    .product-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .product-filter-panel {
        padding: 12px;
    }

    .product-filter-grid {
        grid-template-columns: 1fr;
    }

    .product-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

.product-filter-actions .btn,
    .product-filter-actions .badge {
        justify-content: center;
        width: 100%;
    }
}

/* Theme switcher */
:root {
    --blue-rgb: 0, 98, 255;
    --violet-rgb: 104, 83, 237;
    --theme-white: #F4F4F4;
    --theme-soft: #F4F4F4;
    --theme-wipe-color: #0062ff;
    --theme-focus-ring: rgba(0, 98, 255, 0.16);
    --page-bg:
        linear-gradient(135deg, #F4F4F4 0%, #F4F4F4 36%, rgba(0, 98, 255, 0.16) 66%, rgba(104, 83, 237, 0.22) 100%);
    --hero-bg:
        linear-gradient(120deg, rgba(244, 244, 244, 0.94), rgba(244, 244, 244, 0.72) 45%, rgba(0, 98, 255, 0.18) 72%, rgba(104, 83, 237, 0.2)),
        linear-gradient(rgba(18, 24, 38, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 24, 38, 0.035) 1px, transparent 1px);
    --not-found-bg:
        linear-gradient(120deg, rgba(244, 244, 244, 0.98), rgba(244, 244, 244, 0.82) 42%, rgba(0, 98, 255, 0.18) 74%, rgba(104, 83, 237, 0.22)),
        linear-gradient(rgba(18, 24, 38, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 24, 38, 0.035) 1px, transparent 1px);
    --soft-card-gradient:
        linear-gradient(135deg, rgba(244, 244, 244, 0.86), rgba(244, 244, 244, 0.62)),
        linear-gradient(135deg, rgba(0, 98, 255, 0.14), rgba(104, 83, 237, 0.14));
    --cta-bg:
        linear-gradient(135deg, rgba(244, 244, 244, 0.78), rgba(0, 98, 255, 0.1), rgba(104, 83, 237, 0.12));
}

html[data-theme="red"] {
    color-scheme: light;
    --bg: #F4F4F4;
    --surface: rgba(244, 244, 244, 0.92);
    --surface-2: rgba(244, 244, 244, 0.9);
    --panel: rgba(244, 244, 244, 0.92);
    --panel-strong: rgba(244, 244, 244, 0.94);
    --hover: rgba(220, 38, 38, 0.08);
    --line: rgba(127, 29, 29, 0.14);
    --line-soft: rgba(127, 29, 29, 0.18);
    --line-strong: #1f1111;
    --text: #1f1111;
    --muted: #6f5555;
    --faint: #967676;
    --blue: #dc2626;
    --violet: #fb7185;
    --purple: #dc2626;
    --purple-2: #fb7185;
    --pink: #be123c;
    --cyan: #991b1b;
    --green: #15803d;
    --red: #b91c1c;
    --blue-rgb: 220, 38, 38;
    --violet-rgb: 251, 113, 133;
    --theme-wipe-color: #dc2626;
    --theme-focus-ring: rgba(220, 38, 38, 0.16);
    --page-bg:
        linear-gradient(135deg, #F4F4F4 0%, #F4F4F4 38%, rgba(220, 38, 38, 0.12) 68%, rgba(251, 113, 133, 0.18) 100%);
    --hero-bg:
        linear-gradient(120deg, rgba(244, 244, 244, 0.96), rgba(244, 244, 244, 0.78) 46%, rgba(220, 38, 38, 0.14) 74%, rgba(251, 113, 133, 0.18)),
        linear-gradient(rgba(127, 29, 29, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 29, 29, 0.035) 1px, transparent 1px);
    --not-found-bg:
        linear-gradient(120deg, rgba(244, 244, 244, 0.98), rgba(244, 244, 244, 0.84) 42%, rgba(220, 38, 38, 0.15) 74%, rgba(251, 113, 133, 0.18)),
        linear-gradient(rgba(127, 29, 29, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(127, 29, 29, 0.035) 1px, transparent 1px);
    --soft-card-gradient:
        linear-gradient(135deg, rgba(244, 244, 244, 0.9), rgba(244, 244, 244, 0.72)),
        linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(251, 113, 133, 0.12));
    --cta-bg:
        linear-gradient(135deg, rgba(244, 244, 244, 0.84), rgba(220, 38, 38, 0.1), rgba(251, 113, 133, 0.12));
}

html[data-theme="mono"] {
    color-scheme: light;
    --bg: #F4F4F4;
    --surface: rgba(244, 244, 244, 0.94);
    --surface-2: rgba(244, 244, 244, 0.92);
    --panel: rgba(244, 244, 244, 0.94);
    --panel-strong: rgba(244, 244, 244, 0.96);
    --hover: rgba(17, 17, 17, 0.06);
    --line: rgba(17, 17, 17, 0.14);
    --line-soft: rgba(17, 17, 17, 0.16);
    --line-strong: #111111;
    --text: #080808;
    --muted: #525252;
    --faint: #737373;
    --blue: #111111;
    --violet: #555555;
    --purple: #111111;
    --purple-2: #555555;
    --pink: #222222;
    --cyan: #111111;
    --green: #166534;
    --red: #991b1b;
    --blue-rgb: 17, 17, 17;
    --violet-rgb: 85, 85, 85;
    --theme-wipe-color: #111111;
    --theme-focus-ring: rgba(17, 17, 17, 0.16);
    --page-bg:
        linear-gradient(135deg, #F4F4F4 0%, #F4F4F4 42%, rgba(17, 17, 17, 0.08) 100%);
    --hero-bg:
        linear-gradient(120deg, rgba(244, 244, 244, 0.96), rgba(244, 244, 244, 0.8) 46%, rgba(17, 17, 17, 0.08) 76%),
        linear-gradient(rgba(17, 17, 17, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px);
    --not-found-bg:
        linear-gradient(120deg, rgba(244, 244, 244, 0.98), rgba(244, 244, 244, 0.84) 44%, rgba(17, 17, 17, 0.08) 78%),
        linear-gradient(rgba(17, 17, 17, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px);
    --soft-card-gradient:
        linear-gradient(135deg, rgba(244, 244, 244, 0.92), rgba(244, 244, 244, 0.74)),
        linear-gradient(135deg, rgba(17, 17, 17, 0.08), rgba(85, 85, 85, 0.08));
    --cta-bg:
        linear-gradient(135deg, rgba(244, 244, 244, 0.86), rgba(17, 17, 17, 0.08), rgba(85, 85, 85, 0.08));
}

body {
    background: var(--page-bg);
}

.home-hero {
    background: var(--hero-bg);
    background-size: auto, 42px 42px, 42px 42px;
}

.not-found-page {
    background: var(--not-found-bg);
    background-size: auto, 44px 44px, 44px 44px;
}

.home-limited,
.not-found-shell {
    background: var(--soft-card-gradient);
}

.home-cta {
    background: var(--cta-bg);
}

.home-eyebrow-dot,
.brand-mark,
.nav-server-fallback,
.nav-link-active,
.resource-meter span,
.module-card-on .module-icon,
.module-switch input:checked + span,
.home-preview-menu .is-active,
.home-mini-chart span,
.home-reason span,
.home-flow article span,
.home-feature-icon,
.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--violet));
}

.btn-primary,
.nav-link-active,
.module-card-on .module-icon,
.home-preview-menu .is-active,
.home-reason span,
.home-flow article span,
.home-feature-icon,
.brand-mark,
.nav-server-fallback {
    color: #F4F4F4;
}

.field:focus,
.select:focus,
.textarea:focus,
.topbar-search input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--theme-focus-ring);
}

.nav-link-active {
    box-shadow: 0 10px 28px rgba(var(--blue-rgb), 0.16);
}

.btn:hover {
    box-shadow: 0 12px 26px rgba(var(--blue-rgb), 0.14);
}

.panel:hover,
.panel-strong:hover,
.home-reason:hover,
.home-feature-card:hover,
.home-flow article:hover,
.module-card:hover,
.not-found-shell:hover {
    border-color: rgba(var(--blue-rgb), 0.26);
}

.home-hosting-provider:hover {
    border-color: rgba(var(--blue-rgb), 0.26);
    box-shadow: 0 18px 56px rgba(var(--blue-rgb), 0.12);
}

.skeleton-line::after,
.skeleton-block::after,
.skeleton-card::after,
.skeleton-panel::after {
    background: linear-gradient(90deg, transparent, rgba(var(--blue-rgb), 0.14), transparent);
}

.trace-line {
    background: linear-gradient(180deg, rgba(var(--blue-rgb), 0.5), rgba(var(--violet-rgb), 0.12));
}

.security-action-note[data-action="timeout"] {
    border-color: rgba(var(--blue-rgb), 0.2);
    background: rgba(var(--blue-rgb), 0.07);
    color: var(--blue);
}

.theme-toggle {
    position: relative;
    isolation: isolate;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--blue);
    overflow: visible;
}

.theme-toggle::before {
    content: "";
    position: absolute;
    inset: -10px;
    z-index: -1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(var(--blue-rgb), 0.22), transparent 68%);
    opacity: 0;
    transform: scale(0.62);
}

.theme-toggle:hover {
    border-color: rgba(var(--blue-rgb), 0.3);
    color: var(--blue);
}

.theme-toggle-pop::before {
    animation: theme-toggle-radius 360ms cubic-bezier(.2, .8, .2, 1);
}

.theme-icon {
    grid-area: 1 / 1;
    transition: opacity 160ms ease, transform 160ms ease;
}

.theme-icon-red,
.theme-icon-mono {
    opacity: 0;
    transform: scale(0.72) rotate(-18deg);
}

html[data-theme="red"] .theme-icon-default,
html[data-theme="mono"] .theme-icon-default {
    opacity: 0;
    transform: scale(0.72) rotate(18deg);
}

html[data-theme="red"] .theme-icon-red {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

html[data-theme="mono"] .theme-icon-mono {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

@keyframes theme-toggle-radius {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    45% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(1.4);
    }
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

.theme-view-transition::view-transition-old(root) {
    z-index: 1;
}

.theme-view-transition::view-transition-new(root) {
    z-index: 2;
}

.theme-wipe {
    pointer-events: none;
    position: fixed;
    left: var(--theme-wipe-x);
    top: var(--theme-wipe-y);
    z-index: 9999;
    width: var(--theme-wipe-size);
    height: var(--theme-wipe-size);
    border-radius: 50%;
    background: var(--theme-wipe-color);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.22;
    animation: theme-wipe-grow 650ms cubic-bezier(.22, 1, .36, 1) forwards;
}

.theme-wipe-red {
    background: #dc2626;
}

.theme-wipe-default {
    background: #0062ff;
}

.theme-wipe-mono {
    background: #111111;
}

.theme-wipe.is-done {
    opacity: 0;
    transition: opacity 220ms ease;
}

@keyframes theme-wipe-grow {
    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

html[data-theme="red"] .topbar,
html[data-theme="red"] .app-sidebar,
html[data-theme="red"] .app-rightbar,
html[data-theme="mono"] .topbar,
html[data-theme="mono"] .app-sidebar,
html[data-theme="mono"] .app-rightbar {
    background: rgba(244, 244, 244, 0.78);
}

html[data-theme="red"] .brand-logo-mark,
html[data-theme="red"] .brand-preview-logo,
html[data-theme="red"] .not-found-logo,
html[data-theme="mono"] .brand-logo-mark,
html[data-theme="mono"] .brand-preview-logo,
html[data-theme="mono"] .not-found-logo {
    background: #F4F4F4;
    border-color: rgba(127, 29, 29, 0.14);
}

html[data-theme="red"] .resource-provider,
html[data-theme="red"] .home-hosting-provider,
html[data-theme="red"] .home-eyebrow,
html[data-theme="red"] .home-limited-kicker,
html[data-theme="red"] .not-found-kicker,
html[data-theme="mono"] .resource-provider,
html[data-theme="mono"] .home-hosting-provider,
html[data-theme="mono"] .home-eyebrow,
html[data-theme="mono"] .home-limited-kicker,
html[data-theme="mono"] .not-found-kicker {
    background: rgba(244, 244, 244, 0.78);
}

html[data-theme="mono"] .brand-logo-mark,
html[data-theme="mono"] .brand-preview-logo,
html[data-theme="mono"] .not-found-logo {
    background: #F4F4F4;
    border-color: rgba(17, 17, 17, 0.14);
}

.dashboard-dialog-icon,
.auto-currency-icon {
    color: var(--blue);
    background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.12), rgba(var(--violet-rgb), 0.18));
}

.emoji-input-button:hover,
.channel-combo-toggle:hover {
    border-color: rgba(var(--blue-rgb), 0.34);
    color: var(--blue);
}

.live-price-badge {
    border-color: rgba(var(--blue-rgb), 0.24);
    background: rgba(var(--blue-rgb), 0.08);
    color: var(--blue);
}

.auto-currency-toggle:hover {
    border-color: rgba(var(--blue-rgb), 0.32);
}

.auto-currency-toggle input {
    accent-color: var(--blue);
}

.live-locked-field {
    background:
        linear-gradient(#F4F4F4, #F4F4F4) padding-box,
        linear-gradient(135deg, rgba(var(--blue-rgb), 0.42), rgba(var(--violet-rgb), 0.38)) border-box;
}

.ticket-line.claimed {
    stroke: var(--violet);
}

.ticket-chart-legend .claimed {
    background: var(--violet);
}

/* Softer dashboard controls: compact rectangle buttons, not circles. */
.dashboard-root .btn {
    min-height: 2.15rem;
    border-radius: 8px;
    padding: 0.48rem 0.82rem;
    line-height: 1;
    box-shadow: none;
}

.dashboard-root .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(var(--blue-rgb), 0.12);
}

.dashboard-root .btn-secondary {
    background: rgba(244, 244, 244, 0.58);
    border-color: rgba(18, 24, 38, 0.12);
    color: var(--text);
}

.dashboard-root .btn-secondary:hover {
    background: rgba(244, 244, 244, 0.82);
}

.dashboard-root .btn-primary {
    border-color: transparent;
}

.dashboard-actions {
    align-items: center;
}

.dashboard-actions .btn {
    min-height: 2rem;
    padding-inline: 0.78rem;
}
