.bg-hidden-advanced{display:none!important}.footer-dev{margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,.12);display:flex;gap:.8rem;align-items:center;justify-content:space-between;flex-wrap:wrap;color:var(--cc-text-2)}.footer-dev-tg{display:inline-flex;gap:.35rem;align-items:center}.bg-upload-input{background:rgba(255,255,255,.04)!important;border:1px dashed rgba(226,185,92,.45)!important}.admin-content .field-row{align-items:end}.data-table td,.data-table th{vertical-align:middle}@media(max-width:760px){.footer-dev{justify-content:center;text-align:center}.admin-content .field-row{grid-template-columns:1fr!important}.table-wrap{overflow-x:auto}.data-table{min-width:680px}.platform-grid,.dashboard-grid{grid-template-columns:1fr!important}.form-card{padding:1rem!important}.row-actions{flex-wrap:wrap}.row-actions .input{min-width:100%}}

/* ByteGhost final hardening: no layout holes after hidden legacy fields */
.bg-hidden-advanced{display:none!important}
.site-footer .footer-dev{margin-top:1rem;padding-top:.85rem;border-top:1px solid rgba(226,185,92,.18);display:flex;align-items:center;justify-content:center;gap:.75rem;flex-wrap:wrap;color:var(--cc-text-2);font-size:.88rem;text-align:center}
.footer-dev-tg{display:inline-flex;align-items:center;gap:.35rem;color:#e8c36b;text-decoration:none}.footer-dev-tg:hover{text-decoration:underline}
.admin-content .field-row{align-items:start}.bg-upload-input{border-style:dashed;background:rgba(255,255,255,.04)}
@media(max-width:760px){.admin-content .field-row,.report-form,.form-grid{grid-template-columns:1fr!important}.site-footer .footer-dev{font-size:.8rem}.data-table{min-width:680px}.table-wrap{overflow-x:auto}}
/* Final delivery guards: no duplicate locality/county search boxes, clean header title */
.location-search,.county-search,[data-location-search],.duplicate-location-search{display:none!important}
.brand-word{line-height:1.08!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;max-width:min(560px,calc(100vw - 150px))!important}
.site-header .brand{min-width:0!important;align-items:center!important}
.site-header .container{min-width:0!important}
@media(max-width:760px){.brand-word{font-size:.72rem!important;max-width:calc(100vw - 132px)!important}.brand-word small{display:block!important;font-size:.54rem!important;line-height:1.05!important}.registry-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}.registry-toolbar input[type="hidden"]{display:none!important}}

/* Final upload/card action ordering */
.gallery-tile .btn,.gallery-tile button{position:static!important;inset:auto!important;margin:.15rem!important}
.gallery-tile{overflow:hidden!important}


/* ByteGhost final client polish: mobile brand, footer socials, admin buttons */
@media (max-width:720px){
  .site-header .brand{max-width:190px!important;min-width:0!important;flex:1 1 auto!important;}
  .site-header .brand-word{font-size:.82rem!important;letter-spacing:.08em!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .site-header .brand-word small{font-size:.52rem!important;letter-spacing:.14em!important;white-space:nowrap!important;}
  .mobile-menu .nav-links a[href="/admin/"]{display:flex!important;}
}
.hero2-title,.monster-title{font-size:clamp(2.1rem,5.6vw,5.6rem)!important;line-height:.88!important;letter-spacing:-.055em!important;}
.hero2-title span{display:block;}
.footer-social-row{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;margin-top:.8rem;}
.footer-social-row .footer-social,.footer-dev-icon-only{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;border:1px solid rgba(226,185,92,.26);background:rgba(255,255,255,.055);color:var(--cc-amber,#e2b95c);text-decoration:none;transition:transform .2s ease,border-color .2s ease,background .2s ease;}
.footer-social-row .footer-social:hover,.footer-dev-icon-only:hover{transform:translateY(-2px);border-color:rgba(226,185,92,.55);background:rgba(226,185,92,.12);}
.footer-dev{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;}
.footer-dev-icon-only span{display:none!important;}
.admin-shell .row-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:.45rem!important;flex-wrap:wrap!important;}
.admin-shell .row-actions .btn{position:static!important;flex:0 0 auto!important;min-width:92px!important;white-space:nowrap!important;}
.admin-shell .data-table td:last-child{min-width:230px!important;}
.gallery-tile .row-actions,.gallery-actions,.admin-gallery-actions{display:flex!important;align-items:center!important;gap:.45rem!important;flex-wrap:wrap!important;justify-content:flex-start!important;}
@media (max-width:760px){
  .admin-shell .data-table td:last-child{min-width:0!important;}
  .admin-shell .row-actions{display:grid!important;grid-template-columns:1fr!important;justify-content:stretch!important;}
  .admin-shell .row-actions .btn{width:100%!important;min-width:0!important;}
}
/* Managed navigation: one responsive layout for every public page. */
html,body{max-width:100%;overflow-x:clip}
body.menu-open{overflow:hidden!important;touch-action:none}
html{scroll-padding-top:calc(var(--header-h,72px) + 16px)}
.site-header>.container{min-width:0}
.site-header nav{min-width:0}
.site-header .nav-links.nav-grouped{display:flex;align-items:center;flex-wrap:nowrap;min-width:0}
.site-header .nav-group{position:relative}
.site-header .nav-group>button{min-height:44px;white-space:nowrap}
.site-header .nav-dropdown{max-width:min(360px,calc(100vw - 24px));max-height:min(70dvh,520px);overflow:auto;overscroll-behavior:contain}
.mobile-menu{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:max(1rem,env(safe-area-inset-bottom))}
.mobile-menu .nav-links{width:100%;max-width:560px;margin-inline:auto}
.mobile-menu .mobile-nav-group>button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:.65rem .85rem;border:0;border-bottom:1px solid rgba(255,255,255,.08);background:transparent;color:var(--cc-text);font:650 .9rem var(--f-body);text-align:left}
.mobile-menu .mobile-nav-group>ul{list-style:none;margin:0;padding:.2rem 0 .45rem 1rem}
.mobile-menu .mobile-nav-group>ul[hidden]{display:none}
.mobile-menu .mobile-nav-group>ul a{min-height:44px;padding:.6rem .75rem}
@media(max-width:1120px){
  .site-header nav{display:none!important}
  .site-header .burger{display:inline-flex!important}
}
@media(min-width:1121px){
  .site-header .nav-links.nav-grouped{gap:.08rem}
  .site-header .nav-links.nav-grouped>li>a,.site-header .nav-group>button{padding-inline:clamp(.42rem,.7vw,.75rem);font-size:clamp(.7rem,.76vw,.82rem)}
}
@media(max-width:760px){
  .site-header{height:var(--header-h,72px)}
  .site-header>.container{height:100%;padding-inline:10px}
  .site-header .brand{min-width:0;max-width:calc(100vw - 132px)}
  .site-header .brand-word{min-width:0;overflow:hidden}
  .site-header .nav-actions{flex:none}
  .mobile-menu{padding-top:calc(var(--header-h,72px) + .5rem)}
}
