/* PressFly 3.6.32 — final responsive layout authority
 * Purpose: remove desktop/mobile geometry conflicts without changing business logic.
 * Loaded last in every primary layout so one predictable breakpoint system wins.
 */
:root{
    --pf-r-gutter:clamp(12px,2vw,24px);
    --pf-r-gap:clamp(12px,1.6vw,20px);
    --pf-r-sidebar-admin:268px;
    --pf-r-sidebar-admin-mini:74px;
    --pf-r-sidebar-member:300px;
}

html,body{max-width:100%;}
html{overflow-x:hidden;}
body{overflow-x:clip;}
@supports not (overflow:clip){body{overflow-x:hidden;}}
*,*::before,*::after{box-sizing:border-box;}
.container,.container-fluid,.row,[class*="col-"],main,section,article,aside,header,footer,nav{min-width:0;}
img,video,svg,canvas{max-width:100%;height:auto;}
iframe,embed,object{max-width:100%;}
input,select,textarea,.form-control,.form-select,.custom-select,.select2,.select2-container{max-width:100%;}
.flex-fill,.d-flex>*,.navbar-collapse,.card,.card-body,.widget{min-width:0;}
.table-responsive{width:100%;max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch;}
.table-responsive>.table{margin-bottom:0;}
.dropdown-menu{max-width:min(94vw,420px);}
.modal-dialog{max-width:min(94vw,var(--bs-modal-width,500px));}

/* ---------- Public shell / header / navigation ---------- */
.top-nav .wrap-inner,.header .wrap-inner,.navbar-main>.container{min-width:0;}
.top-nav .pf-top-menu-combined{min-width:0;}
.navbar-main .navbar-collapse{min-width:0;}
.navbar-main .pf-news-menu{min-width:0;}

/* A configured 728/970px logo-side advertisement must shrink when the desktop
   container is narrower than logo + advertisement + gaps. */
@media (min-width:992px){
    .header .wrap-inner{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:18px!important;}
    .header .logo{flex:0 1 250px!important;width:auto!important;min-width:120px!important;max-width:250px!important;margin-right:0!important;}
    .header .logo a,.header .logo img{max-width:100%!important;}
    .header .top-banner.pf-header-ad-banner{
        flex:0 1 var(--pf-logo-side-ad-width,728px)!important;
        width:var(--pf-logo-side-ad-width,728px)!important;
        min-width:0!important;
        max-width:calc(100% - 268px)!important;
        margin-left:auto!important;
    }
    .header .top-banner.pf-header-ad-banner .pf-clean-ad-slot,
    .header .top-banner.pf-header-ad-banner .pf-revenue-ad-slot,
    .header .top-banner.pf-header-ad-banner .pf-clean-ad-element,
    .header .top-banner.pf-header-ad-banner .pf-ad-element,
    .header .top-banner.pf-header-ad-banner .ad-element,
    .header .top-banner.pf-header-ad-banner .pf-clean-ad-inner,
    .header .top-banner.pf-header-ad-banner .pf-ad-inner,
    .header .top-banner.pf-header-ad-banner .ad-inner,
    .header .top-banner.pf-header-ad-banner ins.adsbygoogle,
    .header .top-banner.pf-header-ad-banner iframe,
    .header .top-banner.pf-header-ad-banner img,
    .header .top-banner.pf-header-ad-banner video,
    .header .top-banner.pf-header-ad-banner object,
    .header .top-banner.pf-header-ad-banner embed{
        width:100%!important;min-width:0!important;max-width:100%!important;
    }
    .navbar-main>.container{gap:8px;}
    .navbar-main .navbar-collapse{display:flex!important;align-items:center!important;gap:8px;}
    .navbar-main .pf-news-menu{flex:1 1 auto!important;max-width:100%;}
    .navbar-main .pf-news-menu-link{white-space:nowrap!important;}
}

@media (max-width:991.98px){
    .header{display:none!important;}
    .top-nav .container{padding-left:12px!important;padding-right:12px!important;}
    .top-nav .wrap-inner{
        display:flex!important;align-items:center!important;justify-content:flex-end!important;
        width:100%!important;min-height:48px;gap:6px!important;padding:6px 0!important;
    }
    .top-nav .pf-top-social-tools,.top-nav .top-social{display:none!important;}
    .top-nav .pf-top-menu-combined{
        display:flex!important;align-items:center!important;justify-content:flex-end!important;
        flex:1 1 auto!important;flex-wrap:nowrap!important;width:100%!important;max-width:100%!important;gap:5px!important;
    }
    .top-nav .pf-top-menu-combined>.list-inline:not(.pf-top-actions):not(.pf-top-account-menu){display:none!important;}
    .top-nav .pf-top-mode-icon,.top-nav .pf-top-discover-button,.top-nav .pf-top-auth-link,
    .top-nav .pf-top-action,.top-nav .pf-top-account-toggle,.top-nav .pf-front-notification-btn{
        width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;
        flex:0 0 36px!important;padding:0!important;border-radius:12px!important;
    }
    .navbar-main{margin-bottom:18px;}
    .homepage .navbar-main,.article-show .navbar-main{margin-bottom:0;}
    .navbar-main>.container{
        width:100%!important;max-width:100%!important;padding:8px 12px!important;gap:10px!important;
        display:flex!important;align-items:center!important;justify-content:space-between!important;
    }
    .navbar-main .navbar-brand{display:flex!important;align-items:center!important;min-width:0!important;max-width:calc(100% - 56px)!important;}
    .navbar-main .navbar-brand>img{display:block;max-height:34px!important;width:auto!important;max-width:min(220px,66vw)!important;object-fit:contain;}
    .navbar-main .navbar-toggler{
        flex:0 0 42px!important;width:42px!important;height:42px!important;min-width:42px!important;
        padding:6px!important;border-radius:12px!important;box-shadow:none!important;
    }
    .navbar-main #navbarSupportedContent{
        flex-basis:100%!important;width:100%!important;max-width:100%!important;min-width:0!important;
    }
    .navbar-main #navbarSupportedContent.show{
        margin-top:8px!important;padding:10px!important;border:1px solid #e5e9f0!important;border-radius:14px!important;
        max-height:calc(100dvh - 120px)!important;overflow-x:hidden!important;overflow-y:auto!important;background:#fff!important;
    }
    .navbar-main .pf-news-menu,.navbar-main .navbar-nav{width:100%!important;max-width:100%!important;min-width:0!important;}
    .navbar-main .pf-news-menu-item,.navbar-main .navbar-nav>.nav-item{max-width:100%!important;min-width:0!important;}
    .navbar-main .pf-news-menu-link{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere;}
    .navbar-main .mini-search-menu-item form{display:flex!important;width:100%!important;gap:8px!important;}
    .navbar-main .mini-search-menu-item .form-control{min-width:0!important;}
}

@media (max-width:575.98px){
    .top-nav .container{padding-left:10px!important;padding-right:10px!important;}
    .top-nav .pf-top-menu-combined{gap:4px!important;}
    .top-nav .pf-top-mode-icon,.top-nav .pf-top-discover-button,.top-nav .pf-top-auth-link,
    .top-nav .pf-top-action,.top-nav .pf-top-account-toggle,.top-nav .pf-front-notification-btn{
        width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;max-width:34px!important;flex-basis:34px!important;
    }
    .navbar-main>.container{padding:8px 10px!important;}
    .navbar-main #navbarSupportedContent.show{padding:8px!important;border-radius:12px!important;}
}

/* ---------- Homepage ---------- */
body.homepage .pf-home-builder,body.homepage .pf-home-builder-shell,body.homepage .pf-home-section,
body.homepage .pf-hp-hero-with-featured,body.homepage .pf-hp-hero-main,body.homepage .pf-hp-featured-home{min-width:0;max-width:100%;}
body.homepage .pf-home-builder-shell{width:min(100%,1320px)!important;max-width:1320px!important;margin-inline:auto!important;padding-inline:var(--pf-r-gutter)!important;}
body.homepage .pf-home-section{overflow:hidden;}
body.homepage .pf-news-card,body.homepage .pf-latest-news-item{min-width:0;max-width:100%;}
body.homepage .pf-news-card h3,body.homepage .pf-latest-news-item h3{overflow-wrap:anywhere;}

@media (min-width:1200px){
    body.homepage .pf-category-grid-news,body.homepage .pf-category-cards-news,body.homepage .pf-category-masonry-news,
    body.homepage .pf-category-split-news,body.homepage .pf-category-magazine-news,body.homepage .pf-category-spotlight-news,
    body.homepage .pf-category-overlay-news,body.homepage .pf-category-editorial-grid,body.homepage .pf-category-minimal-news{
        grid-template-columns:repeat(3,minmax(0,1fr))!important;
    }
}
@media (min-width:768px) and (max-width:1199.98px){
    body.homepage .pf-hp-hero-with-featured{grid-template-columns:1fr!important;}
    body.homepage .pf-hp-featured-home{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:none!important;}
    body.homepage .pf-category-grid-news,body.homepage .pf-category-cards-news,body.homepage .pf-category-masonry-news,
    body.homepage .pf-category-split-news,body.homepage .pf-category-magazine-news,body.homepage .pf-category-spotlight-news,
    body.homepage .pf-category-overlay-news,body.homepage .pf-category-editorial-grid,body.homepage .pf-category-minimal-news,
    body.homepage .pf-latest-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (min-width:576px) and (max-width:767.98px){
    body.homepage .pf-hp-hero-with-featured{grid-template-columns:1fr!important;}
    body.homepage .pf-hp-featured-home{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;}
    body.homepage .pf-category-grid-news,body.homepage .pf-category-cards-news,body.homepage .pf-category-masonry-news,
    body.homepage .pf-category-split-news,body.homepage .pf-category-magazine-news,body.homepage .pf-category-spotlight-news,
    body.homepage .pf-category-overlay-news,body.homepage .pf-category-editorial-grid,body.homepage .pf-category-minimal-news{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
    body.homepage .pf-latest-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:575.98px){
    body.homepage .pf-home-builder-shell{padding-inline:12px!important;}
    body.homepage .pf-hp-hero-with-featured,body.homepage .pf-hp-featured-home,
    body.homepage .pf-category-grid-news,body.homepage .pf-category-cards-news,body.homepage .pf-category-masonry-news,
    body.homepage .pf-category-split-news,body.homepage .pf-category-magazine-news,body.homepage .pf-category-spotlight-news,
    body.homepage .pf-category-overlay-news,body.homepage .pf-category-editorial-grid,body.homepage .pf-category-minimal-news,
    body.homepage .pf-category-list-news,body.homepage .pf-category-horizontal-news,body.homepage .pf-category-thumb-list-news,
    body.homepage .pf-category-timeline-news,body.homepage .pf-category-compact-news,body.homepage .pf-category-featured-side-grid,
    body.homepage .pf-latest-news-grid,body.homepage .pf-latest-news-list{grid-template-columns:1fr!important;}
    body.homepage .pf-home-section{padding:13px!important;margin:14px 0!important;border-radius:16px!important;}
    body.homepage .pf-home-section-head{display:flex!important;flex-direction:row!important;align-items:flex-start!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:10px!important;}
    body.homepage .pf-home-section-link{width:auto!important;max-width:100%!important;}
    body.homepage .pf-latest-news-item{display:grid!important;grid-template-columns:108px minmax(0,1fr)!important;align-items:start!important;gap:10px!important;}
    body.homepage .pf-latest-news-image{width:108px!important;min-width:108px!important;margin:0!important;}
}
@media (max-width:380px){
    body.homepage .pf-latest-news-item{grid-template-columns:1fr!important;}
    body.homepage .pf-latest-news-image{width:100%!important;min-width:0!important;aspect-ratio:16/10!important;}
}

/* ---------- Article detail ---------- */
body.article-show .article-main-content{width:min(100%,1320px)!important;max-width:1320px!important;margin-left:auto!important;margin-right:auto!important;}
body.article-show .article-layout-balanced,body.article-show .article-content-column,body.article-show .article-sidebar-column,
body.article-show .article-content-column>.col-inner,body.article-show .article-content{min-width:0!important;max-width:100%!important;}
body.article-show .article-content{overflow-wrap:anywhere;}
body.article-show .article-content img,body.article-show .article-content video{max-width:100%!important;height:auto!important;}
body.article-show .article-content iframe{max-width:100%!important;}
body.article-show .article-meta,body.article-show .pf-article-author-flat,body.article-show .pf-article-tools,
body.article-show .pf-article-action-row{max-width:100%!important;min-width:0!important;flex-wrap:wrap!important;}
@media (min-width:992px){
    body.article-show .article-layout-balanced.row{
        display:grid!important;grid-template-columns:minmax(0,1fr) minmax(270px,310px)!important;
        gap:20px!important;margin-left:0!important;margin-right:0!important;
    }
    body.article-show .article-content-column,body.article-show .article-sidebar-column{
        width:auto!important;max-width:none!important;flex:none!important;padding-left:0!important;padding-right:0!important;
    }
}
@media (max-width:991.98px){
    body.article-show .article-main-content{padding-inline:14px!important;}
    body.article-show .article-layout-balanced.row{display:grid!important;grid-template-columns:1fr!important;gap:16px!important;margin:0!important;}
    body.article-show .article-content-column,body.article-show .article-sidebar-column{width:100%!important;max-width:100%!important;padding:0!important;}
}
@media (max-width:575.98px){
    body.article-show .article-main-content{padding-inline:12px!important;}
    body.article-show .article-content-column>.col-inner{padding:14px!important;border-radius:14px!important;}
    body.article-show .article-title{font-size:clamp(26px,8vw,34px)!important;line-height:1.13!important;overflow-wrap:anywhere;}
}

/* ---------- Member / author / user panel ---------- */
body[class*="member-"] .pf-member-shell.container{
    width:min(calc(100% - 32px),1540px)!important;max-width:1540px!important;margin-inline:auto!important;padding:0!important;
}
body[class*="member-"] .pf-member-hero,body[class*="member-"] .pf-member-layout,
body[class*="member-"] .pf-member-sidebar,body[class*="member-"] .pf-member-content{min-width:0!important;max-width:100%;}
@media (min-width:992px){
    body[class*="member-"] .pf-member-layout.row{
        display:grid!important;grid-template-columns:var(--pf-r-sidebar-member) minmax(0,1fr)!important;
        align-items:start!important;gap:20px!important;width:100%!important;margin:0!important;
    }
    body[class*="member-"] .pf-member-sidebar{
        grid-column:1!important;width:auto!important;min-width:0!important;max-width:none!important;flex:none!important;padding:0!important;
    }
    body[class*="member-"] .pf-member-content{
        grid-column:2!important;width:auto!important;min-width:0!important;max-width:none!important;flex:none!important;padding:0!important;
    }
    body[class*="member-"] #memberFlatMenu.pf-member-menu.collapse,
    body[class*="member-"] #memberFlatMenu.pf-member-menu.collapse:not(.show){display:block!important;height:auto!important;visibility:visible!important;}
}
@media (min-width:1400px){:root{--pf-r-sidebar-member:310px;}}
@media (max-width:991.98px){
    body[class*="member-"] .pf-member-shell.container{width:min(calc(100% - 24px),960px)!important;}
    body[class*="member-"] .pf-member-layout.row{display:grid!important;grid-template-columns:1fr!important;gap:16px!important;margin:0!important;width:100%!important;}
    body[class*="member-"] .pf-member-sidebar,body[class*="member-"] .pf-member-content{
        width:100%!important;min-width:0!important;max-width:100%!important;flex:none!important;padding:0!important;
    }
    body[class*="member-"] .pf-member-menu-toggle{width:100%!important;max-width:100%!important;}
    body[class*="member-"] #memberFlatMenu.pf-member-menu.collapse:not(.show){display:none!important;}
    body[class*="member-"] #memberFlatMenu.pf-member-menu.collapse.show,
    body[class*="member-"] #memberFlatMenu.pf-member-menu.collapsing{
        display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
        width:100%!important;max-width:100%!important;height:auto!important;
    }
    body[class*="member-"] .pf-member-menu>.list-group-item,
    body[class*="member-"] .pf-member-create-menu>summary{
        min-height:58px!important;height:auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;
        gap:9px!important;padding:10px 40px 10px 11px!important;border-radius:13px!important;min-width:0!important;
    }
    body[class*="member-"] .pf-member-menu>.list-group-item>i,
    body[class*="member-"] .pf-member-create-menu>summary>i:first-child{
        flex:0 0 32px!important;width:32px!important;min-width:32px!important;height:32px!important;margin:0!important;
    }
    body[class*="member-"] .pf-member-menu>.list-group-item>span,
    body[class*="member-"] .pf-member-create-menu>summary>span{
        flex:1 1 auto!important;min-width:0!important;width:auto!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
    }
    body[class*="member-"] .pf-member-create-menu[open]{grid-column:1/-1!important;}
    body[class*="member-"] .pf-member-create-options{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media (max-width:575.98px){
    body[class*="member-"] .pf-member-shell.container{width:calc(100% - 20px)!important;}
    body[class*="member-"] .pf-member-content .card,body[class*="member-"] .pf-member-content .flat-member-card{border-radius:14px!important;}
    body[class*="member-"] .pf-member-content .card-body{padding:14px!important;}
    body[class*="member-"] .pf-member-create-options{grid-template-columns:1fr!important;}
}
@media (max-width:420px){
    body[class*="member-"] #memberFlatMenu.pf-member-menu.collapse.show,
    body[class*="member-"] #memberFlatMenu.pf-member-menu.collapsing{grid-template-columns:1fr!important;}
}

/* Member data tables: do not force the whole page wider than the viewport. */
body[class*="member-"] .pf-member-content .table-responsive,
body[class*="member-"] .pf-my-articles-table-wrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;}
@media (max-width:991.98px){
    body[class*="member-"] .pf-my-articles-table{min-width:760px!important;table-layout:auto!important;}
}

/* ---------- Admin panel ---------- */
body.pf-admin-flat,.pf-admin-flat .wrapper{width:100%!important;max-width:100%!important;min-width:0!important;}
.pf-admin-flat .content-wrapper,.pf-admin-flat .content,.pf-admin-flat .content-header,.pf-admin-flat .container-fluid{min-width:0!important;}
.pf-admin-flat .content>.container-fluid,.pf-admin-flat .content-header>.container-fluid{padding-left:var(--pf-r-gutter)!important;padding-right:var(--pf-r-gutter)!important;}
.pf-admin-flat .row{max-width:none!important;}
.pf-admin-flat .row>[class*="col-"]{min-width:0!important;}
.pf-admin-flat .card-body{min-width:0!important;max-width:100%!important;}
.pf-admin-flat .pf-admin-page-head,.pf-admin-flat .pf-article-command-bar,.pf-admin-flat .pf-files-hero,.pf-admin-flat .pf-settings-command{min-width:0!important;max-width:100%!important;flex-wrap:wrap!important;}
.pf-admin-flat .pf-admin-filter-form{min-width:0!important;}
.pf-admin-flat .select2-container{width:100%!important;max-width:100%!important;}
.pf-admin-flat .pf-admin-action-group,.pf-admin-flat .pf-admin-actions,.pf-admin-flat .pf-article-command-actions{max-width:100%!important;flex-wrap:wrap!important;}

@media (min-width:992px){
    body.pf-admin-flat .main-sidebar,body.pf-admin-flat .main-sidebar::before{
        width:var(--pf-r-sidebar-admin)!important;min-width:var(--pf-r-sidebar-admin)!important;max-width:var(--pf-r-sidebar-admin)!important;
    }
    body.pf-admin-flat:not(.sidebar-collapse) .content-wrapper,
    body.pf-admin-flat:not(.sidebar-collapse) .main-header,
    body.pf-admin-flat:not(.sidebar-collapse) .main-footer{margin-left:var(--pf-r-sidebar-admin)!important;}
    body.pf-admin-flat.sidebar-collapse .main-sidebar,body.pf-admin-flat.sidebar-collapse .main-sidebar::before,
    body.pf-admin-flat.sidebar-collapse .main-sidebar:hover,body.pf-admin-flat.sidebar-collapse .main-sidebar:hover::before,
    body.pf-admin-flat.sidebar-collapse .main-sidebar.sidebar-focused,body.pf-admin-flat.sidebar-collapse .main-sidebar.sidebar-focused::before{
        width:var(--pf-r-sidebar-admin-mini)!important;min-width:var(--pf-r-sidebar-admin-mini)!important;max-width:var(--pf-r-sidebar-admin-mini)!important;
    }
    body.pf-admin-flat.sidebar-collapse .content-wrapper,body.pf-admin-flat.sidebar-collapse .main-header,body.pf-admin-flat.sidebar-collapse .main-footer{
        margin-left:var(--pf-r-sidebar-admin-mini)!important;
    }
    body.pf-admin-flat.sidebar-collapse .main-sidebar:hover .brand-link,
    body.pf-admin-flat.sidebar-collapse .main-sidebar.sidebar-focused .brand-link{width:var(--pf-r-sidebar-admin-mini)!important;min-width:var(--pf-r-sidebar-admin-mini)!important;max-width:var(--pf-r-sidebar-admin-mini)!important;padding-left:0!important;padding-right:0!important;}
    body.pf-admin-flat.sidebar-collapse .main-sidebar:hover .brand-text,
    body.pf-admin-flat.sidebar-collapse .main-sidebar:hover .nav-sidebar .nav-link p,
    body.pf-admin-flat.sidebar-collapse .main-sidebar.sidebar-focused .brand-text,
    body.pf-admin-flat.sidebar-collapse .main-sidebar.sidebar-focused .nav-sidebar .nav-link p{
        width:0!important;max-width:0!important;opacity:0!important;visibility:hidden!important;overflow:hidden!important;
    }
}

/* Tablet and phone use one predictable off-canvas sidebar instead of squeezing content. */
@media (max-width:991.98px){
    body.pf-admin-flat .main-header,body.pf-admin-flat .content-wrapper,body.pf-admin-flat .main-footer{
        width:100%!important;max-width:100%!important;margin-left:0!important;left:0!important;right:0!important;
    }
    body.pf-admin-flat .main-sidebar,body.pf-admin-flat .main-sidebar::before{
        width:268px!important;min-width:268px!important;max-width:268px!important;
    }
    body.pf-admin-flat .main-sidebar{
        position:fixed!important;top:0!important;bottom:0!important;left:0!important;margin-left:-268px!important;
        transform:none!important;overflow-x:hidden!important;overflow-y:auto!important;z-index:1050!important;
        transition:margin-left .22s ease!important;
    }
    body.pf-admin-flat.sidebar-open .main-sidebar,body.pf-admin-flat.sidebar-collapse.sidebar-open .main-sidebar{margin-left:0!important;}
    body.pf-admin-flat:not(.sidebar-open) .main-sidebar,body.pf-admin-flat.sidebar-collapse:not(.sidebar-open) .main-sidebar{margin-left:-268px!important;}
    body.pf-admin-flat .brand-link{width:268px!important;max-width:268px!important;}
    body.pf-admin-flat .main-header{min-height:56px!important;padding-left:4px!important;padding-right:8px!important;}
    body.pf-admin-flat .main-header .navbar-nav{align-items:center!important;min-width:0!important;}
    body.pf-admin-flat .pf-admin-account-toggle{max-width:140px!important;}
    .pf-admin-flat .pf-admin-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:767.98px){
    .pf-admin-flat .content>.container-fluid,.pf-admin-flat .content-header>.container-fluid{padding-left:12px!important;padding-right:12px!important;}
    .pf-admin-flat .pf-admin-page-head,.pf-admin-flat .pf-files-hero,.pf-admin-flat .pf-settings-command,.pf-admin-flat .pf-article-command-bar{
        padding:15px!important;border-radius:15px!important;gap:12px!important;
    }
    .pf-admin-flat .pf-admin-page-head>*,.pf-admin-flat .pf-files-hero>*,.pf-admin-flat .pf-settings-command>*,.pf-admin-flat .pf-article-command-bar>*{min-width:0!important;max-width:100%!important;}
    .pf-admin-flat .pf-admin-filter-form{grid-template-columns:1fr!important;gap:10px!important;}
    .pf-admin-flat .pf-admin-filter-actions,.pf-admin-flat .pf-article-command-actions,.pf-admin-flat .pf-files-actions,.pf-admin-flat .pf-settings-command-actions{width:100%!important;}
    .pf-admin-flat .pf-admin-filter-actions>.btn,.pf-admin-flat .pf-article-command-actions>.btn,
    .pf-admin-flat .pf-files-actions>.btn,.pf-admin-flat .pf-settings-command-actions>.btn{flex:1 1 auto!important;}
    .pf-admin-flat .card,.pf-admin-flat-card{border-radius:15px!important;}
    .pf-admin-flat .card-header,.pf-admin-flat .pf-admin-card-header{padding:14px!important;flex-wrap:wrap!important;}
    .pf-admin-flat .card-body{padding:14px!important;}
    .pf-admin-flat .table-responsive{margin-left:0!important;margin-right:0!important;border-radius:10px!important;}
}

/* ---------- Auth / generic Laravel layout ---------- */
body>.auth{width:min(calc(100% - 24px),420px)!important;max-width:420px!important;margin-left:auto!important;margin-right:auto!important;}
#app .navbar>.container{min-width:0;}
@media (max-width:767.98px){
    #app .navbar>.container{padding-left:12px!important;padding-right:12px!important;}
    #app .navbar-collapse.show{margin-top:8px;padding:10px;border-top:1px solid #e5e9f0;}
}

/* Dark mode surfaces introduced by this final responsive layer. */
html.dark-mode-site .navbar-main #navbarSupportedContent.show,
html[data-theme="dark"] .navbar-main #navbarSupportedContent.show,
body.dark-mode-site .navbar-main #navbarSupportedContent.show{background:#0f172a!important;border-color:#273244!important;}

/* Touch targets and action rows: consistent without forcing every button full width. */
@media (pointer:coarse){
    .navbar-toggler,.btn,.pf-btn,button,[role="button"]{touch-action:manipulation;}
}
@media (max-width:575.98px){
    .pf-action-group,.pf-article-submit-actions,.pf-admin-action-group{display:flex!important;flex-wrap:wrap!important;gap:7px!important;}
    .pf-action-group>*,.pf-article-submit-actions>*{min-width:0;}
}
