html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] body {
    font-family: "Tahoma", "Segoe UI", Arial, sans-serif;
}

.theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.7);
    padding: 0.3rem;
    backdrop-filter: blur(8px);
}

.theme-switch__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 0.8rem;
    padding: 0.55rem 0.9rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: 160ms ease;
}

.theme-switch__item:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #0f172a;
}

.theme-switch__item.is-active {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.public-logo-wrap {
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.public-logo-wrap:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.admin-input {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(2, 6, 23, 0.75);
    padding: 0.85rem 1rem;
    color: #fff;
    outline: none;
}

.admin-input::placeholder {
    color: #94a3b8;
}

.admin-input:focus {
    border-color: rgba(255,255,255,0.25);
}

.admin-validation {
    margin-top: 0.35rem;
    display: block;
    color: #fda4af;
    font-size: 0.875rem;
}

.table-card {
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15, 23, 42, 0.8);
}

.reader-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    padding: 0.7rem 1rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    transition: 160ms ease;
}

.reader-button:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
}

.reader-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.reader-button-primary {
    background: rgba(255,255,255,0.95);
    color: #0f172a;
}

.reader-button-primary:hover:not(:disabled) {
    background: #ffffff;
}

.reader-page-input::-webkit-outer-spin-button,
.reader-page-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.reader-page-input[type=number] {
    -moz-appearance: textfield;
}

.reader-viewport {
    min-height: 32rem;
    overflow: auto;
}

.reader-zoom-shell {
    --reader-zoom: 1;
    transform: scale(var(--reader-zoom));
    transform-origin: top center;
    transition: transform 180ms ease;
}

.reader-spread {
    display: grid;
    gap: 1.25rem;
    min-height: 28rem;
}

.reader-spread-single {
    grid-template-columns: minmax(0, 1fr);
    max-width: 34rem;
    margin: 0 auto;
}

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

.reader-spread-rtl {
    direction: rtl;
}

.reader-page-card {
    overflow: hidden;
    border-radius: 1.75rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(15,23,42,0.35));
    box-shadow: 0 16px 50px rgba(0,0,0,0.35);
}

.reader-page-media {
    background: linear-gradient(180deg, #ffffff, #e2e8f0);
}

.reader-page-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #fff;
    user-select: none;
}

.reader-page-meta {
    padding: 1rem 1.1rem 1.1rem;
}

.reader-page-number {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.reader-page-caption {
    margin-top: 0.35rem;
    min-height: 1.25rem;
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.4;
}

.reader-thumb {
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    text-align: start;
    transition: 160ms ease;
}

.reader-thumb:hover {
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.reader-thumb.is-active {
    border-color: rgba(255,255,255,0.85);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.35) inset;
}

.reader-thumb-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #fff;
}

.reader-thumb-label {
    display: block;
    padding: 0.75rem 0.85rem 0.9rem;
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 700;
}

.reader-thumbnails {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.reader-thumbnails::-webkit-scrollbar,
.reader-viewport::-webkit-scrollbar {
    width: 0.65rem;
    height: 0.65rem;
}

.reader-thumbnails::-webkit-scrollbar-thumb,
.reader-viewport::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 999px;
}

body.public-shell[data-ui-theme="light"] {
    background: #f1f5f9;
    color: #0f172a;
}

body.public-shell[data-ui-theme="dark"] {
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    color: #e2e8f0;
}

.public-shell[data-ui-theme="dark"] .public-header,
.public-shell[data-ui-theme="dark"] .public-footer,
.public-shell[data-ui-theme="dark"] .theme-switch,
.public-shell[data-ui-theme="dark"] .public-search-form,
.public-shell[data-ui-theme="dark"] .public-logo-wrap,
.public-shell[data-ui-theme="dark"] .bg-white,
.public-shell[data-ui-theme="dark"] .bg-slate-50 {
    background: rgba(15, 23, 42, 0.86) !important;
    color: #e2e8f0 !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    box-shadow: 0 16px 40px rgba(2, 8, 23, 0.18);
}

.public-shell[data-ui-theme="dark"] .border-slate-200,
.public-shell[data-ui-theme="dark"] .border-slate-300 {
    border-color: rgba(148, 163, 184, 0.18) !important;
}

.public-shell[data-ui-theme="dark"] .text-slate-900,
.public-shell[data-ui-theme="dark"] .text-slate-800,
.public-shell[data-ui-theme="dark"] .text-slate-700 {
    color: #f8fafc !important;
}

.public-shell[data-ui-theme="dark"] .text-slate-600,
.public-shell[data-ui-theme="dark"] .text-slate-500,
.public-shell[data-ui-theme="dark"] .text-slate-400 {
    color: #cbd5e1 !important;
}

.public-shell[data-ui-theme="dark"] .hover\:bg-slate-50:hover,
.public-shell[data-ui-theme="dark"] .hover\:bg-slate-100:hover,
.public-shell[data-ui-theme="dark"] .hover\:bg-white\/10:hover {
    background: rgba(30, 41, 59, 0.95) !important;
}

.public-shell[data-ui-theme="dark"] input,
.public-shell[data-ui-theme="dark"] textarea,
.public-shell[data-ui-theme="dark"] select {
    background: rgba(15, 23, 42, 0.9) !important;
    color: #f8fafc !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

.public-shell[data-ui-theme="dark"] .theme-switch__item {
    color: #cbd5e1;
}

.public-shell[data-ui-theme="dark"] .theme-switch__item:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #fff;
}

.public-shell[data-ui-theme="dark"] .theme-switch__item.is-active {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: #fff;
}

body.admin-shell[data-ui-theme="dark"] {
    background: #020617;
    color: #e2e8f0;
}

body.admin-shell[data-ui-theme="light"] {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    color: #0f172a;
}

.admin-shell[data-ui-theme="light"] .bg-slate-950,
.admin-shell[data-ui-theme="light"] .bg-slate-900\/80,
.admin-shell[data-ui-theme="light"] .bg-slate-900\/70,
.admin-shell[data-ui-theme="light"] .bg-slate-900\/60,
.admin-shell[data-ui-theme="light"] .bg-slate-900\/40,
.admin-shell[data-ui-theme="light"] .bg-slate-900\/30,
.admin-shell[data-ui-theme="light"] .bg-slate-950\/40,
.admin-shell[data-ui-theme="light"] .bg-slate-950\/50,
.admin-shell[data-ui-theme="light"] .bg-white\/5,
.admin-shell[data-ui-theme="light"] .bg-white\/10,
.admin-shell[data-ui-theme="light"] .from-slate-900,
.admin-shell[data-ui-theme="light"] .via-slate-900,
.admin-shell[data-ui-theme="light"] .to-slate-950 {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(203, 213, 225, 0.82) !important;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.admin-shell[data-ui-theme="light"] .border-white\/10,
.admin-shell[data-ui-theme="light"] .border-white\/5 {
    border-color: rgba(203, 213, 225, 0.82) !important;
}

.admin-shell[data-ui-theme="light"] .text-white {
    color: #0f172a !important;
}

.admin-shell[data-ui-theme="light"] .text-slate-200,
.admin-shell[data-ui-theme="light"] .text-slate-300 {
    color: #334155 !important;
}

.admin-shell[data-ui-theme="light"] .text-slate-400,
.admin-shell[data-ui-theme="light"] .text-slate-500 {
    color: #64748b !important;
}

.admin-shell[data-ui-theme="light"] .hover\:bg-white\/5:hover,
.admin-shell[data-ui-theme="light"] .hover\:bg-white\/10:hover,
.admin-shell[data-ui-theme="light"] .hover\:bg-slate-100:hover {
    background: rgba(226, 232, 240, 0.72) !important;
}

.admin-shell[data-ui-theme="light"] .admin-input {
    border-color: #cbd5e1;
    background: #fff;
    color: #0f172a;
}

.admin-shell[data-ui-theme="light"] .admin-input::placeholder {
    color: #94a3b8;
}

.admin-shell[data-ui-theme="light"] .admin-validation {
    color: #e11d48;
}

.admin-shell[data-ui-theme="light"] .table-card {
    background: #fff;
    border-color: #e2e8f0;
}

.admin-shell[data-ui-theme="light"] .theme-switch {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(203, 213, 225, 0.82);
}

.admin-shell[data-ui-theme="light"] .theme-switch__item {
    color: #334155;
}

.admin-shell[data-ui-theme="light"] .theme-switch__item:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #0f172a;
}

.admin-shell[data-ui-theme="light"] .theme-switch__item.is-active {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
}

@media (max-width: 1023.98px) {
    .reader-viewport {
        min-height: 24rem;
    }

    .reader-spread {
        min-height: 20rem;
    }
}

/* Retry pass: public header, admin shell, light mode contrast */
.public-header {
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(16px);
    border-color: rgba(203,213,225,0.9);
    box-shadow: 0 12px 30px rgba(15,23,42,0.04);
}

.public-brand {
    color: #0f172a;
    text-decoration: none;
}

.public-brand-logo {
    border-color: rgba(203,213,225,0.9);
}

.public-brand-kicker {
    color: #0ea5e9;
}

.public-brand-title {
    color: #0f172a;
}

.public-nav a {
    color: #334155;
    transition: background-color 160ms ease, color 160ms ease;
}

.public-nav a:hover {
    background: rgba(226,232,240,0.8);
    color: #0f172a;
}

.public-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(203,213,225,0.9);
    background: #fff;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15,23,42,0.06);
    transition: all 160ms ease;
}

.public-icon-button:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #0369a1;
}

.public-language-button {
    width: auto;
    min-width: 2.85rem;
    padding: 0 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.public-search-shell {
    background: rgba(255,255,255,0.98);
    border-color: rgba(203,213,225,0.9);
    box-shadow: 0 16px 32px rgba(15,23,42,0.06);
}

.public-search-input {
    background: #fff;
    border-color: rgba(203,213,225,0.9);
    color: #0f172a;
}

.public-search-input::placeholder {
    color: #94a3b8;
}

.public-search-submit {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #fff;
    box-shadow: 0 14px 26px rgba(37,99,235,0.24);
}

.public-search-submit:hover {
    filter: brightness(1.03);
}

.public-footer {
    background: rgba(255,255,255,0.92);
    border-color: rgba(203,213,225,0.9);
}

.public-footer-text {
    color: #475569;
}

.public-shell[data-ui-theme="dark"] .public-header,
.public-shell[data-ui-theme="dark"] .public-footer,
.public-shell[data-ui-theme="dark"] .public-search-shell {
    background: rgba(15, 23, 42, 0.92) !important;
    border-color: rgba(51,65,85,0.95) !important;
    box-shadow: 0 16px 36px rgba(2,8,23,0.28);
}

.public-shell[data-ui-theme="dark"] .public-brand,
.public-shell[data-ui-theme="dark"] .public-brand-title,
.public-shell[data-ui-theme="dark"] .public-nav a,
.public-shell[data-ui-theme="dark"] .public-footer-text {
    color: #e2e8f0;
}

.public-shell[data-ui-theme="dark"] .public-nav a:hover {
    background: rgba(30,41,59,0.9);
    color: #fff;
}

.public-shell[data-ui-theme="dark"] .public-icon-button {
    background: rgba(15,23,42,0.92);
    border-color: rgba(51,65,85,0.95);
    color: #e2e8f0;
}

.public-shell[data-ui-theme="dark"] .public-icon-button:hover {
    background: rgba(30,41,59,0.95);
    border-color: rgba(56,189,248,0.35);
    color: #7dd3fc;
}

.public-shell[data-ui-theme="dark"] .public-search-input {
    background: rgba(15,23,42,0.96);
    color: #f8fafc;
    border-color: rgba(51,65,85,0.95);
}

.admin-sidebar {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border-color: rgba(203,213,225,0.9);
}

.admin-brand-card {
    background: rgba(255,255,255,0.98);
    border-color: rgba(203,213,225,0.9);
}

.admin-brand-logo {
    background: #fff;
    border-color: rgba(203,213,225,0.9);
}

.admin-brand-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #38bdf8;
}

.admin-brand-title {
    color: #0f172a;
}

.admin-sidebar-heading {
    padding: 0 0.75rem;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #64748b;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid transparent;
    border-radius: 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    transition: all 160ms ease;
}

.admin-nav-item:hover {
    background: rgba(226,232,240,0.86);
    border-color: rgba(191,219,254,0.9);
    color: #0f172a;
}

.admin-nav-item.is-active {
    background: linear-gradient(135deg, rgba(186,230,253,0.92), rgba(224,242,254,0.92));
    border-color: rgba(125,211,252,0.95);
    color: #0f172a;
    box-shadow: 0 14px 24px rgba(14,165,233,0.10);
}

.admin-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(203,213,225,0.9);
    background: rgba(255,255,255,0.98);
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 160ms ease;
}

.admin-toggle-button:hover {
    background: #eff6ff;
    color: #0f172a;
    border-color: #93c5fd;
}

.admin-toggle-button.is-active {
    background: linear-gradient(135deg, #bae6fd, #e0f2fe);
    border-color: #7dd3fc;
    color: #0f172a;
}

.admin-topbar {
    background: rgba(255,255,255,0.92);
    border-color: rgba(203,213,225,0.9);
    box-shadow: 0 10px 24px rgba(15,23,42,0.04);
}

.admin-top-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    padding: 0.7rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 160ms ease;
    border: 1px solid transparent;
}

.admin-top-action-primary {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #fff;
    box-shadow: 0 12px 22px rgba(37,99,235,0.24);
}

.admin-top-action-primary:hover,
.admin-top-action-secondary:hover,
.admin-top-action-muted:hover {
    filter: brightness(1.03);
}

.admin-top-action-secondary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 12px 22px rgba(5,150,105,0.22);
}

.admin-top-action-muted {
    background: #fff;
    border-color: rgba(203,213,225,0.9);
    color: #0f172a;
}

.admin-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    padding: 0.75rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 160ms ease;
    border: 1px solid transparent;
}

.admin-cta-button-primary {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #fff;
    box-shadow: 0 12px 22px rgba(37,99,235,0.22);
}

.admin-cta-button:hover { filter: brightness(1.03); }

.analytics-chart-shell {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.analytics-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(203,213,225,0.9);
    background: rgba(255,255,255,0.94);
    padding: 0.5rem 0.75rem;
    color: #475569;
}

.analytics-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.analytics-line-total { stroke: #0f766e; }
.analytics-line-reader { stroke: #2563eb; }
.analytics-line-search { stroke: #d97706; }
.analytics-area-stop-start { stop-color: rgba(37,99,235,0.22); }
.analytics-area-stop-end { stop-color: rgba(37,99,235,0.02); }
.analytics-bar-track { background: #e2e8f0 !important; }
.analytics-bar-fill { background: linear-gradient(90deg, #0ea5e9, #2563eb) !important; }

.admin-icon-action {
    border-width: 1px;
}

.admin-icon-action--edit {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
.admin-icon-action--source {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1d4ed8 !important;
}
.admin-icon-action--processing {
    background: #ecfeff !important;
    border-color: #a5f3fc !important;
    color: #0f766e !important;
}
.admin-icon-action--pages {
    background: #f5f3ff !important;
    border-color: #ddd6fe !important;
    color: #6d28d9 !important;
}
.admin-icon-action--workflow {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #047857 !important;
}
.admin-icon-action--toc {
    background: #fdf4ff !important;
    border-color: #f5d0fe !important;
    color: #a21caf !important;
}
.admin-icon-action--text {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #b45309 !important;
}

.admin-icon-action:hover {
    filter: brightness(0.98);
    box-shadow: 0 10px 18px rgba(15,23,42,0.08);
}

.admin-shell[data-ui-theme="light"] {
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.admin-shell[data-ui-theme="light"] .text-emerald-100 { color: #065f46 !important; }
.admin-shell[data-ui-theme="light"] .text-amber-100 { color: #92400e !important; }
.admin-shell[data-ui-theme="light"] .text-fuchsia-100 { color: #a21caf !important; }
.admin-shell[data-ui-theme="light"] .text-violet-100 { color: #6d28d9 !important; }
.admin-shell[data-ui-theme="light"] .text-sky-100 { color: #075985 !important; }
.admin-shell[data-ui-theme="light"] .text-pink-100 { color: #be185d !important; }
.admin-shell[data-ui-theme="light"] .text-rose-100 { color: #be123c !important; }

.admin-shell[data-ui-theme="light"] .bg-emerald-500\/10 { background: #ecfdf5 !important; }
.admin-shell[data-ui-theme="light"] .bg-amber-500\/10 { background: #fffbeb !important; }
.admin-shell[data-ui-theme="light"] .bg-fuchsia-500\/10 { background: #fdf4ff !important; }
.admin-shell[data-ui-theme="light"] .bg-violet-500\/10 { background: #f5f3ff !important; }
.admin-shell[data-ui-theme="light"] .bg-sky-500\/10,
.admin-shell[data-ui-theme="light"] .bg-sky-500\/15,
.admin-shell[data-ui-theme="light"] .bg-sky-500\/20 { background: #eff6ff !important; }
.admin-shell[data-ui-theme="light"] .bg-white\/15,
.admin-shell[data-ui-theme="light"] .bg-white\/20 { background: rgba(255,255,255,0.98) !important; }

.admin-shell[data-ui-theme="light"] .border-emerald-400\/20,
.admin-shell[data-ui-theme="light"] .border-emerald-400\/30 { border-color: #a7f3d0 !important; }
.admin-shell[data-ui-theme="light"] .border-amber-400\/20,
.admin-shell[data-ui-theme="light"] .border-amber-400\/30 { border-color: #fcd34d !important; }
.admin-shell[data-ui-theme="light"] .border-fuchsia-400\/20,
.admin-shell[data-ui-theme="light"] .border-fuchsia-400\/30 { border-color: #f5d0fe !important; }
.admin-shell[data-ui-theme="light"] .border-violet-400\/30 { border-color: #ddd6fe !important; }
.admin-shell[data-ui-theme="light"] .border-sky-400\/20,
.admin-shell[data-ui-theme="light"] .border-sky-400\/30 { border-color: #bfdbfe !important; }

.admin-shell[data-ui-theme="light"] .hover\:bg-emerald-500\/20:hover { background: #d1fae5 !important; }
.admin-shell[data-ui-theme="light"] .hover\:bg-amber-500\/20:hover { background: #fef3c7 !important; }
.admin-shell[data-ui-theme="light"] .hover\:bg-fuchsia-500\/20:hover { background: #fae8ff !important; }
.admin-shell[data-ui-theme="light"] .hover\:bg-violet-500\/20:hover { background: #ede9fe !important; }
.admin-shell[data-ui-theme="light"] .hover\:bg-sky-500\/20:hover,
.admin-shell[data-ui-theme="light"] .hover\:bg-sky-500\/30:hover { background: #dbeafe !important; }

.admin-shell[data-ui-theme="light"] .text-slate-500,
.admin-shell[data-ui-theme="light"] .text-slate-400 { color: #64748b !important; }

.admin-shell[data-ui-theme="light"] .text-white { color: #0f172a !important; }

.admin-shell[data-ui-theme="light"] .admin-topbar,
.admin-shell[data-ui-theme="light"] .admin-brand-card,
.admin-shell[data-ui-theme="light"] .table-card { box-shadow: 0 16px 28px rgba(15,23,42,0.05); }

.admin-shell[data-ui-theme="light"] .sticky-save-bar,
.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-white\/10.bg-slate-950\/40,
.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-white\/10.bg-slate-950\/50,
.admin-shell[data-ui-theme="light"] .rounded-2xl.border.border-white\/10.bg-slate-950\/40,
.admin-shell[data-ui-theme="light"] .rounded-2xl.border.border-white\/10.bg-slate-950\/50 {
    background: rgba(255,255,255,0.98) !important;
}

.admin-shell[data-ui-theme="light"] .tooltip-dark,
.admin-shell[data-ui-theme="light"] .group .bg-slate-950\/95 {
    background: #0f172a !important;
    color: #fff !important;
}

body.admin-shell[data-ui-theme="dark"] .admin-sidebar {
    background: #020617;
    border-color: rgba(30,41,59,0.95);
}

body.admin-shell[data-ui-theme="dark"] .admin-brand-card {
    background: linear-gradient(180deg, rgba(15,23,42,0.96), rgba(2,6,23,0.96));
    border-color: rgba(51,65,85,0.95);
}

body.admin-shell[data-ui-theme="dark"] .admin-brand-logo {
    background: rgba(255,255,255,0.04);
    border-color: rgba(51,65,85,0.95);
}

body.admin-shell[data-ui-theme="dark"] .admin-brand-title,
body.admin-shell[data-ui-theme="dark"] .admin-nav-item,
body.admin-shell[data-ui-theme="dark"] .admin-topbar,
body.admin-shell[data-ui-theme="dark"] .admin-topbar h1 {
    color: #e2e8f0;
}

body.admin-shell[data-ui-theme="dark"] .admin-sidebar-heading { color: #64748b; }
body.admin-shell[data-ui-theme="dark"] .admin-nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.08); }
body.admin-shell[data-ui-theme="dark"] .admin-nav-item.is-active { background: rgba(14,165,233,0.18); border-color: rgba(56,189,248,0.35); color: #fff; }
body.admin-shell[data-ui-theme="dark"] .admin-toggle-button { background: rgba(255,255,255,0.04); border-color: rgba(51,65,85,0.95); color: #cbd5e1; }
body.admin-shell[data-ui-theme="dark"] .admin-toggle-button:hover { background: rgba(255,255,255,0.08); color: #fff; }
body.admin-shell[data-ui-theme="dark"] .admin-toggle-button.is-active { background: rgba(14,165,233,0.18); border-color: rgba(56,189,248,0.35); color: #fff; }
body.admin-shell[data-ui-theme="dark"] .admin-topbar { background: rgba(2,6,23,0.88); border-color: rgba(30,41,59,0.95); }
body.admin-shell[data-ui-theme="dark"] .admin-top-action-muted { background: rgba(255,255,255,0.04); border-color: rgba(51,65,85,0.95); color: #fff; }
body.admin-shell[data-ui-theme="dark"] .analytics-chart-shell { background: linear-gradient(180deg, rgba(2,6,23,0.96) 0%, rgba(15,23,42,0.88) 100%) !important; }
body.admin-shell[data-ui-theme="dark"] .analytics-chip { background: rgba(2,6,23,0.76); border-color: rgba(51,65,85,0.95); color: #cbd5e1; }
body.admin-shell[data-ui-theme="dark"] .analytics-line-total { stroke: #67e8f9; }
body.admin-shell[data-ui-theme="dark"] .analytics-line-reader { stroke: #86efac; }
body.admin-shell[data-ui-theme="dark"] .analytics-line-search { stroke: #fcd34d; }
body.admin-shell[data-ui-theme="dark"] .analytics-area-stop-start { stop-color: rgba(103,232,249,0.45); }
body.admin-shell[data-ui-theme="dark"] .analytics-area-stop-end { stop-color: rgba(103,232,249,0.02); }
body.admin-shell[data-ui-theme="dark"] .analytics-bar-track { background: #1e293b !important; }
body.admin-shell[data-ui-theme="dark"] .analytics-bar-fill { background: linear-gradient(90deg, #67e8f9, #818cf8) !important; }

@media (max-width: 1023.98px) {
    .public-topbar { gap: 1rem; }
}


/* Back button and sticky action bar light-mode fix */
.admin-sticky-actionbar {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
}

.admin-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1.25rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-secondary-button:hover,
.admin-secondary-button:focus-visible {
    border-color: rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    outline: none;
}

.admin-secondary-button:active {
    transform: translateY(1px);
}

body.admin-shell[data-ui-theme="light"] .admin-sticky-actionbar {
    border-color: rgba(148, 163, 184, 0.28);
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.98), rgba(226, 232, 240, 0.98));
    box-shadow: 0 20px 44px rgba(148, 163, 184, 0.22);
}

body.admin-shell[data-ui-theme="light"] .admin-sticky-actionbar .text-slate-400 {
    color: #475569 !important;
}

body.admin-shell[data-ui-theme="light"] .admin-secondary-button {
    border-color: rgba(148, 163, 184, 0.55);
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.16);
}

body.admin-shell[data-ui-theme="light"] .admin-secondary-button:hover,
body.admin-shell[data-ui-theme="light"] .admin-secondary-button:focus-visible {
    border-color: rgba(56, 189, 248, 0.45);
    background: #e0f2fe;
    color: #0f172a;
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.18);
}


/* Publications index light-mode surface refinement */
.publication-tile {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(15,23,42,0.68);
    box-shadow: 0 18px 40px rgba(2,8,23,0.20);
}

.publication-logo-wrap {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}

.publication-meta-card {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(15,23,42,0.44);
}

.publication-preview-card {
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
}

.publication-edit-button {
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #e2e8f0;
}

.publication-edit-button:hover,
.publication-edit-button:focus-visible {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(2,8,23,0.18);
    outline: none;
}

body.admin-shell[data-ui-theme="light"] .admin-surface-card {
    border: 1px solid rgba(203,213,225,0.95);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    box-shadow: 0 16px 34px rgba(148,163,184,0.12);
}

body.admin-shell[data-ui-theme="light"] .admin-stat-card {
    border: 1px solid rgba(203,213,225,0.95);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(148,163,184,0.10);
}

body.admin-shell[data-ui-theme="light"] .admin-stat-card--success {
    background: linear-gradient(180deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: #a7f3d0;
}

body.admin-shell[data-ui-theme="light"] .admin-stat-card--muted {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

body.admin-shell[data-ui-theme="light"] .publication-tile {
    border: 1px solid rgba(203,213,225,0.95);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 16px 34px rgba(148,163,184,0.12);
}

body.admin-shell[data-ui-theme="light"] .publication-tile h3,
body.admin-shell[data-ui-theme="light"] .publication-tile .text-white {
    color: #0f172a !important;
}

body.admin-shell[data-ui-theme="light"] .publication-logo-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(203,213,225,0.95);
}

body.admin-shell[data-ui-theme="light"] .publication-meta-card {
    border: 1px solid rgba(203,213,225,0.95);
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

body.admin-shell[data-ui-theme="light"] .publication-meta-card .text-slate-100,
body.admin-shell[data-ui-theme="light"] .publication-meta-card .text-white {
    color: #0f172a !important;
}

body.admin-shell[data-ui-theme="light"] .publication-meta-card .text-slate-400 {
    color: #64748b !important;
}

body.admin-shell[data-ui-theme="light"] .publication-preview-card {
    border: 1px solid rgba(203,213,225,0.95);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.admin-shell[data-ui-theme="light"] .publication-preview-card .text-slate-500 {
    color: #64748b !important;
}

body.admin-shell[data-ui-theme="light"] .publication-preview-card .border-white\/10 {
    border-color: rgba(203,213,225,0.95) !important;
}

body.admin-shell[data-ui-theme="light"] .publication-edit-button {
    border-color: rgba(203,213,225,0.95);
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(148,163,184,0.12);
}

body.admin-shell[data-ui-theme="light"] .publication-edit-button:hover,
body.admin-shell[data-ui-theme="light"] .publication-edit-button:focus-visible {
    border-color: rgba(56,189,248,0.45);
    background: #e0f2fe;
    color: #0f172a;
}

body.admin-shell[data-ui-theme="light"] .publication-tile .border-emerald-500\/20 {
    border-color: #a7f3d0 !important;
}

body.admin-shell[data-ui-theme="light"] .publication-tile .bg-emerald-500\/10 {
    background: #ecfdf5 !important;
}

body.admin-shell[data-ui-theme="light"] .publication-tile .text-emerald-200 {
    color: #047857 !important;
}

body.admin-shell[data-ui-theme="light"] .publication-tile .bg-slate-500\/10 {
    background: #f1f5f9 !important;
}

body.admin-shell[data-ui-theme="light"] .publication-tile .border-slate-500\/20 {
    border-color: #cbd5e1 !important;
}

body.admin-shell[data-ui-theme="light"] .publication-tile .text-slate-300 {
    color: #475569 !important;
}


/* Latest light-mode refinement on top of attached updated CSS baseline */
body.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-amber-400\/20.bg-amber-500\/10.p-6.shadow-lg {
    background: linear-gradient(180deg, #fffdf7 0%, #fff7e8 100%) !important;
    border-color: #f6c768 !important;
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.10) !important;
}
body.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-amber-400\/20.bg-amber-500\/10.p-6.shadow-lg .text-amber-100,
body.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-amber-400\/20.bg-amber-500\/10.p-6.shadow-lg .text-white {
    color: #92400e !important;
}
body.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-amber-400\/20.bg-amber-500\/10.p-6.shadow-lg .text-amber-50\/90,
body.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-amber-400\/20.bg-amber-500\/10.p-6.shadow-lg li,
body.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-amber-400\/20.bg-amber-500\/10.p-6.shadow-lg p {
    color: #9a6b20 !important;
}

body.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-emerald-400\/20.bg-emerald-500\/10.p-6.shadow-lg {
    background: linear-gradient(180deg, #f8fffc 0%, #eafaf3 100%) !important;
    border-color: #86efac !important;
    box-shadow: 0 18px 34px rgba(16, 185, 129, 0.10) !important;
}
body.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-emerald-400\/20.bg-emerald-500\/10.p-6.shadow-lg .text-emerald-100,
body.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-emerald-400\/20.bg-emerald-500\/10.p-6.shadow-lg .text-white {
    color: #047857 !important;
}
body.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-emerald-400\/20.bg-emerald-500\/10.p-6.shadow-lg .text-emerald-50\/90,
body.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-emerald-400\/20.bg-emerald-500\/10.p-6.shadow-lg li,
body.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-emerald-400\/20.bg-emerald-500\/10.p-6.shadow-lg p,
body.admin-shell[data-ui-theme="light"] .rounded-3xl.border.border-emerald-400\/20.bg-emerald-500\/10.p-6.shadow-lg strong {
    color: #065f46 !important;
}

body.admin-shell[data-ui-theme="light"] .analytics-chart-shell {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
    border-color: rgba(191, 219, 254, 0.95) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 18px 32px rgba(148,163,184,0.10) !important;
}
body.admin-shell[data-ui-theme="light"] .analytics-chip {
    background: #ffffff !important;
    border-color: rgba(191,219,254,0.95) !important;
    color: #475569 !important;
}
body.admin-shell[data-ui-theme="light"] .analytics-line-total { stroke: #0284c7 !important; }
body.admin-shell[data-ui-theme="light"] .analytics-line-reader { stroke: #059669 !important; }
body.admin-shell[data-ui-theme="light"] .analytics-line-search { stroke: #ea580c !important; }
body.admin-shell[data-ui-theme="light"] .analytics-area-stop-start { stop-color: rgba(2,132,199,0.18) !important; }
body.admin-shell[data-ui-theme="light"] .analytics-area-stop-end { stop-color: rgba(2,132,199,0.02) !important; }
body.admin-shell[data-ui-theme="light"] .analytics-bar-track {
    background: #e5eefb !important;
}
body.admin-shell[data-ui-theme="light"] .analytics-bar-fill {
    background: linear-gradient(90deg, #0284c7, #2563eb) !important;
}
body.admin-shell[data-ui-theme="light"] .analytics-chart-shell svg line[stroke="rgba(148,163,184,0.35)"] {
    stroke: rgba(148,163,184,0.45) !important;
}
body.admin-shell[data-ui-theme="light"] .analytics-chart-shell svg line[stroke="rgba(148,163,184,0.2)"] {
    stroke: rgba(226,232,240,0.95) !important;
}

body.admin-shell[data-ui-theme="light"] .admin-secondary-button:hover,
body.admin-shell[data-ui-theme="light"] .admin-secondary-button:focus-visible {
    background: #eef6ff !important;
    border-color: rgba(59,130,246,0.40) !important;
    color: #0f172a !important;
}


/* 2026-03 latest baseline: header cleanup + reader/admin refinements */
.public-brand-kicker,
.admin-brand-kicker {
    display: none;
}

.public-topbar {
    align-items: center;
}

.public-topbar > .flex.flex-wrap.items-center.justify-end.gap-2.lg\:gap-3 {
    width: 100%;
}

@media (min-width: 1024px) {
    .public-topbar > .flex.flex-wrap.items-center.justify-end.gap-2.lg\:gap-3 {
        width: auto;
        margin-inline-start: auto;
    }
}

/* Admin security management */
.admin-select,
.admin-textarea {
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(2, 6, 23, 0.75);
    padding: 0.85rem 1rem;
    color: #fff;
    outline: none;
}

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

.admin-select:focus,
.admin-textarea:focus {
    border-color: rgba(255,255,255,0.25);
}

.admin-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    padding: 0.8rem 1.3rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.admin-primary-button:hover,
.admin-primary-button:focus-visible {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(14, 165, 233, 0.26);
    outline: none;
}

.admin-check-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 0.75rem;
    align-items: start;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(15,23,42,0.55);
    padding: 0.85rem 1rem;
}

.admin-check-card input[type="checkbox"] {
    margin-top: 0.2rem;
}

.admin-tag-chip,
.admin-status-positive,
.admin-status-warning,
.admin-status-neutral {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-tag-chip,
.admin-status-neutral {
    background: rgba(148,163,184,0.14);
    color: #cbd5e1;
}

.admin-status-positive {
    background: rgba(34,197,94,0.16);
    color: #bbf7d0;
}

.admin-status-warning {
    background: rgba(245,158,11,0.18);
    color: #fde68a;
}

.admin-table-head {
    background: rgba(15,23,42,0.82);
    color: #cbd5e1;
}

.admin-sticky-action-bar,
.admin-sticky-actionbar {
    border-color: rgba(148, 163, 184, 0.28);
}

body.admin-shell[data-ui-theme="light"] .admin-select,
body.admin-shell[data-ui-theme="light"] .admin-textarea {
    border-color: rgba(203,213,225,0.95);
    background: #fff;
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(148,163,184,0.08);
}

body.admin-shell[data-ui-theme="light"] .admin-check-card {
    border-color: rgba(203,213,225,0.95);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

body.admin-shell[data-ui-theme="light"] .admin-tag-chip,
body.admin-shell[data-ui-theme="light"] .admin-status-neutral {
    background: #e2e8f0;
    color: #334155;
}

body.admin-shell[data-ui-theme="light"] .admin-status-positive {
    background: #dcfce7;
    color: #166534;
}

body.admin-shell[data-ui-theme="light"] .admin-status-warning {
    background: #fef3c7;
    color: #92400e;
}

body.admin-shell[data-ui-theme="light"] .admin-table-head {
    background: #f8fafc;
    color: #475569;
}

/* Issue pages edit modal light-theme refinement */
body.admin-shell[data-ui-theme="light"] #pageEditModal {
    background: rgba(15, 23, 42, 0.28) !important;
    backdrop-filter: blur(8px);
}

body.admin-shell[data-ui-theme="light"] #pageEditModal > div {
    border-color: rgba(203, 213, 225, 0.95) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16) !important;
}

body.admin-shell[data-ui-theme="light"] #pageEditModal .text-white {
    color: #0f172a !important;
}

body.admin-shell[data-ui-theme="light"] #pageEditModal .text-slate-200 {
    color: #334155 !important;
}

body.admin-shell[data-ui-theme="light"] #pageEditModal .text-slate-500 {
    color: #64748b !important;
}

body.admin-shell[data-ui-theme="light"] #pageEditModal .admin-input {
    border-color: rgba(203, 213, 225, 0.95) !important;
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.08);
}

body.admin-shell[data-ui-theme="light"] #pageEditModal .admin-input::placeholder {
    color: #94a3b8 !important;
}

body.admin-shell[data-ui-theme="light"] #pageEditModal .admin-input:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14), 0 12px 24px rgba(148, 163, 184, 0.12) !important;
}

body.admin-shell[data-ui-theme="light"] #pageEditModal label.flex {
    border-color: rgba(203, 213, 225, 0.95) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #334155 !important;
    box-shadow: 0 8px 20px rgba(148, 163, 184, 0.08);
}

body.admin-shell[data-ui-theme="light"] #pageEditModal input[type="checkbox"] {
    accent-color: #0ea5e9;
}

body.admin-shell[data-ui-theme="light"] #closePageEditModal {
    border-color: rgba(203, 213, 225, 0.95) !important;
    background: #f8fafc !important;
    color: #475569 !important;
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.14);
}

body.admin-shell[data-ui-theme="light"] #closePageEditModal:hover,
body.admin-shell[data-ui-theme="light"] #closePageEditModal:focus-visible {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

body.admin-shell[data-ui-theme="light"] #cancelPageEditModal {
    border-color: rgba(203, 213, 225, 0.95) !important;
    background: #ffffff !important;
    color: #334155 !important;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.08);
}

body.admin-shell[data-ui-theme="light"] #cancelPageEditModal:hover,
body.admin-shell[data-ui-theme="light"] #cancelPageEditModal:focus-visible {
    background: #f8fafc !important;
    color: #0f172a !important;
}

body.admin-shell[data-ui-theme="light"] #pageEditModal form button[type="submit"] {
    border: 1px solid #0284c7 !important;
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.24);
}

body.admin-shell[data-ui-theme="light"] #pageEditModal form button[type="submit"]:hover,
body.admin-shell[data-ui-theme="light"] #pageEditModal form button[type="submit"]:focus-visible {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%) !important;
    box-shadow: 0 18px 36px rgba(2, 132, 199, 0.28);
}
