.profile-media-remove[hidden] { display: none !important; }
.profile-content-page { width: 100%; }
.profile-content-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: var(--container_pad_md);
    border-radius: var(--container_radius_md);
    background: var(--container_light);
    color: var(--container_text_on_light);
    box-shadow: var(--container_shadow_sm);
}
.profile-content-page-head h2 { margin: .15rem 0 0; }
.profile-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}
.profile-content-card { overflow: hidden; padding: 0; text-align: left; }
.profile-content-card-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(var(--special_primary_rgb, 108, 95, 199), .12);
    color: var(--special_primary, #6c5fc7);
}
.profile-content-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-content-card-cover .material-symbols-outlined { font-size: 3rem; }
.profile-content-card-body { padding: 1rem; }
.profile-content-card-body h3 { margin: .5rem 0; }
.profile-content-empty {
    padding: 3rem 1rem;
    border: 1px dashed var(--border_color, #ccc);
    border-radius: .75rem;
    text-align: center;
}
.profile-content-empty > .material-symbols-outlined { font-size: 3rem; color: var(--special_primary, #6c5fc7); }
.profile-latest-widget { text-align: left; }
.profile-latest-widget-head {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .6rem;
}
.profile-latest-widget-head > .material-symbols-outlined {
    color: var(--btn_primary_bg);
    font-size: 19px;
}
.profile-latest-widget-count {
    margin-left: auto;
    min-width: 1.75rem;
    padding: .15rem .45rem;
    border-radius: 999px;
    background: rgba(var(--special_primary_rgb, 108, 95, 199), .12);
    color: var(--special_primary, #6c5fc7);
    text-align: center;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 700;
}
.profile-latest-widget-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--container_border_light, #e2e8f0);
    border-radius: var(--base_radius_sm, 6px);
    color: inherit;
    text-decoration: none;
    transition: box-shadow .15s ease;
}
.profile-latest-widget-card:hover { box-shadow: var(--container_shadow_md, 0 4px 16px rgba(0,0,0,.12)); }
.profile-latest-widget-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(var(--special_primary_rgb, 108, 95, 199), .12);
    color: var(--special_primary, #6c5fc7);
}
.profile-latest-widget-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}
.profile-latest-widget-card:hover .profile-latest-widget-cover img { transform: scale(1.03); }
.profile-latest-widget-cover > .material-symbols-outlined { font-size: 2.25rem; }
.profile-latest-widget-info { padding: .55rem .65rem .65rem; }
.profile-latest-widget-title {
    overflow: hidden;
    font-size: .9rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-latest-widget-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: .35rem 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: .8rem;
    line-height: 1.35;
}
.profile-latest-widget-meta { font-size: .75rem; }
.profile-latest-widget-all { margin-top: .65rem; }
.profile-latest-widget-all .material-symbols-outlined { font-size: 14px; }
@media (max-width: 600px) {
    .profile-content-page-head { align-items: flex-start; flex-direction: column; }
}
/* Profile header and media editor */
.profile-header-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--special_radius_lg);
    min-height: 230px;
    margin-bottom: 1rem;
    padding: 2rem;
    text-align: center;
    isolation: isolate;
}
.profile-header-cover,
.profile-header-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.profile-header-cover { object-fit: cover; z-index: -3; }
.profile-header-overlay {
    z-index: -2;
    background: linear-gradient(135deg, rgba(18, 18, 28, .78), rgba(36, 25, 65, .55));
}
.profile-header-identity {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--btn_primary_text, #fff);
    text-decoration: none;
}
.profile-header-avatar {
    width: 96px !important;
    height: 96px !important;
    flex: 0 0 96px;
    font-size: 2rem !important;
    border: 3px solid rgba(255, 255, 255, .88);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}
.profile-header-copy { text-align: left; }
.profile-header-muted { color: rgba(255, 255, 255, .86); }
.profile-header-followers { margin-top: 2px; font-size: .82rem; }
.profile-header-role {
    display: inline-block;
    margin-right: 4px;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .2);
    font-size: .8rem;
}
.profile-header-stats {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.2rem;
}
.profile-header-stat {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .75rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(0, 0, 0, .22);
    color: var(--btn_primary_text, #fff);
    text-decoration: none;
    backdrop-filter: blur(6px);
}
.profile-header-stat:hover { background: rgba(0, 0, 0, .4); }
.profile-header-stat .material-symbols-outlined { font-size: 17px; }
.profile-header-social { position: relative; z-index: 1; margin-top: .85rem; }
.profile-media-editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.profile-media-card {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid var(--border_color, #ddd);
    border-radius: .75rem;
}
.profile-media-card h4,
.profile-media-card p { margin: 0; }
.profile-media-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--special_primary, #6c5fc7), var(--special_secondary, #8d6ec8));
    color: var(--btn_primary_text, #fff);
}
.profile-media-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-media-preview-avatar { width: 112px; height: 112px; border-radius: 50%; }
.profile-media-preview-header { width: 100%; aspect-ratio: 10 / 3; border-radius: .6rem; }
.profile-media-preview-header .material-symbols-outlined { font-size: 2.5rem; }
.profile-media-initials { font-size: 2rem; font-weight: 700; }
.profile-media-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
@media (max-width: 700px) {
    .profile-header-banner { padding: 1.5rem 1rem; }
    .profile-header-copy { text-align: center; }
    .profile-media-editor-grid { grid-template-columns: 1fr; }
}/* common/css/base.css - Underground Theme + Modern Enhancements */



/* === UNDERGROUND MUSIC INSPIRED VARIABLES === */

:root {

    /* Primary Colors - Underground Music Theme */

    --base_primary: rgba(168, 85, 247, 1);         /* Punk purple */

    --base_primary_rgb: 168, 85, 247;

    --base_secondary: rgba(14, 165, 233, 1);       /* Ska blue */

    --base_secondary_rgb: 14, 165, 233;

    --base_accent: rgba(239, 68, 68, 1);           /* Rebellious red */

    --base_accent_rgb: 239, 68, 68;

    

    /* Supporting Colors */

    --base_success: rgba(34, 197, 94, 1);          /* Electric green */

    --base_warning: rgba(251, 146, 60, 1);         /* Warm orange */

    --base_danger: rgba(239, 68, 68, 1);           /* Rebellious red */

    --base_info: rgba(14, 165, 233, 1);            /* Ska blue */

    

    /* Neutral Colors */

    --base_light: rgba(248, 250, 252, 1);          /* Clean white-blue */

    --base_dark: rgba(15, 23, 42, 1);              /* Deep slate */

    --base_dark_rgb: 15, 23, 42;

    

    /* Text colors */

    --base_text_on_light: rgba(15, 23, 42, 1);     /* Deep slate on light */

    --base_text_on_dark: rgba(200, 200, 200, 1);   /* Clean white on dark */

    --base_text_muted: rgba(200, 116, 139, 1);     /* Muted slate */

    

    /* Border colors */

    --base_border_light: rgba(226, 232, 240, 1);   /* Light slate border */

    --base_border_dark: rgba(51, 65, 85, 1);       /* Dark slate border */

    

    /* Button hover states */

    --base_primary_hover: rgba(147, 51, 234, 1);   /* Darker punk purple */

    --base_secondary_hover: rgba(2, 132, 199, 1);  /* Darker ska blue */

    --base_accent_hover: rgba(220, 38, 38, 1);     /* Darker rebellious red */

    

    /* Shadows - Modern and Subtle */

    --base_shadow_sm: 0 1px 3px rgba(0, 0, 0, 0.1);

    --base_shadow_md: 0 4px 6px rgba(0, 0, 0, 0.05);

    --base_shadow_lg: 0 10px 15px rgba(0, 0, 0, 0.08);

    

    /* Border radius - Modern */

    --base_radius_sm: 6px;

    --base_radius_md: 10px;

    --base_radius_lg: 15px;

    

    /* Mobile-Optimized Spacing - Max 15px */

    --base_pad_xs: 2px;

    --base_pad_sm: 4px;

    --base_pad_md: 8px;

    --base_pad_lg: 12px;

    --base_pad_xl: 15px;

    

    --base_gap_xs: 2px;

    --base_gap_sm: 4px;

    --base_gap_md: 8px;

    --base_gap_lg: 12px;

    --base_gap_xl: 15px;

    

    /* Typography Scale - Mobile Optimized */

    --text_xs: 0.75rem;     /* 12px */

    --text_sm: 0.875rem;    /* 14px */

    --text_base: 1rem;      /* 16px - optimal mobile reading */

    --text_lg: 1.125rem;    /* 18px */

    --text_xl: 1.25rem;     /* 20px */

    --text_2xl: 1.5rem;     /* 24px */

    --text_3xl: 1.875rem;   /* 30px */

    

    /* Form & Input Variables */

    --form_bg: var(--base_light);

    --form_header_bg: rgba(241, 245, 249, 1);      /* Slightly darker light */

    --form_body_bg: var(--base_primary);

    --form_text: var(--base_text_on_light);

    --form_label: rgba(248, 250, 252, 0.95);       /* High contrast on primary */

    --form_button_bg: var(--base_secondary);

    --form_button_hover: var(--base_secondary_hover);

    --form_control_bg: var(--base_light);

    --form_control_text: var(--base_text_on_light);

    --form_header_title: var(--base_danger);

    --form_button_text: var(--base_text_on_dark);

    

    /* Input & Button Heights - Better Touch Targets */

    --input_height_sm: 36px;

    --input_height_md: 44px;

    --input_height_lg: 52px;

    

    /* Focus States */

    --focus_ring_color: var(--base_primary);

    --focus_ring_width: 2px;

    --focus_ring_offset: 2px;

    

    /* Slideout Menu Variables */

    --slideout_bg: var(--base_primary);

    --slideout_hover_bg: var(--base_primary_hover);

    --slideout_text: var(--base_text_on_dark);

    --slideout_border: transparent;

}



/* Dark mode variables overrides */

@media (prefers-color-scheme: dark) {

    :root {

        --base_light: rgba(30, 41, 59, 1);

        --base_dark: rgba(15, 23, 42, 1);

        --base_text_on_light: rgba(200, 200, 200, 1);

        --base_border_light: rgba(51, 65, 85, 1);

        --base_border_dark: rgba(71, 85, 105, 1);

        

        /* Form overrides for dark mode */

        --form_header_bg: rgba(30, 41, 59, 1);

        --form_body_bg: var(--base_dark);

        --form_control_bg: rgba(30, 41, 59, 1);

        --form_control_text: var(--base_text_on_dark);

        

        /* Adjust shadows for dark mode */

        --base_shadow_sm: 0 1px 3px rgba(0, 0, 0, 0.3);

        --base_shadow_md: 0 4px 6px rgba(0, 0, 0, 0.2);

        --base_shadow_lg: 0 10px 15px rgba(0, 0, 0, 0.25);

    }

}



/* Mobile-first responsive adjustments */

@media (max-width: 480px) {

    :root {

        --base_pad_md: 10px;

        --base_pad_lg: 12px;

        --base_gap_md: 12px;

        --base_gap_lg: 16px;

    }

}



@media (min-width: 768px) {

    :root {

        --base_gap_lg: 24px;

    }

}



/* === RESET & MODERN BASICS === */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



/* Modern scrolling and performance */

html {

    scroll-behavior: smooth;

    -webkit-font-smoothing: antialiased;

    -moz-osx-font-smoothing: grayscale;

}



html, body {

    margin: 0;

    padding: 0;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;

    background: linear-gradient(135deg, var(--base_secondary), var(--base_primary), var(--base_accent));

    color: var(--base_text_on_dark);

    height: 100%;

    width: 100%;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    position: relative;

    z-index: 1;







/* Modern focus management */

*:focus {

    outline: var(--focus_ring_width) solid var(--focus_ring_color);

    outline-offset: var(--focus_ring_offset);

}



*:focus:not(:focus-visible) {

    outline: none;

}



/* Better touch targets for mobile */

button, input, select, textarea, .btn, .link, [role="button"] {

    min-height: 44px; /* iOS recommended minimum */

    touch-action: manipulation; /* Prevent zoom on double-tap */

}



/* === LAYOUT STRUCTURE === */

.header {

    height: 80px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 0 var(--base_pad_md);

    border-bottom: solid 2px var(--base_accent);

    flex-shrink: 0;

    z-index: 0;

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

}



.logo_link {

    display: flex;

    align-items: center;

    text-decoration: none;

    will-change: transform; /* Animation performance */

}



.logo_img {

    height: 70px;

    width: auto;

    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);

}



.logo_img:hover {

    transform: scale(1.05);

}



.main_content {

    flex: 1;

    display: flex;

    justify-content: center;

    align-items: flex-start;

    overflow-y: auto;

    overflow-x: hidden;

    padding: var(--base_pad_sm);

    max-width: 100%;

    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */

}



.footer {

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    color: var(--base_text_on_dark);

    border-top: solid 2px var(--base_secondary);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

}



/* === SLIDEOUT DRAWERS === */

.slideout_drawer_right, .slideout_drawer_left {

    display: none;

    position: fixed;

    top: 82px;  /* header height (80px) + border-bottom (2px) */

    bottom: 42px;  /* footer height (40px) + border-top (2px) */

    width: min(250px, 90vw); /* Responsive width */

    padding-top: var(--base_pad_xs);

    z-index: 1200;

    will-change: transform; /* Animation performance */

    overflow: hidden;  /* menu_carousel handles scrolling via arrow buttons; no native scrollbar */

}

#drawer_right_inner {
    width: 100%;
    display: block;
}



.slideout_drawer_right { right: 0; }

.slideout_drawer_left { left: 0; }





/* === OVERLAY CLOSER === */

.obj_closer {

    position: fixed;

    top: 80px;

    left: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(90, 90, 90, 0.5);

    display: none;

    z-index: 404;

    touch-action: none; /* Prevent scrolling behind overlay */

}



/* === FORM WRAPPERS === */

.form_wrapper {
    display: block;
    padding: var(--base_pad_md);
    background-color: var(--form_bg);
    box-shadow: var(--base_shadow_md);
    border-radius: var(--base_radius_lg);
    width: min(700px, 90vw);
    min-width: 300px;
    max-height: calc(100vh - 20px);
    overflow: hidden;
    color: var(--form_text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form_wrapper_floating {
    display: block;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--base_pad_md);
    background-color: var(--form_bg);
    box-shadow: var(--base_shadow_md);
    border-radius: var(--base_radius_lg);
    width: min(700px, 90vw);
    min-width: 300px;
    max-height: calc(100vh - 20px);
    overflow: hidden;
    color: var(--form_text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1005;
}

.form_wrapper_small {
    display: block;
    padding: var(--base_pad_md);
    background-color: var(--form_bg);
    box-shadow: var(--base_shadow_md);
    border-radius: var(--base_radius_lg);
    max-width: min(500px, 90vw);
    min-width: min(375px, 90vw);
    max-height: min(600px, 90vh);
    overflow: hidden;
    color: var(--form_text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form_wrapper_small_floating {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: var(--base_pad_md);
    background-color: var(--form_bg);
    box-shadow: var(--base_shadow_md);
    border-radius: var(--base_radius_lg);
    max-width: min(500px, 90vw);
    min-width: min(375px, 90vw);
    max-height: min(600px, 90vh);
    overflow: hidden;
    color: var(--form_text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1005;
}



.form_header {

    position: relative;

    display: flex;

    justify-content: space-between;

    align-items: center;

    background: var(--form_header_bg);

    padding: var(--base_pad_xs);

    border-bottom: 1px solid var(--base_border_light);

    border-radius: var(--base_radius_lg) var(--base_radius_lg) 0 0;

    height: 40px;

}



.form_header h2 {

    margin: 0;

    font-size: var(--text_lg);

    color: var(--form_header_title);

    font-weight: 600;

}



.form_min_btn, .form_close_btn {

    background: transparent;

    width: 25px;

    height: 25px;

    border: 1px solid var(--base_border_dark);

    font-size: var(--text_lg);

    cursor: pointer;

    color: var(--base_text_muted);

    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    margin: 2px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: var(--base_radius_sm);

    touch-action: manipulation;

}



.form_min_btn:hover, .form_close_btn:hover {

    color: var(--form_text);

    background-color: rgba(var(--base_primary_rgb), 0.1);

}

.form_close_btn {

    box-sizing: border-box;

    flex: 0 0 32px;

    width: 32px;

    min-width: 32px;

    height: 32px;

    min-height: 32px;

    aspect-ratio: 1 / 1;

    padding: 0;

    margin: 4px;

    border-color: rgba(214, 75, 92, 0.38);

    background: rgba(214, 75, 92, 0.1);

    color: #c93d50;

    font-size: 1.35rem;

    font-weight: 700;

    line-height: 1;

    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;

}

.form_close_btn:hover {

    border-color: #c93d50;

    background: #c93d50;

    color: #fff;

    transform: scale(1.06);

}

.form_close_btn:focus-visible {

    outline: 3px solid rgba(201, 61, 80, 0.32);

    outline-offset: 2px;

}



.form_floating_tab {

    position: fixed;

    top: 10px;

    left: 50%;

    transform: translateX(-50%);

    display: none;

    align-items: center;

    gap: 2px;

    font-size: var(--text_sm);

    padding: 4px 6px;

    border: solid 1px var(--base_border_dark);

    z-index: 1006;

    background-color: var(--form_bg);

    color: var(--form_text);

    border-radius: var(--base_radius_sm);

    box-shadow: var(--base_shadow_md);

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    cursor: grab;

    height: 32px;

}

.form_floating_tab .floating-tab-drag {

    font-size: 18px;

    opacity: 0.5;

    pointer-events: none;

    user-select: none;

}



.form_body_small, .form_body {

    display: flex;

    flex-direction: column;

    position: relative;

    overflow-x: auto;

    border-radius: 0 0 var(--base_radius_lg) var(--base_radius_lg);

    background-color: var(--form_body_bg);

    padding: var(--base_pad_xs);

    color: var(--base_text_on_dark);

}



.form_body_small {

    max-height: 360px;

}



.form_body {

    max-height: calc(100vh - 195px);    

}



.form_body label, .form_body_small label {

    margin-top: 2px;

    margin-bottom: 2px;

    color: var(--form_label);

    font-weight: 600;

    font-size: var(--text_sm);

}



.form_body input, .form_body_small input {

    padding: var(--base_pad_xs);

    border: 1px solid var(--base_border_light);

    border-radius: var(--base_radius_sm);

    background-color: var(--form_control_bg);

    color: var(--form_control_text);

    height: var(--input_height_md);

    font-size: var(--text_base);

    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);

}



.form_body input:focus, .form_body_small input:focus {

    border-color: var(--base_primary);

    box-shadow: 0 0 0 3px rgba(var(--base_primary_rgb), 0.1);

}



.form_body button[type="submit"], .form_body_small button[type="submit"] {

    margin-top: 3px;

    padding: var(--base_pad_xs);

    background-color: var(--form_button_bg);

    color: var(--form_button_text);

    border: none;

    border-radius: var(--base_radius_sm);

    font-weight: 600;

    cursor: pointer;

    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    height: var(--input_height_md);

    font-size: var(--text_base);

    touch-action: manipulation;

}



.form_body button[type="submit"]:hover, .form_body_small button[type="submit"]:hover {

    background-color: var(--form_button_hover);

}



.form_body input[type="checkbox"], .form_body_small input[type="checkbox"] {

    border: 1px solid var(--base_border_light);

    vertical-align: middle;

}



.form_body input[type="checkbox"]:focus, .form_body_small input[type="checkbox"]:focus {

    border-color: var(--base_primary);

    box-shadow: 0 0 0 3px rgba(var(--base_primary_rgb), 0.1);

}



.form_body textarea, .form_body select,

.form_body_small textarea, .form_body_small select {

    padding: var(--base_pad_xs);

    border: 1px solid var(--base_border_light);

    border-radius: var(--base_radius_md);

    font-size: var(--text_base);

    resize: vertical;

    background-color: var(--form_control_bg);

    color: var(--form_control_text);

    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);

}



.form_body textarea:focus, .form_body select:focus,

.form_body_small textarea:focus, .form_body_small select:focus {

    border-color: var(--base_primary);

    box-shadow: 0 0 0 3px rgba(var(--base_primary_rgb), 0.1);

}



.form_body textarea, .form_body_small textarea {

    min-height: 100px;

    line-height: 1.6;

}



.form_group {

    margin-bottom: var(--base_gap_xs);

}



.space_filler {

    flex: 1;

}



/* === MODERN ENHANCEMENTS === */



/* Backdrop blur support */

.backdrop_blur {

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

}



/* CSS Grid modern syntax */

.grid_modern {

    display: grid;

    gap: var(--base_gap_md);

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

}



/* Modern aspect ratio support */

.aspect_square {

    aspect-ratio: 1 / 1;

}



.aspect_video {

    aspect-ratio: 16 / 9;

}



/* Container queries support (progressive enhancement) */

@supports (container-type: inline-size) {

    .container_responsive {

        container-type: inline-size;

    }

}



/* === TOGGLE SWITCHES === */

.switch {

    position: relative;

    display: inline-block;

    width: 60px;

    height: 34px;

    z-index: 5;

}



.switch input {

    opacity: 0;

    width: 0;

    height: 0;

}



.slider {

    position: absolute;

    cursor: pointer;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background-color: var(--base_border_light);

    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    border-radius: 34px;

}



.slider:before {

    position: absolute;

    content: "";

    height: 26px;

    width: 26px;

    left: 4px;

    bottom: 4px;

    background-color: white;

    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    border-radius: 50%;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}



input:checked + .slider {

    background-color: var(--base_primary);

}



input:focus + .slider {

    box-shadow: 0 0 1px var(--base_primary);

}



input:checked + .slider:before {

    transform: translateX(26px);

}



/* === TYPOGRAPHY === */

h1, h2, h3, h4, h5, h6 {

    margin-bottom: 0.5em;

    font-weight: 600;

    line-height: 1.2;

    color: inherit;

}



h1 { font-size: var(--text_3xl); }

h2 { font-size: var(--text_2xl); }

h3 { font-size: var(--text_xl); }

h4 { font-size: var(--text_lg); }

h5 { font-size: var(--text_base); }

h6 { font-size: var(--text_sm); }



/* === IMAGES === */

img {

    max-width: 100%;

    height: auto;

}



.img_thumbnail {

    padding: 0.25rem;

    background-color: var(--base_light);

    border: 1px solid var(--base_border_light);

    border-radius: var(--base_radius_sm);

}



.img_circle {

    border-radius: 50%;

}



/* === NOTIFICATIONS === */

.notification {

    position: fixed;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    padding: var(--base_pad_md);

    border-radius: var(--base_radius_md);

    text-align: center;

    z-index: 20002;

    display: none;

    min-width: 300px;

    max-width: min(80vw, 500px);

    font-size: var(--text_lg);

    box-shadow: var(--base_shadow_lg);

    background: linear-gradient(135deg, var(--base_info), rgba(var(--base_secondary_rgb), 0.9));

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    will-change: transform, opacity;

}



.notification p {

    margin: 0;

    text-align: center;

    display: block;

    font-weight: 500;

}



.notification.success {

    background-color: var(--base_success);

    color: var(--base_text_on_dark);

}



.notification.error {

    background-color: var(--base_danger);

    color: var(--base_text_on_dark);

}



.notification.info {

    background-color: var(--base_info);

    color: var(--base_text_on_dark);

}



.notification.warning {

    background-color: var(--base_warning);

    color: var(--base_text_on_light);

}



.notification.show {

    display: block;

    opacity: 1;

}



.warning_obj_text {

    background-color: var(--base_danger);

    color: var(--base_text_on_dark);    

}



/* === UTILITIES === */



/* Text alignment */

.text_center { text-align: center; }

.text_right { text-align: right; }

.text_left { text-align: left; }



/* Margins - Mobile optimized */

.mt_1 { margin-top: var(--base_gap_xs); }

.mt_2 { margin-top: var(--base_gap_sm); }

.mt_3 { margin-top: var(--base_gap_md); }

.mt_4 { margin-top: var(--base_gap_lg); }

.mt_5 { margin-top: var(--base_gap_xl); }



.mb_1 { margin-bottom: var(--base_gap_xs); }

.mb_2 { margin-bottom: var(--base_gap_sm); }

.mb_3 { margin-bottom: var(--base_gap_md); }

.mb_4 { margin-bottom: var(--base_gap_lg); }

.mb_5 { margin-bottom: var(--base_gap_xl); }



/* Padding */

.p_xs { padding: var(--base_pad_xs); }

.p_sm { padding: var(--base_pad_sm); }

.p_md { padding: var(--base_pad_md); }

.p_lg { padding: var(--base_pad_lg); }



/* Flex utilities */

.d_flex { display: flex; }

.flex_wrap { flex-wrap: wrap; }
.flex_column { flex-direction: column; }
.flex_row { flex-direction: row; }

.justify_content_center { justify-content: center; }

.justify_content_between { justify-content: space-between; }

.align_items_center { align-items: center; }



/* Width utilities */

.w_100 { width: 100%; }

.w_75 { width: 75%; }

.w_50 { width: 50%; }

.w_25 { width: 25%; }

.plugin-page-shell,
.user-account-page,
.profile-form-page {
    width: 100%;
    max-width: none;
    min-width: 0;
}



/* Z-index utilities */

.z_0 { z-index: 0; }

.z_1 { z-index: 1; }

.z_10 { z-index: 10; }

.z_50 { z-index: 50; }

.z_100 { z-index: 100; }

.z_500 { z-index: 500; }

.z_1000 { z-index: 1000; }



/* Boarder utilities */

.bdr_xs {border: 1px;}

.bdr_sm {border: 2px;}

.bdr_md {border: 3px;}

.bdr_lg {border: 4px;}

.bdr_xl {border: 5px;}

.bdr_s { border-style: solid;}

.bdr_dot { border-style: dotted;}

.bdr_dash { border-style: dashed;}

.bdr_dbl { border-style: double;}

.bdr_grv { border-style: groove;}

.bdr_rdg { border-style: ridge;}

.bdr_in { border-style: inset;}

.bdr_out { border-style: outset;}

.bdr_rds { border-radius: var(--base_radius_sm) var(--base_radius_sm) var(--base_radius_sm) var(--base_radius_sm);}

.bdr_rds_2_l { border-radius: var(--base_radius_sm) 0 0 var(--base_radius_sm);}

.bdr_rds_2_r { border-radius: 0 var(--base_radius_sm) var(--base_radius_sm) 0;}

.bdr_rds_2_t { border-radius: var(--base_radius_sm) var(--base_radius_sm) 0 0;}

.bdr_rds_2_b { border-radius: 0 0 var(--base_radius_sm) var(--base_radius_sm);}



/* Performance utilities */

.will_change_transform { will-change: transform; }

.will_change_opacity { will-change: opacity; }



/* === DARK MODE SUPPORT === */

@media (prefers-color-scheme: dark) {

    .img_thumbnail {

        background-color: var(--base_dark);

        border-color: var(--base_border_dark);

    }

    

    input, select, textarea {

        background-color: var(--form_control_bg);

        color: var(--form_control_text);

        border-color: var(--base_border_dark);

    }

}
/* -- Gap utilities --------------------------------------------------------- */
.gap_xs { gap: var(--base_gap_xs); }
.gap_sm { gap: var(--base_gap_sm); }
.gap_md { gap: var(--base_gap_md); }
.gap_lg { gap: var(--base_gap_lg); }

/* Keep standard outside list markers comfortably inside card surfaces. */
.list_indented {
    margin-left: 0;
    padding-left: 1.5rem;
}

.main_content.main_content_home {

    padding: var(--base_pad_sm);

}

.main_content_home > .site_studio_page > .site_studio_page_body {

    background: transparent !important;

    border: 0;

    padding: 0;

}

/* -- Flex extras ----------------------------------------------------------- */
.flex_shrink_0       { flex-shrink: 0; }
.flex_1              { flex: 1; }
.justify_content_end { justify-content: flex-end; }

/* -- Display --------------------------------------------------------------- */
.hidden { display: none !important; }

/* -- Text helpers ---------------------------------------------------------- */
.text_muted { color: #888; }
.text_hint  { color: #aaa; }
.font_mono  { font-family: monospace; }
.font_bold  { font-weight: 600; }

/* -- Resize ---------------------------------------------------------------- */
.resize_v { resize: vertical; }

/* -- Icon helpers ---------------------------------------------------------- */
.icon_label    { vertical-align: middle; font-size: 1rem; }
.icon_sm       { font-size: 1rem; vertical-align: middle; }
.icon_success  { color: #2e7d32; }
.icon_readonly { color: #ccc; }

/* -- Empty state icon ------------------------------------------------------ */
.empty_state_icon { font-size: 48px; color: #ccc; }

/* -- Additional text/cursor utilities ------------------------------------- */
.text_dark     { color: #333; }
.text_help     { color: #666; font-size: 0.8rem; }
.cursor_pointer { cursor: pointer; }
.ml_1          { margin-left: var(--base_gap_xs); }
.mb_0          { margin-bottom: 0; }
.w_48          { width: 48%; }
.align_items_end { align-items: flex-end; }

/* === Spacing Utilities: Horizontal margin === */
.mx_1 { margin: 0 5px; }
.mx_2 { margin: 0 8px; }

/* === Spacing Utilities: Zero margin/padding === */
.mt_0 { margin-top: 0; }
.mb_0_i { margin-bottom: 0 !important; }

/* === Text Utilities === */
.nowrap { white-space: nowrap; }

/* === Icon Size Utilities (Material Symbols) === */
.icon_xl { font-size: 48px; }

/* === Profile Form Polish === */
.profile-form-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: var(--base_gap_xs);
}

.profile-form-section,
.profile-question-card {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: var(--base_pad_md);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.profile-form-section + .profile-form-section,
.profile-question-card + .profile-question-card,
.profile-form-category + .profile-form-category {
    margin-top: var(--base_gap_md);
}

.profile-form-section-header,
.profile-form-category-title {
    margin: 0 0 var(--base_gap_sm);
    padding-bottom: var(--base_gap_xs);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-form-section-header h3,
.profile-form-category-title h3 {
    margin: 0;
    color: var(--form_label);
    font-size: var(--text_lg);
}

.profile-field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 190px);
    gap: var(--base_gap_sm);
    align-items: end;
    margin-bottom: var(--base_gap_sm);
}

.profile-field-grid .form_group,
.profile-question-footer .form_group {
    margin-bottom: 0;
}

.profile-visibility-select {
    width: 100%;
}

.profile-form-actions,
.profile-question-footer {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: var(--base_gap_sm);
    margin-top: var(--base_gap_sm);
}

.profile-question-footer {
    display: grid;
    grid-template-columns: minmax(150px, 190px) auto;
}

.profile-form-actions .btn,
.profile-question-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--base_gap_xs);
    min-width: 128px;
}

.profile-form-actions .material-symbols-outlined,
.profile-question-footer .material-symbols-outlined {
    font-size: 1.1rem;
    line-height: 1;
}

.profile-question-label {
    display: block;
    margin: 0 0 var(--base_gap_xs);
    line-height: 1.35;
}

.profile-question-card input.w_100,
.profile-question-card select.w_100,
.profile-question-card textarea.w_100 {
    width: 100%;
}

.profile-choice-list {
    display: grid;
    gap: var(--base_gap_xs);
    margin-top: var(--base_gap_xs);
}

.profile-choice-list label {
    margin: 0;
}

.profile-account-readonly input[disabled] {
    opacity: 0.82;
    cursor: not-allowed;
}

@media (max-width: 650px) {
    .profile-field-grid,
    .profile-question-footer {
        grid-template-columns: 1fr;
    }

    .profile-form-actions .btn,
    .profile-question-footer .btn {
        width: 100%;
    }
}



/* Session-expired authentication widget */
.session_login_overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    background: rgba(12, 16, 24, 0.82);
    backdrop-filter: blur(6px);
    animation: session-overlay-in 180ms ease-out;
}

.session_login_widget {
    display: flex;
    flex-direction: column;
    width: min(100%, 460px);
    max-height: calc(100dvh - 2rem);
    overflow: hidden;
    overscroll-behavior: contain;
    background: var(--base_light);
    color: var(--base_text_on_light);
    border-radius: 1rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
    animation: session-widget-in 220ms ease-out;
}

.session_login_header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.15rem 1.25rem;
    background: var(--form_header_bg);
    border-bottom: 1px solid var(--base_border_light);
}

.session_login_header h2 { margin: 0.1rem 0 0; color: var(--form_header_title); line-height: 1.15; }
.session_login_icon { display: grid; place-items: center; flex: 0 0 2.65rem; width: 2.65rem; height: 2.65rem; border-radius: 50%; color: #fff; background: var(--base_primary, #5e35b1); font-size: 1.5rem; }
.session_login_eyebrow { display: block; color: var(--base_text_muted, #64748b); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.session_login_widget .form_body_small {
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(500px, calc(100dvh - 9.5rem));
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1.25rem;
}
.session_login_message, .session_step_intro { margin: 0 0 1rem; color: var(--base_text_muted, #475569); line-height: 1.5; }
.session_login_status { margin: 0 0 1rem; padding: 0.75rem 0.85rem; border: 1px solid currentColor; border-radius: 0.6rem; font-size: 0.92rem; line-height: 1.4; }
.session_login_status.is_error { color: var(--base_danger, #b91c1c); background: rgba(239, 68, 68, 0.08); }
.session_login_status.is_success { color: var(--base_success, #15803d); background: rgba(34, 197, 94, 0.08); }
.session_login_status.is_info { color: var(--base_primary, #4338ca); background: rgba(99, 102, 241, 0.08); }
.session_password_field { position: relative; }
.session_password_field input { padding-right: 5rem; }
.session_password_toggle { position: absolute; top: 50%; right: 0.45rem; display: inline-flex; align-items: center; gap: 0.2rem; transform: translateY(-50%); padding: 0.35rem 0.45rem; color: var(--base_primary, #5e35b1); background: transparent; border: 0; border-radius: 0.35rem; cursor: pointer; }
.session_password_toggle .material-symbols-outlined { font-size: 1.15rem; }
.session_password_toggle_text { font-size: 0.78rem; font-weight: 700; }
.session_remember_row label { display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; }
.session_primary_action { display: inline-flex !important; align-items: center; justify-content: center; gap: 0.45rem; min-height: 2.85rem; }
.session_primary_action .material-symbols-outlined { font-size: 1.15rem; }
.session_secondary_action { width: 100%; margin-top: 0.55rem; background: transparent; }
.session_login_links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--base_border_light); font-size: 0.9rem; }
.session_captcha_row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 0.5rem; }
.session_captcha_refresh { min-width: 2.6rem; padding-inline: 0.6rem; }
.session_code_input { font-family: monospace; font-size: 1.15rem; letter-spacing: 0.08em; text-align: center; }
.session_backup_form { margin-top: 1rem; }
.session_section_divider { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0; color: var(--base_text_muted, #64748b); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; }
.session_section_divider::before, .session_section_divider::after { content: ''; flex: 1; height: 1px; background: var(--base_border_light); }
.session_panel_loading { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 7rem; color: var(--base_text_muted, #64748b); }
.session_spinner { display: inline-block; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: session-spin 700ms linear infinite; }
body.session_login_active, body:has(.session_login_overlay) { overflow: hidden; }

/* Authentication forms grow for ordinary states, then cap only their body for longer flows. */
#login-wrapper,
#forgot-wrapper,
#reset-password-wrapper {
    display: flex;
    flex-direction: column;
    max-height: min(660px, calc(100dvh - 2rem));
}

#login-wrapper .form_body_small,
#forgot-wrapper .form_body_small,
#reset-password-wrapper .form_body_small {
    flex: 0 1 auto;
    min-height: 0;
    max-height: min(500px, calc(100dvh - 10rem));
    overflow-x: hidden;
    overflow-y: auto;
}

.registration-page-shell {
    width: min(100%, 720px);
    margin: var(--base_gap_sm) auto;
    align-self: flex-start;
}

.registration-content-panel {
    width: 100%;
    box-sizing: border-box;
}

.registration-content-heading {
    margin-bottom: var(--base_gap_md);
    padding-bottom: var(--base_gap_sm);
    border-bottom: 1px solid var(--base_border_light);
}

.registration-content-heading h1 {
    margin: 0;
    color: var(--container_text_on_light);
    font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.registration-content-heading p {
    margin: 0.35rem 0 0;
    color: var(--base_text_muted);
}

.registration-content-panel .form_group label {
    color: var(--label_text);
    font-weight: 600;
    font-size: var(--text_sm);
}

.registration-content-panel .form_group input:not([type="checkbox"]) {
    min-height: var(--input_height_md);
}


@keyframes session-overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes session-widget-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes session-spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
    .session_login_overlay { align-items: flex-end; padding: 0; }
    .session_login_widget { width: 100%; max-height: calc(100dvh - 0.5rem); border-radius: 1rem 1rem 0 0; }
    .session_login_header, .session_login_widget .form_body_small { padding-inline: 1rem; }
    .session_login_links { flex-direction: column; align-items: center; }
    .session_captcha_row { grid-template-columns: 1fr auto; }
    .session_captcha_row input { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    .session_login_overlay, .session_login_widget, .session_spinner { animation: none; }
}

.profile-form-page {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    overflow: visible;
}

.profile-form-page .form_header,
.user-account-page .form_header {
    flex: 0 0 auto;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--base_gap_sm, 0.5rem);
    height: auto;
    min-height: 56px;
    padding: var(--base_pad_sm, 0.75rem) var(--base_pad_md, 1rem);
}

.profile-form-page .form_header h2,
.user-account-page .form_header h2 {
    margin-left: auto;
    text-align: right;
}

@media (max-width: 640px) {
    .profile-form-page .form_header h2,
    .user-account-page .form_header h2 {
        width: 100%;
        margin-left: 0;
        text-align: left;
    }
}

.profile-form-page .form_body {
    flex: 0 1 auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    gap: var(--base_gap_sm, 0.5rem);
    padding: clamp(0.75rem, 1.5vw, 1.25rem);
}

.profile-form-page .profile-form-scroll {
    flex: 0 1 auto;
    min-height: auto;
    padding: 0;
    overflow-x: visible;
    overflow-y: visible;
    overscroll-behavior: auto;
}

.user-account-page {
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow: visible;
}

.user-account-page .form_body {
    max-height: none;
    overflow: visible;
    gap: var(--base_gap_sm, 0.5rem);
    padding: clamp(0.75rem, 1.5vw, 1.25rem);
}

.user-account-table-scroll {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
}

.user-account-table-scroll table.data_table,
.user-account-table-scroll table.table {
    min-width: 720px;
}

.form-page-nav,
.profile-form-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--base_gap_sm, 0.5rem);
    min-width: 0;
    margin: 0;
}

.form-page-nav .btn,
.profile-form-nav .btn {
    gap: 0.35rem;
}

.form-page-nav .material-symbols-outlined,
.profile-form-nav .material-symbols-outlined {
    font-size: 1.2rem;
    line-height: 1;
}

/* Native Ads: shared public renderer and native admin surfaces. */
.native-ad-placement {
    width: 100%;
    min-width: 0;
}

.native-ad {
    position: relative;
    display: grid;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
    padding: 0.85rem;
    overflow: hidden;
    color: var(--base_text, #1f2937);
    text-decoration: none;
    background: var(--base_surface, #fff);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 8px;
}

.native-ad:hover {
    color: var(--base_text, #111827);
    border-color: var(--base_primary, #5e35b1);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
}

.native-ad-disclosure {
    position: absolute;
    z-index: 1;
    top: 0.55rem;
    right: 0.55rem;
    padding: 0.2rem 0.4rem;
    color: var(--btn_primary_text, #fff);
    background: rgba(17, 24, 39, 0.84);
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
}

.native-ad-image {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: #f5f7fa;
    border-radius: 6px;
}

.native-ad-headline,
.native-ad-body,
.native-ad-cta {
    display: block;
    min-width: 0;
}

.native-ad-headline {
    padding-right: 5.5rem;
    font-size: 1rem;
    line-height: 1.3;
}

.native-ad-body {
    color: var(--base_text_muted, #526071);
    font-size: 0.9rem;
    line-height: 1.5;
}

.native-ad-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    justify-self: start;
    min-height: 2.25rem;
    padding: 0.45rem 0.7rem;
    color: var(--btn_primary_text, #fff);
    background: var(--base_primary, #5e35b1);
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.native-ad-cta .material-symbols-outlined {
    font-size: 1rem;
}

.native-ad-custom {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.native-ad-custom > :first-child { margin-top: 0; }
.native-ad-custom > :last-child { margin-bottom: 0; }

.native-ad-placement-footer_banner .native-ad {
    grid-template-columns: minmax(128px, 220px) minmax(0, 1fr);
    align-items: center;
    min-height: 90px;
    padding: 0.55rem 0.65rem;
}

.native-ad-placement-footer_banner .native-ad-image {
    grid-row: 1 / span 5;
    height: 90px;
    max-height: 90px;
    object-fit: contain;
}

/* Image creatives own their full public presentation. Text, CTA, and disclosure are expected in the uploaded graphic. */
.native-ad-placement-type-image .native-ad-headline,
.native-ad-placement-type-image .native-ad-body,
.native-ad-placement-type-image .native-ad-cta,
.native-ad-placement-type-image .native-ad-disclosure { display: none; }

.native-ad-shell-slot { margin: 0 0 var(--base_gap_sm, 0.85rem); }
.main_content:has(> .native-ad-shell-content-row) { flex-wrap: wrap; align-content: flex-start; }
.native-ad-shell-content-row {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    padding: 0 0 var(--base_pad_sm, 0.35rem);
}
.native-ad-shell-content-top,
.native-ad-shell-content-bottom {
    display: block;
    flex: 0 1 728px;
    width: min(728px, 100%);
    margin: 0 auto var(--base_gap_sm, 0.85rem);
}
.native-ad-shell-content-top {
    height: 90px;
    max-height: 90px;
    overflow: hidden;
}
.native-ad-shell-content-bottom {
    height: auto;
    max-height: none;
    overflow: visible;
}
.native-ad-shell-content-bottom-row .native-ad-shell-content-bottom {
    margin: 8px auto var(--base_gap_sm, 0.85rem);
}
.native-ad-footer-toggle,
.native-ad-footer-show {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 2rem;
    color: var(--base_text, #1f2937);
    background: var(--base_surface, #fff);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 6px;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.native-ad-footer-toggle:hover,
.native-ad-footer-show:hover {
    color: var(--base_primary, #5e35b1);
    border-color: var(--base_primary, #5e35b1);
}
.native-ad-footer-toggle .material-symbols-outlined,
.native-ad-footer-show .material-symbols-outlined {
    font-size: 1rem;
}
.native-ad-footer-hide,
.native-ad-footer-show {
    padding: 0.35rem 0.6rem;
}.native-ad-shell-content-top .native-ad,
.native-ad-shell-footer-banner .native-ad {
    width: 100%;
    height: 90px;
    min-width: 0;
    max-width: 728px;
    min-height: 90px;
    max-height: 90px;
    margin: 0 auto;
    grid-template-columns: minmax(128px, 220px) minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    overflow: hidden;
}
.native-ad-shell-content-bottom .native-ad {
    width: 100%;
    min-width: 0;
    max-width: 728px;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0 auto;
}
.native-ad-shell-content-top.native-ad-placement-type-image .native-ad,
.native-ad-shell-content-bottom.native-ad-placement-type-image .native-ad,
.native-ad-shell-footer-banner.native-ad-placement-type-image .native-ad,
.native-ad-shell-sidebar-slot.native-ad-placement-type-image .native-ad {
    display: block;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.native-ad-shell-content-top.native-ad-placement-type-image .native-ad:hover,
.native-ad-shell-content-bottom.native-ad-placement-type-image .native-ad:hover,
.native-ad-shell-footer-banner.native-ad-placement-type-image .native-ad:hover,
.native-ad-shell-sidebar-slot.native-ad-placement-type-image .native-ad:hover {
    border-color: transparent;
    box-shadow: none;
}
.native-ad-shell-content-top .native-ad-image,
.native-ad-shell-footer-banner .native-ad-image {
    display: block;
    width: 100%;
    height: 90px;
    min-width: 0;
    max-width: 728px;
    min-height: 90px;
    max-height: 90px;
    object-fit: fill;
    background: transparent;
    border-radius: 0;
}
.native-ad-shell-content-bottom .native-ad-image {
    display: block;
    width: 100%;
    height: auto;
    min-width: 0;
    max-width: 728px;
    max-height: 320px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
}
.native-ad-shell-content-top .native-ad-custom img,
.native-ad-shell-footer-banner .native-ad-custom img {
    display: block;
    width: 100%;
    height: 90px;
    min-width: 0;
    max-width: 728px;
    min-height: 90px;
    max-height: 90px;
    object-fit: fill;
}
.native-ad-shell-content-bottom .native-ad-custom img {
    display: block;
    width: 100%;
    height: auto;
    min-width: 0;
    max-width: 728px;
    max-height: 320px;
    object-fit: contain;
}
.native-ad-shell-content-top .native-ad-headline,
.native-ad-shell-footer-banner .native-ad-headline { font-size: 0.92rem; }
.native-ad-shell-content-top .native-ad-body,
.native-ad-shell-footer-banner .native-ad-body { font-size: 0.82rem; line-height: 1.35; }
.native-ad-shell-content-top .native-ad-cta,
.native-ad-shell-footer-banner .native-ad-cta { min-height: 2rem; padding: 0.35rem 0.6rem; font-size: 0.78rem; }
.native-ad-shell-footer-row {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 2px 0 var(--base_gap_sm, 0.85rem);
    box-sizing: border-box;
}
.native-ad-shell-footer-frame {
    display: grid;
    grid-template-columns: minmax(5.5rem, 1fr) minmax(0, 728px) minmax(5.5rem, 1fr);
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: calc(728px + 12rem);
    margin: 0 auto;
}
.native-ad-shell-footer-spacer {
    min-width: 0;
}
.native-ad-shell-footer-body {
    grid-column: 2;
    min-width: 0;
}
.native-ad-footer-controls {
    grid-column: 3;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}
.native-ad-shell-footer-banner {
    flex: 0 1 728px;
    width: min(728px, 100%);
    height: 90px;
    margin: 0;
    overflow: hidden;
}
.native-ad-shell-footer-row .native-ad-shell-footer-banner {
    margin: 0 auto;
}
@media (max-width: 900px) {
    .native-ad-shell-footer-frame {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.35rem;
    }
    .native-ad-shell-footer-spacer {
        display: none;
    }
    .native-ad-shell-footer-body {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .native-ad-footer-controls {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-content: flex-end;
    }
}
.slideout_drawer_left,
.slideout_drawer_right {
    display: none;
    flex-direction: column;
    box-sizing: border-box;
    padding-bottom: var(--base_pad_sm, 4px);
}
.slideout_drawer_left[style*="display: block"],
.slideout_drawer_left[style*="display:block"],
.slideout_drawer_right[style*="display: block"],
.slideout_drawer_right[style*="display:block"] {
    display: flex !important;
}
.slideout_drawer_left > .site_sidebar_menu,
.slideout_drawer_right > .site_sidebar_menu {
    position: relative;
    flex: 0 0 var(--drawer-menu-height, calc(100% - var(--drawer-ad-reserved-height, 0px)));
    height: var(--drawer-menu-height, calc(100% - var(--drawer-ad-reserved-height, 0px)));
    min-height: 0;
    max-height: var(--drawer-menu-height, calc(100% - var(--drawer-ad-reserved-height, 0px)));
    overflow: hidden;
}
.slideout_drawer_left > .site_sidebar_menu > .menu_manager_wrap,
.slideout_drawer_right > .site_sidebar_menu > .menu_manager_wrap,
.slideout_drawer_left > .site_sidebar_menu .menu_inner,
.slideout_drawer_right > .site_sidebar_menu .menu_inner,
.slideout_drawer_left > .site_sidebar_menu .carousel-container,
.slideout_drawer_right > .site_sidebar_menu .carousel-container {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0;
    overflow: hidden;
}
.slideout_drawer_left > .site_sidebar_menu .carousel-container,
.slideout_drawer_right > .site_sidebar_menu .carousel-container {
    display: flex !important;
    flex-direction: column !important;
}
.slideout_drawer_left > .site_sidebar_menu .carousel-viewport,
.slideout_drawer_right > .site_sidebar_menu .carousel-viewport {
    flex: 1 1 0 !important;
    height: auto !important;
    min-height: 0;
    max-height: 100% !important;
    overflow: hidden;
}
.slideout_drawer_left > .native-ad-shell-sidebar-slot,
.slideout_drawer_right > .native-ad-shell-sidebar-slot {
    position: relative;
    z-index: 0;
    flex: 0 0 auto;
    width: calc(100% - 0.7rem);
    max-height: min(190px, 34vh);
    margin: var(--base_gap_sm, 0.5rem) 0.35rem 0;
    padding: 0;
    overflow: hidden;
}
.native-ad-shell-sidebar-slot .native-ad {
    gap: 0.35rem;
    padding: 0.65rem;
}
.native-ad-shell-sidebar-slot .native-ad-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(190px, 34vh);
    object-fit: contain;
    background: transparent;
    border-radius: 0;
}
.native-ad-shell-sidebar-slot .native-ad-custom img {
    display: block;
    width: 100%;
    max-height: min(190px, 34vh);
    object-fit: contain;
}
.native-ad-shell-sidebar-slot .native-ad-headline { padding-right: 4.8rem; font-size: 0.9rem; }
.native-ad-shell-sidebar-slot .native-ad-body { font-size: 0.78rem; line-height: 1.3; }
.native-ad-shell-sidebar-slot .native-ad-cta { min-height: 1.9rem; padding: 0.3rem 0.55rem; font-size: 0.75rem; }

.native-ads-admin {
    display: grid;
    gap: 0.85rem;
    padding: 0 0.35rem 1.5rem;
}

.native-ads-admin-header,
.native-ads-toolbar,
.native-ads-section-heading,
.native-ads-admin-actions,
.native-ads-row-actions,
.native-ads-period-form {
    display: flex;
    align-items: center;
}

.native-ads-admin-header {
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.9rem;
    padding: 0.75rem 0.9rem;
    background: var(--base_surface, #fff);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 8px;
}

.native-ads-admin-header h1,
.native-ads-section-heading h2,
.native-ads-empty h3 {
    margin: 0;
    letter-spacing: 0;
}

.native-ads-admin-header h1 { font-size: 1.38rem; line-height: 1.15; }
.native-ads-admin-actions { gap: 0.55rem; flex-wrap: wrap; justify-content: flex-end; }
.native-ads-eyebrow { display: block; margin-bottom: 0.16rem; color: var(--base_text_muted, #526071); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.native-ads-back { display: inline-flex; align-items: center; gap: 0.3rem; margin-bottom: 0.3rem; color: var(--base_text_muted, #526071); font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.native-ads-back .material-symbols-outlined { font-size: 1rem; }

.native-ads-toolbar {
    justify-content: flex-end;
    min-height: 2.5rem;
}

.native-ads-period-form { gap: 0.55rem; }
.native-ads-period-form label { color: var(--base_text_muted, #526071); font-size: 0.82rem; font-weight: 700; }
.native-ads-period-form .form_control { width: auto; min-width: 120px; }

.native-ads-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 8px;
    background: var(--base_surface, #fff);
}

.native-ads-metrics > div {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding: 1.2rem 1rem;
    border-right: 1px solid var(--base_border_light, #d8dee8);
}

.native-ads-metrics > div:last-child { border-right: 0; }
.native-ads-metrics span { color: var(--base_text, #1f2937); font-size: 0.75rem; font-weight: 750; text-align: center; text-transform: uppercase; }
.native-ads-metrics strong { order: -1; color: var(--base_primary, #5e35b1); font-size: 1.45rem; line-height: 1; text-align: center; overflow-wrap: anywhere; }

.native-ads-table-panel,
.native-ads-form-panel {
    width: 100%;
    min-width: 0;
    margin: 0;
    text-align: left;
}

.native-ads-section-heading {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--base_border_light, #d8dee8);
}

.native-ads-section-heading h2 { font-size: 1rem; }
.native-ads-section-heading p { margin: 0.2rem 0 0; color: var(--base_text_muted, #526071); font-size: 0.82rem; }

.native-ads-table { width: 100%; min-width: 760px; }
.native-ads-table th { white-space: nowrap; }
.native-ads-row-title { display: block; width: fit-content; color: var(--base_text, #1f2937); font-weight: 750; text-decoration: none; }
.native-ads-row-title:hover { color: var(--base_primary, #5e35b1); }
.native-ads-row-meta { display: block; margin-top: 0.2rem; color: var(--base_text_muted, #526071); font-size: 0.75rem; font-weight: 400; }

.native-ads-row-actions { justify-content: flex-end; gap: 0.2rem; white-space: nowrap; }
.native-ads-row-actions form { display: inline-flex; margin: 0; }
.native-ads-row-actions .btn {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0;
}
.native-ads-row-actions .material-symbols-outlined { font-size: 1.05rem; }
.native-ads-danger { color: var(--base_danger, #c92a2a) !important; }

.native-ads-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.2rem 0.5rem;
    color: var(--base_text, #1f2937);
    background: var(--base_light, #f5f7fa);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    white-space: nowrap;
}
.native-ads-status-ready { color: var(--base_success, #087f5b); background: var(--base_light, #f5f7fa); }
.native-ads-status-scheduled { color: var(--base_primary, #5e35b1); background: var(--base_light, #f5f7fa); }
.native-ads-status-ended,
.native-ads-status-inactive { color: var(--base_text_muted, #526071); background: var(--base_light, #f5f7fa); }
.native-ads-status-needs-creative { color: var(--base_warning, #b86b00); background: var(--base_light, #f5f7fa); }

.native-ads-empty {
    display: grid;
    place-items: center;
    gap: 0.65rem;
    min-height: 13rem;
    color: var(--base_text_muted, #526071);
    text-align: center;
}
.native-ads-empty > .material-symbols-outlined { font-size: 2.5rem; color: var(--base_primary, #5e35b1); }
.native-ads-empty-compact { grid-template-columns: auto auto; justify-content: center; min-height: 6rem; }
.native-ads-empty-compact > .material-symbols-outlined { font-size: 1.5rem; }

.native-ads-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.native-ads-form-span { grid-column: 1 / -1; }
.native-ads-toggle-field { display: flex; align-items: end; min-height: 2.8rem; padding-bottom: 0.35rem; }
.native-ads-code-input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.86rem; }
.native-ads-admin-preview { display: block; width: min(100%, 520px); max-height: 240px; margin-top: 0.65rem; object-fit: contain; background: var(--base_light, #f5f7fa); border: 1px solid var(--base_border_light, #d8dee8); border-radius: 6px; }

.sr_only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 840px) {
    .native-ads-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .native-ads-metrics > div { border-right: 0; border-bottom: 1px solid var(--base_border_light, #d8dee8); }
    .native-ads-metrics > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
}

@media (max-width: 680px) {
    .native-ad-placement-footer_banner:not(.native-ad-shell-footer-banner) .native-ad { grid-template-columns: minmax(96px, 180px) minmax(0, 1fr); }
    .native-ad-placement-footer_banner:not(.native-ad-shell-footer-banner) .native-ad-image { grid-row: 1 / span 5; height: auto; max-height: 72px; }
    .native-ads-admin-header,
    .native-ads-section-heading { align-items: flex-start; flex-direction: column; }
    .native-ads-admin-actions { width: 100%; justify-content: flex-start; }
    .native-ads-form-grid { grid-template-columns: minmax(0, 1fr); }
    .native-ads-form-span { grid-column: auto; }
    .native-ads-toolbar { justify-content: flex-start; }
}

/* Native Ads 2: demand-source ad manager. */
.native-ads-header-copy {
    max-width: 48rem;
    margin: 0.22rem 0 0;
    color: var(--base_text_muted, #526071);
    font-size: 0.84rem;
    line-height: 1.4;
}

.native-ads-manager-nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: 2.9rem;
    padding: 0;
    overflow-x: auto;
    background: transparent;
    border-bottom: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 0;
}

.native-ads-manager-nav > a,
.native-ads-manager-nav > button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.85rem;
    padding: 0.38rem 0.85rem;
    color: var(--base_text, #1f2937);
    background: var(--base_surface, #fff);
    border: 1px solid var(--base_border, #9ca3af);
    border-bottom-color: var(--base_border, #9ca3af);
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.native-ads-manager-nav > a:hover,
.native-ads-manager-nav > button:hover { color: var(--base_text, #1f2937); background: var(--base_light, #f5f7fa); border-color: var(--base_border, #9ca3af); }
.native-ads-manager-nav > a.is-active,
.native-ads-manager-nav > button.is-active { color: var(--base_primary, #5e35b1); background: color-mix(in srgb, var(--base_primary, #5e35b1) 12%, var(--base_surface, #fff)); border-color: var(--base_primary, #5e35b1); box-shadow: inset 0 2px 0 var(--base_primary, #5e35b1); }
.native-ads-manager-nav .material-symbols-outlined { font-size: 1.05rem; }
.native-ads-nav-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    color: var(--btn_primary_text, #fff);
    background: var(--btn_primary_bg, var(--base_primary, #5e35b1));
    border-radius: 999px;
    font-size: 0.67rem;
}
.native-ads-nav-action { margin-left: auto; }
.native-ads-nav-period { margin-left: 0; align-self: center; padding-left: 0.45rem; }
.native-ads-nav-period .form_control { height: 2.35rem; background: var(--base_surface, #fff); border: 1px solid var(--base_border_light, #d8dee8); border-radius: 6px; }

.native-ads-manager-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.native-ads-dashboard-grid,
.native-ads-network-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.native-ads-ops-panel { min-width: 0; margin: 0; text-align: left; border-radius: 6px; }
.native-ads-panel-total { color: var(--base_text, #1f2937); font-size: 1.3rem; }
.native-ads-text-link { color: var(--base_primary, #5e35b1); font-size: 0.8rem; font-weight: 750; text-decoration: none; }
.native-ads-text-link:hover { text-decoration: underline; }

.native-ads-demand-list,
.native-ads-attention-list,
.native-ads-inventory-list,
.native-ads-network-list {
    display: grid;
}

.native-ads-demand-row {
    display: grid;
    grid-template-columns: 0.65rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.6rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--base_border_light, #d8dee8);
}
.native-ads-demand-row:first-child { border-top: 0; }
.native-ads-demand-row > span:nth-child(2) { display: grid; gap: 0.1rem; }
.native-ads-demand-row small,
.native-ads-inventory-name small,
.native-ads-network-name small,
.native-ads-creative-info p,
.native-ads-attention-list small {
    color: var(--base_text_muted, #526071);
    font-size: 0.74rem;
}
.native-ads-demand-row b { font-size: 1.1rem; }
.native-ads-source-swatch { width: 0.55rem; height: 2rem; border-radius: 3px; }
.native-ads-source-direct { background: var(--btn_primary_bg, var(--base_primary, #5e35b1)); }
.native-ads-source-house { background: var(--base_warning, #b86b00); }
.native-ads-source-network { background: var(--base_accent, #23689b); }

.native-ads-delivery-chart {
    display: flex;
    align-items: end;
    gap: 0.3rem;
    height: 10.4rem;
    padding: 0.75rem 0.25rem 0.1rem;
    background: linear-gradient(to top, #f4f7fa 0, #f4f7fa 1px, transparent 1px) 0 25% / 100% 25%;
    border-bottom: 1px solid #b8c2cc;
}
.native-ads-delivery-chart > span {
    flex: 1 1 0;
    height: var(--native-ads-bar);
    min-width: 0.35rem;
    max-width: 2.5rem;
    background: var(--btn_primary_bg, var(--base_primary, #5e35b1));
    border-radius: 3px 3px 0 0;
}
.native-ads-delivery-chart > span:hover { background: var(--base_accent, #23689b); }

.native-ads-inventory-row {
    display: grid;
    grid-template-columns: 2rem minmax(12rem, 1.4fr) auto minmax(5rem, 0.75fr) 4rem auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 4.4rem;
    padding: 0.65rem 0;
    color: var(--base_text, #1f2937);
    border-top: 1px solid var(--base_border_light, #d8dee8);
    text-decoration: none;
}
.native-ads-inventory-row:first-child { border-top: 0; }
.native-ads-inventory-row:hover .native-ads-inventory-name strong { color: var(--base_primary, #5e35b1); }
.native-ads-slot-icon { color: var(--base_text_muted, #526071); font-size: 1.35rem; }
.native-ads-inventory-name,
.native-ads-network-name { display: grid; gap: 0.15rem; min-width: 0; }
.native-ads-inventory-name code { font-size: 0.71rem; }
.native-ads-source-stack { display: inline-flex; align-items: center; min-width: 1.2rem; }
.native-ads-source-stack i {
    width: 0.75rem;
    height: 0.75rem;
    margin-left: -0.16rem;
    border: 2px solid var(--base_surface, #fff);
    border-radius: 50%;
}
.native-ads-source-stack i:first-child { margin-left: 0; }
.native-ads-waterfall { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.native-ads-waterfall-step { display: inline-flex; align-items: center; min-height: 1.45rem; padding: 0.15rem 0.38rem; color: var(--base_text_muted, #526071); background: var(--base_light, #f5f7fa); border: 1px solid var(--base_border_light, #d8dee8); border-radius: 4px; font-size: 0.67rem; font-weight: 750; }
.native-ads-waterfall-step.is-active { color: var(--base_text, #1f2937); border-color: var(--base_border, #9ca3af); }
.native-ads-health-list { display: grid; gap: 0.12rem; margin-top: 0.3rem; }
.native-ads-health-list small { color: var(--base_text_muted, #526071); font-size: 0.68rem; line-height: 1.25; }
.native-ads-coverage-meter,
.native-ads-contract-meter {
    display: block;
    width: 100%;
    height: 0.35rem;
    overflow: hidden;
    background: var(--base_light, #f5f7fa);
    border-radius: 3px;
}
.native-ads-coverage-meter i,
.native-ads-contract-meter i { display: block; height: 100%; background: var(--btn_primary_bg, var(--base_primary, #5e35b1)); }
.native-ads-inventory-stat { display: grid; gap: 0.05rem; text-align: right; }
.native-ads-inventory-stat small { color: var(--base_text_muted, #526071); font-size: 0.66rem; }
.native-ads-alert-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.7rem;
    height: 1.7rem;
    color: var(--base_warning, #b86b00);
    background: var(--base_light, #f5f7fa);
    border-radius: 50%;
    font-weight: 800;
}

.native-ads-attention-list a {
    display: grid;
    grid-template-columns: 1.8rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.5rem;
    padding: 0.55rem 0;
    color: var(--base_text, #1f2937);
    border-top: 1px solid var(--base_border_light, #d8dee8);
    text-decoration: none;
}
.native-ads-attention-list a:first-child { border-top: 0; }
.native-ads-attention-list a > span:nth-child(2) { display: grid; gap: 0.1rem; }
.native-ads-attention-list a > .material-symbols-outlined:first-child { color: var(--base_warning, #b86b00); }
.native-ads-attention-list a > .material-symbols-outlined:last-child { color: var(--base_text_muted, #526071); font-size: 1.15rem; }
.native-ads-all-clear > .material-symbols-outlined { color: var(--base_success, #087f5b); }
.native-ads-attention-list em {
    color: var(--base_text, #1f2937);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 800;
}
.native-ads-smoke {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.35rem;
    margin-top: 0.25rem;
    padding: 0.12rem 0.38rem;
    color: var(--base_text_muted, #526071);
    background: var(--base_light, #f5f7fa);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 800;
    white-space: nowrap;
}
.native-ads-smoke.is-ready { color: var(--base_success, #087f5b); }
.native-ads-diagnostic-panel { margin-top: 1rem; }
.native-ads-source-picker { margin-top: 1rem; }
.native-ads-source-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}
.native-ads-source-choice,
.native-ads-workflow-guide {
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    padding: 0.7rem 0.75rem;
    color: var(--base_text, #1f2937);
    background: var(--base_surface, #fff);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 6px;
    text-decoration: none;
}
.native-ads-source-choice.is-active { border-color: var(--base_border, #9ca3af); box-shadow: inset 0 2px 0 var(--base_primary, #5e35b1); }
.native-ads-source-choice .material-symbols-outlined,
.native-ads-workflow-guide .material-symbols-outlined { color: var(--base_text_muted, #526071); font-size: 1.2rem; }
.native-ads-source-choice strong,
.native-ads-workflow-guide strong { display: block; font-size: 0.82rem; }
.native-ads-source-choice small,
.native-ads-workflow-guide small { display: block; margin-top: 0.12rem; color: var(--base_text_muted, #526071); font-size: 0.72rem; line-height: 1.35; }
.native-ads-source-choice > .material-symbols-outlined { grid-row: 1 / 3; }
.native-ads-source-choice > strong,
.native-ads-source-choice > small { grid-column: 2; min-width: 0; }
.native-ads-workflow-guide { margin-bottom: 1rem; background: var(--base_light, #f5f7fa); }
.native-ads-context-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    min-height: 1.6rem;
    margin-top: 0.45rem;
    padding: 0.16rem 0.48rem;
    color: var(--base_text, #1f2937);
    background: var(--base_surface, #fff);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none;
}
.native-ads-context-link .material-symbols-outlined { font-size: 0.95rem; }
.native-ads-context-link:hover { border-color: var(--base_border, #9ca3af); }
.native-ads-creative-readiness,
.native-ads-placement-diagnosis {
    display: grid;
    grid-template-columns: minmax(13rem, 0.8fr) minmax(0, 1.2fr);
    gap: 0.75rem;
    align-items: stretch;
    margin-bottom: 1rem;
    padding: 0.75rem;
    color: var(--base_text, #1f2937);
    background: var(--base_light, #f5f7fa);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 6px;
}
.native-ads-readiness-summary {
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
}
.native-ads-readiness-summary .material-symbols-outlined { color: var(--base_text_muted, #526071); font-size: 1.15rem; }
.native-ads-readiness-summary strong { display: block; font-size: 0.82rem; }
.native-ads-readiness-summary small { display: block; margin-top: 0.15rem; color: var(--base_text_muted, #526071); font-size: 0.72rem; line-height: 1.35; }
.native-ads-check-list-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.native-ads-placement-diagnosis .native-ads-waterfall { align-content: start; }
.native-ads-diagnostic-grid {
    display: grid;
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
}
.native-ads-diagnostic-callout {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    padding: 0.75rem;
    color: var(--base_text, #1f2937);
    background: var(--base_light, #f5f7fa);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 6px;
}
.native-ads-diagnostic-callout .material-symbols-outlined { font-size: 1.35rem; }
.native-ads-diagnostic-callout span:last-child { display: grid; gap: 0.15rem; }
.native-ads-diagnostic-callout small { color: var(--base_text_muted, #526071); font-size: 0.76rem; line-height: 1.35; }
.native-ads-check-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}
.native-ads-check {
    display: grid;
    grid-template-columns: 1.2rem minmax(0, 1fr);
    gap: 0.18rem 0.4rem;
    align-items: start;
    min-height: 3rem;
    padding: 0.5rem;
    color: var(--base_text, #1f2937);
    background: var(--base_surface, #fff);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 6px;
}
.native-ads-check i { grid-row: 1 / 3; font-size: 1rem; }
.native-ads-check b { overflow: hidden; font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.native-ads-check small { color: var(--base_text_muted, #526071); font-size: 0.66rem; }
.native-ads-check.is-ok i { color: var(--base_success, #087f5b); }
.native-ads-check.is-blocked i { color: var(--base_warning, #b86b00); }
.native-ads-status-pacing-hold,
.native-ads-status-budget-met,
.native-ads-status-daily-cap,
.native-ads-status-blocked { color: var(--base_warning, #b86b00); background: var(--base_light, #f5f7fa); }
.native-ads-fix-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.35rem;
}
.native-ads-fix-links a {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0.14rem 0.42rem;
    color: var(--base_text, #1f2937);
    background: var(--base_light, #f5f7fa);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
}
.native-ads-fix-links a:hover { border-color: var(--base_border, #9ca3af); }

.native-ads-source-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: 0.16rem 0.42rem;
    border-radius: 4px;
    font-size: 0.69rem;
    font-weight: 800;
    white-space: nowrap;
}
.native-ads-source-badge-direct { color: var(--base_text, #1f2937); background: var(--base_light, #f5f7fa); }
.native-ads-source-badge-house { color: var(--base_text, #1f2937); background: var(--base_light, #f5f7fa); }
.native-ads-source-badge-network { color: var(--base_text, #1f2937); background: var(--base_light, #f5f7fa); }
.native-ads-priority {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: var(--base_text, #1f2937);
    background: var(--base_light, #f5f7fa);
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 850;
}
.native-ads-contract-value { display: block; margin-bottom: 0.25rem; font-size: 0.74rem; font-weight: 750; }
.native-ads-contract-meter { width: 5rem; }
.native-ads-external-metric { color: var(--base_text_muted, #526071); font-size: 0.73rem; font-weight: 750; }

.native-ads-status-delivering { color: var(--base_success, #087f5b); background: var(--base_light, #f5f7fa); }
.native-ads-status-network-off { color: var(--base_warning, #b86b00); background: var(--base_light, #f5f7fa); }
.native-ads-status-goal-met { color: var(--base_primary, #5e35b1); background: var(--base_light, #f5f7fa); }

.native-ads-creative-library {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}
.native-ads-creative-item {
    position: relative;
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    min-height: 9rem;
    overflow: hidden;
    background: var(--base_surface, #fff);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 8px;
}
.native-ads-creative-thumb {
    display: grid;
    place-items: center;
    min-width: 0;
    overflow: hidden;
    background: var(--base_light, #f5f7fa);
    border-right: 1px solid var(--base_border_light, #d8dee8);
}
.native-ads-creative-thumb .native-ads-admin-ad-preview,
.native-ads-creative-thumb .native-ad,
.native-ads-table-thumb .native-ads-admin-ad-preview,
.native-ads-table-thumb .native-ad { width: 100%; height: 100%; }
.native-ads-creative-thumb .native-ad {
    place-content: center;
    padding: 0.45rem;
    border: 0;
    border-radius: 0;
    font-size: 0.65rem;
}
.native-ads-creative-thumb .native-ad-disclosure { display: none; }
.native-ads-creative-thumb .native-ad-image { height: 100%; max-height: 9rem; object-fit: cover; border-radius: 0; }
.native-ads-creative-thumb .native-ad-headline { padding: 0; font-size: 0.78rem; }
.native-ads-creative-thumb .native-ad-body { max-height: 2.5rem; overflow: hidden; font-size: 0.68rem; }
.native-ads-creative-thumb .native-ad-cta { min-height: 1.6rem; padding: 0.25rem 0.4rem; font-size: 0.65rem; }
.native-ads-creative-info { display: grid; align-content: start; gap: 0.45rem; min-width: 0; padding: 0.8rem 2.7rem 0.8rem 0.8rem; }
.native-ads-creative-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; padding-right: 1.8rem; }
.native-ads-creative-health {
    display: grid;
    gap: 0.24rem;
    padding: 0.45rem 0.5rem;
    color: var(--base_text_muted, #526071);
    background: var(--base_light, #f5f7fa);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 6px;
    font-size: 0.68rem;
    line-height: 1.3;
}
.native-ads-creative-health span { display: grid; grid-template-columns: 4.3rem minmax(0, 1fr); gap: 0.35rem; min-width: 0; }
.native-ads-creative-health b { color: var(--base_text, #1f2937); font-size: 0.66rem; }
.native-ads-creative-info h3 { margin: 0; font-size: 0.96rem; }
.native-ads-creative-info h3 a { color: var(--base_text, #1f2937); text-decoration: none; }
.native-ads-creative-info p { margin: 0; overflow-wrap: anywhere; }
.native-ads-creative-stats { display: flex; gap: 1rem; margin-top: auto; }
.native-ads-creative-stats span { display: grid; color: var(--base_text_muted, #526071); font-size: 0.68rem; }
.native-ads-creative-stats strong { color: var(--base_text, #1f2937); font-size: 0.82rem; }
.native-ads-creative-edit { position: absolute; top: 0.55rem; right: 0.55rem; }
.native-ads-inline-creative { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); }
.native-ads-self-actions { display: inline-flex; gap: 0.25rem; }
.native-ads-self-actions form { margin: 0; }

.native-ads-network-preview {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.25rem;
    width: 100%;
    height: 100%;
    min-height: 5rem;
    padding: 0.55rem;
    color: #1d5278;
    text-align: center;
    background: #e7f1f8;
    border: 1px solid #c6dcea;
}
.native-ads-provider-guide,
.native-ads-provider-list article {
    display: grid;
    gap: 0.3rem;
    padding: 0.7rem 0.75rem;
    color: var(--base_text, #1f2937);
    background: var(--base_light, #f5f7fa);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 6px;
    font-size: 0.76rem;
    line-height: 1.35;
}
.native-ads-provider-guide { margin-bottom: 1rem; }
.native-ads-provider-guide span,
.native-ads-provider-list small,
.native-ads-provider-list span { color: var(--base_text_muted, #526071); }
.native-ads-provider-list { display: grid; gap: 0.55rem; }
.native-ads-provider-reference { grid-column: 1 / -1; }
.native-ads-network-preview .material-symbols-outlined { font-size: 1.5rem; }
.native-ads-network-preview strong { font-size: 0.75rem; }
.native-ads-network-preview span:last-child { color: var(--base_text_muted, #526071); font-size: 0.62rem; }
.native-ads-admin-ad-preview { min-width: 0; overflow: hidden; }
.native-ads-table-creative { display: flex; align-items: center; gap: 0.65rem; min-width: 12rem; }
.native-ads-table-thumb { display: block; width: 3.2rem; height: 2.5rem; flex: 0 0 3.2rem; overflow: hidden; background: var(--base_light, #f5f7fa); border-radius: 4px; }
.native-ads-table-thumb .native-ad { padding: 0.2rem; border: 0; border-radius: 0; }
.native-ads-table-thumb .native-ad-disclosure,
.native-ads-table-thumb .native-ad-body,
.native-ads-table-thumb .native-ad-cta { display: none; }
.native-ads-table-thumb .native-ad-image { height: 100%; object-fit: cover; border-radius: 0; }
.native-ads-table-thumb .native-ad-headline { padding: 0; font-size: 0.48rem; }
.native-ads-table-thumb .native-ads-network-preview { min-height: 2.5rem; padding: 0.1rem; }
.native-ads-table-thumb .native-ads-network-preview strong,
.native-ads-table-thumb .native-ads-network-preview span:last-child { display: none; }

.native-ads-network-layout { grid-template-columns: minmax(22rem, 0.8fr) minmax(0, 1.2fr); align-items: start; }
.native-ads-security-notice {
    display: grid;
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    color: var(--base_text, #1f2937);
    background: var(--base_surface, #fff);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 8px;
    font-size: 0.76rem;
    line-height: 1.45;
}
.native-ads-security-notice .material-symbols-outlined { font-size: 1.2rem; }
.native-ads-security-notice span:last-child { display: block; }
.native-ads-network-row {
    display: grid;
    grid-template-columns: 2.5rem minmax(9rem, 1fr) 3.4rem 3.8rem 5.5rem auto auto;
    align-items: center;
    gap: 0.7rem;
    min-height: 4.6rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--base_border_light, #d8dee8);
}
.native-ads-network-row:first-child { border-top: 0; }
.native-ads-provider-mark {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--btn_primary_text, #fff);
    background: var(--btn_primary_bg, var(--base_primary, #5e35b1));
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 850;
}
.native-ads-network-name small { overflow-wrap: anywhere; }
.native-ad-placement-network { min-height: 1px; }
.native-ads-admin-source-network .native-ads-local-creative-field,
.native-ads-admin-source-direct .native-ads-network-creative-field,
.native-ads-admin-source-house .native-ads-network-creative-field { display: none; }

@media (max-width: 1080px) {
    .native-ads-manager-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .native-ads-manager-metrics > div:nth-child(3) { border-right: 0; }
    .native-ads-manager-metrics > div:nth-child(-n+3) { border-bottom: 1px solid var(--base_border_light, #d8dee8); }
    .native-ads-network-layout { grid-template-columns: minmax(0, 1fr); }
    .native-ads-network-row { grid-template-columns: 2.5rem minmax(9rem, 1fr) repeat(3, 4rem) auto; }
    .native-ads-network-row > .native-ads-row-actions { grid-column: 2 / -1; justify-content: flex-start; }
}

@media (max-width: 860px) {
    .native-ads-dashboard-grid,
    .native-ads-creative-library,
    .native-ads-creative-readiness,
    .native-ads-diagnostic-grid,
    .native-ads-placement-diagnosis,
    .native-ads-source-picker-grid { grid-template-columns: minmax(0, 1fr); }
    .native-ads-check-list,
    .native-ads-check-list-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .native-ads-inventory-row { grid-template-columns: 2rem minmax(0, 1fr) auto auto; }
    .native-ads-inventory-row .native-ads-coverage-meter { grid-column: 2 / 4; }
    .native-ads-inventory-row .native-ads-inventory-stat { grid-column: 4; grid-row: 1; }
    .native-ads-inventory-row .native-ads-status { grid-column: 4; }
}

@media (max-width: 680px) {
    .native-ads-manager-header { align-items: flex-start; }
    .native-ads-manager-nav {
        display: flex;
        align-items: stretch;
    gap: 0;
    min-height: 2.9rem;
    padding: 0;
    overflow-x: auto;
    background: transparent;
    border-bottom: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 0;
}
    .native-ads-manager-nav > a,
    .native-ads-manager-nav > button {
        display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 2.85rem;
    padding: 0.38rem 0.85rem;
    color: var(--base_text, #1f2937);
    background: var(--base_surface, #fff);
    border: 1px solid var(--base_border, #9ca3af);
    border-bottom-color: var(--base_border, #9ca3af);
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}
    .native-ads-nav-period { margin-left: 0; }
    .native-ads-manager-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .native-ads-manager-metrics > div,
    .native-ads-manager-metrics > div:nth-child(3) { border-right: 0; border-bottom: 1px solid var(--base_border_light, #d8dee8); }
    .native-ads-manager-metrics > div:last-child { grid-column: auto; border-bottom: 0; }
    .native-ads-creative-item { grid-template-columns: 6.5rem minmax(0, 1fr); }
    .native-ads-inventory-row { grid-template-columns: 1.7rem minmax(0, 1fr) auto; gap: 0.55rem; }
    .native-ads-inventory-row .native-ads-source-stack,
    .native-ads-inventory-row .native-ads-waterfall { grid-column: 3; grid-row: 1; }
    .native-ads-inventory-row .native-ads-coverage-meter { grid-column: 2 / 4; }
    .native-ads-inventory-row .native-ads-inventory-stat { grid-column: 2; grid-row: auto; text-align: left; }
    .native-ads-inventory-row .native-ads-status { grid-column: 3; }
    .native-ads-network-row { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
    .native-ads-check-list,
    .native-ads-check-list-compact { grid-template-columns: minmax(0, 1fr); }
    .native-ads-network-row > .native-ads-inventory-stat { display: none; }
    .native-ads-network-row > .native-ads-status { grid-column: 3; grid-row: 1; }
    .native-ads-network-row > .native-ads-row-actions { grid-column: 2 / 4; }
}
/* Admin Area Shared Shell -------------------------------------------------- */
.admin-page-shell {
    display: grid;
    gap: 0.85rem;
    width: 100%;
    max-width: none !important;
    min-width: 0;
    margin: 0;
    padding: 0 0.35rem 1.5rem;
    text-align: left;
}

.form_wrapper.admin-page-shell,
.admin-legacy-form-shell {
    width: 100%;
    max-width: none !important;
    height: auto;
    min-height: 0;
    margin: 0;
    overflow: visible;
}

.admin-page-header,
.admin-page-shell > .form_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.9rem;
    padding: 0.75rem 0.9rem;
    color: var(--base_text, #1f2937);
    background: var(--base_surface, #fff);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 8px;
}

.admin-page-header h1,
.admin-page-header h2,
.admin-page-shell > .form_header h1,
.admin-page-shell > .form_header h2 {
    margin: 0;
    letter-spacing: 0;
    line-height: 1.15;
}

.admin-page-header p {
    margin: 0.22rem 0 0;
    color: var(--base_text_muted, #526071);
    font-size: 0.84rem;
    line-height: 1.4;
}

.admin-page-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.admin-page-title > .material-symbols-outlined {
    color: var(--base_primary, #5e35b1);
    font-size: 1.45rem;
}

.admin-page-copy {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.admin-page-eyebrow {
    color: var(--base_text_muted, #526071);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.admin-page-actions,
.admin-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.admin-row-actions form {
    display: inline-flex;
    margin: 0;
}

.admin-row-actions .btn,
.admin-row-actions summary.btn {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0;
}

.admin-row-actions .material-symbols-outlined {
    font-size: 1.05rem;
}

.admin-metrics,
.admin-page-shell .user_stats.admin-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0;
    width: 100%;
    overflow: hidden;
    background: var(--base_surface, #fff);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 8px;
}

.admin-metrics .stat_box,
.admin-metrics > div {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    min-width: 0;
    min-height: 5.2rem;
    padding: 1rem 0.8rem;
    background: transparent !important;
    border: 0;
    border-right: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 0;
}

.admin-metrics .stat_box:last-child,
.admin-metrics > div:last-child {
    border-right: 0;
}

.admin-metrics .stat_number,
.admin-metrics strong {
    order: -1;
    color: var(--base_primary, #5e35b1);
    font-size: 1.45rem;
    line-height: 1;
    text-align: center;
    overflow-wrap: anywhere;
}

.admin-metrics .stat_label,
.admin-metrics span {
    color: var(--base_text, #1f2937);
    font-size: 0.75rem;
    font-weight: 750;
    text-align: center;
    text-transform: uppercase;
}

.admin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--base_border_light, #d8dee8);
}

.admin-section-heading h2,
.admin-section-heading h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0;
}

.admin-section-heading p {
    margin: 0.2rem 0 0;
    color: var(--base_text_muted, #526071);
    font-size: 0.82rem;
}

.admin-empty {
    display: grid;
    place-items: center;
    gap: 0.65rem;
    min-height: 10rem;
    padding: 1.5rem;
    color: var(--base_text_muted, #526071);
    text-align: center;
}

.admin-empty > .material-symbols-outlined {
    color: var(--base_primary, #5e35b1);
    font-size: 2.4rem;
}

.admin-page-shell .content_box {
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
    text-align: left;
}

.admin-page-shell .form_body,
.admin-page-shell .form_body_small {
    min-width: 0;
    max-height: none;
    overflow: visible;
}

.admin-page-shell .table_responsive,
.admin-page-shell .content_box:has(table.data_table),
.admin-page-shell .content_box:has(table.table),
.admin-page-shell .form_body:has(table.data_table),
.admin-page-shell .form_body:has(table.table) {
    overflow-x: auto;
}

.admin-page-shell table.data_table,
.admin-page-shell table.table {
    width: 100%;
}

.admin-page-shell .nav_tabs {
    overflow-x: auto;
    justify-content: flex-start;
}

@media (max-width: 720px) {
    .admin-page-header,
    .admin-page-shell > .form_header,
    .admin-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-metrics .stat_box,
    .admin-metrics > div {
        border-right: 0;
        border-bottom: 1px solid var(--base_border_light, #d8dee8);
    }
}

.native-ads-header-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.5rem; flex-wrap: wrap; }
.native-ads-manual-section { display: grid; gap: 1rem; }
.native-ads-manual-grid .manual_link_card,
.native-ads-manual .manual_field_note { border-radius: 8px; border-color: var(--border-color, #d8dee8); background: var(--base_light, #f5f7fa); }
.native-ads-manual .manual_link_card { text-decoration: none; cursor: pointer; }
.native-ads-manual .manual_link_card:hover { border-color: var(--base_text_muted, #526071); }
.native-ads-manual-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.75rem; }
.native-ads-manual .manual_field_label { letter-spacing: 0; }

.native-ads-manual-window { color: var(--base_text, #1f2937) !important; border-radius: 8px !important; border: 1px solid var(--base_border, #d8dee8) !important; background: var(--base_surface, #fff) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

.native-ads-inline-help { display: inline; padding: 0; border: 0; background: transparent; color: var(--base_primary, #5e35b1); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.native-ads-inline-help:hover { color: var(--base_text, #1f2937); }

.native-ads-manual-reader .manual_reader_body { display: grid; align-content: start; gap: 0.85rem; }
.native-ads-manual-reader .native-ads-manual-page,
.native-ads-manual-reader .native-ads-manual-page.is-active { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0.85rem; width: 100%; }
.native-ads-manual-reader .manual_section_intro { width: 100%; max-width: 100%; line-height: 1.5; }
.native-ads-manual-reader .manual_link_grid,
.native-ads-manual-reader .native-ads-manual-columns { width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0.75rem; }
.native-ads-manual-reader .manual_link_card,
.native-ads-manual-reader .manual_field_note { min-width: 0; width: 100%; box-sizing: border-box; }
.native-ads-manual-reader .manual_link_title,
.native-ads-manual-reader .manual_link_desc,
.native-ads-manual-reader .manual_field_label,
.native-ads-manual-reader .manual_field_desc { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .content_box.manual_reader_window.native-ads-manual-window { width: calc(100vw - 24px); right: 12px; left: 12px; }
  .native-ads-manual-reader .manual_reader_header { flex-direction: column; align-items: stretch; }
  .native-ads-manual-reader .manual_reader_nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .native-ads-manual-reader .manual_reader_nav .btn { width: 100%; }
}

.native-ads-manual-reader .manual_reader_header { flex-direction: column !important; align-items: stretch !important; }
.native-ads-manual-reader .manual_reader_nav { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; width: 100% !important; }
.native-ads-manual-reader .manual_reader_nav .btn { width: 100% !important; justify-content: center !important; }
@media (max-width: 460px) {
  .native-ads-manual-reader .manual_reader_nav { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

.native-ads-format-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.native-ads-format-option { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.8rem; border: 1px solid var(--base_border, #d8dee8); border-radius: 8px; background: var(--base_surface, #fff); cursor: pointer; }
.native-ads-format-option input { margin-top: 0.2rem; }
.native-ads-format-option b { display: block; color: var(--base_text, #1f2937); }
.native-ads-format-option small { display: block; color: var(--base_text_muted, #526071); line-height: 1.35; }
.native-ads-format-option:has(input:checked) { border-color: var(--base_primary, #5e35b1); background: var(--base_light, #f5f7fa); }
@media (max-width: 700px) { .native-ads-format-options { grid-template-columns: minmax(0, 1fr); } }


/* Core announcements admin preview. */
.announcement-message-input {
    min-height: 11rem;
    line-height: 1.5;
    resize: vertical;
}
.announcement-field-meter {
    display: block;
    margin-top: 0.22rem;
    color: var(--base_text_muted, #526071);
    font-size: 0.78rem;
    text-align: right;
}
.announcement-preview-panel {
    display: grid;
    gap: 0.55rem;
    margin: 0.85rem 0 1rem;
}
.announcement-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.announcement-preview-header h3 {
    margin: 0;
    font-size: 0.95rem;
}
.announcement-preview-header span {
    color: var(--base_text_muted, #526071);
    font-size: 0.78rem;
    font-weight: 700;
}
.announcement-preview-card {
    display: grid;
    gap: 0.35rem;
    min-height: 7rem;
    padding: 0.85rem;
    color: var(--base_text, #1f2937);
    background: var(--base_light, #f5f7fa);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 8px;
}
.announcement-preview-card h4,
.announcement-preview-card p {
    margin: 0;
}
.announcement-preview-card h4 {
    overflow-wrap: anywhere;
    font-size: 1rem;
}
.announcement-preview-card .announcement-date {
    color: var(--base_text_muted, #526071);
    font-size: 0.78rem;
    font-weight: 700;
}
.announcement-preview-body {
    max-height: 14rem;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.5;
}


.announcement-audience-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}
.announcement-role-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.announcement-role-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.55rem;
    color: var(--base_text, #1f2937);
    background: var(--base_light, #f5f7fa);
    border: 1px solid var(--base_border_light, #d8dee8);
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}
.announcement-role-option:has(input:checked) {
    border-color: var(--base_primary, #5e35b1);
    box-shadow: inset 0 0 0 1px var(--base_primary, #5e35b1);
}
.announcement-preview-card .announcement-audience {
    margin: 0;
    color: var(--base_text_muted, #526071);
    font-size: 0.78rem;
    font-weight: 700;
}
.announcement-audience-cell {
    max-width: 14rem;
    overflow-wrap: anywhere;
}

.native-ads-settings-panel { max-width: 980px; }
.native-ads-role-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.65rem; margin: 1rem 0; }
.native-ads-role-option { display: flex; align-items: center; gap: 0.55rem; min-height: 2.9rem; padding: 0.65rem 0.75rem; color: var(--base_text, #1f2937); background: var(--base_surface, #fff); border: 1px solid var(--base_border_light, #d8dee8); border-radius: 6px; font-weight: 700; }
.native-ads-role-option:has(input:checked) { border-color: var(--base_primary, #5e35b1); background: color-mix(in srgb, var(--base_primary, #5e35b1) 9%, var(--base_surface, #fff)); }
.native-ads-role-option input { width: 1.05rem; height: 1.05rem; }


