[x-cloak] { display: none !important; }

:root {
    --app-bg: #f5f7fb;
    --app-bg-alt: #eef2f8;
    --app-surface: rgba(255, 255, 255, 0.86);
    --app-surface-strong: rgba(255, 255, 255, 0.95);
    --app-border: rgba(148, 163, 184, 0.18);
    --app-text: #0f172a;
    --app-muted: #475569;
    --app-soft: #64748b;
    --app-accent: #0f766e;
    --app-accent-strong: #14b8a6;
    --app-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    color-scheme: light;
}

html.dark {
    --app-bg: #07111f;
    --app-bg-alt: #0b1627;
    --app-surface: rgba(15, 23, 42, 0.72);
    --app-surface-strong: rgba(15, 23, 42, 0.92);
    --app-border: rgba(148, 163, 184, 0.14);
    --app-text: #e2e8f0;
    --app-muted: #94a3b8;
    --app-soft: #64748b;
    --app-accent: #5eead4;
    --app-accent-strong: #2dd4bf;
    --app-shadow: 0 22px 60px rgba(2, 8, 23, 0.34);
    color-scheme: dark;
}

html { scroll-behavior: smooth; }

html.autopost-select-open,
html.autopost-select-open body {
    overflow: hidden !important;
}

body {
    min-height: 100vh;
    letter-spacing: 0.01em;
    color: var(--app-text);
    background:
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.11), transparent 24rem),
        radial-gradient(circle at left center, rgba(56, 189, 248, 0.09), transparent 28rem),
        linear-gradient(180deg, var(--app-bg) 0%, var(--app-bg-alt) 100%);
}

html.dark body {
    background:
        radial-gradient(circle at top right, rgba(45, 212, 191, 0.09), transparent 24rem),
        radial-gradient(circle at left center, rgba(56, 189, 248, 0.08), transparent 28rem),
        linear-gradient(180deg, #07111f 0%, #0b1627 100%);
}

a,
button,
input,
select,
textarea {
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

main > * {
    animation: fade-in-up 220ms ease-out;
}

main h1.text-4xl,
main h1.text-3xl {
    font-size: 1.9rem !important;
    line-height: 1.1 !important;
    letter-spacing: -0.03em;
}

main h1.text-2xl,
main h2.text-2xl {
    font-size: 1.45rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
}

main h3.text-xl,
main h3.text-lg {
    letter-spacing: -0.015em;
}

.campaign-header-strip h1 {
    font-size: 1.9rem !important;
    line-height: 1.12 !important;
}

.autopost-status-pill {
    font-size: 0.72rem !important;
    line-height: 1rem !important;
    letter-spacing: 0.02em;
}

.campaign-header-strip > :nth-child(2) {
    display: none !important;
}

.confirm-dialog {
    animation: confirm-fade 180ms ease-out;
}

.confirm-dialog__panel {
    animation: confirm-rise 220ms ease-out;
}

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

@keyframes confirm-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes confirm-rise {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Shell */
.app-shell {
    position: relative;
    min-height: 100vh;
}

.app-shell__content {
    min-height: 100vh;
    transition: margin-left 300ms ease;
}

.app-shell__main {
    margin-inline: auto;
    width: 100%;
    max-width: 1680px;
    padding: 1rem;
}

@media (min-width: 768px) {
    .app-shell__main {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}

.app-shell__veil {
    pointer-events: none;
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.app-shell__veil::before,
.app-shell__veil::after {
    content: "";
    position: absolute;
    border-radius: 9999px;
    filter: blur(64px);
}

.app-shell__veil::before {
    top: -6rem;
    right: -10rem;
    height: 18rem;
    width: 18rem;
    background: rgba(45, 212, 191, 0.12);
}

.app-shell__veil::after {
    left: -8rem;
    top: 28%;
    height: 20rem;
    width: 20rem;
    background: rgba(56, 189, 248, 0.08);
}

/* Light-mode normalization for legacy dark classes */
html:not(.dark) .bg-dark-900,
html:not(.dark) .bg-dark-800,
html:not(.dark) .bg-dark-700,
html:not(.dark) .bg-slate-950,
html:not(.dark) .bg-slate-900,
html:not(.dark) .bg-slate-800,
html:not(.dark) .bg-slate-700 {
    background-color: var(--app-surface-strong) !important;
}

html:not(.dark) [class*="bg-dark-"] {
    background-color: var(--app-surface-strong) !important;
}

html:not(.dark) .bg-slate-950\/95,
html:not(.dark) .bg-slate-950\/90,
html:not(.dark) .bg-slate-950\/85,
html:not(.dark) .bg-slate-950\/80,
html:not(.dark) .bg-slate-950\/75,
html:not(.dark) .bg-slate-950\/70,
html:not(.dark) .bg-slate-900\/95,
html:not(.dark) .bg-slate-900\/90,
html:not(.dark) .bg-slate-900\/85,
html:not(.dark) .bg-slate-900\/80,
html:not(.dark) .bg-slate-900\/75,
html:not(.dark) .bg-slate-900\/70,
html:not(.dark) .bg-slate-800\/95,
html:not(.dark) .bg-slate-800\/90,
html:not(.dark) .bg-slate-800\/85,
html:not(.dark) .bg-slate-800\/80 {
    background-color: var(--app-surface-strong) !important;
}

html:not(.dark) .bg-white\/\[0\.03\],
html:not(.dark) .bg-white\/\[0\.04\],
html:not(.dark) .bg-white\/\[0\.05\],
html:not(.dark) .bg-white\/\[0\.06\],
html:not(.dark) .bg-white\/\[0\.08\] {
    background-color: rgba(248, 250, 252, 0.92) !important;
}

html:not(.dark) .bg-slate-700\/50,
html:not(.dark) .bg-slate-700\/40,
html:not(.dark) .bg-slate-700\/30,
html:not(.dark) .bg-slate-700\/20 {
    background-color: rgba(148, 163, 184, 0.11) !important;
}

html:not(.dark) .bg-slate-600,
html:not(.dark) .bg-slate-600\/50 {
    background-color: rgba(148, 163, 184, 0.15) !important;
}

html:not(.dark) .border-slate-700,
html:not(.dark) .border-slate-700\/20,
html:not(.dark) .border-slate-700\/30,
html:not(.dark) .border-slate-700\/40,
html:not(.dark) .border-slate-700\/50,
html:not(.dark) .border-slate-700\/60,
html:not(.dark) .border-slate-700\/70,
html:not(.dark) .border-slate-800,
html:not(.dark) .border-slate-800\/50,
html:not(.dark) .border-slate-800\/60,
html:not(.dark) .border-white\/10,
html:not(.dark) .border-white\/5,
html:not(.dark) .border-slate-600 {
    border-color: var(--app-border) !important;
}

html:not(.dark) .text-white,
html:not(.dark) .text-slate-100 {
    color: var(--app-text) !important;
}

html:not(.dark) .text-slate-200 {
    color: #1e293b !important;
}

html:not(.dark) .text-slate-300 {
    color: #334155 !important;
}

html:not(.dark) .text-slate-400 {
    color: var(--app-muted) !important;
}

html:not(.dark) .text-slate-500,
html:not(.dark) .text-slate-600 {
    color: var(--app-soft) !important;
}

html:not(.dark) .text-cyan-100,
html:not(.dark) .text-cyan-200,
html:not(.dark) .text-cyan-300,
html:not(.dark) .text-cyan-400 {
    color: #0f766e !important;
}

html:not(.dark) .text-teal-100,
html:not(.dark) .text-teal-200,
html:not(.dark) .text-teal-300,
html:not(.dark) .text-teal-400 {
    color: #0f766e !important;
}

html:not(.dark) .text-emerald-100,
html:not(.dark) .text-emerald-200,
html:not(.dark) .text-emerald-300,
html:not(.dark) .text-emerald-400 {
    color: #047857 !important;
}

html:not(.dark) .text-violet-100,
html:not(.dark) .text-violet-200,
html:not(.dark) .text-violet-300,
html:not(.dark) .text-violet-400 {
    color: #6d28d9 !important;
}

html:not(.dark) .text-amber-100,
html:not(.dark) .text-amber-200,
html:not(.dark) .text-amber-300,
html:not(.dark) .text-amber-400 {
    color: #b45309 !important;
}

html:not(.dark) .text-rose-100,
html:not(.dark) .text-rose-200,
html:not(.dark) .text-rose-300,
html:not(.dark) .text-rose-400 {
    color: #be123c !important;
}

html:not(.dark) .shadow-xl,
html:not(.dark) .shadow-2xl,
html:not(.dark) .shadow-lg {
    box-shadow: var(--app-shadow) !important;
}

html:not(.dark) aside,
html:not(.dark) header > div,
html:not(.dark) .confirm-dialog__panel {
    box-shadow: var(--app-shadow);
}

html:not(.dark) .bg-gradient-to-br,
html:not(.dark) .bg-gradient-to-r,
html:not(.dark) .bg-gradient-to-l,
html:not(.dark) .bg-gradient-to-t,
html:not(.dark) .bg-gradient-to-b {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.92)) !important;
}

html:not(.dark) .from-slate-900,
html:not(.dark) .from-slate-800,
html:not(.dark) .from-dark-900,
html:not(.dark) .from-dark-800,
html:not(.dark) .via-dark-800,
html:not(.dark) .via-slate-800 {
    --tw-gradient-stops: rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.88) !important;
}

html:not(.dark) .to-slate-900,
html:not(.dark) .to-slate-800,
html:not(.dark) .to-dark-900,
html:not(.dark) .to-dark-800,
html:not(.dark) .to-cyan-950,
html:not(.dark) .to-emerald-950,
html:not(.dark) .to-violet-950,
html:not(.dark) .to-teal-950 {
    --tw-gradient-to: rgba(255, 255, 255, 0.9) !important;
}

html:not(.dark) table thead {
    background-color: rgba(248, 250, 252, 0.96) !important;
}

html:not(.dark) table tbody {
    background-color: rgba(255, 255, 255, 0.98) !important;
}

html:not(.dark) table tbody tr:hover {
    background-color: rgba(241, 245, 249, 0.8) !important;
}

html:not(.dark) table td,
html:not(.dark) table th {
    color: var(--app-text) !important;
}

html:not(.dark) tbody tr {
    background-color: rgba(255, 255, 255, 0.96) !important;
}

html:not(.dark) .hover\:bg-slate-700\/20:hover,
html:not(.dark) .hover\:bg-slate-700\/40:hover,
html:not(.dark) .hover\:bg-slate-700\/50:hover,
html:not(.dark) .hover\:bg-slate-700\/60:hover,
html:not(.dark) .hover\:bg-slate-800:hover,
html:not(.dark) .hover\:bg-slate-900:hover,
html:not(.dark) .hover\:bg-dark-800:hover,
html:not(.dark) .hover\:bg-dark-900:hover,
html:not(.dark) .hover\:bg-slate-900\/60:hover,
html:not(.dark) .hover\:bg-slate-900\/70:hover,
html:not(.dark) .hover\:bg-slate-900\/80:hover,
html:not(.dark) .hover\:bg-slate-900\/90:hover,
html:not(.dark) .hover\:bg-slate-950\/70:hover,
html:not(.dark) .hover\:bg-slate-950\/80:hover,
html:not(.dark) .hover\:bg-white\/\[0\.06\]:hover,
html:not(.dark) .hover\:bg-white\/\[0\.08\]:hover {
    background-color: rgba(226, 232, 240, 0.72) !important;
}

html:not(.dark) .hover\:bg-rose-500\/5:hover,
html:not(.dark) .hover\:bg-rose-500\/10:hover,
html:not(.dark) .hover\:bg-emerald-500\/5:hover,
html:not(.dark) .hover\:bg-emerald-500\/10:hover,
html:not(.dark) .hover\:bg-cyan-500\/5:hover,
html:not(.dark) .hover\:bg-cyan-500\/10:hover,
html:not(.dark) .hover\:bg-teal-500\/5:hover,
html:not(.dark) .hover\:bg-teal-500\/10:hover,
html:not(.dark) .hover\:bg-sky-500\/5:hover,
html:not(.dark) .hover\:bg-sky-500\/10:hover,
html:not(.dark) .hover\:bg-violet-500\/5:hover,
html:not(.dark) .hover\:bg-violet-500\/10:hover,
html:not(.dark) .hover\:bg-fuchsia-500\/5:hover,
html:not(.dark) .hover\:bg-fuchsia-500\/10:hover,
html:not(.dark) .hover\:bg-amber-500\/5:hover,
html:not(.dark) .hover\:bg-amber-500\/10:hover {
    background-color: rgba(248, 250, 252, 0.92) !important;
}

html:not(.dark) .hover\:text-slate-200:hover,
html:not(.dark) .hover\:text-slate-300:hover {
    color: #0f172a !important;
}

html:not(.dark) .hover\:text-teal-300:hover,
html:not(.dark) .hover\:text-teal-400:hover,
html:not(.dark) .hover\:text-cyan-300:hover,
html:not(.dark) .hover\:text-cyan-400:hover {
    color: var(--app-accent) !important;
}

html:not(.dark) .hover\:text-rose-300:hover,
html:not(.dark) .hover\:text-rose-400:hover,
html:not(.dark) .hover\:text-emerald-300:hover,
html:not(.dark) .hover\:text-emerald-400:hover,
html:not(.dark) .hover\:text-sky-300:hover,
html:not(.dark) .hover\:text-sky-400:hover,
html:not(.dark) .hover\:text-violet-300:hover,
html:not(.dark) .hover\:text-violet-400:hover,
html:not(.dark) .hover\:text-fuchsia-300:hover,
html:not(.dark) .hover\:text-fuchsia-400:hover,
html:not(.dark) .hover\:text-amber-300:hover,
html:not(.dark) .hover\:text-amber-400:hover {
    color: #0f172a !important;
}

html:not(.dark) .hover\:border-teal-400:hover,
html:not(.dark) .hover\:border-teal-500\/50:hover {
    border-color: rgba(20, 184, 166, 0.38) !important;
}

html:not(.dark) .hover\:border-slate-500:hover,
html:not(.dark) .hover\:border-slate-600:hover,
html:not(.dark) .hover\:border-slate-700:hover,
html:not(.dark) .hover\:border-slate-700\/20:hover,
html:not(.dark) .hover\:border-slate-700\/30:hover,
html:not(.dark) .hover\:border-slate-700\/40:hover,
html:not(.dark) .hover\:border-slate-700\/50:hover,
html:not(.dark) .hover\:border-slate-700\/60:hover,
html:not(.dark) .hover\:border-slate-700\/70:hover,
html:not(.dark) .hover\:border-slate-800:hover {
    border-color: rgba(148, 163, 184, 0.32) !important;
}

html:not(.dark) a {
    color: var(--app-accent) !important;
}

html:not(.dark) a:hover {
    color: var(--app-accent-strong) !important;
}

html:not(.dark) input,
html:not(.dark) select,
html:not(.dark) textarea {
    color: var(--app-text);
    background-color: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(148, 163, 184, 0.24) !important;
}

html:not(.dark) input::placeholder,
html:not(.dark) textarea::placeholder {
    color: #94a3b8;
}

html:not(.dark) input:focus,
html:not(.dark) select:focus,
html:not(.dark) textarea:focus {
    background-color: #ffffff !important;
    border-color: rgba(20, 184, 166, 0.45) !important;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.08);
}

html:not(.dark) input[type="range"] {
    accent-color: #14b8a6;
}

/* Shell surfaces */
.light-sidebar,
.light-topbar {
    backdrop-filter: blur(18px);
}

html:not(.dark) .light-sidebar {
    background: rgba(255, 255, 255, 0.84) !important;
    border-right-color: var(--app-border) !important;
}

html.dark .light-sidebar {
    background: rgba(15, 23, 42, 0.76) !important;
}

html:not(.dark) .light-topbar {
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: var(--app-border) !important;
}

html.dark .light-topbar {
    background: rgba(15, 23, 42, 0.76) !important;
}

html:not(.dark) .light-sidebar .text-slate-400,
html:not(.dark) .light-sidebar .text-slate-500,
html:not(.dark) .light-topbar .text-slate-400,
html:not(.dark) .light-topbar .text-slate-500 {
    color: var(--app-muted) !important;
}

html:not(.dark) .light-sidebar .text-slate-200,
html:not(.dark) .light-topbar .text-slate-100,
html:not(.dark) .light-topbar .text-slate-200,
html:not(.dark) .light-topbar .text-slate-300 {
    color: var(--app-text) !important;
}

html:not(.dark) .light-sidebar .hover\:bg-slate-700\/50:hover {
    background-color: rgba(148, 163, 184, 0.12) !important;
}

html:not(.dark) .light-sidebar .bg-teal-500\/10,
html:not(.dark) .light-sidebar .bg-teal-500\/15,
html:not(.dark) .light-topbar .bg-teal-500\/10,
html:not(.dark) .light-topbar .bg-teal-500\/15 {
    background-color: rgba(20, 184, 166, 0.12) !important;
}

/* Select2 */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single,
.select2-container--classic .select2-selection--single,
.select2-container--default .select2-selection--single,
.select2-selection--autopost {
    position: relative;
    min-height: 44px;
    height: auto !important;
    border-radius: 0.85rem !important;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: none !important;
}

html.dark .select2-container .select2-selection--single,
html.dark .select2-container--classic .select2-selection--single,
html.dark .select2-container--default .select2-selection--single,
html.dark .select2-selection--autopost {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: rgba(71, 85, 105, 0.9) !important;
}

.select2-container .select2-selection--single .select2-selection__rendered,
.select2-container--classic .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-selection--autopost .select2-selection__rendered {
    padding: 0.7rem 4.5rem 0.7rem 0.95rem !important;
    line-height: 1.35 !important;
    color: var(--app-text) !important;
}

html.dark .select2-container .select2-selection--single .select2-selection__rendered,
html.dark .select2-container--classic .select2-selection--single .select2-selection__rendered,
html.dark .select2-container--default .select2-selection--single .select2-selection__rendered,
html.dark .select2-selection--autopost .select2-selection__rendered {
    color: #e2e8f0 !important;
}

.select2-selection--autopost .select2-selection__placeholder {
    color: #94a3b8 !important;
}

.select2-container .select2-selection--single .select2-selection__clear,
.select2-container--classic .select2-selection--single .select2-selection__clear,
.select2-container--default .select2-selection--single .select2-selection__clear {
    display: none !important;
}

.select2-container .select2-selection--single .select2-selection__arrow,
.select2-container--classic .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    right: 0.9rem !important;
    top: 50% !important;
    width: 1rem !important;
    height: 1rem !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    transform: translateY(-50%);
}

.select2-container--classic .select2-selection--single .select2-selection__arrow b,
.select2-container--default .select2-selection--single .select2-selection__arrow b,
.select2-selection--autopost .select2-selection__arrow b {
    position: static !important;
    display: block !important;
    width: 0.45rem !important;
    height: 0.45rem !important;
    margin: 0 !important;
    border: 0 !important;
    border-right: 2px solid #94a3b8 !important;
    border-bottom: 2px solid #94a3b8 !important;
    transform: rotate(45deg);
    transform-origin: center;
}

.select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: rotate(-135deg);
}

.select2-dropdown,
.select2-dropdown--autopost {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.24) !important;
    border-radius: 1rem !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18) !important;
}

html.dark .select2-dropdown,
html.dark .select2-dropdown--autopost {
    background: rgba(15, 23, 42, 0.98) !important;
    box-shadow: 0 20px 45px rgba(2, 8, 23, 0.35) !important;
}

.select2-results__option {
    padding: 0.7rem 0.95rem !important;
    color: var(--app-text) !important;
}

.select2-results {
    overflow: hidden !important;
}

.select2-results > .select2-results__options {
    overflow-x: hidden !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.select2-results > .select2-results__options::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
}

.select2-container--classic .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(20, 184, 166, 0.12) !important;
    color: var(--app-accent) !important;
}

.select2-search--dropdown {
    padding: 0.75rem !important;
}

.select2-search--dropdown .select2-search__field {
    border-radius: 0.75rem !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--app-text) !important;
    padding: 0.7rem 0.9rem !important;
}

html.dark .select2-search--dropdown .select2-search__field {
    background: rgba(51, 65, 85, 0.7) !important;
    border-color: rgba(71, 85, 105, 0.9) !important;
    color: #e2e8f0 !important;
}

.select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: rgba(20, 184, 166, 0.78) !important;
}

/* Surface helpers */
.app-surface {
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(18px);
}

.app-surface-strong {
    border: 1px solid var(--app-border);
    background: var(--app-surface-strong);
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(18px);
}

.app-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9999px;
    border: 1px solid var(--app-border);
    background: rgba(255, 255, 255, 0.6);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--app-muted);
}

html.dark .app-chip {
    background: rgba(15, 23, 42, 0.55);
}

/* Alerts */
.app-alert {
    border: 1px solid var(--app-border);
    background: var(--app-surface);
    box-shadow: var(--app-shadow);
}

/* Tables */
.app-table thead {
    background: rgba(248, 250, 252, 0.95);
}

html.dark .app-table thead {
    background: rgba(15, 23, 42, 0.8);
}

.app-table tbody tr:hover {
    background: rgba(241, 245, 249, 0.8);
}

html.dark .app-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.68);
}

/* Confirmation dialog */
#autopost-confirm .bg-slate-950\/75 {
    background-color: rgba(15, 23, 42, 0.6) !important;
}

html:not(.dark) #autopost-confirm .confirm-dialog__panel {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: var(--app-border) !important;
}

html:not(.dark) #autopost-confirm .text-white,
html:not(.dark) #autopost-confirm .text-slate-100,
html:not(.dark) #autopost-confirm .text-slate-200,
html:not(.dark) #autopost-confirm .text-slate-300 {
    color: var(--app-text) !important;
}

/* Dashboard shell */
.dashboard-shell {
    position: relative;
    display: flex;
    min-height: calc(100vh - 2rem);
    flex-direction: column;
    gap: 1rem;
}

.dashboard-panel {
    position: relative;
    border: 1px solid rgba(43, 54, 74, 0.9);
    background: linear-gradient(180deg, rgba(7, 17, 31, 0.98), rgba(9, 18, 33, 0.94));
    box-shadow: 0 18px 55px rgba(2, 8, 23, 0.28);
    border-radius: 14px;
}

html:not(.dark) .dashboard-panel {
    border-color: rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.88));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.dashboard-panel--soft {
    background: rgba(8, 18, 33, 0.9);
}

.dashboard-panel__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

.dashboard-panel__subtle {
    color: #94a3b8;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-strip {
    display: grid;
    overflow: hidden;
    background: rgba(8, 18, 33, 0.82);
}

.dashboard-strip__cell {
    border-right: 1px solid rgba(43, 54, 74, 0.9);
    padding: 1rem;
}

.dashboard-strip__cell:nth-child(3n) {
    border-right: 0;
}

.dashboard-strip__cell:nth-child(-n+3) {
    border-bottom: 1px solid rgba(43, 54, 74, 0.9);
}

.dashboard-strip__cell:nth-child(n+4) {
    border-bottom: 0;
}

html:not(.dark) .dashboard-strip {
    background: rgba(248, 250, 252, 0.9);
}

html:not(.dark) .dashboard-strip__cell {
    border-right-color: rgba(148, 163, 184, 0.22);
}

html:not(.dark) .dashboard-strip__cell:nth-child(-n+3) {
    border-bottom-color: rgba(148, 163, 184, 0.22);
}

.dashboard-mini-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

html:not(.dark) .dashboard-mini-icon {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(148, 163, 184, 0.24);
}

html:not(.dark) .dashboard-strip {
    background: rgba(255, 255, 255, 0.9);
}

.dashboard-grid {
    display: grid;
    gap: 1rem;
}

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

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

.dashboard-grid--auto {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

@media (min-width: 768px) {
    .dashboard-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (min-width: 1280px) {
    .dashboard-grid--4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.dashboard-stat {
    border: 1px solid rgba(43, 54, 74, 0.95);
    background: rgba(12, 22, 39, 0.94);
    padding: 1rem;
    min-height: 112px;
    border-radius: 12px;
}

html:not(.dark) .dashboard-stat {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.92);
}

.dashboard-stat__eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
}

.dashboard-stat__value {
    margin-top: 0.65rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #f8fafc;
}

.dashboard-stat__meta {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: #94a3b8;
}

.dashboard-kpi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid rgba(43, 54, 74, 0.95);
    background: rgba(12, 22, 39, 0.88);
    padding: 0.95rem 1rem;
    border-radius: 12px;
}

html:not(.dark) .dashboard-kpi {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.92);
}

.dashboard-kpi__label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.dashboard-kpi__value {
    margin-top: 0.35rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #f8fafc;
}

.dashboard-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(94, 234, 212, 0.15);
    background: rgba(94, 234, 212, 0.1);
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #99f6e4;
    border-radius: 9999px;
}

.dashboard-soft {
    border-radius: 12px;
}

.sidebar-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table thead th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #94a3b8;
    border-bottom: 1px solid rgba(43, 54, 74, 0.95);
}

.dashboard-table tbody td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(43, 54, 74, 0.72);
    color: #e2e8f0;
}

.dashboard-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.65);
}

.app-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
}

.app-footer__line {
    border-top: 1px solid rgba(43, 54, 74, 0.85);
    padding-top: 1rem;
}
