/* ==========================================================================
   LEKA Laboratories WebSiteManager – Admin & Auth Stylesheet
   Brand System: ../leka-brand (Midnight #0F172A, Sky #38BDF8, Surface #1E293B)
   Mobile-First, Smartphone-Optimized (44px+ touch targets, no iOS input zoom)
   ========================================================================== */

:root {
    --leka-midnight: #0F172A;
    --leka-surface: #1E293B;
    --leka-sky: #38BDF8;
    --leka-sky-hover: #7DD3FC;
    --leka-sky-dark: #0284C7;
    --leka-slate: #64748B;
    --leka-frost: #F8FAFC;

    --adm-bg: #F1F5F9;
    --adm-surface: #FFFFFF;
    --adm-surface-alt: #F8FAFC;
    --adm-border: #CBD5E1;
    --adm-border-soft: #E2E8F0;
    --adm-text: #0F172A;
    --adm-muted: #64748B;

    --adm-primary: #0F172A;
    --adm-primary-hover: #1E293B;
    --adm-accent: #38BDF8;
    --adm-accent-soft: #E0F2FE;
    --adm-accent-text: #0369A1;

    --adm-danger: #DC2626;
    --adm-danger-hover: #B91C1C;
    --adm-danger-soft: #FEF2F2;
    --adm-success: #059669;
    --adm-success-soft: #ECFDF5;

    --adm-radius: 10px;
    --adm-radius-sm: 8px;
    --adm-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
    --adm-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    --adm-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --adm-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --adm-mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--adm-font);
    font-size: 15px;
    color: var(--adm-text);
    background: var(--adm-bg);
    line-height: 1.55;
    -webkit-text-size-adjust: 100%;
}

code {
    font-family: var(--adm-mono);
    font-size: 13px;
    color: var(--leka-sky-dark);
    background: var(--adm-surface-alt);
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    border: 1px solid var(--adm-border-soft);
}

/* ==========================================================================
   LEKA Brand Mark & Typography
   ========================================================================== */
.leka-mark-svg {
    flex-shrink: 0;
    display: block;
}

.leka-brand-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.leka-wordmark {
    font-family: var(--adm-display);
    font-weight: 200;
    font-size: 1.75rem;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--leka-midnight);
    line-height: 1.1;
}

.leka-subtag {
    font-family: var(--adm-display);
    font-weight: 500;
    font-size: 0.62rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--leka-slate);
}

/* ==========================================================================
   Auth Page (login.php)
   ========================================================================== */
.auth-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: 16px;
    padding: 2rem 1.65rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.auth-brand-row {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--adm-border-soft);
}

.auth-header h1 {
    margin: 0.45rem 0 0.25rem;
    font-size: 1.45rem;
    color: var(--leka-midnight);
}

.auth-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: var(--adm-accent-soft);
    color: var(--adm-accent-text);
}

.auth-subtitle {
    margin: 0 0 1.25rem;
    color: var(--adm-muted);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.otp-target {
    margin: 0;
    padding: 0.7rem 0.9rem;
    background: var(--adm-surface-alt);
    border: 1px solid var(--adm-border-soft);
    border-radius: var(--adm-radius-sm);
    font-size: 0.9rem;
}

.otp-input {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 1.4rem !important;
    font-weight: 700;
    font-family: var(--adm-mono) !important;
}

.auth-secondary-action {
    margin-top: 0.85rem;
    text-align: center;
}

.btn-link {
    background: none;
    border: none;
    color: var(--leka-sky-dark);
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    padding: 0.4rem;
}

.auth-back-link {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.9rem;
}

.auth-back-link a {
    color: var(--adm-muted);
    text-decoration: none;
}

.auth-back-link a:hover {
    color: var(--adm-text);
}

/* ==========================================================================
   Form Controls & Buttons (Smartphone-Ready: 44px height, 16px input font)
   ========================================================================== */
.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.field label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--adm-text);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="number"],
.field select,
.field textarea,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.8rem;
    font-family: inherit;
    font-size: 16px; /* Prevents automatic zoom on iOS/Android */
    color: var(--adm-text);
    background: var(--adm-surface);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
    min-height: 82px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
textarea:focus {
    outline: none;
    border-color: var(--leka-sky-dark);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0 1.05rem;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--adm-radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-sm {
    min-height: 38px;
    padding: 0 0.85rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-grow {
    flex: 1;
}

/* Sky (#38BDF8) with Midnight (#0F172A) text per LEKA Brand Styleguide */
.btn-primary {
    background: var(--leka-sky);
    color: var(--leka-midnight);
    border-color: var(--leka-sky);
}

.btn-primary:hover:not(:disabled) {
    background: var(--leka-sky-hover);
    border-color: var(--leka-sky-hover);
    color: var(--leka-midnight);
}

.btn-secondary {
    background: var(--adm-surface);
    color: var(--adm-text);
    border-color: var(--adm-border);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--adm-surface-alt);
}

.btn-topbar {
    min-height: 36px;
    padding: 0 0.75rem;
    font-size: 0.82rem;
    background: var(--leka-surface);
    color: var(--leka-frost);
    border: 1px solid #334155;
}

.btn-topbar:hover {
    border-color: var(--leka-sky);
    color: var(--leka-sky);
}

.btn-danger {
    background: var(--adm-danger-soft);
    color: var(--adm-danger);
    border-color: #FECACA;
}

.btn-danger:hover:not(:disabled) {
    background: var(--adm-danger);
    color: #FFFFFF;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--adm-radius-sm);
    border: 1px solid #334155;
    background: var(--leka-surface);
    color: var(--leka-frost);
    font-size: 1.3rem;
    cursor: pointer;
}

.btn-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid var(--adm-border);
    background: var(--adm-surface);
    color: var(--adm-text);
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-icon-sm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-icon-danger {
    color: var(--adm-danger);
    border-color: #FECACA;
    background: var(--adm-danger-soft);
}

.upload-label-btn {
    cursor: pointer;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--adm-radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-error {
    background: var(--adm-danger-soft);
    border-color: #FCA5A5;
    color: #991B1B;
}

.alert-info {
    background: var(--adm-accent-soft);
    border-color: #BAE6FD;
    color: var(--adm-accent-text);
}

/* ==========================================================================
   Topbar (Midnight Header)
   ========================================================================== */
.admin-topbar {
    min-height: 62px;
    background: var(--leka-midnight);
    color: var(--leka-frost);
    border-bottom: 1px solid #1E293B;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 45;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.topbar-brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.leka-header-title {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.leka-wordmark-sm {
    font-family: var(--adm-display);
    font-weight: 200;
    font-size: 1.15rem;
    letter-spacing: 0.35em;
    color: var(--leka-frost);
}

.leka-subtag-sm {
    font-family: var(--adm-display);
    font-weight: 500;
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    color: #94A3B8;
    display: none;
}

.topbar-site-pill {
    font-size: 0.75rem;
    color: var(--leka-sky);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.admin-user {
    font-size: 0.82rem;
    color: #94A3B8;
    display: none;
}

/* ==========================================================================
   Workspace & Off-Canvas Mobile Sidebar
   ========================================================================== */
.admin-workspace {
    display: grid;
    grid-template-columns: 1fr;
    min-height: calc(100dvh - 62px);
    padding-bottom: 76px; /* Space for mobile sticky bar */
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 48;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    background: var(--adm-surface);
    border-right: 1px solid var(--adm-border);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    z-index: 50;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform 200ms ease;
    box-shadow: var(--adm-shadow);
}

.admin-sidebar.is-open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--adm-muted);
}

.sidebar-header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sidebar-header-actions .btn-icon {
    background: var(--adm-surface-alt);
    color: var(--adm-text);
    border-color: var(--adm-border);
    width: 36px;
    height: 36px;
}

.create-page-drawer {
    padding: 0.95rem;
    background: var(--adm-surface-alt);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.create-page-drawer[hidden] {
    display: none;
}

.create-page-drawer h3 {
    margin: 0;
    font-size: 0.95rem;
}

.drawer-actions {
    display: flex;
    gap: 0.5rem;
}

.page-tree,
.tree-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tree-children {
    padding-left: 0.9rem;
    margin-left: 0.4rem;
    border-left: 1px solid var(--adm-border-soft);
}

.tree-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
}

.tree-btn {
    flex: 1;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    padding: 0.45rem 0.65rem;
    border-radius: var(--adm-radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--adm-text);
    min-width: 0;
}

.tree-btn:hover {
    background: var(--adm-surface-alt);
}

.tree-btn.is-active {
    background: var(--leka-midnight);
    color: var(--leka-frost);
    font-weight: 600;
}

.tree-btn.is-active .badge-module {
    background: rgba(56, 189, 248, 0.2);
    color: var(--leka-sky);
}

.tree-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.badge-module {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.1rem 0.42rem;
    border-radius: 4px;
    background: var(--adm-accent-soft);
    color: var(--adm-accent-text);
}

.badge-draft {
    font-size: 0.68rem;
    padding: 0.1rem 0.42rem;
    border-radius: 4px;
    background: #FEF3C7;
    color: #92400E;
}

.badge-hidden-nav {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.1rem 0.42rem;
    border-radius: 4px;
    background: #EDE9FE;
    color: #5B21B6;
}

.tree-btn.is-active .badge-hidden-nav {
    background: rgba(167, 139, 250, 0.25);
    color: #DDD6FE;
}

.tree-delete-icon {
    background: transparent;
    border: none;
    color: var(--adm-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.tree-delete-icon:hover {
    background: var(--adm-danger-soft);
    color: var(--adm-danger);
}

/* ==========================================================================
   Main Editor Pane & Cards
   ========================================================================== */
.admin-editor-pane {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
    min-width: 0;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    background: var(--adm-surface);
    border: 1px solid var(--adm-border-soft);
    border-radius: var(--adm-radius);
    padding: 0.75rem 1rem;
    box-shadow: var(--adm-shadow-sm);
}

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

.path-pill {
    font-family: var(--adm-mono);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    background: var(--leka-midnight);
    color: var(--leka-sky);
    border-radius: 999px;
}

.live-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--leka-sky-dark);
    text-decoration: none;
}

.live-link:hover {
    text-decoration: underline;
}

.editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.panel-card {
    background: var(--adm-surface);
    border: 1px solid var(--adm-border-soft);
    border-radius: var(--adm-radius);
    padding: 1.1rem;
    box-shadow: var(--adm-shadow-sm);
}

.settings-details {
    padding: 0;
}

.panel-summary {
    padding: 0.95rem 1.1rem;
    font-weight: 600;
    font-size: 0.96rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.panel-summary::-webkit-details-marker {
    display: none;
}

.settings-details[open] .panel-summary {
    border-bottom: 1px solid var(--adm-border-soft);
}

.settings-details .frontmatter-grid {
    padding: 1rem 1.1rem;
}

.panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.02rem;
}

.panel-sub {
    margin: 0.2rem 0 0;
    font-size: 0.84rem;
    color: var(--adm-muted);
}

.frontmatter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.field-checkbox {
    justify-content: center;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    cursor: pointer;
    font-weight: 500 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--leka-midnight);
}

/* ==========================================================================
   Modular Content Manager (Offers, Team & Animals, FAQ)
   ========================================================================== */
.module-manager-card {
    border-left: 4px solid var(--leka-sky);
}

.module-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: var(--adm-accent-soft);
    color: var(--adm-accent-text);
    margin-bottom: 0.25rem;
}

.module-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.module-empty-state {
    padding: 1.25rem;
    text-align: center;
    background: var(--adm-surface-alt);
    border: 1px dashed var(--adm-border);
    border-radius: var(--adm-radius-sm);
    color: var(--adm-muted);
}

.module-item-card {
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    background: var(--adm-surface-alt);
    overflow: hidden;
}

.module-item-summary {
    padding: 0.75rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
    background: var(--adm-surface);
}

.module-item-summary::-webkit-details-marker {
    display: none;
}

.module-item-summary-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.module-item-mini-thumb {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--adm-border);
    flex-shrink: 0;
}

.module-item-heading {
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-item-sub {
    font-size: 0.8rem;
    color: var(--adm-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: none;
}

.module-item-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.module-item-body {
    padding: 1rem;
    border-top: 1px solid var(--adm-border-soft);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.image-field-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.image-field-row input {
    flex: 1 1 180px;
}

.image-field-preview {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--adm-border);
    background: #fff;
}

/* ==========================================================================
   Toast UI WYSIWYG Editor Customizations
   ========================================================================== */
.wysiwyg-mount {
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    overflow: hidden;
    background: #fff;
}

.toastui-editor-defaultUI {
    border: none !important;
    font-family: var(--adm-font) !important;
}

.toastui-editor-defaultUI-toolbar {
    flex-wrap: wrap !important;
    height: auto !important;
    padding: 6px 8px !important;
    background: var(--adm-surface-alt) !important;
    border-bottom: 1px solid var(--adm-border-soft) !important;
}

.toastui-editor-contents {
    font-family: var(--adm-font) !important;
    font-size: 16px !important;
    line-height: 1.65 !important;
}

.toastui-editor-contents img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--adm-border-soft);
    margin: 0.5rem 0;
}

/* ==========================================================================
   Assets & Smartphone Camera Section
   ========================================================================== */
.assets-card.is-dragover {
    border-color: var(--leka-sky-dark);
    background: var(--adm-accent-soft);
}

.upload-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.asset-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.75rem;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    background: var(--adm-surface-alt);
    border: 1px solid var(--adm-border-soft);
    border-radius: var(--adm-radius-sm);
}

.asset-thumb-link {
    flex-shrink: 0;
}

.asset-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--adm-border);
    display: block;
}

.asset-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}

.asset-name {
    font-family: var(--adm-mono);
    font-size: 0.8rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-dimensions {
    font-size: 0.74rem;
    color: var(--adm-muted);
}

.asset-btn-row {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

.asset-btn-row .btn-sm {
    min-height: 32px;
    padding: 0 0.6rem;
    font-size: 0.78rem;
}

.assets-empty {
    font-size: 0.88rem;
    color: var(--adm-muted);
}

/* ==========================================================================
   Media Picker Modal
   ========================================================================== */
.admin-modal {
    border: none;
    border-radius: 14px;
    padding: 0;
    width: min(94vw, 680px);
    max-height: 88dvh;
    background: var(--adm-surface);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

.admin-modal::backdrop {
    background: rgba(15, 23, 42, 0.6);
}

.modal-card {
    display: flex;
    flex-direction: column;
    max-height: 88dvh;
}

.modal-header {
    padding: 1rem 1.2rem;
    background: var(--leka-midnight);
    color: var(--leka-frost);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.modal-header h3 {
    margin: 0;
    font-size: 1rem;
}

.modal-body {
    padding: 1.15rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-upload-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.modal-upload-bar .btn {
    flex: 1 1 200px;
}

.modal-asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
}

.modal-asset-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem;
    background: var(--adm-surface-alt);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 150ms ease, transform 150ms ease;
}

.modal-asset-card:hover {
    border-color: var(--leka-sky-dark);
    transform: translateY(-2px);
}

.modal-asset-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
    background: #fff;
}

.modal-asset-card span {
    font-size: 0.76rem;
    font-family: var(--adm-mono);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--adm-text);
}

/* ==========================================================================
   Sticky Bottom Action Bar (Smartphone UX)
   ========================================================================== */
.mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--adm-surface);
    border-top: 1px solid var(--adm-border);
    padding: 0.6rem 0.85rem calc(0.6rem + env(safe-area-inset-bottom));
    display: flex;
    gap: 0.5rem;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   Gallery & Album Manager Styles
   ========================================================================== */
.sidebar-divider {
    height: 1px;
    background: var(--adm-border-soft);
    margin: 0.35rem 0;
}

.sidebar-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.gallery-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.page-editor-view,
.gallery-manager-view,
.gallery-detail-view,
.recycler-manager-view,
.maintenance-manager-view,
.layout-manager-view,
.layout-tab-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-editor-view[hidden],
.gallery-manager-view[hidden],
.gallery-detail-view[hidden],
.recycler-manager-view[hidden],
.maintenance-manager-view[hidden],
.layout-manager-view[hidden],
.layout-tab-panel[hidden],
.mobile-action-bar[hidden] {
    display: none !important;
}

.editor-quick-insert {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.shortcode-pill {
    font-family: var(--adm-mono);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: var(--adm-accent-soft);
    color: var(--adm-accent-text);
    border: 1px solid #BAE6FD;
}

.gallery-albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.album-card {
    background: var(--adm-surface-alt);
    border: 1px solid var(--adm-border-soft);
    border-radius: var(--adm-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.album-card:hover {
    border-color: var(--leka-sky-dark);
    box-shadow: var(--adm-shadow-sm);
}

.album-card-media {
    aspect-ratio: 16 / 10;
    background: #E2E8F0;
    cursor: pointer;
    overflow: hidden;
}

.album-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--adm-muted);
    font-size: 0.85rem;
}

.album-card-body {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.album-card-body h4 {
    margin: 0;
    font-size: 1rem;
}

.album-card-meta {
    margin: 0;
    font-size: 0.8rem;
    color: var(--adm-muted);
}

.album-card-actions {
    margin-top: auto;
    padding-top: 0.5rem;
    display: flex;
    gap: 0.4rem;
}

.album-card-actions .btn-primary {
    flex: 1;
}

.gallery-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 0.85rem;
}

.gallery-image-card {
    background: var(--adm-surface-alt);
    border: 1px solid var(--adm-border-soft);
    border-radius: var(--adm-radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gallery-image-thumb {
    display: block;
    aspect-ratio: 4 / 3;
    background: #E2E8F0;
    overflow: hidden;
}

.gallery-image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-image-body {
    padding: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.gallery-image-actions {
    display: flex;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 0.35rem;
}

.gallery-image-actions .btn-sm {
    min-height: 32px;
    padding: 0 0.55rem;
    font-size: 0.78rem;
}

.gallery-image-actions .btn:first-child {
    flex: 1;
}

.gallery-embed-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.gallery-embed-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: var(--adm-surface-alt);
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.gallery-embed-option:hover {
    border-color: var(--leka-sky-dark);
    background: #F0F9FF;
}

.gallery-embed-option-all {
    border-color: var(--leka-sky);
    background: #F0F9FF;
}

.embed-option-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.embed-option-thumb,
.embed-option-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--adm-border);
    background: #fff;
}

.embed-option-placeholder {
    display: grid;
    place-items: center;
    font-size: 1.2rem;
}

.embed-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.embed-option-info strong {
    font-size: 0.95rem;
    color: var(--adm-text);
}

.embed-option-info span {
    font-size: 0.8rem;
    color: var(--adm-muted);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    right: 1rem;
    bottom: 4.8rem;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.75rem 1rem;
    border-radius: var(--adm-radius-sm);
    color: var(--leka-frost);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--adm-shadow);
    background: var(--leka-midnight);
    border-left: 4px solid var(--leka-sky);
}

.toast.toast-success {
    background: var(--adm-success);
    border-left-color: #A7F3D0;
}

.toast.toast-error {
    background: var(--adm-danger);
    border-left-color: #FECACA;
}

/* ==========================================================================
   Papierkorb / Recycler Manager (./.recycler)
   ========================================================================== */
.sidebar-recycler-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recycler-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge-module.badge-has-items {
    background: #FEF3C7;
    color: #92400E;
}

.tree-btn.is-active .badge-module.badge-has-items {
    background: rgba(251, 191, 36, 0.25);
    color: #FDE68A;
}

.recycler-tree-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recycler-folder-group {
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    background: var(--adm-surface-alt);
    overflow: hidden;
}

.recycler-folder-header {
    padding: 0.7rem 0.95rem;
    background: var(--adm-surface);
    border-bottom: 1px solid var(--adm-border-soft);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.recycler-folder-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.recycler-folder-count {
    font-size: 0.78rem;
    color: var(--adm-muted);
    font-weight: 600;
}

.recycler-file-list {
    display: flex;
    flex-direction: column;
}

.recycler-file-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid var(--adm-border-soft);
    background: var(--adm-surface-alt);
}

.recycler-file-item:last-child {
    border-bottom: none;
}

.recycler-file-thumb,
.recycler-file-icon {
    width: 54px;
    height: 54px;
    border-radius: 6px;
    border: 1px solid var(--adm-border);
    background: var(--adm-surface);
    flex-shrink: 0;
}

.recycler-file-thumb {
    object-fit: cover;
    display: block;
}

.recycler-file-icon {
    display: grid;
    place-items: center;
    font-size: 1.45rem;
}

.recycler-file-info {
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.recycler-file-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.recycler-file-name {
    font-family: var(--adm-mono);
    font-size: 0.88rem;
    color: var(--adm-text);
    word-break: break-word;
}

.recycler-file-title {
    font-size: 0.86rem;
    color: var(--adm-muted);
}

.recycler-file-path code {
    font-size: 0.76rem;
    word-break: break-all;
}

.recycler-file-meta {
    font-size: 0.78rem;
    color: var(--adm-muted);
}

.badge-warning {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.12rem 0.45rem;
    border-radius: 4px;
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.recycler-file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-left: auto;
}

/* ==========================================================================
   Wartungsmodus / Maintenance Mode Manager
   ========================================================================== */
.sidebar-maintenance-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.maintenance-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.btn-topbar-maintenance {
    gap: 0.45rem;
}

.maint-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #64748B;
    display: inline-block;
    flex-shrink: 0;
}

.btn-topbar-maintenance.is-active {
    background: rgba(245, 158, 11, 0.16);
    border-color: #F59E0B;
    color: #FDE68A;
}

.btn-topbar-maintenance.is-active .maint-status-dot {
    background: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.badge-maintenance-on {
    background: #FEF3C7 !important;
    color: #92400E !important;
    border: 1px solid #FDE68A;
}

.tree-btn.is-active .badge-maintenance-on {
    background: rgba(245, 158, 11, 0.28) !important;
    color: #FDE68A !important;
    border-color: rgba(251, 191, 36, 0.45);
}

.maintenance-status-banner {
    border-left: 4px solid var(--adm-border);
    transition: border-color 180ms ease, background-color 180ms ease;
}

.maintenance-status-banner.is-active {
    border-left-color: #F59E0B;
    background: #FFFBEB;
}

.maintenance-toggle-label {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
}

.maintenance-toggle-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: #D97706;
}

.maintenance-toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.maintenance-toggle-copy strong {
    font-size: 1rem;
    color: var(--adm-text);
}

.maintenance-toggle-copy span {
    font-size: 0.86rem;
    color: var(--adm-muted);
}

.maintenance-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.clipart-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 0.85rem;
}

.clipart-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 0.85rem 0.75rem;
    background: var(--adm-surface-alt);
    border: 2px solid var(--adm-border-soft);
    border-radius: var(--adm-radius);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.clipart-option-card:hover {
    border-color: var(--leka-sky-dark);
    transform: translateY(-2px);
}

.clipart-option-card.is-selected {
    border-color: var(--leka-sky-dark);
    background: #F0F9FF;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.clipart-option-svg {
    width: 100%;
    max-width: 140px;
    aspect-ratio: 7 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clipart-option-svg svg {
    width: 100%;
    height: 100%;
    display: block;
}

.clipart-option-card strong {
    font-size: 0.9rem;
    color: var(--adm-text);
}

.clipart-option-card span {
    font-size: 0.78rem;
    color: var(--adm-muted);
}

.maintenance-live-preview {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    border: 1px solid var(--adm-border-soft);
    border-radius: var(--adm-radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.maintenance-preview-badge {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    color: #92400E;
    font-size: 0.78rem;
    font-weight: 700;
}

.maintenance-preview-clipart {
    width: min(100%, 240px);
}

.maintenance-preview-clipart svg {
    width: 100%;
    height: auto;
    display: block;
}

.maintenance-preview-title {
    margin: 0;
    font-size: 1.35rem;
    color: var(--adm-text);
}

.maintenance-preview-text {
    max-width: 54ch;
    color: var(--adm-muted);
    font-size: 0.95rem;
}

.maintenance-preview-text p {
    margin: 0 0 0.65rem;
}

.maintenance-preview-text p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Header-, Footer- & Social-Verwaltung
   ========================================================================== */
.sidebar-layout-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.layout-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.layout-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.layout-tab-btn {
    min-height: 42px;
    padding: 0.55rem 1rem;
    border-radius: var(--adm-radius-sm);
    border: 1px solid var(--adm-border);
    background: var(--adm-surface);
    color: var(--adm-text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.layout-tab-btn:hover {
    border-color: var(--leka-sky-dark);
    background: var(--adm-surface-alt);
}

.layout-tab-btn.is-active {
    background: var(--leka-midnight);
    color: var(--leka-frost);
    border-color: var(--leka-midnight);
}

.style-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 0.75rem;
}

.style-option-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.25rem;
    padding: 0.85rem 0.9rem;
    background: var(--adm-surface-alt);
    border: 2px solid var(--adm-border-soft);
    border-radius: var(--adm-radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.style-option-card:hover {
    border-color: var(--leka-sky-dark);
}

.style-option-card.is-selected {
    border-color: var(--leka-sky-dark);
    background: #F0F9FF;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.style-option-card strong {
    font-size: 0.92rem;
    color: var(--adm-text);
}

.style-option-card span {
    font-size: 0.78rem;
    color: var(--adm-muted);
    line-height: 1.4;
}

.layout-form-grid {
    margin-top: 0.85rem;
}

.layout-subbox {
    margin-top: 0.75rem;
    padding: 0.95rem;
    background: var(--adm-surface-alt);
    border: 1px solid var(--adm-border-soft);
    border-radius: var(--adm-radius-sm);
}

.layout-subbox + .layout-subbox {
    margin-top: 1rem;
}

.pages-visibility-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.page-vis-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    background: var(--adm-surface-alt);
    border: 1px solid var(--adm-border-soft);
    border-radius: var(--adm-radius-sm);
}

.page-vis-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.page-vis-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.vis-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--adm-border);
    background: var(--adm-surface);
}

.vis-toggle-pill.is-visible-nav {
    background: var(--adm-success-soft);
    border-color: #A7F3D0;
    color: #065F46;
}

.vis-toggle-pill.is-hidden-nav {
    background: #EDE9FE;
    border-color: #C4B5FD;
    color: #5B21B6;
}

.inline-select-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.inline-select-row select {
    flex: 1;
}

.footer-links-editor-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1rem;
}

.footer-link-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    align-items: center;
    padding: 0.75rem;
    background: var(--adm-surface-alt);
    border: 1px solid var(--adm-border-soft);
    border-radius: var(--adm-radius-sm);
}

.footer-link-row input[type="text"] {
    width: 100%;
    min-height: 40px;
    padding: 0.45rem 0.7rem;
    font-family: inherit;
    font-size: 15px;
    border: 1px solid var(--adm-border);
    border-radius: var(--adm-radius-sm);
    background: var(--adm-surface);
}

.footer-link-tab-check {
    min-height: 36px !important;
    font-size: 0.82rem;
}

.copyright-preview-box,
.socials-preview-box {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    background: var(--adm-surface-alt);
    border: 1px dashed var(--adm-border);
    border-radius: var(--adm-radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.copyright-preview-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--adm-muted);
}

.preview-social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.preview-social-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    background: var(--social-bg, #2563eb);
    color: #ffffff;
}

.preview-social-style-pills .preview-social-chip {
    background: #ffffff;
    color: var(--adm-text);
    border: 1px solid var(--adm-border);
}

.preview-social-style-pills .preview-social-chip .social-btn-icon {
    color: var(--social-bg, #2563eb);
}

.preview-social-style-monochrome .preview-social-chip {
    background: #E2E8F0;
    color: #0F172A;
}

.preview-social-style-icons_only .preview-social-chip {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
}

.social-channels-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.social-channel-card {
    background: var(--adm-surface-alt);
    border: 1px solid var(--adm-border-soft);
    border-radius: var(--adm-radius-sm);
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.social-channel-card.is-enabled {
    background: var(--adm-surface);
    border-color: var(--leka-sky-dark);
    box-shadow: var(--adm-shadow-sm);
}

.social-channel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.social-channel-identity {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.social-channel-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #ffffff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.social-channel-names {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.switch-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.switch-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--adm-success);
}

.social-channel-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

/* ==========================================================================
   Desktop Breakpoint (>= 960px)
   ========================================================================== */
@media (min-width: 960px) {
    .footer-link-row {
        grid-template-columns: 1fr 1.2fr auto auto;
    }

    .social-channels-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mobile-only {
        display: none !important;
    }

    .mobile-action-bar {
        display: none;
    }

    .leka-subtag-sm,
    .admin-user {
        display: inline;
    }

    .admin-workspace {
        grid-template-columns: 300px 1fr;
        padding-bottom: 0;
    }

    .sidebar-backdrop {
        display: none !important;
    }

    .admin-sidebar {
        position: sticky;
        top: 62px;
        height: calc(100dvh - 62px);
        width: auto;
        transform: none !important;
        box-shadow: none;
        z-index: 10;
    }

    .admin-editor-pane {
        padding: 1.5rem;
    }

    .frontmatter-grid,
    .module-item-body {
        grid-template-columns: 2fr 1fr;
    }

    .field-wide {
        grid-column: 1 / -1;
    }

    .module-item-sub {
        display: inline;
    }

    .toast-container {
        bottom: 1.25rem;
    }
}
