/* AdPally Community v5.5: corrections-only presentation layer.
 * Do not override API actions, database-driven counts, account roles or payments.
 * Loaded AFTER AdPally Core 5.3 styles by WordPress enqueue dependencies.
 */
:root{--ap54-purple:#5935e8;--ap54-orange:#ffae42;--ap54-ink:#231b32;--ap54-outline:#e6def0}
body{overflow-x:clip}
#tc-root{min-width:0;max-width:100%;overflow-x:clip;color:var(--ap54-ink)}
#tc-root button,#tc-root input,#tc-root select,#tc-root textarea{font-family:"Open Sans",Roboto,Arial,sans-serif}
#tc-root :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--ap54-orange);outline-offset:2px}
#tc-root :is(button,a){-webkit-tap-highlight-color:transparent}

/* Preserve the approved complete lockup; public navigation is the RIGHTMOST control. */
#tc-root .tc-v4-header{box-sizing:border-box;position:relative;display:flex;align-items:center;gap:clamp(6px,1.4vw,18px);max-width:100%;overflow:visible}
#tc-root .tc-v4-header .tc-brand{flex:0 1 auto;min-width:0;margin:0;padding:0}
#tc-root .tc-v4-header .tc-new-logo.tc-v53-full-logo{width:clamp(154px,17vw,216px)!important;height:auto!important;max-width:100%;object-fit:contain}
#tc-root .tc-v4-header .tc-header-links{min-width:0;flex:1 1 auto;justify-content:flex-end}
#tc-root .tc-v4-header .tc-top-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex:0 0 auto}
#tc-root .tc-v4-header .tc-site-menu-btn{order:20;flex:0 0 auto;margin-left:0!important;min-width:38px;min-height:38px;border:1px solid #e8e0f2;border-radius:9px;background:#fff!important;color:#5935e8!important;font-size:22px;line-height:1;cursor:pointer}
#tc-root .tc-v41-site-menu{right:14px;left:auto;z-index:140}
/* Keep the signed-in DASHBOARD MENU visually separate directly below header. */
#tc-root .tc-v51-dashboard-switch{box-sizing:border-box;max-width:1340px;width:100%;margin:0 auto;padding:8px clamp(14px,2.5vw,30px);min-height:48px;display:flex;justify-content:flex-start;align-items:center;gap:10px;background:#fff;border-bottom:1px solid #eee8f5}
#tc-root .tc-v51-dashboard-switch button[data-action="drawer"]{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:#5935e8;color:#fff!important;font-size:12px;font-weight:750;padding:9px 13px;box-shadow:0 4px 12px #5935e826;border-radius:8px;border:0}
#tc-root .tc-v51-dashboard-switch b{font-size:12px;line-height:1.3}
#tc-root .tc-v51-dashboard-switch span{font-size:11px;color:#715a8a}
#tc-root .tc-sidebar{max-width:100%;overflow-wrap:break-word}
#tc-root .tc-sidebar .tc-nav-item{min-height:41px;text-align:left;gap:9px}
#tc-root .tc-drawer-overlay{cursor:pointer}

/* The compact photographic hero stays first. Search is second. Groups are third. */
#tc-root .tc-home-layout>.tc-main{max-width:1300px;min-width:0;width:100%;overflow-x:clip}
#tc-root .tc-home-layout .tc-hero-v4{height:205px!important;max-height:205px!important;min-height:0!important;margin:14px 0 0!important;overflow:hidden!important;border-radius:12px!important;isolation:isolate}
#tc-root .tc-home-layout .tc-hero-copy-v4{padding:22px 28px!important;max-width:650px!important}
#tc-root .tc-hero-photo-v4 i{background-position:center center}
#tc-root .tc-home-layout .tc-home-search{margin:8px 0 17px!important;position:relative!important;z-index:3}
#tc-root .tc-v52-home-search{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
#tc-root .tc-v52-home-row{grid-template-columns:142px minmax(138px,.9fr) minmax(200px,1.65fr) auto;min-width:0;gap:8px;align-items:center;padding:9px;border:1px solid var(--ap54-outline);border-radius:10px;box-shadow:0 5px 16px #2f14570c}
#tc-root .tc-v52-home-row :is(select,input,button){min-width:0;max-width:100%}
#tc-root .tc-v52-home-row .tc-v52-search-kind{font-size:12px;color:#4524aa;padding:5px 8px}
#tc-root .tc-v52-home-row button[type="submit"]{background:#5935e8;border-radius:7px;min-height:40px;color:#fff}
#tc-root .tc-v52-filter-form{margin-top:12px;margin-bottom:20px;border:1px solid var(--ap54-outline);box-shadow:0 4px 17px #21112f0a}
#tc-root .tc-v52-filter-grid{gap:9px}
#tc-root .tc-v52-filter-grid label{line-height:1.4}
#tc-root .tc-v52-filter-grid :is(select,input){width:100%;min-width:0}

/* Uniform mobile-friendly section titles, without altering approved content. */
#tc-root :is(.tc-v41-section-head h1,.tc-v41-section-head h2,.tc-section-heading h2,.tc-v41-store-section h2,.tc-v5-need-spotlight h2){font-size:clamp(18px,2vw,24px)!important;line-height:1.22!important;letter-spacing:-.027em!important;margin:0}
#tc-root :is(.tc-v41-section-head,.tc-page-head){gap:12px;min-width:0;align-items:center;margin-bottom:12px!important}
#tc-root .tc-v41-section-head p{font-size:12px!important;line-height:1.45!important;margin-top:5px}
#tc-root .tc-v41-eyebrow{font-size:9px!important;letter-spacing:.105em;line-height:1.3}
#tc-root .tc-section{max-width:100%;min-width:0}

/* Larger photographic previews with REAL database counters/status, no invented followers. */
#tc-root .tc-v41-home-groups{padding-top:4px!important}
#tc-root .tc-v41-group-grid{width:100%;max-width:100%;min-width:0;gap:11px!important;align-items:stretch}
#tc-root .tc-v41-group-tile{display:flex!important;flex-direction:column!important;min-width:0!important;max-width:100%;gap:6px!important;overflow:hidden;padding:10px!important;border:1px solid var(--ap54-outline)!important;border-radius:12px;box-shadow:0 4px 13px #261a4d0e}
#tc-root .tc-v41-group-tile .tc-v41-gphoto{display:block;width:100%;height:113px;min-height:0;border-radius:8px;background:#ece6f7;overflow:hidden}
#tc-root .tc-v41-group-tile .tc-v41-gphoto img{width:100%;height:100%;object-fit:cover;display:block}
#tc-root .tc-v41-group-tile .tc-v41-gtitle{min-height:0;font-size:12px!important;line-height:1.35;font-weight:800}
#tc-root .tc-v41-group-tile .tc-v41-gmeta{color:#655c74!important;font-size:10px!important;line-height:1.4!important;min-height:30px}
#tc-root .tc-v41-group-tile .tc-v41-garrow{display:none!important}
#tc-root .tc-active-dot.is-quiet{background:#aaa2b0!important}
#tc-root .tc-active-dot.is-live{background:#1faa62!important}

/* Clear seller provenance, price, group links and actionable contact buttons. */
#tc-root .tc-ad-grid{min-width:0;max-width:100%}
#tc-root .tc-ad-card{min-width:0;max-width:100%;display:flex;flex-direction:column;border-radius:10px!important;box-shadow:0 5px 15px #28184410!important;border-color:var(--ap54-outline)!important}
#tc-root .tc-ad-image{width:100%;min-width:0}
#tc-root .tc-ad-info{min-width:0}
#tc-root .tc-ad-info h3{font-size:13px!important;line-height:1.35!important;overflow-wrap:anywhere}
#tc-root .tc-ad-info .tc-price{font-size:18px!important;color:#5531c7!important;line-height:1.22!important;margin-bottom:3px}
#tc-root .tc-v51-seller-under-price{gap:7px;max-width:100%;width:100%;margin:2px 0 6px;min-height:25px;padding:3px 0;color:#33234d;text-align:left}
#tc-root .tc-v51-seller-under-price b{font-size:10px!important;max-width:100%;white-space:normal;overflow-wrap:anywhere}
#tc-root .tc-v51-seller-under-price img{width:23px;height:23px;flex:none;border-radius:50%;object-fit:cover}
#tc-root .tc-card-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;min-width:0}
#tc-root .tc-card-actions>button{min-width:0!important;max-width:100%;width:100%;margin:0!important;display:flex;align-items:center;justify-content:center;text-align:center;font-size:11px!important;line-height:1.3;min-height:34px;border-radius:7px!important}
#tc-root .tc-card-actions .tc-v51-group-button{order:10;color:#5935e8!important;background:#fff!important;border:1px solid #5935e8!important}
#tc-root .tc-card-actions .tc-card-message{order:11;color:#fff!important;background:#5935e8!important}
#tc-root .tc-card-contacts{display:flex;gap:7px;align-items:stretch;min-width:0}
#tc-root .tc-card-contacts .tc-contact-pill{min-width:0;flex:1 1 0;white-space:nowrap;display:inline-flex;justify-content:center;align-items:center;gap:6px;min-height:35px;padding:8px!important;font-size:11px!important;box-shadow:0 4px 12px #170b2b16}
#tc-root .tc-contact-pill.tc-wa{background:#20c967!important;color:#fff!important}
#tc-root .tc-contact-pill.tc-call{background:#245acc!important;color:#fff!important}
#tc-root .tc-card-contacts .tc-contact-icon{width:16px;height:16px;max-width:16px;object-fit:contain}

/* Distinguish working information from empty states; no fabricated engagement. */
#tc-root :is(.tc-v41-activity-empty,.tc-empty,.tc-empty-line){color:#594e6b;font-size:12px;line-height:1.5}
#tc-root .tc-v51-requests-list,#tc-root .tc-v51-auction-list{min-width:0}
#tc-root .tc-v51-request-row,#tc-root .tc-v51-auction-item{min-width:0;border-color:var(--ap54-outline);box-shadow:0 3px 12px #1b113009}

/* Fullscreen group chat stays distraction-free, pinned posts stick, composer is accessible. */
#tc-root.tc-group-room-mode .tc-v41-room{height:100dvh;max-height:100dvh;overflow:hidden}
#tc-root.tc-group-room-mode .tc-v41-room-timeline{min-height:0;overflow-y:auto;overscroll-behavior:contain}
#tc-root.tc-group-room-mode .tc-v51-pinned-banner{position:sticky;top:0;z-index:4}
#tc-root.tc-group-room-mode .tc-v41-room-compose{flex:0 0 auto;padding-bottom:max(11px,env(safe-area-inset-bottom));min-height:60px}
#tc-root.tc-group-room-mode .tc-v41-chat-ad{max-width:min(440px,calc(100vw - 44px))}

/* Business storefront stays a business profile, not a list of giant blank panels. */
#tc-root .tc-v41-store{min-width:0;max-width:100%}
#tc-root .tc-v41-store-cover{overflow:hidden}
#tc-root .tc-v41-store-name h1{color:#fff!important;text-shadow:0 2px 12px #1d0a3a55;line-height:1.17!important}
#tc-root .tc-v41-store-section{max-width:100%;min-width:0}
#tc-root .tc-v41-store-section :is(p,span){overflow-wrap:anywhere}
#tc-root .tc-v41-bluecheck{color:white;background:#1877f2;border-radius:50%;display:inline-grid;place-items:center;width:19px;height:19px;font-size:13px}
/* Unverified accounts show no public verification card: core v5.3 already handles logic. */
#tc-root .tc-v41-store :is(.tc-v41-store-acts,.tc-v41-store-actions){gap:7px;flex-wrap:wrap;align-items:center}
#tc-root .tc-v41-store :is(.tc-v41-store-acts,.tc-v41-store-actions) button{min-height:36px;font-size:11px;border-radius:8px}

/* Keep public footer navigation for visitors AND members, separate from user dashboard. */
#tc-root .tc-v51-site-footer{box-sizing:border-box;max-width:100%;width:100%;display:grid;grid-template-columns:1fr;gap:13px;background:#221339;color:#fff;border-radius:0;margin-top:22px;padding:22px clamp(16px,3vw,35px)}
#tc-root .tc-v51-site-footer .tc-v51-footer-brand{display:flex;align-items:center;gap:9px}
#tc-root .tc-v51-site-footer img.tc-v53-full-logo{width:min(220px,70vw)!important;height:auto;max-height:66px;object-fit:contain}
#tc-root .tc-v51-site-footer nav{display:flex;gap:7px 19px;flex-wrap:wrap}
#tc-root .tc-v51-site-footer nav :is(a,button){font-size:12px;color:#fff!important;min-height:30px}
#tc-root .tc-v51-site-footer>small{font-size:10px;color:#c7b8d7}

/* Floating controls must not cover the last action on mobile cards. */
#tc-root .tc-float-tools{right:12px;bottom:20px;z-index:50}
#tc-root .tc-notification-panel,#tc-root .tc-activity-drawer{max-width:calc(100vw - 24px);box-sizing:border-box}

@media(max-width:950px){
 #tc-root .tc-v52-home-row{grid-template-columns:125px minmax(110px,.8fr) minmax(140px,1.5fr) auto;gap:7px}
 #tc-root .tc-v4-header .tc-header-links{display:none}
 #tc-root .tc-v4-header .tc-site-menu-btn{margin-left:0}
 #tc-root .tc-v41-group-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:700px){
 #tc-root .tc-v4-header{padding:0 10px!important;gap:5px;min-height:60px;height:60px}
 #tc-root .tc-v4-header .tc-new-logo.tc-v53-full-logo{width:clamp(123px,38vw,174px)!important;max-height:54px!important}
 #tc-root .tc-v4-header .tc-top-actions{gap:4px;margin-left:auto}
 #tc-root .tc-v4-header .tc-site-menu-btn{min-width:34px;min-height:34px;font-size:20px;padding:5px}
 #tc-root .tc-v51-dashboard-switch{padding:6px 12px;margin:0 auto;min-height:40px}
 #tc-root .tc-v51-dashboard-switch button[data-action="drawer"]{font-size:11px;padding:7px 11px}
 #tc-root .tc-v51-dashboard-switch b{font-size:11px}
 #tc-root .tc-home-layout>.tc-main{padding:0 12px 55px!important}
 #tc-root .tc-home-layout .tc-hero-v4{height:155px!important;max-height:155px!important;margin:9px 0 0!important;border-radius:10px!important}
 #tc-root .tc-home-layout .tc-hero-copy-v4{padding:12px 14px!important;max-width:75%!important}
 #tc-root .tc-home-layout .tc-hero-v4 h1{font-size:clamp(20px,6vw,25px)!important;letter-spacing:-.04em!important;line-height:1.08!important;margin:3px 0 5px!important}
 #tc-root .tc-home-layout .tc-hero-v4 p{font-size:9px!important;line-height:1.3!important;margin:3px 0 6px!important}
 #tc-root .tc-home-layout .tc-hero-quick button{font-size:9px!important;min-height:27px!important;padding:6px 9px!important}
 #tc-root .tc-hero-kicker{font-size:8px!important}
 #tc-root .tc-v52-home-search{margin:8px 0 15px!important;gap:7px}
 #tc-root .tc-v52-home-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;padding:8px;border-radius:9px}
 #tc-root .tc-v52-home-row .tc-v52-search-kind{grid-column:1/-1;font-size:11px;padding:0 2px}
 #tc-root .tc-v52-home-row select{grid-column:1/-1;width:100%;height:37px!important;min-height:37px!important}
 #tc-root .tc-v52-home-row input[name="term"]{grid-column:1/2;width:100%;height:37px!important;min-height:37px!important}
 #tc-root .tc-v52-home-row button[type="submit"]{grid-column:2/3;width:100%;font-size:10px!important;min-height:37px!important;white-space:normal;line-height:1.2;padding:5px!important}
 #tc-root .tc-v52-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #tc-root .tc-v52-filter-grid :is(select,input){min-height:37px;font-size:11px}
 #tc-root .tc-v41-section-head h2,#tc-root .tc-section-heading h2,#tc-root .tc-v41-store-section h2,#tc-root .tc-v5-need-spotlight h2{font-size:18px!important}
 #tc-root .tc-v41-section-head p{font-size:11px!important}
 #tc-root .tc-v41-group-grid,#tc-root .tc-home-layout .tc-v41-home-groups .tc-v41-group-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow-x:visible!important;gap:8px!important}
 #tc-root .tc-v41-group-tile .tc-v41-gphoto{height:89px!important;min-height:89px!important}
 #tc-root .tc-v41-group-tile .tc-v41-gtitle{font-size:11px!important}
 #tc-root .tc-v41-group-tile .tc-v41-gmeta{font-size:9px!important;min-height:39px}
 #tc-root .tc-ad-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 #tc-root .tc-ad-info{padding:9px!important}
 #tc-root .tc-ad-info h3{font-size:12px!important}
 #tc-root .tc-ad-info .tc-price{font-size:16px!important}
 #tc-root .tc-card-actions{gap:5px!important}
 #tc-root .tc-card-actions>button{font-size:10px!important;padding:7px 4px!important}
 #tc-root .tc-card-contacts .tc-contact-pill{font-size:10px!important;padding:7px 5px!important}
 #tc-root .tc-card-contacts .tc-contact-icon{width:13px;height:13px}
 #tc-root .tc-float-tools{right:8px;bottom:max(14px,env(safe-area-inset-bottom))}
 #tc-root .tc-float-tools button{width:42px;height:42px;font-size:18px}
 #tc-root .tc-v51-site-footer{padding:20px 14px}
 #tc-root .tc-v51-site-footer nav{gap:5px 12px}
 #tc-root .tc-v51-site-footer nav :is(a,button){font-size:11px}
}
@media(max-width:380px){
 #tc-root .tc-v4-header .tc-new-logo.tc-v53-full-logo{width:120px!important}
 #tc-root .tc-v4-header .tc-header-alert{width:32px;height:32px}
 #tc-root .tc-v4-header .tc-head-avatar{width:32px;height:32px}
 #tc-root .tc-ad-grid{grid-template-columns:1fr!important}
 #tc-root .tc-v41-group-grid,#tc-root .tc-home-layout .tc-v41-home-groups .tc-v41-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #tc-root .tc-v41-group-tile .tc-v41-gphoto{height:78px!important;min-height:78px!important}
}
@media(prefers-reduced-motion:reduce){
 #tc-root .tc-ad-card,#tc-root .tc-v41-group-tile{transition:none!important;transform:none!important}
}

/* AdPally v5.5 focused corrections — dashboard controls live only inside member views.
   The actual visibility is controlled by Core's view renderer, not a CSS hiding trick. */
#tc-root[data-screen="home"] .tc-v51-dashboard-switch,
#tc-root[data-screen="adverts"] .tc-v51-dashboard-switch,
#tc-root[data-screen="groups"] .tc-v51-dashboard-switch,
#tc-root[data-screen="groupChat"] .tc-v51-dashboard-switch,
#tc-root[data-screen="stores"] .tc-v51-dashboard-switch,
#tc-root[data-screen="store"] .tc-v51-dashboard-switch,
#tc-root[data-screen="product"] .tc-v51-dashboard-switch,
#tc-root[data-screen="requests"] .tc-v51-dashboard-switch,
#tc-root[data-screen="pricing"] .tc-v51-dashboard-switch,
#tc-root[data-screen="contact"] .tc-v51-dashboard-switch,
#tc-root[data-screen="about"] .tc-v51-dashboard-switch{display:none!important}
#tc-root .tc-v55-dashboard-layout{min-width:0;}
#tc-root .tc-v51-dashboard-switch{align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:8px 13px;}
#tc-root .tc-v51-dashboard-switch button.tc-v55-mode-swap{background:#f0eafb!important;color:#4d259d!important;border:1px solid #d5c0f7;box-shadow:none!important;border-radius:7px;font-size:11px;padding:8px 12px;line-height:1.2;cursor:pointer;min-height:35px}
#tc-root .tc-v55-mode-hint{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:13px 15px;margin:12px 0 16px;background:#f7f2ff;border:1px solid #e8ddff;border-radius:10px}
#tc-root .tc-v55-mode-hint span{font-size:12px;color:#534268}
#tc-root .tc-v55-mode-hint button{font-size:12px!important;min-height:36px;padding:8px 14px!important}
/* Professional storefront styling, still populated only by saved fields. */
#tc-root .tc-v41-store{border:1px solid #eee7f7;border-radius:14px;overflow:hidden;background:white;box-shadow:0 7px 28px #2312430d}
#tc-root .tc-v41-store-cover{min-height:220px;background-position:center center;background-size:cover;}
#tc-root .tc-v41-store-name h1{font-size:clamp(23px,3vw,36px)!important;color:#fff!important;text-shadow:0 3px 16px #170c31a1;line-height:1.15;}
#tc-root .tc-v41-store .tc-v41-store-avatar{overflow:hidden;border:3px solid white;box-shadow:0 5px 15px #16082e39}
#tc-root .tc-v41-store .tc-v41-store-avatar img{width:100%;height:100%;object-fit:cover}
#tc-root .tc-v41-store-tabs{gap:18px;scrollbar-width:thin}
#tc-root .tc-v41-store-tabs a{color:#503d67}
#tc-root .tc-v41-store-actions{display:flex;flex-wrap:wrap;gap:8px!important;padding:13px clamp(12px,2.5vw,26px)}
#tc-root .tc-v41-store-actions :is(.tc-v41-action,.tc-contact-pill){border-radius:8px!important;color:white!important;min-height:38px!important;font-size:11px!important;font-weight:750!important;text-shadow:none!important;box-shadow:0 4px 10px #25143925}
#tc-root .tc-v41-store-actions .tc-v41-follow{background:#5935e8!important}
#tc-root .tc-v41-store-actions .tc-v41-save{background:#f18a18!important}
#tc-root .tc-v41-store-actions .tc-v41-share{background:#245fc8!important}
#tc-root .tc-v41-store-actions .tc-contact-pill.tc-call{background:#2763cc!important}
#tc-root .tc-v41-store-actions .tc-contact-pill.tc-wa{background:#18b45f!important}
#tc-root .tc-v41-store-actions .tc-v41-store-more summary{background:#f4efff;color:#50319d}
#tc-root .tc-v41-store-section{padding-block:clamp(18px,2.4vw,30px)}
#tc-root .tc-v41-store-section h2{font-size:clamp(18px,2vw,23px)!important}
#tc-root .tc-v41-catalog-grid{gap:12px}
#tc-root .tc-v41-store-gallery img{object-fit:cover;border-radius:8px}
#tc-root .tc-profile-v3 .tc-v41-section-toggle{min-height:43px}
/* Always show the appropriate member or visitor footer as ordinary public navigation. */
#tc-root .tc-v51-site-footer nav{display:flex;gap:7px 18px;flex-wrap:wrap}
#tc-root .tc-v51-site-footer nav :is(a,button){display:inline-flex;align-items:center;min-height:31px}
@media(max-width:700px){
 #tc-root .tc-v51-dashboard-switch{min-height:0;gap:6px 9px;padding:8px 12px}
 #tc-root .tc-v51-dashboard-switch button[data-action=drawer]{min-height:37px;padding:8px 11px!important}
 #tc-root .tc-v51-dashboard-switch button.tc-v55-mode-swap{min-height:37px;padding:8px 9px;font-size:10px}
 #tc-root .tc-v55-mode-hint{padding:10px 12px}
 #tc-root .tc-v41-store-cover{min-height:205px}
 #tc-root .tc-v41-store-name h1{font-size:clamp(20px,5vw,27px)!important}
 #tc-root .tc-v41-store-actions{padding:10px!important;gap:7px!important;justify-content:flex-start}
 #tc-root .tc-v41-store-actions :is(.tc-v41-action,.tc-contact-pill){flex:1 1 auto;min-width:90px;min-height:38px!important;padding:9px 11px!important;justify-content:center}
 #tc-root .tc-v41-store-tabs{gap:13px;padding:11px 13px}
 #tc-root .tc-v41-store-section{padding:19px 13px}
 #tc-root .tc-v41-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v5.8 follow-up polish; the theme intentionally leaves the original layout intact. */
.tc-v51-buyer-requests .tc-v51-request-row{gap:9px;min-width:0}
.tc-v41-group-tile .tc-v41-gmeta{font-size:12px!important;color:#4b3c60!important}
.tc-v51-dashboard-switch{max-width:100%;box-sizing:border-box}
.tc-v41-store-actions .tc-v41-action,.tc-v41-store-actions .tc-contact-pill{min-width:0;white-space:normal;word-break:keep-all}
@media(max-width:700px){.tc-v41-store-actions{gap:8px!important}.tc-v41-store-actions .tc-v41-action{font-size:12px!important}.tc-dash-shortcuts button{font-size:13px!important}}

/* v5.9 corrections — keep group labels legible on small screens without covering cards. */
#tc-root .tc-v59-group-preview .tc-v41-preview-copy{background:#fff!important;color:#291b48!important}
@media(max-width:700px){
 #tc-root .tc-v41-group-tile .tc-v41-gtitle{font-size:12px!important;line-height:1.3!important}
 #tc-root .tc-v41-group-tile .tc-v41-gmeta{font-size:10px!important;line-height:1.4!important;min-height:0!important;overflow-wrap:normal!important}
 #tc-root .tc-v51-request-row>strong{font-size:11px!important;overflow-wrap:anywhere!important}
 #tc-root .tc-v59-group-preview .tc-v41-preview-acts{gap:8px!important}
}

/* v5.10: app-bottom, unified search, creative carousels. Loaded after legacy corrections. */
#tc-root .tc-home-layout .tc-hero-copy-v4{margin-left:0!important;margin-right:auto!important;padding-left:8px!important;padding-right:14px!important;max-width:640px!important;transform:translateX(-10px)!important;text-align:left!important}
#tc-root .tc-home-layout .tc-hero-v4 h1,#tc-root .tc-home-layout .tc-hero-v4 h1 em{color:#fff!important;text-shadow:0 2px 13px #170a38bd!important}
#tc-root .tc-home-layout .tc-hero-v4 h1 em{color:#ffc45c!important}
#tc-root .tc-home-layout .tc-v510-carousel-shell .tc-v41-group-grid{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;grid-template-columns:none!important;width:max-content!important;max-width:none!important;overflow:visible!important;gap:11px!important;align-items:stretch}
#tc-root .tc-home-layout .tc-v510-carousel-shell .tc-v41-group-tile{display:flex!important;flex:0 0 280px!important;width:280px!important;min-width:280px!important;max-width:280px!important;overflow:hidden!important}
#tc-root .tc-home-layout .tc-v510-carousel-shell .tc-v41-group-tile .tc-v41-gphoto{width:100%!important;height:113px!important}
#tc-root .tc-home-layout .tc-v510-advert-cards{display:flex!important;grid-template-columns:none!important;overflow-x:auto!important}
#tc-root .tc-home-layout .tc-v510-advert-cards .tc-ad-card{flex:0 0 290px!important;width:290px!important;max-width:290px!important}
#tc-root .tc-home-layout .tc-v510-store-cards .tc-store-list{display:flex!important;flex-wrap:nowrap!important;width:max-content!important;max-width:none!important;overflow:visible!important}
#tc-root .tc-home-layout .tc-v510-store-cards .tc-store-item{flex:0 0 220px!important;width:220px!important;max-width:220px!important}
#tc-root .tc-home-layout .tc-v510-unified-search{display:grid!important;grid-template-columns:1fr!important;padding:14px!important;gap:10px!important}
#tc-root .tc-v510-search-form{display:grid!important;grid-template-columns:minmax(130px,1fr) minmax(160px,2fr) auto!important}
#tc-root .tc-v510-filter-track{overflow-x:auto!important;display:flex!important;flex-wrap:nowrap!important;touch-action:pan-x}
#tc-root .tc-v510-app-bottom{position:fixed!important}
@media(max-width:700px){
 #tc-root .tc-home-layout .tc-hero-copy-v4{max-width:77%!important;padding:10px 5px!important;transform:translateX(-10px)!important}
 #tc-root .tc-home-layout .tc-v510-carousel-shell .tc-v41-group-tile{flex-basis:240px!important;width:240px!important;min-width:240px!important;max-width:240px!important}
 #tc-root .tc-home-layout .tc-v510-carousel-shell .tc-v41-group-tile .tc-v41-gphoto{height:90px!important}
 #tc-root .tc-home-layout .tc-v510-advert-cards{display:flex!important;grid-template-columns:none!important}
 #tc-root .tc-home-layout .tc-v510-advert-cards .tc-ad-card{flex-basis:280px!important;width:280px!important;max-width:280px!important}
 #tc-root .tc-home-layout .tc-v510-unified-search{padding:12px!important}
 #tc-root .tc-v510-search-form{grid-template-columns:1fr!important}
 #tc-root .tc-v510-search-form :is(select,input,button){grid-column:1/-1!important;width:100%!important}
 #tc-root .tc-v510-app-bottom{display:flex!important;min-height:58px!important}
 #tc-root .tc-v510-swipe-system{bottom:calc(71px + env(safe-area-inset-bottom))!important;z-index:1350!important}
}
@media(min-width:701px){#tc-root .tc-home-layout .tc-hero-copy-v4{transform:translateX(-34px)!important}}
