/* ============================================
   Creator's Den — GitHub-Inspired Light Theme
   Clean, professional, content-first design
   ============================================ */

/* --- Core Variables --- */
:root {
    --color-canvas-default: #ffffff;
    --color-canvas-subtle: #f6f8fa;
    --color-canvas-inset: #eff2f5;
    --color-canvas-overlay: #ffffff;

    --color-fg-default: #1f2328;
    --color-fg-muted: #656d76;
    --color-fg-subtle: #6e7781;
    --color-fg-on-emphasis: #ffffff;

    --color-border-default: #d0d7de;
    --color-border-muted: #d8dee4;
    --color-border-subtle: rgba(27, 31, 36, 0.15);

    --color-accent-fg: #0969da;
    --color-accent-emphasis: #0969da;

    --color-success-fg: #1a7f37;
    --color-success-emphasis: #1f883d;
    --color-attention-fg: #9a6700;
    --color-attention-emphasis: #9a6700;
    --color-danger-fg: #d1242f;
    --color-danger-emphasis: #cf222e;
    --color-done-fg: #8250df;

    --color-btn-primary-bg: #1f883d;
    --color-btn-primary-hover-bg: #1a7f37;

    --color-neutral-muted: rgba(175, 184, 193, 0.2);

    --shadow-sm: 0 1px 0 rgba(27, 31, 36, 0.04);
    --shadow-md: 0 3px 6px rgba(140, 149, 159, 0.15);
    --shadow-lg: 0 8px 24px rgba(140, 149, 159, 0.2);

    --border-radius-sm: 6px;
    --border-radius-md: 6px;
    --border-radius-lg: 12px;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;

    /* Brand Colors (Dynamic — set by JS) */
    --brand-primary: #1e3c72;
    --brand-secondary: #2a5298;

    /* Custom template vars */
    --custom-title-size: 72px;
    --custom-title-y: -200px;
    --custom-content-y: 70%;
    --custom-bg-color: rgba(0, 0, 0, 0.85);

    /* Legacy compat */
    --success: #1a7f37;
    --warning: #9a6700;
    --danger: #d1242f;
    --text-main: #1f2328;
    --text-muted: #656d76;
    --text-secondary: #656d76;
    --text-primary: #1f2328;
    --bg-page: #f6f8fa;
    --bg-surface: #ffffff;
    --accent-blue: #0969da;
    --accent-blue-hover: #0550ae;
    --border-subtle: #d0d7de;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-fg-default);
    background-color: var(--color-canvas-subtle);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1 { font-size: 20px; font-weight: 600; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; }

/* --- Layout --- */
.app-container {
    display: flex;
    height: 100vh;
}

/* --- Sidebar (GitHub-style nav) --- */
.sidebar {
    width: 260px;
    background-color: var(--color-canvas-default);
    border-right: 1px solid var(--color-border-default);
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    z-index: 100;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 8px;
}

.sidebar-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-fg-default);
}

.brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--color-fg-muted);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.1s ease, color 0.1s ease;
}

.nav-links a i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.nav-links a:hover {
    background-color: var(--color-neutral-muted);
    color: var(--color-fg-default);
}

.nav-links a.active {
    background-color: var(--color-neutral-muted);
    color: var(--color-fg-default);
    font-weight: 600;
}

/* --- Main Content --- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: var(--color-canvas-subtle);
}

/* --- Topbar --- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background-color: var(--color-canvas-default);
    border-bottom: 1px solid var(--color-border-default);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-fg-default);
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--color-border-default);
}

/* --- Views --- */
.view {
    display: none;
    padding: 24px 32px 60px;
    animation: fadeIn 0.2s ease forwards;
}

.active-view {
    display: block;
}

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

/* --- Dashboard Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--color-canvas-default);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border-default);
}

.stat-card:hover {
    border-color: var(--color-border-subtle);
}

.stat-card h3 {
    font-size: 12px;
    color: var(--color-fg-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.stat-value {
    font-size: 32px;
    font-weight: 600;
    color: var(--color-fg-default);
    line-height: 1.2;
}

.stat-card.warning .stat-value { color: var(--color-danger-fg); }

.section-title {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--color-fg-default);
    font-weight: 600;
}

/* --- Tables --- */
.table-container {
    background: var(--color-canvas-default);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border-default);
    overflow: hidden;
}

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

.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-muted);
    font-size: 14px;
}

.data-table th {
    background: var(--color-canvas-subtle);
    font-weight: 600;
    color: var(--color-fg-muted);
    font-size: 12px;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: var(--color-canvas-subtle);
}

/* --- Status Badges --- */
.status-badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    line-height: 1.5;
}

.status-Draft { background: var(--color-neutral-muted); color: var(--color-fg-muted); }
.status-Approved { background: rgba(31, 136, 61, 0.1); color: var(--color-success-fg); }
.status-Queued { background: rgba(154, 103, 0, 0.1); color: var(--color-attention-fg); }
.status-Published { background: rgba(9, 105, 218, 0.1); color: var(--color-accent-fg); }
.status-Failed { background: rgba(209, 36, 47, 0.1); color: var(--color-danger-fg); }

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    padding: 5px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    outline: none;
    line-height: 20px;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-btn-primary-bg);
    color: var(--color-fg-on-emphasis);
    border-color: rgba(27, 31, 36, 0.15);
}

.btn-primary:hover {
    background-color: var(--color-btn-primary-hover-bg);
}

.btn-secondary {
    background-color: var(--color-canvas-subtle);
    color: var(--color-fg-default);
    border: 1px solid var(--color-border-default);
}

.btn-secondary:hover {
    background-color: var(--color-canvas-inset);
    border-color: var(--color-border-subtle);
}

.full-width { width: 100%; }
.text-center { text-align: center; }

/* --- Forms & Inputs --- */
.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-fg-default);
    font-size: 14px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 5px 12px;
    background: var(--color-canvas-default);
    border: 1px solid var(--color-border-default);
    border-radius: var(--border-radius-sm);
    color: var(--color-fg-default);
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-accent-fg);
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3);
}

/* --- Editor Layout --- */
.editor-container {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.editor-main { flex: 2; }
.editor-sidebar {
    flex: 1;
    background: var(--color-canvas-default);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border-default);
    height: fit-content;
}

#editor-topic {
    font-size: 20px;
    margin-bottom: 16px;
}

.rich-textarea {
    resize: vertical;
    min-height: 200px;
    line-height: 1.5;
    font-size: 14px;
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
}

.image-preview {
    width: 100%;
    height: 200px;
    background: var(--color-canvas-subtle);
    border-radius: var(--border-radius-sm);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--color-border-default);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--color-border-muted);
    margin: 16px 0;
}

.margin-bottom { margin-bottom: 16px; }

/* --- Content Queue Cards --- */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.view-header h2 {
    font-size: 20px;
}

.view-header select {
    width: 180px;
    padding: 5px 12px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.content-card {
    background: var(--color-canvas-default);
    border: 1px solid var(--color-border-default);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease;
}

.content-card:hover {
    border-color: var(--color-border-subtle);
    box-shadow: var(--shadow-md);
}

.content-card-img {
    height: 160px;
    background: var(--color-canvas-subtle);
    background-size: cover;
    background-position: center;
}

.content-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.content-card-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-muted);
}

/* --- Settings List --- */
.settings-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    background: var(--color-canvas-default);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border-default);
}

.feedback-msg {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
}

/* --- Slide Rendering Engine --- */
.slide-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    background: var(--color-canvas-subtle);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border-default);
}

.slide-preview-stage {
    width: 400px;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-border-default);
    border-radius: var(--border-radius-sm);
}

.slide-card {
    width: 1080px;
    height: 1080px;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(0.37037);
    transform-origin: top left;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 80px;
    box-sizing: border-box;
    color: #1a202c;
    font-family: 'Inter', -apple-system, sans-serif;
}

.slide-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(240,244,255,0.90) 100%);
    z-index: 2;
}

.slide-header, .slide-content, .slide-footer {
    position: relative;
    z-index: 3;
}

.slide-header {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 36px;
    font-weight: 800;
    color: #003366;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 4px solid #cc0000;
    padding-bottom: 30px;
    margin-bottom: 60px;
}
.slide-header i { width: 48px; height: 48px; }

.slide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-content h1 {
    font-size: 72px;
    font-weight: 800;
    color: #003366;
    margin-bottom: 40px;
    line-height: 1.2;
}

.slide-content p {
    font-size: 48px;
    line-height: 1.6;
    color: #2d3748;
    white-space: pre-wrap;
}

.slide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 32px;
    font-weight: 600;
    color: #718096;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

/* --- Dynamic Themes (Shapes & Accents) --- */

/* Default */
.theme-default .slide-header {
    border-bottom: 4px solid var(--brand-secondary, #cc0000);
}

/* Minimal (Left Line Accent) */
.theme-minimal .slide-header {
    border-bottom: none;
}
.theme-minimal .slide-content h1 {
    border-left: 12px solid var(--brand-primary, #003366);
    padding-left: 24px;
}

/* Boxed (Title Background) */
.theme-boxed .slide-header {
    border-bottom: none;
}
.theme-boxed .slide-content h1 {
    background: var(--brand-primary, #003366);
    color: #ffffff !important;
    padding: 24px 32px;
    border-radius: 12px;
    display: inline-block;
}

/* Highlighted (Overlay Box) */
.theme-highlighted .slide-header {
    border-bottom: none;
}
.theme-highlighted .slide-content {
    background: rgba(255, 255, 255, 0.7);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}
.theme-highlighted .slide-bg-overlay {
    background: var(--brand-primary, #003366);
    opacity: 0.1;
}

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

/* --- Slide Templates --- */

/* 1. Classic Minimalist */
.template-classic .slide-bg-overlay {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,244,255,0.95) 100%);
    border: 12px solid var(--brand-primary);
}
.template-classic .slide-header { color: var(--brand-primary); }
.template-classic .slide-content h1 { color: var(--brand-primary); }

/* 2. Glassmorphism */
.template-glass .slide-bg-overlay { background: rgba(0, 30, 60, 0.6); }
.template-glass .slide-header { border-bottom: none; color: white; }
.template-glass .slide-header img { filter: brightness(0) invert(1); }
.template-glass .slide-content h1 {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(24px);
    padding: 60px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.template-glass .slide-content p {
    color: #f8f9fa;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    padding: 50px;
    border-radius: 32px;
}
.template-glass .slide-footer { color: rgba(255, 255, 255, 0.8); border-top: 1px solid rgba(255, 255, 255, 0.3); }

/* 3. Bold Impact */
.template-bold .slide-bg-overlay { background: rgba(10, 10, 10, 0.85); }
.template-bold .slide-header { color: #FFD700; border-bottom: 6px solid #FFD700; }
.template-bold .slide-header img { background: white; padding: 5px; border-radius: 4px; }
.template-bold .slide-content h1 { color: #FFD700; font-size: 90px; font-weight: 900; text-transform: uppercase; }
.template-bold .slide-content p { color: white; font-size: 54px; font-weight: 600; border-left: 8px solid #FFD700; padding-left: 40px; }
.template-bold .slide-footer { color: #a0aec0; border-top: 2px solid #333; }

/* 4. Visual Heavy */
.template-visual { background: var(--brand-primary); color: white; }
.template-visual #slide-bg-img { height: 75% !important; border-bottom: 8px solid var(--brand-secondary); }
.template-visual .slide-bg-overlay { display: none; }
.template-visual .slide-header { position: absolute; top: 60px; left: 60px; z-index: 10; color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.8); border-bottom: none; margin: 0; }
.template-visual .slide-header img { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)); }
.template-visual .slide-content { position: absolute; top: 75%; left: 0; width: 100%; height: 25%; padding: 20px 60px; display: flex; flex-direction: column; justify-content: center; }
.template-visual .slide-content h1 { font-size: 48px; margin-bottom: 8px; color: white; }
.template-visual .slide-content p { font-size: 32px; color: rgba(255,255,255,0.9); }
.template-visual .slide-footer { position: absolute; bottom: 20px; right: 40px; border-top: none; color: rgba(255,255,255,0.6); }

/* 5. Custom Builder */
.template-custom .slide-bg-overlay { background: var(--custom-bg-color, rgba(0,0,0,0.85)); }
.template-custom .slide-header { border-bottom: none; color: white; }
.template-custom .slide-header img { filter: brightness(0) invert(1); }
.template-custom .slide-content { position: absolute; width: calc(100% - 160px); top: var(--custom-content-y, 70%); transform: translateY(-50%); }
.template-custom .slide-content h1 { position: absolute; top: var(--custom-title-y, -200px); font-size: var(--custom-title-size, 72px); color: white; }
.template-custom .slide-content p { color: rgba(255,255,255,0.9); }
.template-custom .slide-footer { position: absolute; bottom: 40px; left: 80px; width: calc(100% - 160px); border-top: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); }

/* --- Spinner --- */
.spin {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    #mobile-menu-btn {
        display: block !important;
    }

    .sidebar {
        position: fixed;
        left: -300px;
        top: 0;
        bottom: 0;
        width: 260px;
        transition: left 0.2s ease;
        box-shadow: var(--shadow-lg);
        z-index: 200;
        background: var(--color-canvas-default);
    }

    .app-container.sidebar-open .sidebar {
        left: 0;
    }

    .app-container.sidebar-open::after {
        content: '';
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 190;
    }

    .topbar {
        padding: 12px 16px;
    }

    .topbar h1 {
        font-size: 16px;
    }

    .view {
        padding: 16px 16px 60px;
    }

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

    .editor-container {
        flex-direction: column;
        gap: 16px;
    }

    .editor-sidebar {
        padding: 16px;
    }

    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .view-header select {
        width: 100%;
    }

    #settings-view > div {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
/* --- Mobile Optimization --- */
@media (max-width: 768px) {
    /* Layout */
    .app-container {
        flex-direction: column;
        overflow: auto;
    }

    /* Topbar */
    .topbar {
        padding: 12px 16px;
    }
    
    .topbar-search input {
        width: 150px;
    }

    /* Sidebar -> Bottom Navigation or hidden hamburger */
    /* Let's make it a bottom navigation for primary links */
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        flex-direction: row;
        border-right: none;
        border-top: 1px solid var(--color-border-default);
        z-index: 1000;
        padding: 0;
    }
    
    .sidebar-header {
        display: none; /* Hide header on mobile */
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
        height: 100%;
        padding: 0;
    }

    .nav-links li {
        flex: 1;
        margin: 0;
    }

    .nav-links a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 4px;
        font-size: 10px;
        border-radius: 0;
    }

    .nav-links a i {
        margin: 0 0 4px 0;
    }
    
    /* Make active state just colored icon, no background */
    .nav-links a.active {
        background: transparent;
        color: var(--color-accent-fg);
    }

    .main-content {
        padding-bottom: 70px; /* Space for bottom nav */
        width: 100%;
    }

    /* Hide logout from bottom nav, move to settings view later or topbar */
    .nav-links li:last-child {
        display: none;
    }

    /* Dashboard Stats */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    /* Form Rows */
    .form-row, .setting-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .setting-item input[type="text"],
    .setting-item select,
    .setting-item input[type="url"],
    .setting-item input[type="number"],
    .setting-item input[type="color"] {
        width: 100%;
        margin-top: 8px;
    }

    /* Queue items */
    .queue-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .queue-item-actions {
        margin-top: 12px;
        width: 100%;
        justify-content: flex-end;
    }

    /* Editor Layout */
    .editor-layout {
        flex-direction: column;
        overflow: visible;
        height: auto;
    }

    .editor-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--color-border-default);
        order: 2; /* Put tools below canvas */
    }
    
    .editor-canvas-container {
        width: 100%;
        height: auto;
        order: 1; /* Put canvas above tools */
        padding: 16px;
        overflow-x: auto;
    }

    .slide-card {
        /* Scale down the 1080x1080 slide to fit mobile */
        transform: scale(0.32);
        transform-origin: top left;
        margin-bottom: -730px; /* Adjust height collapse due to scale (1080 - 1080*0.32 = ~734) */
    }

    /* View Header */
    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .view-header > div {
        width: 100%;
        justify-content: space-between;
    }
    .mobile-only {
        display: block !important;
    }
}
