
:root{
  --bg:#050505;--panel:#0d0d0d;--panel2:#151515;--panel3:#1c1c1c;
  --gold:#e5ad22;--gold2:#f3c23d;--text:#f8f8f6;--muted:#8b8b87;
  --line:#292929;--green:#51d479;--red:#ef5f5f;--yellow:#f3c23d;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:
 radial-gradient(circle at 50% -15%,rgba(229,173,34,.10),transparent 28%),
 #050505;color:var(--text);font-family:Inter,Arial,sans-serif}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
img{max-width:100%}
.wrap{max-width:1180px;margin:auto;padding:16px 16px 90px}

header{
 position:sticky;top:0;z-index:30;background:rgba(5,5,5,.94);
 backdrop-filter:blur(14px);border-bottom:1px solid #1d1d1d
}
nav{max-width:1180px;margin:auto;padding:10px 16px;display:flex;align-items:center;gap:10px}
.brand-img{width:155px;height:48px;object-fit:contain;object-position:left center;filter:drop-shadow(0 0 10px rgba(229,173,34,.10))}
.search{flex:1;position:relative}
.search input{
 width:100%;height:42px;background:#0e0e0e;border:1px solid #272727;color:#fff;
 border-radius:9px;padding:0 14px;outline:none
}
.search input:focus{border-color:#745819}
.icon-btn,.btn{
 border:1px solid var(--line);background:#101010;color:#fff;padding:10px 12px;
 border-radius:9px;transition:.18s
}
.icon-btn:hover,.btn:hover{border-color:#5a471d}
.gold{background:linear-gradient(180deg,#efba2e,#d99a13)!important;color:#060606!important;border-color:#e4aa20!important;font-weight:900}
.gold:hover{filter:brightness(1.06)}

.age-shell{
 min-height:100vh;background:
 linear-gradient(rgba(5,5,5,.82),rgba(5,5,5,.96)),
 repeating-linear-gradient(135deg,#101010 0 12px,#080808 12px 24px);
 display:grid;place-items:center;padding:20px
}
.age-card{width:min(430px,96vw);text-align:center}
.age-circle{
 width:92px;height:92px;border:3px solid var(--gold);border-radius:50%;
 display:grid;place-items:center;margin:0 auto 20px;color:var(--gold);
 font-size:34px;font-weight:1000
}
.age-card h1{font-size:28px;margin:0 0 12px}
.age-card p{color:#b2b2ae;line-height:1.5;margin-bottom:26px}
.age-card .cta{max-width:330px;margin:auto}
.age-card .exit{margin-top:16px;color:#777;font-size:13px;background:none;border:0}

.hero{
 position:relative;overflow:hidden;border:1px solid #2a2519;border-radius:15px;
 background:
 linear-gradient(90deg,rgba(5,5,5,.98) 0%,rgba(8,8,8,.90) 58%,rgba(25,19,6,.75)),
 repeating-linear-gradient(135deg,#101010 0 15px,#080808 15px 30px);
 min-height:310px;padding:24px;display:grid;grid-template-columns:1.25fr .75fr;gap:16px
}
.hero:before{
 content:"";position:absolute;inset:0;opacity:.18;pointer-events:none;
 background-image:radial-gradient(circle at 20% 30%,#b48a26 0 1px,transparent 1px);
 background-size:34px 34px
}
.hero-content{position:relative;z-index:2;max-width:640px}
.hero-logo{width:310px;max-height:155px;object-fit:contain;object-position:left center;margin-bottom:5px}
.kicker{font-size:11px;letter-spacing:2px;color:var(--gold);font-weight:900}
.hero h1{font-size:clamp(40px,6vw,72px);line-height:.92;margin:10px 0 10px;letter-spacing:-3px;text-transform:uppercase}
.hero p{color:#b3b3af;max-width:520px;line-height:1.45}
.hero-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.hero-side{
 position:relative;z-index:2;align-self:end;background:rgba(7,7,7,.88);
 border:1px solid #312a1a;border-radius:12px;padding:16px
}
.hero-side b{display:block;font-size:25px;color:var(--gold);margin:4px 0}
.bullet{display:flex;gap:8px;color:#d7d7d2;font-size:12px;margin:10px 0}
.bullet span{color:var(--gold)}

.section-head{display:flex;justify-content:space-between;align-items:end;margin:24px 0 10px}
.section-head h2{margin:0;font-size:18px;text-transform:uppercase}
.section-head a,.section-head span{font-size:11px;color:var(--gold)}

.cat-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:8px}
.cat-tile{
 background:#0d0d0d;border:1px solid #262626;border-radius:10px;padding:11px 7px;
 text-align:center;min-height:82px;display:flex;flex-direction:column;align-items:center;
 justify-content:center;gap:7px;transition:.18s
}
.cat-tile:hover,.cat-tile.on{border-color:#7b5c18;background:#121006}
.cat-icon{
 width:34px;height:34px;border:1px solid #5e471a;border-radius:9px;
 display:grid;place-items:center;color:var(--gold);font-size:18px
}
.cat-tile small{font-size:9px;color:#e7e7e1;text-transform:uppercase}

.street-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.street-card{
 min-height:132px;border:1px solid #2b2b2b;border-radius:12px;padding:12px;
 background:linear-gradient(145deg,#111,#090909);position:relative;overflow:hidden
}
.street-card:after{
 content:"TC";position:absolute;right:-6px;bottom:-18px;font-size:80px;font-weight:1000;color:#e5ad2209
}
.street-card b{display:block;margin-top:55px;font-size:12px}
.street-card span{font-size:10px;color:var(--gold)}

.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.product{
 background:#0d0d0d;border:1px solid #242424;border-radius:11px;overflow:hidden;
 transition:.18s
}
.product:hover{transform:translateY(-2px);border-color:#4d3a13}
.product-visual{
 height:132px;background:
 linear-gradient(145deg,rgba(229,173,34,.13),rgba(5,5,5,.2)),
 repeating-linear-gradient(135deg,#151515 0 12px,#0d0d0d 12px 24px);
 display:grid;place-items:center;position:relative
}
.product-visual .tc{font-weight:1000;color:#7a6232;letter-spacing:3px;font-size:13px}
.badge-stock{position:absolute;left:8px;top:8px;font-size:8px;padding:5px 7px;border-radius:999px;background:#121212;border:1px solid #2d2d2d;color:#aaa}
.product-body{padding:10px}
.product-cat{font-size:8px;color:var(--gold);letter-spacing:1px;text-transform:uppercase}
.product-name{font-size:12px;font-weight:900;min-height:31px;margin:6px 0}
.product-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.product-price{font-size:16px;font-weight:1000}
.add{width:34px;height:34px;border:0;border-radius:8px;background:var(--gold);color:#080808;font-size:20px;font-weight:900}
.add:hover{filter:brightness(1.08)}

.bottom-nav{
 display:none;position:fixed;left:0;right:0;bottom:0;z-index:35;background:#070707;
 border-top:1px solid #242424;padding:5px 5px max(5px,env(safe-area-inset-bottom));
 grid-template-columns:repeat(4,1fr)
}
.bottom-nav button{background:none;border:0;color:#777;font-size:9px;padding:8px 2px}
.bottom-nav button.on{color:var(--gold)}
.bottom-nav i{display:block;font-style:normal;font-size:17px;margin-bottom:3px}

.overlay{position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:50;display:none}
.overlay.show{display:block}
.drawer{
 position:absolute;right:0;top:0;height:100%;width:min(430px,95vw);background:#070707;
 border-left:1px solid #282828;padding:16px;overflow:auto
}
.drawer-head{display:flex;justify-content:space-between;align-items:center}
.drawer-head h2{font-size:18px}
.close{background:#111;border:1px solid #292929;color:#fff;border-radius:8px;padding:8px 9px}
.cart-item{padding:12px;background:#101010;border:1px solid #232323;border-radius:10px;margin:8px 0}
.cart-item b{font-size:12px}
.qty{display:flex;align-items:center;gap:6px}
.qty button{width:27px;height:27px;background:#080808;border:1px solid #282828;color:white;border-radius:6px}
.checkout-total{border-top:1px solid #242424;margin-top:12px;padding-top:12px}
.row{display:flex;justify-content:space-between;align-items:center;gap:8px}
.cta{
 width:100%;border:0;border-radius:9px;padding:13px;background:linear-gradient(180deg,#efba2e,#d99a13);
 color:#080808;font-weight:1000;margin-top:10px
}

.modal{position:fixed;inset:0;background:rgba(0,0,0,.88);z-index:70;display:grid;place-items:center;padding:16px}
.modal.hidden{display:none}
.modal-card{width:min(500px,96vw);background:#090909;border:1px solid #332918;border-radius:15px;padding:18px;max-height:92vh;overflow:auto}
.form{display:grid;gap:9px}
.form label{font-size:10px;color:#999;text-transform:uppercase}
.form input,.form select,.form textarea{
 width:100%;background:#101010;border:1px solid #282828;color:#fff;border-radius:8px;padding:11px;outline:none
}
.form input:focus,.form select:focus,.form textarea:focus{border-color:#705515}
.checkout-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:4px 0 14px}
.checkout-step{text-align:center;color:#777;font-size:8px}
.checkout-step:before{content:"";display:block;height:3px;border-radius:4px;background:#252525;margin-bottom:6px}
.checkout-step.on{color:var(--gold)}
.checkout-step.on:before{background:var(--gold)}

.success-icon{width:78px;height:78px;border:3px solid var(--gold);border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;font-size:35px;color:var(--gold)}

.login-page{
 min-height:100vh;display:grid;place-items:center;padding:18px;
 background:linear-gradient(rgba(5,5,5,.89),rgba(5,5,5,.97)),repeating-linear-gradient(135deg,#101010 0 14px,#070707 14px 28px)
}
.login-card{width:min(390px,95vw);background:#090909;border:1px solid #302717;border-radius:15px;padding:20px}
.login-logo{display:block;width:250px;height:115px;object-fit:contain;margin:0 auto 10px}
.lock{font-size:46px;color:var(--gold);text-align:center}
.error{min-height:18px;color:#ff8d8d;font-size:11px}

.admin-shell{display:grid;grid-template-columns:215px 1fr;min-height:100vh}
.side{
 background:#070707;border-right:1px solid #242424;padding:15px;position:sticky;top:0;height:100vh
}
.side-logo{width:170px;height:80px;object-fit:contain;margin:0 auto 10px;display:block}
.side small{display:block;text-align:center;color:var(--gold);font-size:9px;margin-bottom:20px}
.navitem{
 display:block;width:100%;text-align:left;border:0;background:none;color:#aaa;padding:10px;
 border-radius:8px;margin:3px 0;font-size:11px
}
.navitem.on,.navitem:hover{background:linear-gradient(90deg,#4c390d,#191307);color:#fff}
.admin-main{padding:20px}
.admin-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.admin-top h1{margin:2px 0;font-size:24px}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.metric{background:#101010;border:1px solid #252525;border-radius:10px;padding:13px}
.metric small{font-size:9px;color:#888;text-transform:uppercase}
.metric b{display:block;font-size:22px;margin-top:5px}
.metric .up{font-size:9px;color:var(--green)}
.admin-grid{display:grid;grid-template-columns:1.5fr .9fr;gap:10px;margin-top:10px}
.panel{background:#0e0e0e;border:1px solid #252525;border-radius:10px;padding:12px}
.panel h3{margin:0 0 10px;font-size:11px;text-transform:uppercase}
.bar-chart{height:190px;display:flex;align-items:end;gap:10px;padding:15px 8px 0;border-left:1px solid #242424;border-bottom:1px solid #242424}
.bar{flex:1;background:linear-gradient(#e4ac22,#b77d0f);min-width:12px;border-radius:3px 3px 0 0;position:relative}
.bar span{position:absolute;bottom:-20px;left:50%;transform:translateX(-50%);font-size:8px;color:#777}
.table-wrap{overflow:auto;border:1px solid #252525;border-radius:10px;margin-top:10px}
.table{width:100%;border-collapse:collapse;min-width:760px;background:#0d0d0d}
.table th,.table td{padding:10px;border-bottom:1px solid #222;text-align:left;font-size:10px}
.table th{background:#151515;color:#777}
.status{display:inline-block;padding:5px 7px;border-radius:999px;background:#272727;font-size:8px}
.status.NOVO{background:#49370d;color:#f1c94c}
.status.ENTREGUE{background:#11371e;color:#6de28f}
.status.CANCELADO{background:#411818;color:#ff8989}
.actions select{background:#101010;color:#fff;border:1px solid #282828;border-radius:7px;padding:6px;font-size:9px}
.low-stock{display:grid;gap:7px}
.low-item{display:flex;justify-content:space-between;gap:8px;padding:8px;background:#101010;border:1px solid #232323;border-radius:8px;font-size:9px}
.low-item b{color:var(--yellow)}

@media(max-width:950px){
 .cat-grid{grid-template-columns:repeat(4,1fr)}
 .product-grid{grid-template-columns:repeat(3,1fr)}
 .street-strip{grid-template-columns:repeat(2,1fr)}
 .hero{grid-template-columns:1fr}
 .admin-shell{grid-template-columns:1fr}
 .side{display:none}
 .cards{grid-template-columns:repeat(2,1fr)}
 .admin-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
 nav{padding:8px 10px}.brand-img{width:128px;height:42px}.search{display:none}
 .wrap{padding:10px 9px 78px}
 .hero{padding:17px;min-height:305px;border-radius:11px}
 .hero-logo{width:235px;height:125px}
 .hero h1{font-size:44px;letter-spacing:-2px}
 .hero-side{display:none}
 .cat-grid{grid-template-columns:repeat(4,1fr);gap:6px}
 .cat-tile{min-height:70px;padding:7px 4px}
 .cat-icon{width:30px;height:30px}
 .street-strip{grid-template-columns:repeat(2,1fr);gap:6px}
 .street-card{min-height:110px}
 .product-grid{grid-template-columns:repeat(2,1fr);gap:7px}
 .product-visual{height:105px}
 .product-name{font-size:11px}
 .product-price{font-size:14px}
 .bottom-nav{display:grid}
 .cards{grid-template-columns:1fr 1fr}
 .admin-main{padding:11px}
}

.admin-tab{display:none}.admin-tab.on{display:block}
.mini-link{background:none;border:0;color:var(--gold);font-size:10px}
.notice-panel{margin-top:10px;color:#aaa;font-size:11px;line-height:1.5}
.payment-list{display:grid;gap:7px}
.payment-row,.report-line{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #222;font-size:10px}
.payment-row:last-child,.report-line:last-child{border-bottom:0}
.report-grid,.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.setting-label{display:block;color:#777;font-size:9px;text-transform:uppercase;margin:10px 0 4px}
.setting-value{background:#111;border:1px solid #242424;border-radius:8px;padding:10px;font-size:11px}
.setting-value.good{color:#6de28f}
@media(max-width:950px){.report-grid,.settings-grid{grid-template-columns:1fr}}

.form-2{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.margin-preview{background:#151107;border:1px solid #5d4718;color:var(--gold);border-radius:8px;padding:10px;font-size:12px;font-weight:900}
.product-actions{display:flex;gap:5px;flex-wrap:wrap}
.product-actions button{border:1px solid #333;background:#151515;color:#ddd;border-radius:6px;padding:6px 7px;font-size:8px}
.product-actions button:hover{border-color:#775b1c}
.product-actions .danger{color:#ff8989;border-color:#4a2020}
.add:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:650px){.form-2{grid-template-columns:1fr}}

.order-toolbar{display:flex;gap:7px;flex-wrap:wrap}
.danger-btn{border-color:#5a2323!important;color:#ff8d8d!important}
.status.TESTE{background:#34234d;color:#caa6ff}
.order-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;min-width:260px}
.order-actions select{background:#101010;color:#fff;border:1px solid #282828;border-radius:7px;padding:6px;font-size:9px}
.order-actions button{border:1px solid #333;background:#151515;color:#ddd;border-radius:6px;padding:6px 7px;font-size:8px}
.order-actions .danger{color:#ff8989;border-color:#4a2020}

.tracking-card{max-width:480px}
.tracking-order-head{display:flex;justify-content:space-between;gap:15px;padding:13px;background:#101010;border:1px solid #252525;border-radius:10px;margin:8px 0 14px}
.tracking-order-head b{display:block;font-size:17px;margin-top:3px}
.tracking-label{font-size:8px;color:#777}
.tracking-timeline{position:relative;padding:4px 0}
.track-step{display:grid;grid-template-columns:34px 1fr;gap:10px;position:relative;min-height:72px;color:#5f5f5f}
.track-step:not(:last-child):after{content:"";position:absolute;left:16px;top:33px;width:2px;height:39px;background:#242424}
.track-step>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:2px solid #303030;background:#0b0b0b;font-size:10px;font-weight:900;z-index:2}
.track-step b{display:block;font-size:11px;margin:4px 0}
.track-step small{font-size:9px;color:#666}
.track-step.done,.track-step.current{color:#ddd}
.track-step.done>span{background:#7c5b10;border-color:var(--gold);color:#070707}
.track-step.done:not(:last-child):after{background:var(--gold)}
.track-step.current>span{border-color:var(--gold);color:var(--gold);box-shadow:0 0 0 4px rgba(229,173,34,.08)}
.track-step.current b{color:var(--gold)}
.tracking-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:9px}
.tracking-meta>div{background:#101010;border:1px solid #242424;border-radius:8px;padding:9px}
.tracking-meta span{display:block;color:#777;font-size:7px;margin-bottom:4px}
.tracking-meta b{font-size:9px}
.tracking-live{margin-top:12px;color:#4bd979;font-size:9px;text-align:center}
.tracking-error{min-height:18px;color:#ff8d8d;font-size:10px;margin-top:8px}
.cancelled-box{background:#261010;border:1px solid #5d2424;color:#ff8d8d;border-radius:9px;padding:12px;text-align:center;margin:10px 0}
.cancelled-box b{display:block;font-size:12px}.cancelled-box span{font-size:9px;color:#c98383}
@media(max-width:650px){.tracking-meta{grid-template-columns:1fr}.track-step{min-height:68px}}

.orders-top{white-space:nowrap;font-size:10px}
.orders-hub-card{max-width:500px}
.last-order-card{display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(135deg,#171208,#0b0b0b);border:1px solid #5b4518;border-radius:11px;padding:13px;margin:10px 0}
.last-order-card span{display:block;color:#8d7a4d;font-size:8px}
.last-order-card b{display:block;font-size:18px;color:var(--gold);margin:3px 0}
.last-order-card small{color:#888;font-size:9px}
.orders-hub-box{background:#0d0d0d;border:1px solid #252525;border-radius:11px;padding:14px;margin-top:10px}
.orders-hub-box h3{font-size:11px;margin:0 0 4px}
.orders-hub-box p{font-size:9px;color:#777;margin:0 0 12px}
.clear-order-btn{width:100%;margin-top:10px;color:#888}
@media(max-width:650px){
  .orders-top{display:none}
}

.card-qty{display:flex;align-items:center;justify-content:center;gap:2px;background:#171107;border:1px solid #6d5115;border-radius:8px;overflow:hidden;min-width:94px;height:34px}.card-qty button{width:31px;height:100%;border:0;background:transparent;color:var(--gold);font-size:18px;font-weight:1000}.card-qty button:disabled{opacity:.35}.card-qty b{min-width:28px;text-align:center;color:#fff;font-size:12px;border-left:1px solid #3d2e0d;border-right:1px solid #3d2e0d;line-height:32px}.cart-toast{position:fixed;z-index:90;top:78px;right:18px;display:flex;align-items:center;gap:10px;background:#10100e;border:1px solid #5e4819;border-radius:11px;padding:11px 13px;min-width:260px;max-width:360px;transform:translateY(-18px);opacity:0;pointer-events:none;transition:.22s ease;box-shadow:0 16px 40px rgba(0,0,0,.38)}.cart-toast.show{transform:translateY(0);opacity:1}.cart-toast-icon{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:var(--gold);color:#090909;font-weight:1000}.cart-toast b{display:block;font-size:11px}.cart-toast small{display:block;color:#8d8d88;font-size:9px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:270px}.cart-pulse-target.has-items{position:relative}.cart-pulse-target.has-items:after{content:"";position:absolute;inset:-3px;border:1px solid rgba(229,173,34,.45);border-radius:11px;animation:cartPulse 1.6s ease-out infinite;pointer-events:none}@keyframes cartPulse{0%{opacity:.65;transform:scale(.96)}70%,100%{opacity:0;transform:scale(1.12)}}@media(max-width:650px){.card-qty{min-width:86px;height:32px}.card-qty button{width:28px}.card-qty b{line-height:30px}.cart-toast{top:66px;left:10px;right:10px;min-width:0;max-width:none}}

.catalog-focus{display:none!important}.catalog-head{scroll-margin-top:78px;padding-top:4px}.catalog-tools{display:flex;align-items:center;gap:8px}.mini-clear{border:1px solid #4c3b16;background:#141006;color:var(--gold);border-radius:999px;padding:6px 9px;font-size:8px;font-weight:900}.search-box{position:relative}.search-box input{padding-right:40px!important}.search-clear{position:absolute;right:6px;top:6px;width:30px;height:30px;border:0;border-radius:7px;background:#242424;color:#aaa}.search-result{animation:searchIn .22s ease both}@keyframes searchIn{from{opacity:.25;transform:translateY(7px)}to{opacity:1;transform:none}}.empty-search{grid-column:1/-1;min-height:220px;display:grid;place-items:center;align-content:center;gap:6px;border:1px dashed #2d2d2d;border-radius:12px;color:#777}.empty-search b{color:#aaa;font-size:12px}.empty-search span{font-size:10px}.finance-cards{grid-template-columns:repeat(6,1fr)}@media(max-width:1100px){.finance-cards{grid-template-columns:repeat(3,1fr)}}@media(max-width:650px){.finance-cards{grid-template-columns:1fr 1fr}.catalog-head{scroll-margin-top:62px}}


/* V5.9 — checkout + taxas de entrega */
.cart-fee-preview{margin-top:7px;font-size:10px}.cart-fee-preview b{color:#777;font-size:9px}
.cart-grand-total{margin-top:10px;padding-top:10px;border-top:1px solid #242424}.cart-grand-total span{font-weight:900}
.checkout-summary{background:#101010;border:1px solid #2b2b2b;border-radius:10px;padding:12px;margin:5px 0 8px;display:grid;gap:8px;font-size:11px}
.checkout-summary .row{padding-bottom:7px;border-bottom:1px solid #222}.checkout-summary .row:last-child{border-bottom:0;padding-bottom:0}
.checkout-grand{color:var(--gold);font-size:14px;font-weight:1000}
.delivery-admin{margin-top:10px}.section-head.compact{margin:0 0 10px}
.delivery-zone-form{display:grid;grid-template-columns:1fr 160px 150px;gap:8px}
.delivery-zone-form input{background:#101010;border:1px solid #282828;color:#fff;border-radius:8px;padding:10px;outline:none}
.delivery-zone-list{display:grid;gap:7px;margin-top:10px}
.delivery-zone-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#101010;border:1px solid #252525;border-radius:9px;padding:10px}
.delivery-zone-row b{display:block;font-size:11px}.delivery-zone-row small{display:block;color:#777;font-size:9px;margin-top:3px}
@media(max-width:650px){.delivery-zone-form{grid-template-columns:1fr}.delivery-zone-row{align-items:flex-start;flex-direction:column}}


/* V5.10 — Central de Pedidos */
.order-status-cards{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:8px 0 10px}
.order-status-card{background:#0e0e0e;border:1px solid #292929;border-radius:10px;padding:12px;text-align:left;color:#fff}
.order-status-card small{display:block;color:#777;font-size:8px;font-weight:900}
.order-status-card b{display:block;font-size:22px;margin-top:4px}
.order-status-card.on,.order-status-card:hover{border-color:#755817;background:#141006}.order-status-card.on small{color:var(--gold)}
.order-control-bar{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;margin:10px 0}
.admin-order-search input{width:100%;background:#0f0f0f;border:1px solid #292929;color:#fff;border-radius:9px;padding:11px;outline:none}
.admin-order-search input:focus{border-color:#735817}
.order-board{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.order-card{background:#0d0d0d;border:1px solid #262626;border-radius:12px;padding:12px;position:relative;overflow:hidden}
.order-card.order-new{border-color:#795a17;box-shadow:inset 3px 0 0 var(--gold)}
.order-card-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.order-card-top h3{margin:3px 0 0;font-size:16px}.order-time{font-size:8px;color:#777}
.order-customer{display:flex;justify-content:space-between;gap:8px;margin:12px 0;padding-bottom:10px;border-bottom:1px solid #222}
.order-customer b{font-size:11px}.order-customer span{font-size:9px;color:#888}
.order-mini-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
.order-mini-grid>div{background:#111;border:1px solid #222;border-radius:8px;padding:8px}
.order-mini-grid small{display:block;color:#666;font-size:7px}.order-mini-grid b{display:block;margin-top:3px;font-size:9px}
.order-card-actions{display:flex;gap:6px;margin-top:10px}.order-card-actions .btn{flex:1;font-size:8px;padding:8px}
.empty-orders{grid-column:1/-1;min-height:220px;border:1px dashed #2a2a2a;border-radius:12px;display:grid;place-items:center;align-content:center;gap:5px;color:#777}
.empty-orders b{font-size:12px;color:#aaa}.empty-orders span{font-size:9px}
.order-detail-card{width:min(620px,96vw)}
.detail-status-line{display:flex;justify-content:space-between;align-items:center;color:#777;font-size:9px;margin:8px 0 12px}
.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}
.detail-grid>div,.detail-address,.detail-note{background:#101010;border:1px solid #252525;border-radius:9px;padding:10px}
.detail-grid small,.detail-address small,.detail-note small{display:block;color:#777;font-size:7px;margin-bottom:4px}.detail-grid b,.detail-address b{font-size:10px}
.detail-address{margin-top:7px}.detail-address span{display:block;color:#999;font-size:9px;margin-top:3px}
.detail-items{margin-top:13px}.detail-items h3{font-size:10px;color:var(--gold)}
.detail-item{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #222}
.detail-item b{display:block;font-size:10px}.detail-item small{display:block;color:#777;font-size:8px;margin-top:3px}.detail-item strong{font-size:10px}
.detail-totals{margin-top:12px;border-top:1px solid #292929;padding-top:9px}.detail-totals>div{display:flex;justify-content:space-between;padding:5px 0;font-size:10px}.detail-totals .grand{color:var(--gold);font-size:14px;border-top:1px solid #292929;margin-top:4px;padding-top:9px}
.detail-note{margin-top:10px}.detail-note p{margin:0;font-size:10px;color:#bbb;line-height:1.4}
.detail-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.detail-actions .btn{flex:1;min-width:120px;text-align:center}
.whatsapp-btn{border-color:#1d6a38!important;color:#6de28f!important}
.status.CONFIRMADO{background:#18304b;color:#88c8ff}.status.PREPARANDO{background:#46320f;color:#f3c23d}.status.SAIU{background:#382449;color:#d5a9ff}
@media(max-width:1100px){.order-board{grid-template-columns:repeat(2,1fr)}.order-status-cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.order-board{grid-template-columns:1fr}.order-status-cards{grid-template-columns:repeat(2,1fr)}.order-control-bar{grid-template-columns:1fr 1fr}.admin-order-search{grid-column:1/-1}.detail-grid{grid-template-columns:1fr}}


/* V5.10.1 — ações administrativas restauradas */
.order-test-flag{
  margin-top:9px;padding:6px 8px;border-radius:7px;
  background:#241735;border:1px solid #543877;color:#cfa8ff;
  font-size:8px;font-weight:900;text-align:center
}
.order-card-secondary{display:flex;gap:6px;margin-top:6px}
.order-card-secondary button{
  flex:1;border:1px solid #333;background:#151515;color:#aaa;
  border-radius:7px;padding:7px;font-size:7px;font-weight:900
}
.order-card-secondary button:hover{border-color:#66501f;color:#fff}
.order-card-secondary .danger{border-color:#4c2222;color:#ff8989}
.detail-admin-actions{
  display:grid;grid-template-columns:1fr 1fr;gap:7px;
  margin-top:8px;padding-top:10px;border-top:1px solid #242424
}
@media(max-width:650px){.detail-admin-actions{grid-template-columns:1fr}}

/* V5.11 — Minha Conta */
.account-top{white-space:nowrap}.account-card{width:min(520px,96vw)}
.account-intro{color:#999;font-size:10px;line-height:1.5;margin:8px 0 12px}
.account-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}
.account-tabs button{background:#101010;border:1px solid #292929;color:#777;border-radius:8px;padding:9px;font-size:9px;font-weight:900}
.account-tabs button.on{border-color:#765a1a;color:var(--gold);background:#171207}
.account-msg{min-height:18px;margin-top:8px;font-size:9px;color:#7ddf9a}.account-msg.bad{color:#ff8585}
.account-profile{display:flex;justify-content:space-between;gap:10px;align-items:center;background:#101010;border:1px solid #282828;border-radius:10px;padding:11px;margin:8px 0}
.account-profile small{display:block;color:#777;font-size:7px}.account-profile b{display:block;font-size:13px;margin:3px 0}.account-profile span{font-size:9px;color:#999}
.account-saved{border:1px solid #252525;border-radius:10px;padding:11px;margin-bottom:12px}.account-saved h3{font-size:10px;color:var(--gold);margin:0 0 8px}.account-saved .btn{width:100%;margin-top:8px}
.account-orders{border-top:1px solid #292929;padding-top:10px}
.my-order{width:100%;display:flex;justify-content:space-between;align-items:center;gap:10px;background:#0f0f0f;border:1px solid #282828;border-radius:9px;padding:10px;margin-bottom:6px;color:#fff;text-align:left}
.my-order:hover{border-color:#765a1a}.my-order b{display:block;font-size:10px}.my-order small{display:block;color:#777;font-size:8px;margin-top:3px}.my-order>div:last-child{text-align:right}.my-order strong{display:block;font-size:10px;margin-top:4px;color:var(--gold)}
.account-empty{border:1px dashed #2c2c2c;border-radius:9px;padding:22px;text-align:center;color:#777;font-size:9px}


/* V5.11.1 — correções Minha Conta */
.hidden{display:none!important}
#accountGuest,#accountLogged{margin-top:8px}
#accountGuest>label,.account-saved label{
  display:block;color:#8e8e8a;font-size:9px;text-transform:uppercase;margin:9px 0 4px
}
#accountGuest>input,.account-saved input{
  width:100%;background:#101010;border:1px solid #282828;color:#fff;
  border-radius:8px;padding:11px;outline:none
}
#accountGuest>input:focus,.account-saved input:focus{border-color:#705515}
#signupFields{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#signupFields label{grid-column:auto;align-self:end;color:#8e8e8a;font-size:9px;text-transform:uppercase}
#signupFields input{
  width:100%;background:#101010;border:1px solid #282828;color:#fff;
  border-radius:8px;padding:11px;outline:none
}
#signupFields label:nth-of-type(3),#signupFields input:nth-of-type(3){grid-column:1/-1}
.account-profile{position:sticky;top:-18px;z-index:2}
.account-logout-loading{opacity:.55;pointer-events:none}
@media(max-width:650px){
  #signupFields{grid-template-columns:1fr}
  #signupFields label,#signupFields input{grid-column:1!important}
}


/* V5.12 — entrada + gestão de clientes */
.entry-choice-card{text-align:center;width:min(480px,95vw)}
.entry-choice-logo img{width:220px;height:100px;object-fit:contain}
.entry-choice-card h2{font-size:22px;margin:8px 0}.entry-choice-card p{color:#999;font-size:11px;line-height:1.5;max-width:390px;margin:0 auto 16px}
.entry-choice-actions{display:grid;gap:8px}.entry-choice-actions .btn{width:100%;padding:13px}.entry-choice-card>small{display:block;color:#666;font-size:8px;margin-top:12px}
.client-admin-toolbar{display:grid;grid-template-columns:1fr auto;gap:8px;margin:10px 0}
.client-admin-toolbar input{background:#101010;border:1px solid #292929;color:#fff;border-radius:9px;padding:10px;outline:none}
.client-admin-table small{color:#777;font-size:8px}.client-whatsapp{display:inline-block;border:1px solid #1d6a38;color:#6de28f;border-radius:6px;padding:6px 7px;font-size:8px}
.client-detail-card{width:min(600px,96vw)}
.client-detail-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:9px 0}
.client-detail-summary>div{background:#101010;border:1px solid #252525;border-radius:8px;padding:9px}.client-detail-summary small{display:block;color:#777;font-size:7px}.client-detail-summary b{display:block;margin-top:4px;font-size:11px}
.client-order-history{margin-top:14px;border-top:1px solid #292929;padding-top:10px}.client-order-history h3{font-size:10px;color:var(--gold)}
.client-history-order{width:100%;display:flex;justify-content:space-between;gap:8px;background:#101010;border:1px solid #262626;color:#ddd;border-radius:8px;padding:9px;margin:5px 0;text-align:left;font-size:8px}
.client-history-order:hover{border-color:#725719}.client-history-order b{color:#aaa;font-size:8px}
@media(max-width:650px){.client-detail-summary{grid-template-columns:1fr}.client-admin-toolbar{grid-template-columns:1fr}.client-history-order{flex-direction:column}}


/* V5.12.1 — exclusão de conta */
.client-delete-account{
  width:100%;margin-top:8px!important;border-color:#642727!important;
  color:#ff8d8d!important;background:#1b0d0d!important;font-weight:900
}
.client-delete-account:hover{background:#2b1010!important;border-color:#a33b3b!important}
.client-delete-warning{
  margin-top:6px;color:#9b6969;font-size:8px;line-height:1.4;text-align:center
}


/* V5.13 — Catálogo visual, galeria, variações e vitrines */
.home-showcases{display:grid;gap:18px;margin:18px 0 24px}.showcase-section{min-width:0}.product-shelf{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(190px,24%);gap:9px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x proximity}.product-shelf .product{scroll-snap-align:start;min-height:300px}.fav-card{position:absolute;right:7px;top:7px;border:0;background:#0a0a0ab8;width:29px;height:29px;border-radius:50%;z-index:4}.product-ribbon{position:absolute;left:7px;bottom:7px;background:var(--gold);color:#111;font-weight:1000;font-size:7px;padding:5px 7px;border-radius:5px}.product-price small{display:block;color:#777;font-size:6px;margin-bottom:1px}.add.choose{width:auto;padding:0 9px;font-size:8px}
.product-detail-card{width:min(900px,96vw)}.product-detail-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);gap:14px}.detail-main-image{aspect-ratio:1/1;background:#0d0d0d center/cover no-repeat;border:1px solid #292929;border-radius:12px;display:grid;place-items:center;overflow:hidden}.detail-main-image .tc{color:#604a1d;font-size:18px;font-weight:1000;letter-spacing:3px}.detail-thumbs{display:flex;gap:7px;overflow-x:auto;margin-top:7px}.detail-thumbs button{width:70px;height:70px;flex:0 0 auto;border:1px solid #2b2b2b;border-radius:8px;background:#111 center/cover no-repeat}.detail-thumbs button:hover{border-color:var(--gold)}.detail-product-info{display:flex;flex-direction:column;gap:14px}.detail-description{color:#aaa;font-size:11px;line-height:1.55;white-space:pre-line}.detail-variants label{font-size:8px;color:#777;font-weight:900}.variant-buttons{display:grid;gap:7px;margin-top:7px}.variant-choice{display:grid;grid-template-columns:18px 1fr auto;align-items:center;gap:8px;text-align:left;background:#101010;color:#ddd;border:1px solid #2b2b2b;border-radius:9px;padding:9px}.variant-choice i{width:16px;height:16px;border-radius:50%;border:1px solid #555}.variant-choice span{font-size:9px;font-weight:900}.variant-choice small{font-size:8px;color:#777}.variant-choice.on{border-color:var(--gold);background:#171207}.variant-choice.soldout{opacity:.35}.detail-buy-row{margin-top:auto;border-top:1px solid #292929;padding-top:12px;display:flex;justify-content:space-between;gap:12px;align-items:end}.detail-buy-row>div small{display:block;color:#777;font-size:7px}.detail-buy-row>div b{display:block;color:var(--gold);font-size:22px;margin-top:2px}.detail-buy-row>div span{display:block;color:#777;font-size:8px;margin-top:3px}.detail-buy-row .cta{width:auto;min-width:170px}.cart-item>div>small{display:block;color:var(--gold);font-size:8px;margin-top:3px}
.product-admin-modal{width:min(920px,97vw);max-height:92vh;overflow:auto}.product-flags{display:flex;gap:14px;flex-wrap:wrap;background:#101010;border:1px solid #292929;border-radius:9px;padding:10px}.product-flags label{display:flex!important;align-items:center;gap:7px;margin:0!important}.product-flags input{width:auto!important}.product-manager-block{border-top:1px solid #2a2a2a;margin-top:14px;padding-top:13px}.manager-help{font-size:9px;color:#777;line-height:1.45;margin:0 0 9px}.variant-admin-row{background:#0e0e0e;border:1px solid #282828;border-radius:10px;padding:10px;margin-bottom:8px}.variant-admin-grid{display:grid;grid-template-columns:1.4fr .6fr 1fr .8fr 1fr .9fr;gap:7px}.variant-admin-grid input,.variant-admin-grid select{width:100%}.variant-admin-foot{display:flex;justify-content:space-between;gap:8px;margin-top:8px}.upload-mini,.upload-drop{border:1px dashed #5a4518;background:#151106;color:var(--gold);border-radius:8px;padding:9px 11px;font-size:8px;font-weight:900;cursor:pointer}.upload-drop{display:block;text-align:center;padding:16px}.variant-empty{border:1px dashed #2b2b2b;border-radius:9px;padding:15px;text-align:center;color:#777;font-size:9px}.admin-image-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:9px}.admin-image-item{border:1px solid #292929;border-radius:9px;overflow:hidden;background:#0f0f0f}.admin-image-item img{width:100%;aspect-ratio:1/1;object-fit:cover;display:block}.admin-image-item>div:nth-child(2){padding:7px}.admin-image-item small{display:block;color:#777;font-size:7px}.admin-image-item b{display:block;color:var(--gold);font-size:8px;margin-top:2px}.admin-image-actions{display:flex;gap:4px;padding:0 7px 7px}.admin-image-actions button{flex:1;background:#171717;border:1px solid #333;color:#aaa;border-radius:6px;padding:6px;font-size:7px}.admin-image-actions .danger{color:#ff8d8d;border-color:#4d2424}
@media(max-width:800px){.product-shelf{grid-auto-columns:70%}.product-detail-layout{grid-template-columns:1fr}.variant-admin-grid{grid-template-columns:1fr 1fr}.admin-image-gallery{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.product-shelf{grid-auto-columns:82%}.variant-admin-grid{grid-template-columns:1fr}.variant-admin-foot{flex-direction:column}.detail-buy-row{align-items:stretch;flex-direction:column}.detail-buy-row .cta{width:100%}}


/* V5.13.2 — experiência visual da galeria no Admin */
.upload-drop span{display:block;margin-top:5px;color:#b99133;font-size:8px}
.pending-images-wrap{margin-top:10px;padding:9px;background:#12100a;border:1px dashed #5e4818;border-radius:9px}
.pending-images-head,.saved-gallery-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:9px 0 6px}
.pending-images-head b,.saved-gallery-head b{font-size:8px;color:var(--gold)}
.pending-images-head span,.saved-gallery-head span{font-size:8px;color:#777}
.pending-gallery{margin-top:6px}
.pending-image-item{opacity:.82;border-style:dashed}
.pending-image-item small{color:#d0a33a!important}
.pending-image-item b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#aaa!important}
.saved-gallery-head>div:first-child{display:flex;align-items:center;gap:8px}
.image-upload-state{font-size:8px;color:#777;min-height:12px}
.image-upload-state.working{color:#e5b33a}
.image-upload-state.success{color:#6ed58a}
.admin-image-item.is-cover{border-color:#7f601c;box-shadow:inset 0 0 0 1px #3b2c0c}
.admin-image-actions button:disabled{opacity:.45;cursor:default}
.variant-pending-preview{display:flex;gap:6px;overflow-x:auto;margin-top:8px;padding-top:8px;border-top:1px solid #232323}
.variant-preview-thumb{width:72px;flex:0 0 72px}
.variant-preview-thumb img{width:72px;height:72px;object-fit:cover;border-radius:7px;border:1px dashed #65501f;background:#111}
.variant-preview-thumb span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:6px;color:#777;margin-top:3px}

.store-announcement{position:sticky;top:0;z-index:99;background:#e5ad22;color:#050505;text-align:center;font-size:9px;font-weight:1000;padding:7px 12px}
.store-closed{position:fixed;left:12px;right:12px;bottom:12px;z-index:90;pointer-events:none;display:flex;justify-content:center}.store-closed>div{background:#15100a;border:1px solid #8b6516;color:#fff;border-radius:10px;padding:10px 16px;box-shadow:0 10px 30px #000a;text-align:center}.store-closed b{display:block;color:#e5ad22;font-size:10px}.store-closed span{display:block;color:#aaa;font-size:8px;margin-top:3px}
.sku-edit-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.sku-warning{background:#171207;border:1px solid #5d4718;color:#c9a554;border-radius:8px;padding:8px;font-size:8px}
#tab-settings input,#tab-settings textarea,#tab-settings select{width:100%;background:#101010;border:1px solid #292929;color:#fff;border-radius:8px;padding:9px;margin-bottom:8px}
.category-form{display:grid;grid-template-columns:1fr 1fr 1fr 80px 80px 120px;gap:7px}.category-admin-list{display:grid;gap:6px;margin-top:10px}.category-admin-row{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;background:#101010;border:1px solid #262626;border-radius:9px;padding:9px}.category-admin-icon{width:38px;height:38px;border:1px solid #544015;border-radius:8px;display:grid;place-items:center;color:#e5ad22}.category-admin-main b{display:block;font-size:10px}.category-admin-main small{display:block;color:#777;font-size:8px;margin-top:3px}
.gallery-tools{display:flex;gap:8px;align-items:center}.gallery-tools .btn{padding:6px 8px;font-size:7px}.admin-image-frame{position:relative}.admin-image-item.broken{border-color:#7b2b2b;background:#1a0d0d}.admin-image-item.broken img{opacity:.25}.broken-image-badge{position:absolute;left:5px;right:5px;bottom:5px;background:#681e1e;color:#ffb5b5;border-radius:5px;padding:4px;text-align:center;font-size:7px;font-weight:900}
@media(max-width:900px){.category-form{grid-template-columns:1fr 1fr}.category-form .btn{grid-column:1/-1}.category-admin-row{grid-template-columns:38px 1fr}.category-admin-row .product-actions{grid-column:1/-1}}
@media(max-width:600px){.sku-edit-row,.category-form{grid-template-columns:1fr}.gallery-tools{flex-direction:column;align-items:flex-end}}

.admin-brand-link{display:block;color:inherit;text-decoration:none}.admin-top-actions{display:flex;gap:7px}.back-to-admin{position:fixed;right:12px;bottom:12px;z-index:120;background:#e5ad22;color:#050505;border-radius:999px;padding:10px 13px;font-size:9px;font-weight:1000;text-decoration:none;box-shadow:0 8px 25px #0009}.manual-sale-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:14px}.manual-product-row{display:grid;grid-template-columns:1.5fr 1.2fr 70px 120px;gap:7px}.manual-product-row select,.manual-product-row input,.manual-sale-panel input,.manual-sale-panel select,.manual-sale-panel textarea,.team-create-grid input{width:100%;background:#101010;border:1px solid #292929;color:#fff;border-radius:8px;padding:9px;margin-bottom:7px}.manual-sale-items{display:grid;gap:6px;margin:9px 0}.manual-item{display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;background:#101010;border:1px solid #262626;border-radius:8px;padding:9px}.manual-item b{display:block;font-size:10px}.manual-item small{display:block;color:#777;font-size:8px;margin-top:3px}.manual-item strong{font-size:10px;color:#e5ad22}.manual-item button{border:0;background:transparent;color:#ff7777}.manual-sale-total{display:flex;justify-content:space-between;border-top:1px solid #2a2a2a;padding:10px 0;font-size:12px}.manual-sale-total b{color:#e5ad22}.team-create-grid{display:grid;grid-template-columns:1fr 1.4fr 1fr auto;gap:7px;align-items:center}.team-admin-list{display:grid;gap:6px;margin-top:12px}.team-admin-row{display:flex;justify-content:space-between;align-items:center;background:#101010;border:1px solid #262626;border-radius:8px;padding:10px}.team-admin-row b{display:block;font-size:10px}.team-admin-row small{display:block;color:#777;font-size:8px;margin-top:3px}@media(max-width:760px){.admin-shell{display:block!important}.side{position:sticky!important;top:0!important;width:100%!important;height:auto!important;z-index:100;display:flex!important;align-items:center;gap:6px;overflow-x:auto;padding:8px!important;background:#090909}.side .side-logo,.side>small{display:none!important}.side .navitem{flex:0 0 auto!important;white-space:nowrap;padding:8px 10px!important;font-size:8px!important}.admin-main{margin-left:0!important;padding:10px!important;width:100%!important}.admin-top{position:sticky;top:48px;z-index:90;background:#090909;padding:6px 0}.admin-top-actions{gap:5px}.order-status-cards{grid-template-columns:repeat(2,1fr)!important}.order-board{grid-template-columns:1fr!important}.cards{grid-template-columns:repeat(2,1fr)!important}.table-wrap{overflow-x:auto}.manual-sale-grid{grid-template-columns:1fr}.manual-product-row{grid-template-columns:1fr 1fr}.manual-product-row .btn{grid-column:1/-1}.team-create-grid{grid-template-columns:1fr}}

/* V5.16 FINANCEIRO */
.finance-actions{display:flex;gap:7px;align-items:center}.finance-actions select{background:#101010;border:1px solid #2b2b2b;color:#fff;border-radius:8px;padding:9px}
.finance-v516-cards{grid-template-columns:repeat(3,1fr)!important}.finance-v516-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:10px 0}.finance-quick{display:grid;gap:2px}
.finance-ledger-panel{margin-top:10px}.finance-entry-modal{max-width:520px}.finance-type{font-size:8px;font-weight:900;padding:4px 6px;border-radius:999px;background:#222}.finance-type.VENDA,.finance-type.VENDA_HISTORICA,.finance-type.APORTE,.finance-type.OUTRA_ENTRADA{color:#76df9c}.finance-type.DESPESA,.finance-type.COMPRA_ESTOQUE,.finance-type.RETIRADA{color:#ff8c8c}.money-in{color:#76df9c;font-weight:900}.money-out{color:#ff8c8c;font-weight:900}.danger.mini{padding:5px 7px;font-size:7px}.muted{color:#777}.payment-row small{color:#666}
@media(max-width:760px){.finance-v516-cards{grid-template-columns:repeat(2,1fr)!important}.finance-v516-grid{grid-template-columns:1fr}.finance-actions{width:100%;justify-content:space-between}.finance-actions select{flex:1}}

/* V5.17 — Central de Operação */
.quick-order-select{background:#111;border:1px solid #343434;border-radius:6px;color:#e7b63d;padding:5px 6px;font-size:8px;font-weight:900;max-width:120px}
.order-edit-card,.stock-adjust-card{max-width:560px}.edit-protection-note{font-size:8px;color:#88754b;line-height:1.45;margin-top:8px;border:1px solid #3b321d;background:#151209;border-radius:7px;padding:8px}
.stock-actions{white-space:nowrap}.stock-actions button{border:1px solid #333;background:#111;color:#ddd;border-radius:6px;padding:5px 7px;font-size:8px;margin-right:3px}.stock-actions button:last-child{color:#e5ad22;border-color:#5d4718}.stock-sku{display:block;color:#666;font-size:7px;margin-top:2px}
.stock-adjust-controls{display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center}.stock-adjust-controls input{text-align:center;font-weight:900;font-size:14px}
.ledger-actions{display:flex;gap:4px}.ledger-actions button{background:#111;border:1px solid #333;color:#ddd;border-radius:5px}
.team-activity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}.admin-person-card{background:#0e0e0e;border:1px solid #272727;border-radius:10px;padding:12px}.admin-person-head{display:flex;justify-content:space-between;align-items:center;gap:8px;padding-bottom:9px;border-bottom:1px solid #222}.admin-person-head b{display:block;font-size:11px}.admin-person-head small{display:block;color:#777;font-size:8px;margin-top:2px}
.admin-person-feed{display:grid;gap:2px;margin-top:8px}.admin-feed-item{display:grid;grid-template-columns:8px 1fr;gap:7px;padding:7px 0;border-bottom:1px solid #1c1c1c}.admin-feed-item:last-child{border:0}.feed-dot{width:6px;height:6px;border-radius:50%;background:#d4a433;margin-top:4px}.admin-feed-item b{display:block;font-size:8px;font-weight:800;line-height:1.35}.admin-feed-item small{display:block;color:#666;font-size:7px;margin-top:2px}
.admin-alert-list{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.admin-alert{border:1px solid #2b2b2b;background:#101010;border-radius:8px;padding:9px}.admin-alert b{display:block;font-size:9px}.admin-alert span{display:block;color:#777;font-size:7px;margin-top:3px}.admin-alert.gold{border-color:#594419}.admin-alert.red{border-color:#632828;background:#160d0d}.admin-alert.info{border-color:#30343b}
@media(max-width:900px){.team-activity-grid{grid-template-columns:1fr}.admin-alert-list{grid-template-columns:1fr}}

/* V5.17.1 — edição visível */
.order-inline-edit{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:9px 0;padding:8px;background:#0a0a0a;border:1px solid #2a2a2a;border-radius:9px}
.order-inline-edit label{display:block}.order-inline-edit small{display:block;color:#777;font-size:7px;margin-bottom:4px;font-weight:900}.order-inline-edit select{width:100%;background:#151515;border:1px solid #3a3a3a;color:#e7b63d;border-radius:7px;padding:7px 6px;font-size:8px;font-weight:900}
.order-card-actions .gold{font-weight:1000}.dashboard-inline-select{background:#111;border:1px solid #333;color:#e5ad22;border-radius:6px;padding:5px;font-size:8px;font-weight:900}.gold-mini{color:#e5ad22!important;border-color:#5d4718!important}
@media(max-width:760px){.order-inline-edit{grid-template-columns:1fr}.order-card-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.order-card-actions button:last-child{grid-column:1/-1}}

/* V5.18 ADMIN TOTAL */
.command-center{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:12px}.command-btn{background:#101010;border:1px solid #2b2b2b;border-radius:10px;color:#ddd;padding:11px;text-align:left}.command-btn.gold{border-color:#6d5219;background:#161206}.command-btn b{display:block;font-size:9px;color:#e5ad22}.command-btn span{display:block;color:#777;font-size:7px;margin-top:4px}
.section-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.admin-mini-search{background:#101010;border:1px solid #292929;color:#fff;border-radius:8px;padding:8px;min-width:190px}.section-actions select,#stockFilter,#clientStatusFilter{background:#101010;border:1px solid #292929;color:#fff;border-radius:8px;padding:8px}
.inline-select,.inline-money,.inline-num{background:#111;border:1px solid #303030;color:#fff;border-radius:6px;padding:6px;font-size:8px}.inline-money{width:78px}.mini-num{width:60px}.inline-checks{display:grid;gap:3px}.inline-checks label{font-size:7px;color:#aaa;white-space:nowrap}.product-name-edit,.client-name-button,.order-link,.stock-inline-button{background:none;border:0;color:#fff;font:inherit;font-weight:900;cursor:pointer;text-align:left}.product-name-edit:hover,.client-name-button:hover,.order-link:hover{color:#e5ad22}.stock-inline-button{border:1px solid #333;border-radius:6px;padding:5px;color:#e5ad22}.gold-action{color:#e5ad22!important;border-color:#5b4519!important}
.editable-row{display:grid;grid-template-columns:55px 1.2fr 1fr 1fr 70px 90px auto;gap:6px;align-items:center}.editable-row input,.editable-row select{background:#101010;border:1px solid #303030;color:#fff;border-radius:6px;padding:7px;font-size:8px;min-width:0}.row-icon{text-align:center}.zone-edit-row{grid-template-columns:1.5fr .7fr .7fr auto}
.report-grid-total{grid-template-columns:repeat(3,1fr)!important}.manual-sale-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:8px}.manual-sale-summary div{background:#0d0d0d;border:1px solid #292929;border-radius:7px;padding:8px}.manual-sale-summary span{display:block;color:#777;font-size:7px}.manual-sale-summary b{font-size:10px}.manual-delivery-fields{display:grid;gap:7px}.admin-person-actions{display:flex;gap:5px;align-items:center}.admin-person-actions button{background:#111;border:1px solid #333;color:#aaa;border-radius:5px;padding:5px;font-size:7px}.finance-actions{flex-wrap:wrap}.finance-actions select{min-width:120px}
@media(max-width:1000px){.command-center{grid-template-columns:repeat(2,1fr)}.report-grid-total{grid-template-columns:1fr!important}.editable-row,.zone-edit-row{grid-template-columns:1fr 1fr}.editable-row .danger,.zone-edit-row .danger{grid-column:1/-1}}
@media(max-width:760px){.command-center{grid-template-columns:1fr 1fr}.section-actions{width:100%}.admin-mini-search{width:100%}.editable-row,.zone-edit-row{grid-template-columns:1fr}.manual-sale-summary{grid-template-columns:1fr 1fr 1fr}}


/* V5.19 — Chat / Atendimento */
.chat-fab{position:fixed;right:18px;bottom:18px;z-index:125;border:1px solid #7a5b18;background:linear-gradient(180deg,#efba2e,#d99a13);color:#080808;border-radius:999px;padding:11px 14px;display:flex;align-items:center;gap:8px;font-size:9px;font-weight:1000;box-shadow:0 12px 35px #000a}.chat-fab span{font-size:17px}.chat-fab i,.nav-badge{font-style:normal;min-width:19px;height:19px;padding:0 5px;border-radius:999px;display:grid;place-items:center;background:#d94f4f;color:#fff;font-size:8px}.customer-chat-panel{position:fixed;right:18px;bottom:78px;z-index:124;width:min(380px,calc(100vw - 22px));height:min(590px,calc(100vh - 120px));background:#080808;border:1px solid #5d4718;border-radius:15px;box-shadow:0 18px 60px #000c;overflow:hidden;display:flex;flex-direction:column}.chat-panel-head{display:flex;justify-content:space-between;align-items:flex-start;padding:13px;border-bottom:1px solid #292929;background:#0d0d0d}.chat-panel-head h3{margin:3px 0;font-size:14px}.chat-panel-head small{color:#777;font-size:8px}.chat-start{padding:14px;display:grid;gap:7px}.chat-start p{color:#999;font-size:10px;line-height:1.45}.chat-start label{font-size:8px;color:#777}.chat-start input{background:#101010;border:1px solid #292929;color:#fff;border-radius:8px;padding:10px}.customer-chat-panel #chatConversation{min-height:0;flex:1;display:flex;flex-direction:column}.chat-context{padding:7px 10px;background:#161106;border-bottom:1px solid #4e3a12;color:#cda43e;font-size:8px}.chat-messages{flex:1;min-height:0;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:radial-gradient(circle at 50% 0,#151005 0,transparent 35%),#070707}.chat-msg{max-width:82%}.chat-msg>div{padding:9px 10px;border-radius:11px;font-size:10px;line-height:1.42;white-space:pre-wrap;overflow-wrap:anywhere}.chat-msg small{display:block;color:#666;font-size:6.8px;margin-top:3px}.chat-msg.incoming{align-self:flex-start}.chat-msg.incoming>div{background:#141414;border:1px solid #292929;border-bottom-left-radius:3px}.chat-msg.outgoing{align-self:flex-end;text-align:right}.chat-msg.outgoing>div{background:#3a2b08;border:1px solid #725516;color:#fff;border-bottom-right-radius:3px}.chat-welcome{margin:auto;text-align:center;color:#777;max-width:260px}.chat-welcome b{display:block;color:#d9aa37;font-size:11px;margin-bottom:5px}.chat-welcome span{font-size:9px;line-height:1.45}.chat-compose{display:grid;grid-template-columns:1fr auto;gap:7px;padding:9px;border-top:1px solid #292929;background:#0b0b0b}.chat-compose textarea{resize:none;background:#111;border:1px solid #303030;color:#fff;border-radius:9px;padding:9px;outline:none}.chat-compose textarea:focus{border-color:#765a1a}.chat-compose button{border:0;border-radius:8px;background:#e5ad22;color:#080808;font-size:8px;font-weight:1000;padding:0 12px}
.chat-navitem{display:flex!important;align-items:center;gap:6px}.chat-navitem .nav-badge{margin-left:auto}.admin-chat-layout{display:grid;grid-template-columns:330px 1fr;gap:10px;min-height:620px}.admin-chat-list-panel,.admin-chat-room{background:#0c0c0c;border:1px solid #292929;border-radius:11px;overflow:hidden}.admin-chat-search{padding:9px;border-bottom:1px solid #242424}.admin-chat-search input{width:100%;background:#111;border:1px solid #2c2c2c;color:#fff;border-radius:8px;padding:9px}.admin-chat-list{height:570px;overflow:auto}.admin-chat-item{width:100%;border:0;border-bottom:1px solid #222;background:#0d0d0d;color:#ddd;padding:10px;text-align:left;display:grid;grid-template-columns:1fr auto;gap:4px}.admin-chat-item:hover,.admin-chat-item.on{background:#171207}.admin-chat-item.unread{box-shadow:inset 3px 0 #e5ad22}.admin-chat-item b{font-size:10px}.admin-chat-item small{display:block;color:#777;font-size:7px;margin-top:2px}.admin-chat-item>div:nth-child(2){text-align:right}.admin-chat-item span{display:block;color:#666;font-size:7px}.admin-chat-item i{display:inline-grid;place-items:center;background:#e5ad22;color:#080808;border-radius:999px;min-width:18px;height:18px;font-size:7px;font-style:normal;font-weight:1000;margin-top:3px}.admin-chat-item p{grid-column:1/-1;margin:3px 0 0;color:#999;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-chat-item em{grid-column:1/-1;color:#9a7a2b;font-size:6.5px;font-style:normal}.chat-list-empty,.chat-room-empty{height:100%;display:grid;place-items:center;align-content:center;gap:5px;color:#666;text-align:center}.chat-room-empty b{color:#b89032}.chat-room-empty span{font-size:9px}.admin-chat-room{display:flex;flex-direction:column}.admin-chat-room-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px;border-bottom:1px solid #252525}.admin-chat-room-head h3{margin:2px 0;font-size:14px}.admin-chat-room-head small{color:#777;font-size:8px}.admin-chat-room-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.admin-chat-room-actions .btn,.admin-chat-room-actions select{font-size:7px;padding:7px;background:#111;border:1px solid #333;color:#ddd;border-radius:7px}.admin-chat-assignee{padding:6px 11px;color:#8c7130;font-size:7px;border-bottom:1px solid #222}.admin-chat-messages{height:430px;flex:none}.quick-replies{display:flex;gap:5px;overflow:auto;padding:7px;border-top:1px solid #222}.quick-replies button{flex:0 0 auto;border:1px solid #4b3a15;background:#151106;color:#d7ab3a;border-radius:999px;padding:6px 8px;font-size:7px}.admin-compose{margin-top:auto}.quick-reply-manager{margin-top:10px}.quick-reply-form{display:grid;grid-template-columns:180px 1fr auto;gap:7px}.quick-reply-form input,.quick-reply-admin-row input,.quick-reply-admin-row select{background:#101010;border:1px solid #292929;color:#fff;border-radius:7px;padding:8px}.quick-reply-admin-list{display:grid;gap:6px;margin-top:8px}.quick-reply-admin-row{display:grid;grid-template-columns:180px 1fr 100px auto;gap:7px}.quick-reply-admin-row button{border:1px solid #4d2424;background:#170d0d;color:#ff8989;border-radius:7px;padding:7px}.nav-badge.hidden{display:none!important}
@media(max-width:900px){.admin-chat-layout{grid-template-columns:1fr;min-height:0}.admin-chat-list{height:260px}.admin-chat-messages{height:400px}.quick-reply-form,.quick-reply-admin-row{grid-template-columns:1fr}.customer-chat-panel{right:10px;bottom:72px}.chat-fab{right:10px;bottom:10px}.chat-fab b{display:none}}

/* V5.19.1 — Notificações + gestão do chat */
.tc-notification-toast{position:fixed;z-index:190;top:76px;right:18px;width:min(390px,calc(100vw - 24px));display:grid;grid-template-columns:38px 1fr auto;gap:9px;align-items:center;background:#10100e;border:1px solid #6c5119;border-radius:12px;padding:10px 11px;box-shadow:0 18px 55px #000c;animation:tcNotifIn .2s ease both}.tc-notification-icon{width:36px;height:36px;border-radius:10px;background:#1d1709;display:grid;place-items:center;font-size:18px}.tc-notification-toast b{display:block;font-size:10px;color:#e5ad22}.tc-notification-toast small{display:block;color:#aaa;font-size:8px;line-height:1.35;margin-top:3px}.tc-notification-toast>button{border:0;background:transparent;color:#777;font-size:15px}.admin-notification-toast{top:18px}.sound-toggle{border:1px solid #4b3a16;background:#151107;color:#d9ac3b;border-radius:7px;padding:6px 7px;font-size:7px;font-weight:900;white-space:nowrap}.chat-head-actions{display:flex;gap:5px;align-items:center}.sound-top-btn{font-size:8px!important;white-space:nowrap}.admin-preview-mode .chat-fab{bottom:74px}.admin-preview-mode .customer-chat-panel{bottom:136px}.chat-internal-note{margin:7px 0;padding:8px;border:1px dashed #644b16;background:#151107;color:#c7a75a;border-radius:8px;font-size:8px;line-height:1.4}.chat-danger-zone{padding-top:7px;border-top:1px solid #242424;margin-top:7px;text-align:right}.chat-danger-zone .btn{font-size:7px}.chat-edit-card{max-width:620px}.admin-chat-room-actions{flex-wrap:wrap}
@keyframes tcNotifIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
@media(max-width:650px){.tc-notification-toast{top:64px;left:10px;right:10px;width:auto}.admin-notification-toast{top:58px}.admin-preview-mode .chat-fab{bottom:72px}.admin-preview-mode .customer-chat-panel{bottom:130px}.sound-toggle{padding:5px;font-size:6px}}

/* V5.20 — Pedidos x Vendas */
.orders-source-chip{border:1px solid #3c321b;background:#151106;color:#cfa63d;border-radius:999px;padding:7px 10px;font-size:8px;font-weight:900}
.sales-summary-cards{grid-template-columns:repeat(5,1fr)}
.sales-control-bar{display:grid;grid-template-columns:1fr 155px 170px 170px;gap:7px;margin:10px 0}.sales-control-bar input,.sales-control-bar select{width:100%;background:#101010;border:1px solid #292929;color:#fff;border-radius:8px;padding:9px}
.sales-new-panel{margin:12px 0;border-color:#5c471c;background:linear-gradient(145deg,#121006,#0c0c0c)}.sales-new-panel .manual-sale-panel{border:0;padding:0;background:transparent}
.sales-board{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-top:10px}.sale-card{background:#0e0e0e;border:1px solid #292929;border-radius:11px;padding:12px}
.sale-card-top,.sale-main-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.sale-card-top h3{margin:3px 0;font-size:15px}.sale-card-top small{color:#777;font-size:7px}
.sale-badges{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.sale-origin{font-size:7px;padding:5px 7px;border-radius:999px;font-weight:900}.sale-origin.site{background:#142e44;color:#8bcaff}.sale-origin.manual{background:#3a2d0b;color:#f0c554}
.sale-main-row{margin:10px 0;padding:10px 0;border-top:1px solid #222;border-bottom:1px solid #222;align-items:center}.sale-main-row small,.sale-meta-grid small{display:block;color:#777;font-size:7px;margin-bottom:3px}.sale-main-row b{display:block;font-size:11px}.sale-main-row span{font-size:8px;color:#888}.sale-main-row strong{color:#e5ad22;font-size:18px}
.sale-meta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.sale-meta-grid label,.sale-meta-grid>div{background:#111;border:1px solid #242424;border-radius:7px;padding:7px}.sale-meta-grid select{width:100%;background:#0b0b0b;border:1px solid #303030;color:#fff;border-radius:5px;padding:5px;font-size:8px}.fixed-inline-value{background:#0b0b0b;border:1px solid #303030;color:#8bcaff;border-radius:5px;padding:6px;font-size:8px;font-weight:900}
.sale-card-actions{display:flex;gap:6px;margin-top:9px}.sale-card-actions .btn{flex:1;font-size:8px;padding:8px}
@media(max-width:1050px){.sales-summary-cards{grid-template-columns:repeat(3,1fr)}.sales-control-bar{grid-template-columns:1fr 1fr}.sales-board{grid-template-columns:1fr}.sale-meta-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.sales-summary-cards{grid-template-columns:1fr 1fr}.sales-control-bar{grid-template-columns:1fr}.sale-meta-grid{grid-template-columns:1fr 1fr}.sale-card-actions{display:grid;grid-template-columns:1fr 1fr}.sale-card-actions .btn:last-child{grid-column:1/-1}}

/* V5.20.1 — alerta de pedido novo */
.orders-head-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.orders-live-chip{border:1px solid #1f5732;background:#0d1b12;color:#78df9a;border-radius:999px;padding:7px 10px;font-size:7px;font-weight:900}
@media(max-width:650px){.orders-head-actions{justify-content:flex-start}.orders-live-chip{font-size:6px}}

/* V5.21 — estoque visual e operacional */
.orders-navitem{display:flex!important;align-items:center;gap:6px}.orders-navitem .nav-badge{margin-left:auto}
.stock-table td{vertical-align:middle}.stock-table td:first-child{width:58px}
.stock-thumb{width:48px;height:48px;border:1px solid #2d2d2d;background:#111;border-radius:9px;overflow:hidden;padding:0;display:grid;place-items:center;cursor:pointer}
.stock-thumb img{width:100%;height:100%;object-fit:cover;display:block}.stock-thumb.no-photo{border-style:dashed;color:#8d712e}.stock-thumb.no-photo span{font-size:6px;font-weight:1000}
.stock-qty-button{min-width:48px;border:1px solid #5b4519;background:#171207;color:#e5ad22;border-radius:8px;padding:8px;font-weight:1000;font-size:12px;cursor:pointer}
.stock-qty-button:hover{background:#211a0a}.stock-actions{min-width:310px}.stock-actions .danger{color:#ff8585!important;border-color:#542626!important}
@media(max-width:650px){.stock-thumb{width:42px;height:42px}.stock-actions{min-width:260px}}

/* V5.22 — Consolidação estoque/catálogo/nota */
.archive-toggle{display:flex;align-items:center;gap:5px;color:#888;font-size:7px;white-space:nowrap}
.archive-toggle input{accent-color:#e5ad22}
.form-3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.invoice-data-block{border-color:#4d3d1c!important;background:linear-gradient(145deg,#141108,#0c0c0c)!important}
.invoice-data-block h3{color:#e5ad22}.invoice-data-block .section-head span{font-size:7px;color:#88754b}
.stock-photo-wrap{position:relative;width:max-content}.invoice-photo-tag{position:absolute;right:-4px;bottom:-4px;background:#e5ad22;color:#090909;border-radius:5px;padding:2px 4px;font-size:6px;font-weight:1000;border:2px solid #0b0b0b}
.invoice-cell b{display:block;color:#d2aa44;font-size:8px}.invoice-cell small{display:block;color:#777;font-size:7px;margin-top:3px;white-space:nowrap}
.archived-row{opacity:.52;background:#0a0a0a}.archived-row:hover{opacity:.8}
.stock-table td:nth-child(3){min-width:145px}.stock-table td:nth-child(4),.stock-table td:nth-child(5){min-width:85px}
.stock-actions{min-width:475px!important}.stock-actions button{margin-bottom:3px}
@media(max-width:760px){.form-3{grid-template-columns:1fr}.archive-toggle{display:none}.stock-actions{min-width:420px!important}}

/* V5.22.1 — acabamento visual */
.navitem{
  display:flex!important;
  align-items:center;
  gap:8px;
  letter-spacing:.02em;
}
.product-table-photo{
  width:48px;
  height:48px;
  position:relative;
  cursor:pointer;
}
.product-table-photo .stock-thumb,
.product-table-photo img{
  width:48px!important;
  height:48px!important;
  object-fit:cover;
  border-radius:9px;
}
.product-table-photo:hover{
  transform:scale(1.04);
}
#productRows td:first-child{
  width:60px;
}

/* V5.23 — UX PRO */
.dashboard-actionbar{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-bottom:12px}
.dash-action{display:flex;align-items:center;gap:9px;text-align:left;background:#111;border:1px solid #292929;border-radius:10px;padding:10px;color:#ddd;transition:.15s}
.dash-action:hover{border-color:#66501f;transform:translateY(-1px)}.dash-action>span{font-size:17px;width:28px;text-align:center}.dash-action b{display:block;font-size:9px}.dash-action small{display:block;color:#777;font-size:7px;margin-top:2px}.dash-action.primary{background:linear-gradient(145deg,#2a210c,#161208);border-color:#765a17}.dash-action.primary>span,.dash-action.primary b{color:#e5ad22}
.dashboard-now{margin:4px 0 12px}.dashboard-now-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.now-card{display:grid;grid-template-columns:32px 1fr auto;align-items:center;text-align:left;gap:8px;background:#0e0e0e;border:1px solid #262626;border-radius:10px;padding:10px;color:#ddd}.now-card>span{font-size:18px}.now-card b{font-size:17px;color:#fff;margin-right:7px}.now-card strong{font-size:8px}.now-card small{display:block;font-size:7px;color:#777;margin-top:3px}.now-card i{font-style:normal;color:#555}.now-card.hot{border-color:#713333;background:linear-gradient(145deg,#1b1010,#0d0d0d)}.now-card.hot b{color:#ff8686}.now-card.hot i{color:#e5ad22}
.workspace-overlay{position:fixed!important;inset:0 0 0 230px!important;z-index:155!important;background:#090909!important;overflow:auto!important;padding:22px!important;display:block!important}.workspace-close{position:sticky;top:0;z-index:4;float:right;margin-bottom:10px;border:1px solid #4a3b1b;background:#151108;color:#e5ad22;border-radius:8px;padding:8px 10px;font-size:8px;font-weight:900}.workspace-overlay-open{overflow:hidden}
.btn.gold,.cta{box-shadow:none}.primary-action{background:#e5ad22!important;color:#0b0b0b!important;border-color:#e5ad22!important;font-weight:1000}.subtle-action{border-color:#3c3523!important;color:#b9a779!important}.order-primary-actions{grid-template-columns:1.15fr 1.15fr 1fr 1fr!important}.inline-unread{display:inline-grid;place-items:center;min-width:17px;height:17px;padding:0 4px;background:#c83c3c;color:white;border-radius:999px;font-size:7px;margin-left:3px}
.context-chat-card{width:min(680px,96vw);max-height:88vh}.context-chat-messages{height:min(48vh,440px);margin:10px 0}.context-chat-fallback{padding:10px}.context-empty{display:grid;gap:9px;text-align:center;padding:28px;background:#101010;border:1px solid #292929;border-radius:11px}.context-empty>span{font-size:32px}.context-empty b{font-size:12px}.context-empty small{color:#777;font-size:9px;line-height:1.5}.context-empty .btn{width:100%}
.client-360-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin:8px 0}.client-detail-summary{grid-template-columns:repeat(4,1fr)!important}.client-360-insights{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px}.client-360-insights>div{background:#0d0d0d;border:1px solid #262626;border-radius:8px;padding:9px}.client-360-insights span{display:block;color:#777;font-size:7px}.client-360-insights b{display:block;font-size:9px;margin-top:4px}
.tc-notification-toast.clickable{cursor:pointer;border-color:#9b7722}.tc-notification-toast.clickable:hover{transform:translateY(-1px)}
.report-exec-cards{grid-template-columns:repeat(4,1fr)!important;margin-bottom:10px}
@media(max-width:900px){.dashboard-actionbar{grid-template-columns:repeat(2,1fr)}.dashboard-now-grid{grid-template-columns:repeat(2,1fr)}.workspace-overlay{inset:0!important;padding:12px!important}.order-primary-actions{grid-template-columns:1fr 1fr!important}.client-360-actions{grid-template-columns:1fr 1fr}.client-detail-summary{grid-template-columns:1fr 1fr!important}}
@media(max-width:600px){.dashboard-actionbar,.dashboard-now-grid{grid-template-columns:1fr}.client-360-actions,.client-360-insights{grid-template-columns:1fr}.report-exec-cards{grid-template-columns:1fr 1fr!important}}

/* V5.24 POLIMENTO OPERACIONAL */
.dash-action.primary{background:#111!important;border-color:#292929!important}
.dash-action.primary>span,.dash-action.primary b{color:inherit!important}
#newSaleBox.hidden{display:none!important}
#tab-orders [data-order-filter="TESTES"],#tab-orders .test-tools,#tab-orders .tests-control{display:none!important}
#tab-reports .metric{cursor:default!important}
#tab-reports .metric:hover{transform:none!important}

/* V5.25 — MASTER POLISH */
.dashboard-refresh-btn:disabled{opacity:.72;cursor:wait}
.dash-order-date{display:block;color:#666;font-size:7px;margin-top:3px}
.dash-empty-orders{display:grid;justify-items:center;gap:5px;padding:22px;color:#777}.dash-empty-orders span{font-size:25px}.dash-empty-orders b{color:#aaa;font-size:9px}.dash-empty-orders small{font-size:7px}
.order-control-bar{grid-template-columns:1fr!important}.order-status-cards .order-status-card:first-child{border-color:#715516;background:#171207}.order-status-card.on{border-color:#e5ad22!important;background:#1b1609!important}
.report-exec-cards{grid-template-columns:repeat(5,1fr)!important}
.report-grid-master{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.report-panel{min-height:230px}.report-panel-head{display:flex;gap:9px;align-items:center;border-bottom:1px solid #222;padding-bottom:9px;margin-bottom:8px}.report-panel-head>span{font-size:18px}.report-panel-head h3{margin:0;font-size:9px}.report-panel-head small{color:#666;font-size:7px}
.report-stat-row{padding:8px 0;border-bottom:1px solid #1c1c1c}.report-stat-row:last-child{border-bottom:0}.report-stat-main{display:flex;justify-content:space-between;gap:10px}.report-stat-main span{font-size:8px;color:#aaa}.report-stat-main b{font-size:9px;color:#ddd}.report-stat-row>small{display:block;color:#666;font-size:7px;margin-top:3px}.report-progress{height:3px;background:#1c1c1c;border-radius:99px;overflow:hidden;margin-top:6px}.report-progress i{display:block;height:100%;background:#a98022;border-radius:99px}
.rank-row{display:grid;grid-template-columns:25px 1fr;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #1c1c1c;width:100%;background:none;border-top:0;border-left:0;border-right:0;color:inherit;text-align:left}.rank-row em{width:23px;height:23px;display:grid;place-items:center;border:1px solid #39301b;border-radius:6px;color:#caa044;font-size:8px;font-style:normal;font-weight:900}.rank-row span{display:block;font-size:8px;color:#bbb}.rank-row small{display:block;color:#666;font-size:7px;margin-top:2px}.rank-clickable{grid-template-columns:25px 1fr auto;cursor:pointer}.rank-clickable:hover{background:#111}.rank-clickable strong{color:#b78c25}
.report-empty{display:grid;place-items:center;min-height:150px;color:#777;font-size:8px;text-align:center}.report-empty.error{color:#b76d6d}
#tab-reports .metric{background:#0d0d0d!important;border-color:#252525!important}
@media(max-width:850px){.report-exec-cards{grid-template-columns:repeat(2,1fr)!important}.report-grid-master{grid-template-columns:1fr}}

/* V5.26 — REPORTS FOCUS */
.report-focusable{position:relative;cursor:pointer;transition:transform .14s,border-color .14s,background .14s}
.report-focusable:hover{border-color:#5b4820;transform:translateY(-1px);background:#10100e}
.report-focusable:focus-visible{outline:1px solid #b98c25;outline-offset:2px}
.report-expand-btn{margin-left:auto;border:1px solid #30291b;background:#111;color:#a9883d;border-radius:7px;width:28px;height:28px;display:grid;place-items:center;cursor:pointer;font-size:12px}
.report-panel-head{cursor:pointer}.report-panel-head>div{flex:1}
.report-focus-modal{position:fixed;inset:0;z-index:400;background:rgba(0,0,0,.78);backdrop-filter:blur(5px);display:grid;place-items:center;padding:22px}
.report-focus-modal.hidden{display:none!important}
.report-focus-shell{width:min(980px,96vw);max-height:90vh;overflow:auto;background:#0b0b0b;border:1px solid #55431c;border-radius:15px;box-shadow:0 24px 80px rgba(0,0,0,.7)}
.report-focus-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:15px 17px;background:rgba(11,11,11,.96);border-bottom:1px solid #242424;backdrop-filter:blur(7px)}
.report-focus-title{display:flex;align-items:center;gap:11px}.report-focus-title>span{font-size:24px}.report-focus-title small{display:block;color:#8a6c29;font-size:7px;font-weight:900;letter-spacing:.14em}.report-focus-title h2{font-size:13px;margin:3px 0 0}
.report-focus-close{width:34px;height:34px;border-radius:8px;border:1px solid #4b3b1b;background:#151108;color:#e5ad22;cursor:pointer;font-weight:900}
.report-focus-body{padding:17px}.report-focus-content .report-stat-row{padding:12px 3px}.report-focus-content .report-stat-main span{font-size:10px}.report-focus-content .report-stat-main b{font-size:11px}.report-focus-content .report-progress{height:6px;margin-top:8px}.report-focus-content .rank-row{padding:11px 3px}.report-focus-content .rank-row span{font-size:10px}.report-focus-content .rank-row small{font-size:8px}
.focus-detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px;padding-top:14px;border-top:1px solid #242424}.focus-detail-grid>div{background:#101010;border:1px solid #242424;border-radius:9px;padding:12px}.focus-detail-grid small{display:block;color:#777;font-size:7px}.focus-detail-grid b{display:block;color:#e3e3e3;font-size:13px;margin-top:5px}
.focus-more{margin-top:16px;border-top:1px solid #242424;padding-top:14px}.focus-more h3{font-size:8px;color:#9c7b31;letter-spacing:.12em}.focus-table-row{display:grid;grid-template-columns:28px 1fr auto auto;gap:10px;align-items:center;padding:9px 3px;border-bottom:1px solid #1d1d1d}.focus-table-row em{font-style:normal;color:#9d7b2f;font-size:8px}.focus-table-row span{font-size:9px}.focus-table-row b,.focus-table-row strong{font-size:8px;color:#aaa}.focus-table-row strong{color:#d7ad4b}
.report-focus-open{overflow:hidden}
@media(max-width:700px){.report-focus-modal{padding:8px}.report-focus-shell{width:100%;max-height:96vh}.focus-detail-grid{grid-template-columns:1fr 1fr}.focus-table-row{grid-template-columns:24px 1fr auto}.focus-table-row strong{grid-column:2/4}}

/* V5.27 Stage 1 — Smart Cards somente no Estoque */
#tab-stock .stock-smart-card{cursor:pointer;position:relative;transition:transform .14s,border-color .14s,background .14s;padding-right:28px}
#tab-stock .stock-smart-card:hover{transform:translateY(-1px);border-color:#5e491d;background:#10100e}
#tab-stock .stock-smart-card:focus-visible{outline:1px solid #b98c25;outline-offset:2px}
#tab-stock .stock-smart-card:after{content:"→";position:absolute;right:10px;top:12px;color:#8d6d29;font-size:10px}
#tab-stock .stock-smart-card.expand:after{content:"⛶";font-size:12px}
#tab-stock .smart-hint{display:block!important;margin-top:4px;color:#806b39!important;font-size:6px!important}
.stock-focus-modal{position:fixed;inset:0;z-index:430;background:rgba(0,0,0,.8);backdrop-filter:blur(5px);display:grid;place-items:center;padding:20px}
.stock-focus-modal.hidden{display:none!important}
.stock-focus-shell{width:min(980px,96vw);max-height:90vh;overflow:auto;background:#0b0b0b;border:1px solid #55431c;border-radius:15px;box-shadow:0 24px 80px rgba(0,0,0,.72)}
.stock-focus-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:15px 17px;background:rgba(11,11,11,.96);border-bottom:1px solid #252525}
.stock-focus-head small{display:block;color:#98772c;font-size:7px;letter-spacing:.13em}.stock-focus-head h2{font-size:13px;margin:4px 0 0}
.stock-focus-close{width:34px;height:34px;border-radius:8px;border:1px solid #4b3b1b;background:#151108;color:#e5ad22;cursor:pointer;font-weight:900}
.stock-focus-body{padding:17px}.stock-focus-summary{grid-template-columns:repeat(4,1fr)!important;margin-bottom:10px}
.stock-focus-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:9px}.stock-focus-grid .panel{min-height:320px}
.stock-focus-row{padding:9px 2px;border-bottom:1px solid #1d1d1d}.stock-focus-row>div:first-child{display:flex;justify-content:space-between;gap:10px}.stock-focus-row span{font-size:8px;color:#aaa}.stock-focus-row b{font-size:8px;color:#ddd}.stock-focus-row small{display:block;color:#666;font-size:7px;margin-top:3px}
.stock-focus-open{overflow:hidden}
@media(max-width:760px){.stock-focus-grid{grid-template-columns:1fr}.stock-focus-summary{grid-template-columns:1fr 1fr!important}.stock-focus-modal{padding:8px}}

/* V5.27.1 — retorno explícito dos Smart Cards de Estoque */
.stock-smart-context{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;background:linear-gradient(135deg,#151108,#0d0d0d);border:1px solid #5a461c;border-radius:10px;padding:10px 12px}
.stock-smart-context.hidden{display:none!important}
.stock-smart-context>div{display:flex;align-items:center;gap:9px}.stock-smart-context>div>span{font-size:17px}
.stock-smart-context small{display:block;color:#806b3d;font-size:6px;letter-spacing:.12em}.stock-smart-context b{display:block;color:#ddd;font-size:8px;margin-top:3px}
.stock-smart-context button{border:1px solid #4a3b1c;background:#111;color:#e5ad22;border-radius:8px;padding:8px 10px;font-size:7px;font-weight:1000;cursor:pointer;white-space:nowrap}
.stock-smart-context button:hover{background:#19150c;border-color:#806420}
@media(max-width:650px){.stock-smart-context{align-items:stretch;flex-direction:column}.stock-smart-context button{width:100%}}

/* V5.28 — Smart Cards Vendas, escopo local */
#tab-sales .sales-smart-card{cursor:pointer;position:relative;transition:transform .14s,border-color .14s,background .14s;padding-right:28px}
#tab-sales .sales-smart-card:hover{transform:translateY(-1px);border-color:#5e491d;background:#10100e}
#tab-sales .sales-smart-card:focus-visible{outline:1px solid #b98c25;outline-offset:2px}
#tab-sales .sales-smart-card:after{content:"→";position:absolute;right:10px;top:12px;color:#8d6d29;font-size:10px}
#tab-sales .sales-smart-card.sales-smart-expand:after{content:"⛶";font-size:12px}
#tab-sales .sales-smart-card.smart-active{border-color:#b48722!important;background:linear-gradient(135deg,#201808,#111)!important;box-shadow:inset 0 0 0 1px rgba(205,156,39,.14),0 5px 20px rgba(0,0,0,.2)}
#tab-sales .sales-smart-card.smart-active:after{content:"✓";color:#e6b542}
#tab-sales .sales-smart-hint{display:block!important;margin-top:4px;color:#806b39!important;font-size:6px!important}
#tab-sales .sales-smart-card.smart-active .sales-smart-hint{color:#d4a63a!important}
.sales-focus-modal{position:fixed;inset:0;z-index:435;background:rgba(0,0,0,.8);backdrop-filter:blur(5px);display:grid;place-items:center;padding:20px}
.sales-focus-modal.hidden{display:none!important}
.sales-focus-shell{width:min(880px,96vw);max-height:90vh;overflow:auto;background:#0b0b0b;border:1px solid #55431c;border-radius:15px;box-shadow:0 24px 80px rgba(0,0,0,.72)}
.sales-focus-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:15px 17px;background:rgba(11,11,11,.96);border-bottom:1px solid #252525}
.sales-focus-head small{display:block;color:#98772c;font-size:7px;letter-spacing:.13em}.sales-focus-head h2{font-size:13px;margin:4px 0 0}
.sales-focus-close{width:34px;height:34px;border-radius:8px;border:1px solid #4b3b1b;background:#151108;color:#e5ad22;cursor:pointer;font-weight:900}
.sales-focus-body{padding:17px}.sales-focus-summary{grid-template-columns:repeat(3,1fr)!important;margin-bottom:10px}
.sales-focus-row{padding:10px 2px;border-bottom:1px solid #1d1d1d}.sales-focus-row>div:first-child{display:flex;justify-content:space-between;gap:10px}.sales-focus-row span,.sales-focus-row b{font-size:8px}.sales-focus-row small{display:block;color:#666;font-size:7px;margin-top:3px}.sales-focus-note{color:#aaa;font-size:9px;line-height:1.7}
.sales-focus-open{overflow:hidden}
@media(max-width:650px){.sales-focus-summary{grid-template-columns:1fr!important}.sales-focus-modal{padding:8px}}

/* V5.28.2 — Estoque Toggle SAFE */
#stockSmartContextBar{display:none!important}
#tab-stock .stock-smart-card.smart-active{
  border-color:#b48722!important;
  background:linear-gradient(135deg,#201808,#111)!important;
  box-shadow:inset 0 0 0 1px rgba(205,156,39,.14),0 5px 20px rgba(0,0,0,.2)
}
#tab-stock .stock-smart-card.smart-active:after{content:"✓";color:#e6b542}
#tab-stock .stock-smart-card.smart-active .smart-hint{color:#d4a63a!important}

/* V5.29.2 — Clientes Native Toggle SAFE */
#tab-clients .client-smart-native{
  cursor:pointer;
  position:relative;
  transition:transform .14s,border-color .14s,background .14s;
  padding-right:28px
}
#tab-clients .client-smart-native:hover{
  transform:translateY(-1px);
  border-color:#5e491d;
  background:#10100e
}
#tab-clients .client-smart-native:focus-visible{
  outline:1px solid #b98c25;
  outline-offset:2px
}
#tab-clients .client-smart-native:after{
  content:"→";
  position:absolute;
  right:10px;
  top:12px;
  color:#8d6d29;
  font-size:10px
}
#tab-clients .client-smart-native.smart-active{
  border-color:#b48722!important;
  background:linear-gradient(135deg,#201808,#111)!important;
  box-shadow:inset 0 0 0 1px rgba(205,156,39,.14),0 5px 20px rgba(0,0,0,.2)
}
#tab-clients .client-smart-native.smart-active:after{
  content:"✓";
  color:#e6b542
}
#tab-clients .client-smart-native-hint{
  display:block!important;
  margin-top:4px;
  color:#806b39!important;
  font-size:6px!important
}
#tab-clients .client-smart-native.smart-active .client-smart-native-hint{
  color:#d4a63a!important
}

/* V5.29.4 — Clientes Insights Inline SAFE */
#tab-clients .section-head.compact{
  margin-top:18px;
  padding:12px 14px;
  border:1px solid #2d2618;
  border-radius:11px 11px 0 0;
  background:linear-gradient(135deg,#151108,#0c0c0c);
}
#tab-clients .section-head.compact h3{
  color:#d9b45b;
  letter-spacing:.08em;
}
#tab-clients .section-head.compact span{
  color:#7d6e49;
}
#tab-clients .section-head.compact + .cards{
  margin-top:0;
  padding:10px;
  border:1px solid #2d2618;
  border-top:0;
  border-radius:0 0 11px 11px;
  background:#0c0c0c;
}

#tab-clients .buyer-insight-card{
  cursor:pointer;
  position:relative;
  min-height:88px;
  padding-right:30px;
  background:linear-gradient(145deg,#121212,#0b0b0b)!important;
  border-color:#2a261c!important;
  transition:transform .14s,border-color .14s,background .14s;
}
#tab-clients .buyer-insight-card:hover{
  transform:translateY(-1px);
  border-color:#665021!important;
  background:#141108!important;
}
#tab-clients .buyer-insight-card:after{
  content:"→";
  position:absolute;
  right:10px;
  top:12px;
  color:#98772c;
  font-size:10px;
}
#tab-clients .buyer-insight-card.insight-active{
  border-color:#ad8324!important;
  background:linear-gradient(135deg,#201808,#101010)!important;
}
#tab-clients .buyer-insight-card.insight-active:after{
  content:"✓";
  color:#e5ad22;
}
#tab-clients .buyer-insight-hint{
  display:block!important;
  margin-top:6px;
  color:#79683f!important;
  font-size:6px!important;
}
#tab-clients .buyer-insight-card.insight-active .buyer-insight-hint{
  color:#d2a63d!important;
}

.client-buyer-insight-panel{
  margin:10px 0 14px;
  border:1px solid #4d3c19;
  border-radius:12px;
  background:linear-gradient(145deg,#10100e,#0a0a0a);
  overflow:hidden;
}
.client-buyer-insight-panel.hidden{display:none!important}

.client-buyer-insight-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 15px;
  border-bottom:1px solid #262014;
  background:#0f0e0b;
}
.client-buyer-insight-head small{
  display:block;
  color:#876c2d;
  font-size:6px;
  letter-spacing:.13em;
}
.client-buyer-insight-head h3{
  margin:4px 0 0;
  font-size:10px;
  color:#eee;
}
.client-buyer-insight-head button{
  border:1px solid #4b3a18;
  background:#151108;
  color:#e5ad22;
  border-radius:8px;
  padding:7px 9px;
  font-size:7px;
  font-weight:900;
  cursor:pointer;
}
.client-buyer-insight-body{
  padding:12px;
}

.buyer-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px;
  margin-bottom:10px;
}
.buyer-kpi{
  padding:11px;
  border:1px solid #242424;
  border-radius:9px;
  background:#0d0d0d;
}
.buyer-kpi small{
  display:block;
  color:#777;
  font-size:6px;
}
.buyer-kpi b{
  display:block;
  margin-top:5px;
  font-size:12px;
  color:#e6e0d3;
}
.buyer-kpi span{
  display:block;
  margin-top:3px;
  color:#716342;
  font-size:6px;
}

.buyer-insight-list,.buyer-frequency-list{
  border:1px solid #232323;
  border-radius:9px;
  background:#0b0b0b;
  overflow:hidden;
}
.buyer-list-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:9px 11px;
  border-bottom:1px solid #232323;
}
.buyer-list-head b{font-size:7px;color:#c7a24b;letter-spacing:.08em}
.buyer-list-head span{font-size:6px;color:#666}

.buyer-rank-row{
  display:grid;
  grid-template-columns:27px 1fr auto;
  gap:9px;
  align-items:center;
  padding:9px 10px;
  border-bottom:1px solid #1d1d1d;
}
.buyer-rank-row:last-child{border-bottom:0}
.buyer-rank-row em{
  width:24px;height:24px;
  display:grid;place-items:center;
  border:1px solid #3f341e;
  border-radius:7px;
  color:#c49a3d;
  font-size:7px;
  font-style:normal;
  font-weight:900;
}
.buyer-rank-main strong{font-size:8px;color:#ddd}
.buyer-rank-main small{display:block;margin-top:3px;font-size:6px;color:#727272}
.buyer-rank-row button,.buyer-rank-row a{
  border:1px solid #3d331d;
  background:#111;
  color:#d6aa43;
  text-decoration:none;
  border-radius:7px;
  padding:6px 8px;
  font-size:6px;
  font-weight:900;
  cursor:pointer;
}
.buyer-reg-tag,.buyer-guest-tag{
  display:inline-block;
  margin-left:6px;
  padding:2px 4px;
  border-radius:4px;
  font-size:5px;
  font-style:normal;
}
.buyer-reg-tag{background:#12301c;color:#79c78e}
.buyer-guest-tag{background:#2b2414;color:#c7a75a}
.buyer-no-action{font-size:6px;color:#555}

.buyer-frequency-row{
  padding:9px 10px;
  border-bottom:1px solid #1d1d1d;
}
.buyer-frequency-row>div:first-child{
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.buyer-frequency-row span,.buyer-frequency-row b{font-size:7px}
.buyer-frequency-row small{display:block;margin-top:4px;color:#666;font-size:6px}
.buyer-frequency-bar{
  height:4px;
  margin-top:6px;
  border-radius:99px;
  background:#1d1d1d;
  overflow:hidden;
}
.buyer-frequency-bar i{
  display:block;
  height:100%;
  border-radius:99px;
  background:#a98022;
}

.top-buyer-hero{
  display:grid;
  grid-template-columns:54px 1fr auto;
  gap:12px;
  align-items:center;
  padding:14px;
  margin-bottom:9px;
  border:1px solid #4b3c1d;
  border-radius:10px;
  background:linear-gradient(135deg,#171207,#0d0d0d);
}
.top-buyer-crown{
  width:48px;height:48px;
  display:grid;place-items:center;
  border:1px solid #59461e;
  border-radius:12px;
  background:#151108;
  font-size:22px;
}
.top-buyer-hero small{color:#98782e;font-size:6px;letter-spacing:.12em}
.top-buyer-hero h2{margin:4px 0;font-size:15px}
.top-buyer-hero p{margin:0;color:#777;font-size:7px}
.top-buyer-actions{display:flex;gap:6px;flex-wrap:wrap}

.buyer-empty{
  display:grid;
  place-items:center;
  min-height:120px;
  padding:20px;
  color:#777;
  font-size:7px;
  text-align:center;
}

@media(max-width:760px){
  .buyer-kpi-grid{grid-template-columns:1fr 1fr}
  .top-buyer-hero{grid-template-columns:44px 1fr}
  .top-buyer-actions{grid-column:1/3}
}

/* V5.30 — Clientes CRM */
.client-profile-view{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0 10px}
.client-profile-view>div{background:#0d0d0d;border:1px solid #252525;border-radius:8px;padding:9px}
.client-profile-view small{display:block;color:#777;font-size:6px}.client-profile-view b{display:block;margin-top:4px;color:#ddd;font-size:8px;overflow-wrap:anywhere}
.client-edit-form{border-top:1px solid #2c2517;margin-top:10px;padding-top:10px}
.client-edit-form.hidden{display:none!important}.client-edit-toggle{margin-left:auto}
.client-source{display:inline-block;padding:2px 4px;border-radius:4px;font-size:5px;font-weight:900}
.client-source.site{background:#102719;color:#74c58a}.client-source.manual{background:#282112;color:#d2ad58}
.client-duplicate-badge{display:inline-block;background:#37191a;color:#ff9696;border:1px solid #633031;border-radius:4px;padding:2px 4px;font-size:5px;margin-left:4px}
.duplicate-client-row{background:linear-gradient(90deg,rgba(90,20,20,.12),transparent)}
.buyer-admin-tag{display:inline-block;margin-left:6px;padding:2px 4px;border-radius:4px;font-size:5px;font-style:normal;background:#251a31;color:#bd91e8}
.manual-save-contact{border:1px solid #2c2518;border-radius:8px;padding:9px;margin:8px 0;background:#0e0d0a}
.manual-save-check{display:flex!important;align-items:center;gap:7px;color:#d5b45f!important;font-size:7px!important;font-weight:900}
.manual-save-check input{accent-color:#d7a62f}
#manualSaveCustomerFields{margin-top:8px}#manualSaveCustomerFields.hidden{display:none!important}
#manualSaveCustomerFields small{display:block;color:#777;font-size:6px;line-height:1.5;margin-top:4px}
@media(max-width:760px){.client-profile-view{grid-template-columns:1fr 1fr}.client-360-actions{grid-template-columns:1fr 1fr!important}}

/* V5.30.2 — ação pontual Equipe/Admins */
.admin-remove-btn{
  border-color:#5d2c2c!important;
  color:#df8f8f!important;
  background:#140d0d!important
}
.admin-remove-btn:hover{
  border-color:#8b3a3a!important;
  background:#251010!important
}

/* V5.30.3 */
.client-delete-btn{border-color:#5d2c2c!important;color:#df8f8f!important;background:#140d0d!important}
.client-delete-btn:hover{border-color:#8b3a3a!important;background:#251010!important}

/* V5.31.1 — Financeiro Smart */
#tab-finance .finance-smart-card{cursor:pointer;position:relative;padding-right:30px;transition:transform .14s,border-color .14s,background .14s}
#tab-finance .finance-smart-card:hover{transform:translateY(-1px);border-color:#5e491d;background:#10100e}
#tab-finance .finance-smart-card:after{content:"→";position:absolute;right:10px;top:12px;color:#8d6d29;font-size:10px}
#tab-finance .finance-smart-expand:after{content:"⛶"}
#tab-finance .finance-smart-card.smart-active{border-color:#b48722!important;background:linear-gradient(135deg,#201808,#111)!important}
#tab-finance .finance-smart-card.smart-active:after{content:"✓";color:#e6b542}
#tab-finance .finance-smart-hint{display:block!important;margin-top:4px;color:#806b39!important;font-size:6px!important}
.finance-smart-panel{margin:10px 0 14px;border:1px solid #4d3c19;border-radius:12px;background:linear-gradient(145deg,#10100e,#0a0a0a);overflow:hidden}
.finance-smart-panel.hidden{display:none!important}.finance-smart-panel-head{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border-bottom:1px solid #262014}.finance-smart-panel-head>div{display:flex;align-items:center;gap:10px}.finance-smart-panel-head small{display:block;color:#876c2d;font-size:6px}.finance-smart-panel-head h3{margin:4px 0 0;font-size:10px}.finance-smart-panel-head button{border:1px solid #4b3a18;background:#151108;color:#e5ad22;border-radius:8px;padding:7px 9px;font-size:7px;font-weight:900}.finance-smart-panel-body{padding:12px}.finance-kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.finance-kpi-grid>div{padding:11px;border:1px solid #242424;border-radius:9px;background:#0d0d0d}.finance-kpi-grid small{display:block;color:#777;font-size:6px}.finance-kpi-grid b{display:block;margin-top:5px;font-size:12px}.finance-kpi-grid span{display:block;margin-top:3px;color:#716342;font-size:6px}@media(max-width:760px){.finance-kpi-grid{grid-template-columns:1fr 1fr}}

/* V5.31.2 — Finance Smart 6/6 */
#tab-finance .finance-smart-card.smart-active .finance-smart-hint{color:#d4a63a!important}
#tab-finance .finance-smart-card.smart-active:after{content:"✓"!important;color:#e6b542!important}
.finance-smart-breakdown{margin-top:10px;border:1px solid #232323;border-radius:9px;background:#0b0b0b;overflow:hidden}
.finance-breakdown-row{padding:9px 10px;border-bottom:1px solid #1d1d1d}
.finance-breakdown-row:last-child{border-bottom:0}
.finance-breakdown-row>div:first-child{display:flex;justify-content:space-between;gap:10px}
.finance-breakdown-row span,.finance-breakdown-row b{font-size:7px}

/* V5.32 — Dashboard Command Center */
.dashboard-command-center{
  margin:10px 0 12px;
  border:1px solid #2d2618;
  border-radius:12px;
  background:linear-gradient(145deg,#10100e,#0a0a0a);
  overflow:hidden
}
.command-center-head{
  display:flex;justify-content:space-between;align-items:center;
  gap:10px;padding:11px 13px;border-bottom:1px solid #242015
}
.command-center-head small{display:block;color:#8b6e2d;font-size:6px;letter-spacing:.13em}
.command-center-head h3{margin:3px 0 0;font-size:9px;color:#e7dfce}
.command-center-head>span{font-size:6px;color:#9c854d;border:1px solid #3b321f;border-radius:99px;padding:4px 7px}
.command-center-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:9px}
.command-center-item{
  display:grid;grid-template-columns:31px 1fr auto;gap:8px;align-items:center;
  text-align:left;border:1px solid #262626;border-radius:9px;background:#0c0c0c;color:#ddd;
  padding:10px;cursor:pointer;transition:transform .14s,border-color .14s,background .14s
}
.command-center-item:hover{transform:translateY(-1px);border-color:#5a471d;background:#12100b}
.command-center-item.hot{border-color:#654e1d;background:linear-gradient(135deg,#171207,#0c0c0c)}
.command-center-item>span{font-size:17px}
.command-center-item b{display:block;font-size:7px}
.command-center-item small{display:block;margin-top:3px;color:#777;font-size:6px}
.command-center-item strong{color:#b58d31;font-size:10px}
.command-center-clear{
  display:flex;align-items:center;gap:10px;padding:14px
}
.command-center-clear>span{
  width:34px;height:34px;display:grid;place-items:center;border-radius:50%;
  background:#102417;border:1px solid #244b31;color:#74c991;font-weight:900
}
.command-center-clear small{display:block;color:#607b69;font-size:6px;letter-spacing:.12em}
.command-center-clear b{display:block;margin-top:3px;font-size:9px}
.command-center-clear p{margin:3px 0 0;color:#666;font-size:6px}

.dashboard-command-card{cursor:pointer;position:relative}
.dashboard-command-card:after{content:"→";position:absolute;right:9px;top:10px;color:#8e6f2b;font-size:9px}
.dashboard-command-card:hover{border-color:#5e491d!important;background:#10100e!important}

.order-operational-actions{
  display:flex;flex-wrap:wrap;gap:6px;
  padding:9px;margin-bottom:10px;
  border:1px solid #2d2618;border-radius:9px;background:#0d0c09
}

@media(max-width:900px){.command-center-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.command-center-grid{grid-template-columns:1fr}}

/* V5.33 — Stage 1 fixes */
.dashboard-command-center.command-center-loading{visibility:hidden;min-height:54px}
.dashboard-context-return{
  position:fixed;right:18px;bottom:18px;z-index:360;
  display:flex;align-items:center;gap:12px;padding:8px 9px 8px 11px;
  background:rgba(13,12,9,.96);border:1px solid #59451c;border-radius:11px;
  box-shadow:0 10px 35px rgba(0,0,0,.45);backdrop-filter:blur(8px)
}
.dashboard-context-return.hidden{display:none!important}
.dashboard-context-return>div{display:flex;align-items:center;gap:8px}
.dashboard-context-return>div>span{color:#ba9134}
.dashboard-context-return small{display:block;color:#826b38;font-size:5px;letter-spacing:.12em}
.dashboard-context-return b{display:block;color:#ddd;font-size:7px;margin-top:2px}
.dashboard-context-return button{
  border:1px solid #4f3e1c;background:#171208;color:#e3ae31;border-radius:8px;
  padding:8px 10px;font-size:6px;font-weight:1000;cursor:pointer
}

/* V5.33 — Global Search */
.global-search-trigger{
  border:1px solid #373226;background:#10100d;color:#cdb66f;border-radius:9px;
  padding:9px 10px;display:inline-flex;align-items:center;gap:7px;font-size:7px;
  font-weight:900;cursor:pointer
}
.global-search-trigger kbd{
  border:1px solid #3c3527;background:#171510;color:#8b7a52;border-radius:5px;
  padding:2px 5px;font-size:6px;font-family:inherit
}
.global-search-modal{
  position:fixed;inset:0;z-index:500;background:rgba(0,0,0,.76);
  backdrop-filter:blur(6px);display:flex;justify-content:center;align-items:flex-start;padding-top:9vh
}
.global-search-modal.hidden{display:none!important}
.global-search-shell{
  width:min(720px,92vw);max-height:76vh;overflow:hidden;
  background:#0c0c0b;border:1px solid #57451d;border-radius:14px;
  box-shadow:0 30px 100px rgba(0,0,0,.78)
}
.global-search-input-wrap{
  display:grid;grid-template-columns:26px 1fr auto;align-items:center;gap:8px;
  padding:12px;border-bottom:1px solid #272318;background:#11100d
}
.global-search-input-wrap>span{font-size:18px;color:#c4962d}
.global-search-input-wrap input{
  width:100%;border:0!important;background:transparent!important;color:#eee!important;
  font-size:13px!important;outline:0!important
}
.global-search-input-wrap button{
  border:1px solid #393328;background:#15130f;color:#897a56;border-radius:6px;
  padding:5px 7px;font-size:6px;cursor:pointer
}
.global-search-results{max-height:60vh;overflow:auto;padding:7px}
.global-search-result{
  width:100%;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;
  text-align:left;border:1px solid transparent;background:transparent;color:#ddd;
  border-radius:9px;padding:9px;cursor:pointer
}
.global-search-result:hover{background:#141108;border-color:#4a3a1b}
.global-search-result>span{font-size:18px}
.global-search-result small{display:block;color:#8b7138;font-size:5px;letter-spacing:.09em}
.global-search-result b{display:block;margin-top:2px;font-size:8px}
.global-search-result p{margin:3px 0 0;color:#707070;font-size:6px}
.global-search-result strong{color:#a98532}
.global-search-empty{min-height:180px;display:grid;place-items:center;align-content:center;text-align:center;color:#777}
.global-search-empty>span{font-size:24px;color:#6d5726}.global-search-empty b{font-size:9px;margin-top:7px}.global-search-empty small{font-size:6px;margin-top:4px}
.global-search-open{overflow:hidden}

/* Client context bridge */
.client-context-bridge{
  display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:8px 0 10px
}
.client-context-bridge button{
  display:grid;grid-template-columns:25px 1fr auto;align-items:center;gap:7px;
  text-align:left;border:1px solid #2d281d;background:#0e0d0a;color:#ddd;
  border-radius:8px;padding:8px;cursor:pointer
}
.client-context-bridge button:hover:not(:disabled){border-color:#665020;background:#141108}
.client-context-bridge button:disabled{opacity:.45;cursor:default}
.client-context-bridge span{font-size:14px}.client-context-bridge small{display:block;color:#77663d;font-size:5px}.client-context-bridge b{display:block;margin-top:3px;font-size:6px}.client-context-bridge strong{color:#a88430}

@media(max-width:720px){
  .client-context-bridge{grid-template-columns:1fr}
  .dashboard-context-return{left:10px;right:10px;bottom:10px;justify-content:space-between}
}

/* V5.34 — Stage 2 polish */
#dashboardCommandCenter.hidden{display:none!important}
.dashboard-context-return{display:none!important}

.admin-top-actions #globalSearchTrigger{
  order:-1;
  min-width:118px;
  justify-content:center;
  height:100%;
}
.global-search-result.selected{
  background:#171207!important;
  border-color:#735820!important;
}
.global-search-summary{
  display:flex;justify-content:space-between;gap:10px;
  padding:6px 9px;color:#8e7337;border-bottom:1px solid #1e1b14;
  font-size:6px
}
.global-search-summary small{color:#666}

.order-control-bar{
  display:grid!important;
  grid-template-columns:minmax(260px,1fr) auto;
  align-items:center;gap:10px;
  border:1px solid #29251b!important;
  background:#0d0d0b!important;
  border-radius:10px!important;
  padding:8px!important;
  margin:10px 0!important
}
.admin-order-search input{
  width:100%!important;
  min-height:36px!important;
  border:0!important;
  background:#111!important;
  border-radius:8px!important
}
.order-search-meta{
  display:flex;align-items:center;gap:8px;
  color:#8a784f;font-size:6px;white-space:nowrap
}
.order-search-meta small{color:#5f5f5f}
.order-search-meta button{
  border:1px solid #46381d;background:#151108;color:#dcaa35;
  border-radius:7px;padding:6px 8px;font-size:6px;font-weight:900;cursor:pointer
}

/* Stock Intelligence */
.stock-intelligence-panel{
  margin:10px 0;border:1px solid #342b1b;border-radius:11px;
  background:linear-gradient(145deg,#10100e,#0a0a0a);overflow:hidden
}
.stock-intel-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:11px 13px;border-bottom:1px solid #242015
}
.stock-intel-head small{display:block;color:#886c2c;font-size:6px;letter-spacing:.12em}
.stock-intel-head h3{margin:3px 0 0;font-size:9px}
.stock-intel-head>span{font-size:6px;color:#a58b4b}
.stock-intel-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:9px}
.stock-intel-kpis>*,.stock-intel-kpis button{
  text-align:left;border:1px solid #242424;background:#0d0d0d;color:#ddd;
  border-radius:8px;padding:9px
}
.stock-intel-kpis button{cursor:pointer}
.stock-intel-kpis button:hover{border-color:#5b471e;background:#141108}
.stock-intel-kpis small{display:block;color:#737373;font-size:6px}
.stock-intel-kpis b{display:block;margin-top:4px;font-size:12px}
.stock-intel-kpis span{display:block;margin-top:2px;color:#6f613f;font-size:5px}
.stock-intel-list{border-top:1px solid #242015}
.stock-intel-row{
  display:grid;grid-template-columns:72px 1fr auto auto;align-items:center;gap:9px;
  padding:8px 10px;border-bottom:1px solid #1d1d1d
}
.stock-intel-row:last-child{border-bottom:0}
.stock-intel-row b{font-size:7px}.stock-intel-row small{display:block;margin-top:3px;color:#686868;font-size:6px}
.stock-intel-row strong{font-size:8px;color:#d3a84c}
.stock-intel-row button{border:1px solid #3c321d;background:#111;color:#cba343;border-radius:6px;padding:6px 7px;font-size:6px;cursor:pointer}
.stock-health{font-size:5px;font-weight:900;padding:4px 5px;border-radius:5px;text-align:center}
.stock-health.critical{background:#321516;color:#f18f8f}
.stock-health.low{background:#30270f;color:#e4bc55}
.stock-health.healthy{background:#112719;color:#78c990}

/* Product quick actions */
.product-more-action{
  min-width:34px!important;
  font-size:12px!important;
  letter-spacing:1px!important;
  border-color:#51401e!important;color:#d2a641!important
}
.product-quick-insight{
  margin:8px 0 10px;border:1px solid #4d3c19;border-radius:11px;
  background:linear-gradient(145deg,#11100d,#0a0a0a);overflow:hidden
}
.product-quick-insight-head{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  padding:11px 13px;border-bottom:1px solid #242015
}
.product-quick-insight-head small{display:block;color:#856b31;font-size:6px}
.product-quick-insight-head h3{margin:3px 0 0;font-size:10px}
.product-quick-insight-head button{border:1px solid #44361a;background:#151108;color:#dba72c;border-radius:7px;padding:6px 8px;font-size:6px}
.product-quick-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;padding:9px}
.product-quick-kpis>div{border:1px solid #242424;background:#0d0d0d;border-radius:8px;padding:9px}
.product-quick-kpis small{display:block;color:#777;font-size:5px}.product-quick-kpis b{display:block;margin-top:4px;font-size:10px}.product-quick-kpis span{display:block;margin-top:3px;color:#6e613f;font-size:5px}
.product-quick-actions-row{display:flex;gap:6px;padding:0 9px 9px;flex-wrap:wrap}
.product-quick-toast{
  position:fixed;left:50%;bottom:24px;transform:translate(-50%,15px);
  z-index:550;background:#131109;border:1px solid #59451d;color:#dbae3c;
  border-radius:8px;padding:8px 11px;font-size:7px;opacity:0;pointer-events:none;transition:.18s
}
.product-quick-toast.on{opacity:1;transform:translate(-50%,0)}

@media(max-width:850px){
  .stock-intel-kpis{grid-template-columns:1fr 1fr}
  .stock-intel-row{grid-template-columns:65px 1fr auto}
  .stock-intel-row button{grid-column:2/4}
  .product-quick-kpis{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .admin-top-actions #globalSearchTrigger span,.admin-top-actions #globalSearchTrigger kbd{display:none}
  .admin-top-actions #globalSearchTrigger{min-width:40px}
  .order-control-bar{grid-template-columns:1fr}
}

/* V5.35 — Global Search contextual */
#globalSearchTrigger.compact-only{
  width:34px!important;min-width:34px!important;padding:8px!important
}
#globalSearchTrigger.compact-only span,
#globalSearchTrigger.compact-only kbd{display:none!important}

/* Product kebab menu */
#tab-products .product-actions{position:relative;overflow:visible!important}
#tab-products .product-action-menu{
  display:none;position:absolute;right:0;top:100%;z-index:80;
  min-width:155px;padding:5px;background:#0e0d0a;border:1px solid #55431d;
  border-radius:9px;box-shadow:0 15px 35px rgba(0,0,0,.55)
}
#tab-products .product-action-menu.open{display:grid;gap:4px}
#tab-products .product-action-menu .menu-action-item{
  display:block!important;width:100%!important;text-align:left!important;
  background:#111!important;border:1px solid #26231b!important;color:#cfc4a4!important;
  border-radius:6px!important;padding:7px 8px!important;font-size:6px!important;
  text-decoration:none!important
}
#tab-products .product-action-menu .menu-action-item:hover{
  background:#19150c!important;border-color:#5b481e!important;color:#e2b44a!important
}
#tab-products .product-actions>.menu-action-item{display:none!important}

/* Finance comparison */
.finance-comparison-panel{
  margin:10px 0;border:1px solid #332b1b;border-radius:11px;
  background:linear-gradient(145deg,#10100e,#0a0a0a);overflow:hidden
}
.finance-compare-head{
  display:flex;justify-content:space-between;align-items:center;padding:10px 12px;
  border-bottom:1px solid #242015
}
.finance-compare-head small{display:block;color:#866b2d;font-size:6px;letter-spacing:.12em}
.finance-compare-head h3{margin:3px 0 0;font-size:9px}
.finance-compare-head>span{font-size:6px;color:#776a49}
.finance-compare-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:9px}
.finance-compare-grid>div{border:1px solid #242424;background:#0d0d0d;border-radius:8px;padding:9px}
.finance-compare-grid small{display:block;color:#777;font-size:6px}
.finance-compare-grid b{display:block;margin-top:4px;font-size:11px}
.finance-delta{display:block;margin-top:5px;font-size:5px}
.finance-delta.up{color:#6ac28a}.finance-delta.down{color:#db7d7d}.finance-delta.flat{color:#8b8069}

/* Report insights */
.report-auto-insights{
  margin:10px 0;border:1px solid #342b1b;border-radius:11px;
  background:linear-gradient(145deg,#10100e,#0a0a0a);overflow:hidden
}
.report-insight-head{padding:10px 12px;border-bottom:1px solid #242015}
.report-insight-head small{display:block;color:#856b2e;font-size:6px;letter-spacing:.12em}
.report-insight-head h3{margin:3px 0 0;font-size:9px}
.report-insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:9px}
.report-insight-grid>div{
  border:1px solid #25231c;background:#0d0d0d;border-radius:8px;
  padding:10px;color:#bfb59a;font-size:7px;line-height:1.5
}
.report-insight-empty{padding:18px;text-align:center;color:#666;font-size:7px}

/* Empty states */
.pro-empty-state{
  min-height:110px!important;display:grid!important;place-items:center!important;
  align-content:center!important;text-align:center!important;
  border:1px dashed #28251d!important;border-radius:9px!important;
  background:#0b0b0a!important;color:#6d685d!important;padding:14px!important
}

/* Order search */
.order-search-meta{min-width:220px;justify-content:flex-end}

/* Responsive */
@media(max-width:850px){
  .finance-compare-grid{grid-template-columns:1fr 1fr}
  .report-insight-grid{grid-template-columns:1fr}
}

/* V5.36 — Pedido inteiro clicável e contexto visual consistente */
#tab-orders .order-card.order-card-openable{cursor:pointer;transition:border-color .14s,background .14s,transform .14s}
#tab-orders .order-card.order-card-openable:hover{border-color:#5e491d!important;background:#10100e!important;transform:translateY(-1px)}
#tab-orders .order-card.order-card-openable:focus-visible{outline:1px solid #b98c25;outline-offset:2px}
#tab-orders .order-card.order-card-openable .order-card-top h3:after{content:'  ↗';color:#96762c;font-size:7px}
.order-detail-workspace:not(.hidden){z-index:410}

/* V5.37 — Nova Venda Manual: hierarchy & clarity */
.manual-sale-identity{
  margin:9px 0 12px;
  border:1px solid #493a1c;
  border-radius:11px;
  overflow:hidden;
  background:linear-gradient(145deg,#11100d,#0b0b0a)
}
.manual-sale-section-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:10px 12px;border-bottom:1px solid #252116;background:#0f0e0b
}
.manual-sale-section-head>div:first-child{display:flex;align-items:center;gap:9px}
.manual-sale-section-head>div:first-child>span{font-size:17px}
.manual-sale-section-head small{display:block;color:#80672e;font-size:5px;letter-spacing:.13em}
.manual-sale-section-head h3{margin:3px 0 0;font-size:9px;color:#e4dccb}
.manual-sale-section-head>span{font-size:5px;color:#766847}

.manual-mode-badge{
  border:1px solid #3c3424;border-radius:99px;padding:4px 7px!important;
  font-size:5px!important;font-weight:1000
}
.manual-mode-badge.guest{color:#b8a36c;background:#17140d}
.manual-mode-badge.saved{color:#7ccb91;background:#102518;border-color:#254c31}
.manual-mode-badge.new{color:#dfb654;background:#2a220e;border-color:#55451d}

.manual-client-choice{display:grid;grid-template-columns:minmax(220px,.85fr) 1.15fr;gap:8px;padding:10px}
.manual-client-select-wrap{
  border:1px solid #27251e;border-radius:9px;background:#0c0c0c;padding:9px
}
.manual-client-select-wrap label,
.manual-guest-fields label{
  display:block!important;color:#897344!important;font-size:6px!important;font-weight:900
}
.manual-client-select-wrap select{width:100%;margin-top:5px;min-height:36px}
.manual-client-select-wrap>small{display:block;color:#5f5f5f;font-size:5px;margin-top:5px;line-height:1.45}

.manual-selected-client{
  display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:9px;
  border:1px solid #36532c;border-radius:9px;background:linear-gradient(135deg,#101b12,#0c0d0b);
  padding:9px
}
.manual-selected-client.hidden{display:none!important}
.manual-client-avatar{
  width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
  background:#18301d;border:1px solid #31543a;color:#8ed09b;font-size:14px;font-weight:1000
}
.manual-selected-client small{display:block;color:#66856e;font-size:5px}
.manual-selected-client b{display:block;margin-top:3px;font-size:9px}
.manual-selected-client span{display:block;margin-top:3px;color:#777;font-size:6px}
.manual-selected-client button{
  border:1px solid #35422e;background:#0d120e;color:#8db794;border-radius:7px;
  padding:6px 7px;font-size:5px;font-weight:900;cursor:pointer
}

.manual-client-divider{
  position:relative;text-align:center;margin:0 10px;color:#625940;font-size:5px
}
.manual-client-divider:before{
  content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:#211e17
}
.manual-client-divider span{position:relative;background:#0d0c0a;padding:0 7px}

.manual-guest-fields{
  display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:10px
}
.manual-guest-fields.hidden{display:none!important}
.manual-guest-fields>div{
  border:1px solid #24231e;border-radius:8px;background:#0c0c0c;padding:8px
}
.manual-guest-fields input{width:100%;margin-top:5px}

#manualSaveContactMount{padding:0 10px 10px}
#manualSaveContactMount .manual-save-contact{margin:0!important}
#manualSaveContactMount .manual-save-contact.hidden{display:none!important}

.manual-old-label-hidden{display:none!important}

.manual-sale-section{
  margin:11px 0;border:1px solid #302a1c;border-radius:10px;
  overflow:hidden;background:#0c0c0b
}
.manual-sale-section .manual-section-body{padding:9px}

.manual-inline-heading{
  display:flex;align-items:center;gap:8px;
  margin:12px 0 7px;padding:8px 10px;
  border-left:2px solid #765b22;background:#0f0e0b;border-radius:0 7px 7px 0
}
.manual-inline-heading>span{font-size:15px}
.manual-inline-heading small{display:block;color:#755f2d;font-size:5px;letter-spacing:.11em}
.manual-inline-heading b{display:block;margin-top:2px;color:#cbbb95;font-size:7px}

@media(max-width:760px){
  .manual-client-choice{grid-template-columns:1fr}
  .manual-guest-fields{grid-template-columns:1fr}
}

/* V5.37.1 — labels claros na Venda Manual */
.manual-save-customer-label{
  display:grid!important;
  grid-template-columns:18px 1fr!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  padding:9px 10px!important;
  border:1px solid #322b1d!important;
  border-radius:8px!important;
  background:#0d0c0a!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
}
.manual-save-customer-label input{
  width:16px!important;
  height:16px!important;
  margin:0!important;
}
.manual-save-customer-text{
  display:block!important;
  min-width:0!important;
}
.manual-save-customer-text b{
  display:block!important;
  color:#d4aa43!important;
  font-size:6px!important;
  line-height:1.3!important;
}
.manual-save-customer-text small{
  display:block!important;
  color:#69645a!important;
  font-size:5px!important;
  margin-top:3px!important;
  line-height:1.35!important;
}
.manual-origin-label{
  display:block!important;
  color:#897344!important;
  font-size:6px!important;
  font-weight:900!important;
  margin-top:7px!important;
}

/* V5.37.2 — Origem exatamente no padrão dos demais campos */
.manual-orphan-label-hidden{
  display:none!important;
}
.manual-standard-field-label{
  display:block!important;
  color:inherit!important;
  font-size:inherit!important;
  font-weight:inherit!important;
  margin:0!important;
  padding:0!important;
  letter-spacing:inherit!important;
}
/* Anula o estilo menor criado na 37.1 apenas para este campo */
label.manual-standard-field-label + #manualChannel{
  margin-top:0!important;
}

/* V5.38 — Central operacional */
.operation-intelligence{
  margin:10px 0;border:1px solid #3d321c;border-radius:11px;
  background:linear-gradient(145deg,#10100e,#0a0a09);overflow:hidden
}
.op-intel-head{
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  padding:10px 12px;border-bottom:1px solid #252116
}
.op-intel-head small{display:block;color:#856a2d;font-size:5px;letter-spacing:.13em}
.op-intel-head h3{margin:3px 0 0;font-size:9px}
.op-intel-head>span{font-size:5px;color:#8b784c}
.op-action-list{padding:7px}
.op-action{
  display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:9px;
  padding:8px;border:1px solid #24231e;border-radius:8px;background:#0c0c0b;margin-bottom:5px
}
.op-action:last-child{margin-bottom:0}
.op-action>span{font-size:16px}
.op-action b{display:block;font-size:7px}
.op-action small{display:block;margin-top:3px;color:#6c685e;font-size:5px}
.op-action button{
  border:1px solid #3d3422;background:#12100b;color:#caa344;border-radius:6px;
  padding:6px 7px;font-size:5px;font-weight:900;cursor:pointer
}
.op-action.danger{border-left:2px solid #8e3e3e}
.op-action.warn{border-left:2px solid #96772e}
.op-action.gold{border-left:2px solid #b48a2e}
.op-all-good{display:flex;align-items:center;gap:9px;padding:12px;color:#74987a}
.op-all-good>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#102318;border:1px solid #294633}
.op-all-good b{display:block;font-size:7px}.op-all-good small{display:block;margin-top:3px;color:#68706a;font-size:5px}

/* Pedido: ações contextuais */
.order-smart-actions{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-bottom:9px;padding:8px 9px;border:1px solid #493a1b;border-radius:8px;
  background:#11100c
}
.order-smart-actions small{display:block;color:#80682e;font-size:5px}
.order-smart-actions b{display:block;margin-top:2px;font-size:7px}
.order-smart-actions>div:last-child{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.order-smart-actions button{
  border:1px solid #393328;background:#0e0e0c;color:#bca46b;border-radius:6px;
  padding:6px 7px;font-size:5px;font-weight:900;cursor:pointer
}
.order-smart-actions button.gold{border-color:#654e1d;background:#1c1608;color:#e0ad32}

/* Cliente: resumo operacional */
.client-operational-summary{
  display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:8px 0
}
.client-operational-summary>div{
  border:1px solid #28251d;background:#0d0d0b;border-radius:7px;padding:8px
}
.client-operational-summary small{display:block;color:#716543;font-size:5px}
.client-operational-summary b{display:block;margin-top:4px;font-size:7px;color:#d2c7aa}

@media(max-width:760px){
  .op-action{grid-template-columns:28px 1fr}
  .op-action button{grid-column:2}
  .order-smart-actions{align-items:flex-start;flex-direction:column}
  .client-operational-summary{grid-template-columns:1fr 1fr}
}

/* V5.39 — Context back */
.admin-context-back{
  position:fixed;left:50%;bottom:14px;transform:translateX(-50%);
  z-index:420;border:1px solid #5a451c;background:rgba(16,14,9,.96);
  color:#d7aa3c;border-radius:9px;padding:8px 11px;font-size:6px;font-weight:1000;
  box-shadow:0 10px 35px rgba(0,0,0,.45);cursor:pointer
}
.admin-context-back.hidden{display:none!important}

/* Hoje */
.today-pulse{
  margin:10px 0;border:1px solid #30291b;border-radius:11px;
  background:linear-gradient(145deg,#10100e,#0a0a09);overflow:hidden
}
.today-pulse-head{
  display:flex;justify-content:space-between;align-items:center;padding:9px 11px;
  border-bottom:1px solid #242015
}
.today-pulse-head small{display:block;color:#846a2e;font-size:5px;letter-spacing:.12em}
.today-pulse-head h3{margin:3px 0 0;font-size:8px}
.today-pulse-head>span{font-size:5px;color:#746b55}
.today-pulse-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px}
.today-pulse-grid button{
  text-align:left;border:1px solid #24231e;background:#0d0d0c;color:#ddd;
  border-radius:8px;padding:8px;cursor:pointer
}
.today-pulse-grid button:hover{border-color:#5a461d;background:#141108}
.today-pulse-grid small{display:block;color:#746744;font-size:5px}
.today-pulse-grid b{display:block;margin-top:3px;font-size:10px}
.today-pulse-grid span{display:block;margin-top:2px;color:#656159;font-size:5px}

/* Commercial intelligence */
.commercial-intelligence{
  margin:10px 0;border:1px solid #352d1c;border-radius:11px;background:#0c0c0b;overflow:hidden
}
.commercial-intel-head{
  display:flex;justify-content:space-between;align-items:center;padding:10px 12px;
  border-bottom:1px solid #242015
}
.commercial-intel-head small{display:block;color:#876d2d;font-size:5px;letter-spacing:.12em}
.commercial-intel-head h3{margin:3px 0 0;font-size:9px}
.commercial-intel-head>span{font-size:5px;color:#6f6857}
.commercial-intel-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:9px}
.commercial-intel-grid button{
  text-align:left;border:1px solid #25231d;background:#0d0d0c;color:#ddd;
  border-radius:8px;padding:9px;cursor:pointer
}
.commercial-intel-grid button:hover{border-color:#604b1e;background:#151109}
.commercial-intel-grid small{display:block;color:#756745;font-size:5px}
.commercial-intel-grid b{display:block;margin-top:4px;font-size:8px}
.commercial-intel-grid span{display:block;margin-top:3px;color:#6d685e;font-size:5px}
.commercial-watchlist{border-top:1px solid #242015}
.commercial-watchlist>div:not(.buyer-list-head){
  display:grid;grid-template-columns:24px 1fr;gap:7px;padding:7px 10px;border-top:1px solid #1e1d19
}
.commercial-watchlist b{font-size:6px}.commercial-watchlist small{display:block;margin-top:2px;color:#69645a;font-size:5px}

/* Product movement */
.product-movement{
  display:inline-block;margin-left:5px;padding:2px 4px;border-radius:4px;font-size:4px;font-weight:1000
}
.product-movement.hot{background:#10281a;color:#70ca8d}
.product-movement.normal{background:#1f2119;color:#b5b08c}
.product-movement.slow{background:#342815;color:#d4ad52}
.product-movement.new{background:#182233;color:#8eb3da}

/* Client follow-up */
.client-followup-box{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:8px 0;padding:8px 9px;border:1px solid #30291c;border-radius:8px;background:#0e0d0b
}
.client-followup-box small{display:block;color:#756441;font-size:5px}
.client-followup-box b{display:block;margin-top:3px;font-size:6px}
.client-followup-box>div:last-child{display:flex;gap:5px}
.client-followup-box a,.client-followup-box button{
  border:1px solid #40361f;background:#11100c;color:#caa544;border-radius:6px;
  padding:6px 7px;font-size:5px;font-weight:900;text-decoration:none;cursor:pointer
}

/* Finance executive summary */
.finance-executive-summary{
  display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:7px;
  margin:10px 0;padding:8px;border:1px solid #30291b;border-radius:10px;background:#0c0c0b
}
.finance-executive-summary>div{padding:8px;border:1px solid #23221d;border-radius:7px;background:#0e0e0d}
.finance-executive-summary small,.finance-executive-summary span{display:block;color:#736847;font-size:5px}
.finance-executive-summary h3{margin:4px 0 0;font-size:10px;color:#d5ae4a}
.finance-executive-summary b{display:block;margin-top:4px;font-size:8px}

@media(max-width:850px){
  .today-pulse-grid,.commercial-intel-grid,.finance-executive-summary{grid-template-columns:1fr 1fr}
}
@media(max-width:600px){
  .today-pulse-grid,.commercial-intel-grid,.finance-executive-summary{grid-template-columns:1fr}
  .admin-context-back{left:10px;right:10px;transform:none;text-align:center}
  .client-followup-box{align-items:flex-start;flex-direction:column}
}

/* V5.40 — HARD readability and contextual navigation */
#adminContextBack{display:none!important}

.hard-context-back{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0 0 12px;padding:10px 12px;
  border:1px solid #59451e;border-radius:10px;
  background:linear-gradient(135deg,#171208,#0e0e0d)
}
.hard-context-back>div{display:flex;align-items:center;gap:9px}
.hard-context-back>div>span{color:#c49731;font-size:15px}
.hard-context-back small{display:block;color:#967b40;font-size:7px!important;letter-spacing:.1em}
.hard-context-back b{display:block;margin-top:2px;font-size:8px!important;color:#ddd}
.hard-context-back button{
  border:1px solid #5e481d;background:#1a1408;color:#e0ad36;
  border-radius:7px;padding:7px 10px;font-size:7px!important;font-weight:1000;cursor:pointer
}

/* Pulse readability */
.today-pulse-head small,
.today-pulse-grid small,
.today-pulse-grid span,
.op-intel-head small,
.op-action small,
.commercial-intel-head small,
.commercial-intel-grid small,
.commercial-intel-grid span,
.commercial-watchlist small,
.finance-executive-summary small,
.finance-executive-summary span{
  font-size:7px!important;
  line-height:1.35!important
}
.today-pulse-head h3,
.op-intel-head h3,
.commercial-intel-head h3{font-size:11px!important}
.today-pulse-grid b{font-size:13px!important}
.today-pulse-grid button em,
.commercial-intel-grid button em{
  display:block;margin-top:7px;color:#9b7b34;font-size:6px;font-style:normal;font-weight:900
}

/* Commercial intelligence true toggle */
.commercial-intel-grid button{
  position:relative;transition:border-color .14s,background .14s,transform .14s
}
.commercial-intel-grid button:hover{transform:translateY(-1px)}
.commercial-intel-grid button.hard-toggle-active{
  border-color:#b78a25!important;
  background:linear-gradient(135deg,#201808,#10100f)!important
}
.commercial-intel-grid button.hard-toggle-active em{color:#e2ae36!important}
.commercial-intel-grid button.hard-toggle-active:after{
  content:"✓";position:absolute;right:9px;top:8px;color:#e0ad36;font-size:9px
}
.hard-commercial-insight{
  margin:0 9px 10px;border:1px solid #4b3c1d;border-radius:9px;background:#0b0b0a;overflow:hidden
}
.hard-commercial-insight.hidden{display:none!important}
.hard-insight-head{
  display:flex;align-items:center;justify-content:space-between;padding:9px 10px;
  border-bottom:1px solid #292319;background:#100f0c
}
.hard-insight-head small{display:block;color:#8e7339;font-size:7px!important}
.hard-insight-head h3{margin:3px 0 0;font-size:10px!important}
.hard-insight-head button{
  border:1px solid #45381c;background:#151108;color:#d5a63c;border-radius:6px;padding:6px 8px;font-size:7px;cursor:pointer
}
.hard-rank-row{
  width:100%;display:grid;grid-template-columns:28px 1fr auto;gap:9px;align-items:center;
  text-align:left;padding:9px 10px;border:0;border-bottom:1px solid #20201d;
  background:transparent;color:#ddd;cursor:pointer
}
.hard-rank-row.static{cursor:default}
.hard-rank-row:hover:not(.static){background:#131009}
.hard-rank-row em{font-style:normal;color:#a88840;font-size:8px}
.hard-rank-row b{font-size:8px!important}.hard-rank-row small{display:block;margin-top:3px;color:#777;font-size:7px!important}
.hard-rank-row strong{color:#c79e3e;font-size:8px}
.hard-empty{padding:18px;text-align:center;color:#777;font-size:8px}

/* Watchlist specifically was too tiny in video */
.commercial-watchlist .buyer-list-head b{font-size:8px!important}
.commercial-watchlist .buyer-list-head span{font-size:7px!important}
.commercial-watchlist>div:not(.buyer-list-head){
  grid-template-columns:28px 1fr!important;padding:9px 11px!important
}
.commercial-watchlist>div:not(.buyer-list-head)>span{font-size:15px!important}
.commercial-watchlist b{font-size:8px!important}
.commercial-watchlist small{font-size:7px!important;line-height:1.4}

/* General generated-panel readability floor */
.stock-intelligence-panel small,
.product-quick-insight small,
.finance-comparison-panel small,
.report-auto-insights small,
.client-operational-summary small,
.client-followup-box small,
.order-smart-actions small{
  font-size:7px!important;
}
.stock-intelligence-panel b,
.product-quick-insight b,
.client-operational-summary b,
.client-followup-box b,
.order-smart-actions b{
  font-size:8px!important;
}

@media(max-width:760px){
  .hard-context-back{align-items:flex-start}
  .hard-context-back button{white-space:nowrap}
}

/* V5.40.1 — loading state: never show a false movement label */
#tab-products #productRows tr:not([data-movement="1"]) .product-movement{display:none!important}

/* Report deep context remains visually rooted in Reports */
#tab-reports .hard-commercial-insight{scroll-margin-top:12px}

/* V5.41 — Reliable sound state */
#adminSoundBtn.sound-ready{border-color:#2f6140!important;box-shadow:inset 0 0 0 1px rgba(80,175,105,.12)}
.admin-notif-center-btn{position:relative!important}
.admin-notif-center-btn span{
  position:absolute;right:-5px;top:-6px;min-width:15px;height:15px;padding:0 3px;
  display:grid;place-items:center;border-radius:99px;background:#b83434;color:white;
  border:2px solid #0c0c0c;font-size:6px;font-weight:1000
}
.admin-notif-center-btn span.hidden{display:none!important}

.admin-notif-center{
  position:fixed;right:18px;top:72px;z-index:510;
  width:min(390px,calc(100vw - 28px));max-height:72vh;
  display:flex;flex-direction:column;
  background:#0b0b0a;border:1px solid #55431d;border-radius:12px;
  box-shadow:0 24px 70px rgba(0,0,0,.68);overflow:hidden
}
.admin-notif-center.hidden{display:none!important}
.admin-notif-center-head{
  display:flex;align-items:center;justify-content:space-between;padding:11px 12px;
  border-bottom:1px solid #282218;background:#11100d
}
.admin-notif-center-head small{display:block;color:#92763a;font-size:7px;letter-spacing:.12em}
.admin-notif-center-head h3{margin:3px 0 0;font-size:11px}
.admin-notif-center-head>button{
  border:1px solid #41351c;background:#161209;color:#d7aa3e;border-radius:6px;padding:5px 7px;cursor:pointer
}
.admin-notif-center-tools{display:flex;gap:5px;padding:7px;border-bottom:1px solid #211f19}
.admin-notif-center-tools button{
  border:1px solid #302b20;background:#0f0f0d;color:#988250;border-radius:6px;padding:6px 7px;font-size:6px;font-weight:900;cursor:pointer
}
#adminNotifCenterList{overflow:auto;padding:6px}
.admin-notif-item{
  width:100%;display:grid;grid-template-columns:31px 1fr auto;gap:8px;align-items:center;
  text-align:left;border:1px solid transparent;border-bottom-color:#1f1f1c;
  background:transparent;color:#ddd;padding:9px 8px;cursor:pointer;border-radius:7px
}
.admin-notif-item:hover{background:#141108;border-color:#45381d}
.admin-notif-item.unread{background:#121008;border-left:2px solid #b88d30}
.admin-notif-item>span{font-size:17px}
.admin-notif-item b{display:block;font-size:8px}
.admin-notif-item p{margin:3px 0;color:#777;font-size:7px;line-height:1.35}
.admin-notif-item small{display:block;color:#5e5b52;font-size:6px}
.admin-notif-item strong{color:#aa8737}
.admin-notif-empty{min-height:150px;display:grid;place-items:center;align-content:center;text-align:center;color:#6c726b}
.admin-notif-empty>span{font-size:22px;color:#6fa27a}.admin-notif-empty b{margin-top:6px;font-size:8px}.admin-notif-empty small{margin-top:3px;font-size:7px}

@media(max-width:650px){
  .admin-notif-center{right:8px;left:8px;top:64px;width:auto}
}

/* V5.41.1 — audio diagnostics */
#adminSoundBtn.sound-ready{
  border-color:#39724b!important;
  background:#101b13!important;
  color:#85d09a!important
}
#adminSoundBtn.sound-blocked{
  border-color:#7b3b3b!important;
  background:#211010!important;
  color:#e28a8a!important
}

/* V5.42 — Command Center */
.tc-command-btn{
  display:inline-flex!important;align-items:center;gap:5px;
  border:1px solid #5a451c!important;background:#171208!important;color:#d6a63a!important;
  border-radius:7px!important;padding:6px 8px!important;font-size:7px!important;font-weight:1000!important;cursor:pointer
}
.tc-command-btn span{font-size:6px}
.tc-command-center{
  position:fixed;inset:0;z-index:650;background:rgba(0,0,0,.74);
  backdrop-filter:blur(8px);display:grid;place-items:center;padding:18px
}
.tc-command-center.hidden{display:none!important}
.tc-command-shell{
  width:min(920px,96vw);max-height:88vh;overflow:auto;
  border:1px solid #5c471d;border-radius:15px;background:#0a0a09;
  box-shadow:0 35px 110px rgba(0,0,0,.82)
}
.tc-command-head{
  display:flex;justify-content:space-between;align-items:center;padding:15px 17px;
  border-bottom:1px solid #2d271a;background:linear-gradient(135deg,#171207,#0c0c0b)
}
.tc-command-head small{display:block;color:#9e7d35;font-size:7px;letter-spacing:.14em}
.tc-command-head h2{margin:4px 0 2px;font-size:16px}
.tc-command-head span{color:#706b60;font-size:7px}
.tc-command-head button{
  border:1px solid #4e3e20;background:#171208;color:#d5a538;border-radius:7px;padding:7px 9px;font-size:7px;font-weight:1000;cursor:pointer
}
.tc-command-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;padding:10px}
.tc-command-kpis button{
  text-align:left;border:1px solid #27251e;background:#0e0e0c;color:#ddd;border-radius:9px;padding:10px;cursor:pointer
}
.tc-command-kpis button:hover{border-color:#5b471f;background:#151108}
.tc-command-kpis small{display:block;color:#847040;font-size:7px}
.tc-command-kpis b{display:block;margin-top:5px;font-size:13px}
.tc-command-kpis span{display:block;margin-top:3px;color:#6f6a60;font-size:7px}
.tc-command-body{display:grid;grid-template-columns:1.15fr .85fr;gap:9px;padding:0 10px 12px}
.tc-command-body>section{border:1px solid #27241d;border-radius:10px;background:#0d0d0c;overflow:hidden}
.tc-command-section-title{display:flex;justify-content:space-between;align-items:center;padding:10px;border-bottom:1px solid #252219}
.tc-command-section-title small{display:block;color:#8d7136;font-size:7px}
.tc-command-section-title h3{margin:3px 0 0;font-size:10px}
.tc-command-section-title>span{display:grid;place-items:center;min-width:24px;height:24px;border-radius:99px;background:#251b0a;color:#d3a23a;font-size:8px;font-weight:1000}
.tc-command-priorities{padding:6px}
.tc-command-priorities button{
  width:100%;display:grid;grid-template-columns:32px 1fr auto;gap:8px;align-items:center;text-align:left;
  border:1px solid #28251d;background:#0e0e0d;color:#ddd;border-radius:8px;padding:9px;margin-bottom:5px;cursor:pointer
}
.tc-command-priorities button.high{border-left:2px solid #b85a42}
.tc-command-priorities button.medium{border-left:2px solid #b88a35}
.tc-command-priorities button.ok{border-left:2px solid #477657;cursor:default}
.tc-command-priorities button>span{font-size:17px}
.tc-command-priorities b{display:block;font-size:8px}
.tc-command-priorities small{display:block;margin-top:3px;color:#777;font-size:7px}
.tc-command-priorities strong{color:#c99e3d;font-size:7px}
.tc-command-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:7px}
.tc-command-actions button{
  text-align:left;border:1px solid #28251d;background:#0e0e0d;color:#ddd;border-radius:8px;padding:10px;cursor:pointer
}
.tc-command-actions button:hover{border-color:#59451e;background:#151108}
.tc-command-actions span{display:block;font-size:17px}.tc-command-actions b{display:block;margin-top:6px;font-size:8px}.tc-command-actions small{display:block;margin-top:3px;color:#777;font-size:7px}

/* Next best action */
.next-best-action{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin:9px 0;padding:10px 12px;border:1px solid #3a321f;border-radius:10px;background:#0e0d0b
}
.next-best-action.high{border-left:3px solid #a9523d}
.next-best-action.medium{border-left:3px solid #b28a39}
.next-best-action.ok{border-left:3px solid #4d7959}
.next-best-action small{display:block;color:#897039;font-size:7px}
.next-best-action h3{margin:4px 0 2px;font-size:9px}
.next-best-action span{color:#716d64;font-size:7px}
.next-best-action button{
  white-space:nowrap;border:1px solid #55431e;background:#171208;color:#d5a43a;border-radius:7px;padding:7px 9px;font-size:7px;font-weight:1000;cursor:pointer
}

/* Notification grouping */
.notif-premium-group{margin-bottom:7px}
.notif-premium-label{
  display:flex;justify-content:space-between;align-items:center;padding:6px 8px;
  border-bottom:1px solid #28241a;background:#0f0e0b
}
.notif-premium-label b{font-size:7px;color:#a88740}
.notif-premium-label span{font-size:6px;color:#68645b}

@media(max-width:760px){
  .tc-command-kpis{grid-template-columns:1fr 1fr}
  .tc-command-body{grid-template-columns:1fr}
}
@media(max-width:520px){
  .tc-command-kpis,.tc-command-actions{grid-template-columns:1fr}
  .tc-command-head{align-items:flex-start}
  .next-best-action{align-items:flex-start;flex-direction:column}
}

/* V5.43 — Stage 9 */
.tc-recent-actions,.tc-operation-health{margin:9px 0}
.tc-recent-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.tc-recent-head small{display:block;color:#806b3d;font-size:7px}.tc-recent-head h3{margin:3px 0 0;font-size:9px}
.tc-recent-head button{border:0;background:transparent;color:#75633c;font-size:6px;font-weight:900;cursor:pointer}
.tc-recent-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.tc-recent-grid>button{
  display:grid;grid-template-columns:27px 1fr auto;gap:7px;align-items:center;text-align:left;
  border:1px solid #29261e;background:#0d0d0c;color:#ddd;border-radius:8px;padding:8px;cursor:pointer
}
.tc-recent-grid>button:hover{border-color:#59451e;background:#151108}
.tc-recent-grid>button>span{font-size:15px}.tc-recent-grid b{display:block;font-size:7px}.tc-recent-grid small{display:block;margin-top:2px;color:#716d64;font-size:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tc-recent-grid strong{color:#9d7b35;font-size:7px}
.tc-recent-empty{border:1px dashed #2e2a21;border-radius:8px;padding:11px;color:#656159;font-size:7px}

.tc-operation-health>button{
  width:100%;display:grid;grid-template-columns:55px 1fr auto;align-items:center;gap:10px;text-align:left;
  border:1px solid #302b20;background:linear-gradient(110deg,#0d0d0b,#121008);color:#ddd;border-radius:10px;padding:10px;cursor:pointer
}
.tc-health-score{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;align-content:center;border:2px solid #80662f;background:#11100c}
.tc-health-score b{font-size:13px}.tc-health-score small{font-size:6px;color:#82764f}
.tc-operation-health button>div:nth-child(2)>small{display:block;color:#8d7138;font-size:7px}.tc-operation-health h3{margin:3px 0;font-size:9px}.tc-operation-health span{color:#716c62;font-size:7px}.tc-operation-health strong{color:#c29739;font-size:7px}

.tc-smart-empty{min-height:100px;display:grid;place-items:center;align-content:center;text-align:center;padding:16px;color:#6e6b63}
.tc-smart-empty>span{font-size:20px}.tc-smart-empty>b{margin-top:6px;font-size:8px;color:#aaa}.tc-smart-empty>small{margin-top:3px;font-size:7px;max-width:300px;line-height:1.45}
.tc-smart-empty>button{margin-top:9px;border:1px solid #51401d;background:#171208;color:#cda03d;border-radius:6px;padding:6px 8px;font-size:7px;font-weight:1000;cursor:pointer}

.tc-command-queue{margin:0 10px 12px;border:1px solid #29251c;border-radius:10px;background:#0d0d0c;overflow:hidden}
.tc-command-queue-list{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:6px}
.tc-command-queue-list button{
  display:grid;grid-template-columns:28px 1fr auto;gap:7px;align-items:center;text-align:left;
  border:1px solid #28251d;background:#0e0e0d;color:#ddd;border-radius:7px;padding:8px;cursor:pointer
}
.tc-command-queue-list button:hover{border-color:#59451e;background:#151108}
.tc-command-queue-list button>span{font-size:15px}.tc-command-queue-list b{display:block;font-size:7px}.tc-command-queue-list small{display:block;margin-top:2px;color:#706b62;font-size:6px}.tc-command-queue-list strong{color:#c0973b;font-size:6px}

@media(max-width:760px){
  .tc-recent-grid{grid-template-columns:1fr 1fr}
  .tc-command-queue-list{grid-template-columns:1fr}
}
@media(max-width:500px){
  .tc-recent-grid{grid-template-columns:1fr}
  .tc-operation-health>button{grid-template-columns:48px 1fr}.tc-operation-health strong{grid-column:2}
}

/* V5.44 — HARD CLEANUP */
.v544-retired-block{display:none!important}

/* Global readability floor for new operational areas */
#tab-reports .report-auto-insights,
#tab-reports .commercial-intelligence,
#tab-finance .finance-v516-grid,
#tab-products .product-movement,
#tab-stock .stock-intelligence-panel{
  --v544-small:8px;
}
#tab-reports .report-auto-insights small,
#tab-reports .commercial-intelligence small,
#tab-finance .finance-v516-grid small,
#tab-stock .stock-intelligence-panel small{
  font-size:8px!important;line-height:1.45!important
}

/* Product movement labels */
#tab-products .product-movement{
  font-size:7px!important;
  padding:3px 6px!important;
  margin-left:7px!important;
  line-height:1.2!important;
  letter-spacing:.02em
}

/* Reports watchlist — fix vertical/narrow text */
.commercial-watchlist .v544-watch-row{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px 12px!important;
}
.commercial-watchlist .v544-watch-row>div{
  min-width:0!important;width:100%!important;display:block!important
}
.commercial-watchlist .v544-watch-row>b,
.commercial-watchlist .v544-watch-row>div>b{
  display:block!important;font-size:9px!important;line-height:1.3!important;
  white-space:normal!important;word-break:normal!important
}
.commercial-watchlist .v544-watch-row small{
  display:block!important;margin-top:3px!important;font-size:8px!important;line-height:1.4!important;
  white-space:normal!important;word-break:normal!important;max-width:none!important;width:auto!important
}
.commercial-watchlist .buyer-list-head b{font-size:9px!important}
.commercial-watchlist .buyer-list-head span{font-size:8px!important}

/* Finance — readable + inline expansion */
#tab-finance .finance-v516-cards .metric small{font-size:8px!important}
#tab-finance .finance-v516-cards .metric b{font-size:16px!important}
#tab-finance .finance-v516-cards .metric span{font-size:8px!important}
#tab-finance .finance-v516-grid{transition:.18s}
#tab-finance .finance-v516-grid>.finance-smart-panel-v544{
  cursor:pointer;position:relative;transition:border-color .15s,background .15s,transform .15s
}
#tab-finance .finance-v516-grid>.finance-smart-panel-v544:hover{
  border-color:#5a461f;background:#11100d
}
#tab-finance .finance-v516-grid>.finance-smart-panel-v544:after{
  content:"⛶";position:absolute;right:11px;top:11px;color:#846a2e;font-size:10px
}
#tab-finance .finance-v516-grid>.finance-panel-expanded{
  grid-column:1/-1!important;
  border-color:#856724!important;
  background:linear-gradient(135deg,#151107,#0d0d0c)!important
}
#tab-finance .finance-v516-grid>.finance-panel-expanded:after{content:"✓"}
#tab-finance .finance-panel-expanded .report-line,
#tab-finance .finance-panel-expanded .payment-list>div{
  padding:10px 8px!important
}
#tab-finance .finance-panel-expanded .report-line span,
#tab-finance .finance-panel-expanded .payment-list span{font-size:9px!important}
#tab-finance .finance-panel-expanded .report-line b,
#tab-finance .finance-panel-expanded .payment-list b{font-size:10px!important}
.finance-panel-toggle-hint{
  margin-left:auto!important;border:1px solid #50401e!important;background:#171208!important;
  color:#d2a43c!important;border-radius:6px!important;padding:5px 7px!important;
  font-size:7px!important;font-weight:1000!important;cursor:pointer!important
}

/* Stock compact actions */
.stock-actions-v544{position:relative!important;white-space:nowrap}
.stock-actions-v544>.stock-menu-item{display:none!important}
.stock-more-btn{
  border:1px solid #51401e!important;background:#151108!important;color:#d0a13b!important;
  border-radius:6px!important;min-width:34px!important;padding:5px 7px!important;font-weight:1000!important;cursor:pointer!important
}
.stock-more-menu{
  display:none;position:absolute;right:0;top:calc(100% + 4px);z-index:100;
  min-width:150px;padding:5px;background:#0c0c0b;border:1px solid #58451d;
  border-radius:8px;box-shadow:0 18px 45px rgba(0,0,0,.7)
}
.stock-more-menu.open{display:grid;gap:4px}
.stock-more-menu>.stock-menu-item{
  display:block!important;width:100%!important;text-align:left!important;
  border:1px solid #28251d!important;background:#11100d!important;color:#cdb87e!important;
  border-radius:6px!important;padding:7px 8px!important;font-size:7px!important
}
.stock-more-menu>.stock-menu-item:hover{background:#1a150a!important;border-color:#624d20!important}

/* Atendimento toolbar */
.chat-manage-tools{
  display:flex;gap:6px;align-items:center;margin-left:auto;flex-wrap:wrap
}
.chat-manage-tools button{
  border:1px solid #3c3423;background:#11100d;color:#bba467;border-radius:7px;
  padding:7px 9px;font-size:7px;font-weight:1000;cursor:pointer
}
.chat-manage-tools button.active{border-color:#7a6025;background:#201807;color:#dfad38}
.chat-manage-tools button.danger{border-color:#653535;color:#df8f8f;background:#1c1010}
.chat-manage-tools button.hidden{display:none!important}
.chat-manage-tools button:disabled{opacity:.45;cursor:default}

/* Selection mode */
#adminChatList .admin-chat-item.manage-mode{position:relative;padding-left:38px!important}
#adminChatList .admin-chat-item.manage-mode:before{
  content:"";position:absolute;left:11px;top:50%;transform:translateY(-50%);
  width:14px;height:14px;border:1px solid #756036;border-radius:4px;background:#0d0d0c
}
#adminChatList .admin-chat-item.chat-selected{
  border-color:#9a762c!important;background:#181307!important
}
#adminChatList .admin-chat-item.chat-selected:before{
  content:"✓";display:grid;place-items:center;color:#e0ae37;font-size:9px;font-weight:1000
}

/* Active chat actions compact */
.admin-chat-room-actions{overflow:visible!important}
.chat-action-more{position:relative;display:inline-block}
.chat-more-trigger{min-width:34px!important;font-size:12px!important;letter-spacing:1px}
.chat-action-menu{
  display:none;position:absolute;right:0;top:calc(100% + 5px);z-index:140;
  min-width:160px;padding:5px;background:#0c0c0b;border:1px solid #58451d;border-radius:8px;
  box-shadow:0 18px 48px rgba(0,0,0,.7)
}
.chat-action-menu.open{display:grid;gap:4px}
.chat-action-menu .chat-menu-action{
  display:block!important;width:100%!important;text-align:left!important;
  border:1px solid #27241d!important;background:#11100d!important;color:#cbbb8e!important;
  border-radius:6px!important;padding:7px 8px!important;font-size:7px!important
}
.chat-action-menu .danger-btn{color:#df8a8a!important;border-color:#5e3030!important}

/* Chat readability */
#tab-chat .admin-chat-item b{font-size:9px!important}
#tab-chat .admin-chat-item small,
#tab-chat .admin-chat-item p,
#tab-chat .admin-chat-item em{font-size:7px!important;line-height:1.4!important}
#tab-chat .chat-msg>div{font-size:9px!important;line-height:1.5!important}
#tab-chat .chat-msg small{font-size:7px!important}

/* Reports general readability */
#tab-reports .report-line span,
#tab-reports .rank-row span,
#tab-reports .rank-row small,
#tab-reports .focus-table-row,
#tab-reports .report-insight-grid>div{
  font-size:8px!important;line-height:1.45!important
}

/* Client readability without structural changes */
#tab-clients .table td,
#tab-clients .table small{font-size:8px!important}
#tab-clients .client-operational-summary small,
#tab-clients .client-followup-box small{font-size:8px!important}

/* Responsive */
@media(max-width:850px){
  .chat-manage-tools{width:100%;margin-left:0}
  .stock-more-menu{right:0}
}

/* V5.44.1 — STOCK INLINE DRAWER */
#tab-stock .stock-actions-v544{
  overflow:visible!important;
  white-space:normal!important;
}
#tab-stock .stock-more-menu.stock-more-inline{
  position:static!important;
  right:auto!important;
  top:auto!important;
  min-width:0!important;
  width:100%!important;
  margin-top:6px!important;
  padding:0!important;
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
#tab-stock .stock-more-menu.stock-more-inline.open{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  gap:5px!important;
}
#tab-stock .stock-more-menu.stock-more-inline>.stock-menu-item{
  width:auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:6px 8px!important;
}
#tab-stock .stock-more-menu.stock-more-inline:not(.open)>.stock-menu-item{
  display:none!important;
}
#tab-stock .stock-more-btn.active{
  border-color:#8b6b29!important;
  color:#e0ad38!important;
  background:#211907!important;
}

/* V5.44.1 — REPORTS WATCHLIST REBUILT */
.v5441-watchlist{
  margin:10px 9px 10px;
  border:1px solid #3a301c;
  border-radius:10px;
  background:#0c0c0b;
  overflow:hidden
}
.v5441-watch-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:11px 13px;
  border-bottom:1px solid #282319;
  background:#100f0c
}
.v5441-watch-head small{
  display:block!important;
  font-size:8px!important;
  color:#8f7135!important;
  letter-spacing:.1em
}
.v5441-watch-head h3{
  margin:3px 0 0!important;
  font-size:11px!important
}
.v5441-watch-head>span{
  font-size:8px!important;
  color:#777064;
  white-space:nowrap
}
.v5441-watch-body{display:grid}
.v5441-watch-item{
  width:100%;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  text-align:left;
  border:0;
  border-bottom:1px solid #22211d;
  background:transparent;
  color:#ddd;
  padding:12px 13px;
  cursor:pointer
}
.v5441-watch-item:last-child{border-bottom:0}
.v5441-watch-item:hover{background:#141108}
.v5441-watch-icon{font-size:19px}
.v5441-watch-copy{
  display:block!important;
  min-width:0!important;
  width:100%!important
}
.v5441-watch-copy b{
  display:block!important;
  width:100%!important;
  font-size:10px!important;
  line-height:1.35!important;
  white-space:normal!important;
  word-break:normal!important
}
.v5441-watch-copy p{
  display:block!important;
  margin:4px 0 0!important;
  width:100%!important;
  font-size:9px!important;
  line-height:1.45!important;
  color:#aaa49a!important;
  white-space:normal!important;
  word-break:normal!important
}
.v5441-watch-copy small{
  display:block!important;
  width:100%!important;
  margin-top:4px!important;
  font-size:8px!important;
  line-height:1.4!important;
  color:#706c65!important;
  white-space:normal!important;
  word-break:normal!important
}
.v5441-watch-item strong{
  font-size:8px!important;
  color:#c89c3b!important;
  white-space:nowrap
}

/* Hide legacy watchlist so only the rebuilt version can appear */
#commercialIntelligencePanel>.commercial-watchlist{
  display:none!important
}

/* CHAT: single delete easy again */
.v5441-delete-chat{
  border-color:#683737!important;
  background:#1a0f0f!important;
  color:#e58c8c!important
}
#adminChatList .v5441-empty-chat{
  opacity:.72;
  border-style:dashed!important
}
#adminChatList .v5441-empty-chat p{
  color:#8c784e!important;
  font-style:italic
}

#chatSelectAllBtn.hidden{display:none!important}

/* Make chat delete/management readable */
#chatManageTools button,
#adminChatActive .admin-chat-room-actions button{
  font-size:8px!important
}

@media(max-width:760px){
  .v5441-watch-head{
    align-items:flex-start;
    flex-direction:column
  }
  .v5441-watch-item{
    grid-template-columns:34px 1fr
  }
  .v5441-watch-item strong{
    grid-column:2
  }
}

/* ============================================================
   V5.45 — LARGE STOCK CATALOG
============================================================ */

/* Give the stock table its own scrolling viewport so the column header
   remains visible with dozens/hundreds of products. */
#tab-stock .v545-stock-wrap{
  position:relative!important;
  max-height:70vh!important;
  overflow:auto!important;
  border:1px solid #29261f!important;
  border-radius:10px!important;
}

/* Sticky column header */
#tab-stock .v545-stock-table thead th{
  position:sticky!important;
  top:0!important;
  z-index:60!important;
  background:#171714!important;
  box-shadow:
    0 1px 0 #40382a,
    0 8px 16px rgba(0,0,0,.26)!important;
}

/* Header stays readable as catalog grows */
#tab-stock .v545-stock-table th{
  white-space:nowrap!important;
  font-size:8px!important;
  letter-spacing:.04em!important;
}
#tab-stock .v545-stock-table td{
  font-size:8px!important;
}

/* Numbers and money line up cleanly */
#tab-stock .v545-stock-table td:nth-child(4),
#tab-stock .v545-stock-table td:nth-child(5),
#tab-stock .v545-stock-table td:nth-child(6),
#tab-stock .v545-stock-table td:nth-child(7){
  font-variant-numeric:tabular-nums!important;
  white-space:nowrap!important;
}

/* Extra breathing room before clothing/variants expand the catalog */
#tab-stock .v545-stock-table tbody tr{
  min-height:54px!important;
}

/* ============================================================
   V5.45.1 — PRODUCTS HEADER STICKY + MONEY READABILITY
============================================================ */

/* Products gets same sticky header behavior as Stock */
#tab-products .v5451-products-wrap{
  position:relative!important;
  max-height:70vh!important;
  overflow:auto!important;
  border:1px solid #29261f!important;
  border-radius:10px!important;
}

#tab-products .v5451-products-table thead th{
  position:sticky!important;
  top:0!important;
  z-index:60!important;
  background:#171714!important;
  box-shadow:
    0 1px 0 #40382a,
    0 8px 16px rgba(0,0,0,.26)!important;
}

#tab-products .v5451-products-table th{
  white-space:nowrap!important;
  font-size:8px!important;
  letter-spacing:.04em!important;
}

#tab-products .v5451-products-table td{
  font-size:8px!important;
}

/* Cost/Sale money values align cleanly in both modules */
#tab-stock td[data-v5451-money="1"],
#tab-products td[data-v5451-money="1"]{
  font-variant-numeric:tabular-nums!important;
  white-space:nowrap!important;
  letter-spacing:.01em!important;
  font-weight:700!important;
}

/* V5.45.2 — monetary display restored from product data */
#tab-stock td[data-v5452-money="1"],
#tab-products td[data-v5452-money="1"]{
  font-variant-numeric:tabular-nums!important;
  white-space:nowrap!important;
  font-weight:700!important;
  letter-spacing:.01em!important;
}

/* ============================================================
   V5.46 — ADMIN CATALOG
============================================================ */
.v546-product-editor .v546-sticky-close{
  position:sticky!important;
  top:10px!important;
  margin-left:auto!important;
  z-index:300!important;
  box-shadow:0 5px 20px rgba(0,0,0,.45)!important;
}
.v546-money-wrap{position:relative!important;display:flex!important;align-items:center!important}
.v546-money-prefix{
  position:absolute!important;left:10px!important;z-index:2!important;
  font-size:9px!important;font-weight:800!important;color:#c99a35!important
}
.v546-money-input{padding-left:32px!important}
.v546-variant-card{
  position:relative!important;
  border:1px solid #343027!important;
  border-radius:10px!important;
  padding:12px!important;
  margin:10px 0!important;
  background:#11110f!important
}
.v546-variant-label{
  display:block!important;margin:3px 0 9px!important;
  font-size:7px!important;letter-spacing:.08em!important;color:#8e877a!important
}
.v546-variant-gallery{display:flex!important;gap:7px!important;flex-wrap:wrap!important;margin-top:8px!important}
.v546-variant-gallery img{
  width:58px!important;height:58px!important;object-fit:cover!important;
  border-radius:7px!important;border:1px solid #3a3428!important
}
.v546-selected,.v546-option-selected{
  border-color:#d5a53c!important;
  box-shadow:0 0 0 2px rgba(213,165,60,.2)!important;
  background:#211a0c!important;color:#f1c967!important
}
.v546-delete-variant{
  margin-top:10px!important;border:1px solid #6b3838!important;
  background:#1d1010!important;color:#e49393!important
}
.v546-marked-delete{opacity:.45!important}
.v546-sales-smart{cursor:pointer!important;transition:.15s ease!important}
.v546-sales-smart.active{
  border-color:#c99a35!important;
  box-shadow:0 0 0 1px #c99a35 inset,0 8px 22px rgba(0,0,0,.25)!important
}
.v546-filter-hide{display:none!important}

/* ============================================================
   V5.46 — CLIENT PRODUCT EXPERIENCE
============================================================ */
.v546-mobile-menu-btn{
  display:none;border:1px solid #393329;background:#12110e;color:#e5bd62;
  border-radius:8px;padding:7px 10px;font-size:18px;cursor:pointer
}
.v546-mobile-menu{
  position:absolute;right:10px;top:calc(100% + 7px);z-index:500;
  width:190px;background:#111;border:1px solid #383125;border-radius:10px;
  padding:6px;box-shadow:0 14px 35px rgba(0,0,0,.55)
}
.v546-mobile-menu.hidden{display:none!important}
.v546-mobile-menu button{
  width:100%;display:block;text-align:left;padding:11px;border:0;
  background:transparent;color:#ddd;border-radius:7px
}
.v546-mobile-menu button:hover{background:#1c180f;color:#e5bd62}

.v546-availability{
  display:inline-flex!important;width:auto!important;padding:4px 7px!important;
  border-radius:999px!important;font-size:7px!important;font-weight:900!important;
  letter-spacing:.05em!important
}
.v546-availability.available{background:#102117!important;color:#83d79c!important}
.v546-availability.last{background:#281f0d!important;color:#e8bd55!important}
.v546-availability.best{background:#1c1527!important;color:#caa2f4!important}
.v546-availability.soldout{background:#261313!important;color:#df8585!important}

.v546-gallery-strip{
  display:flex!important;gap:7px!important;overflow-x:auto!important;
  padding:9px 2px 4px!important;scroll-snap-type:x mandatory!important
}
.v546-thumb{
  flex:0 0 58px!important;width:58px!important;height:58px!important;
  padding:2px!important;border:1px solid #302d27!important;border-radius:8px!important;
  background:#111!important;scroll-snap-align:start!important
}
.v546-thumb.active{border-color:#d1a13b!important}
.v546-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:5px!important}
.v546-zoomable{cursor:zoom-in!important}
.v546-image-viewer{
  position:fixed!important;inset:0!important;z-index:9999!important;
  display:none!important;align-items:center!important;justify-content:center!important;
  background:rgba(0,0,0,.94)!important;padding:18px!important
}
.v546-image-viewer.open{display:flex!important}
.v546-image-viewer>img{
  max-width:96vw!important;max-height:90vh!important;object-fit:contain!important
}
.v546-image-viewer>button{
  position:absolute!important;top:15px!important;right:15px!important;
  width:40px!important;height:40px!important;border-radius:50%!important;
  border:1px solid #4a4336!important;background:#15130f!important;color:#fff!important
}

@media(max-width:760px){
  .v546-mobile-menu-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important}
  header,.topbar,.site-header{position:relative!important}
  .product-detail,.product-modal{font-size:14px!important}
  .product-detail h2,.product-modal h2{font-size:20px!important;line-height:1.2!important}
  .variant-options,.product-options,.color-options,.size-options{
    display:flex!important;gap:8px!important;flex-wrap:wrap!important
  }
  .variant-options button,.product-options button,.color-options button,.size-options button{
    min-height:40px!important;min-width:44px!important
  }
}

/* ============================================================
   V5.46.1 — REAL CATALOG RELEASE
============================================================ */

/* ADMIN: the HEADER sticks, not just the X button */
#productModal .product-admin-modal>.drawer-head{
  position:sticky!important;
  top:-18px!important;
  z-index:500!important;
  margin:-18px -18px 12px!important;
  padding:14px 18px 12px!important;
  background:rgba(9,9,9,.97)!important;
  border-bottom:1px solid #2d281f!important;
  backdrop-filter:blur(10px)!important;
}
#productModal .product-admin-modal>.drawer-head .close{
  flex:0 0 auto!important;
  border-color:#5b4721!important;
  background:#17130c!important;
  color:#efbd4c!important;
}

/* Real R$ labels around editable numeric inputs */
.table-money-input,.variant-money-field{
  display:flex!important;align-items:center!important;
  border:1px solid #2c2c2c!important;background:#0e0e0e!important;border-radius:7px!important;
  overflow:hidden!important;min-width:110px!important
}
.table-money-input>span,.variant-money-field>span{
  flex:0 0 auto!important;padding:0 7px!important;color:#d9aa3b!important;
  font-size:8px!important;font-weight:1000!important;border-right:1px solid #2c2c2c!important
}
.table-money-input input,.variant-money-field input{
  min-width:0!important;width:100%!important;border:0!important;background:transparent!important;
  padding:7px 6px!important;color:#fff!important
}

/* Variant admin: visual ownership */
.variant-admin-title{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.variant-color-preview{width:30px;height:30px;border-radius:8px;border:1px solid #555;box-shadow:inset 0 0 0 2px rgba(255,255,255,.05)}
.variant-admin-title b{display:block;font-size:10px}
.variant-admin-title small{display:block;margin-top:3px;color:#777;font-size:7px}
.variant-color-input{height:39px!important;padding:3px!important;cursor:pointer!important}
.variant-photo-zone{margin-top:10px;padding:10px;border:1px solid #27241d;border-radius:9px;background:#0b0b0a}
.variant-photo-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.variant-photo-head b{display:block;font-size:8px}
.variant-photo-head small{display:block;color:#777;font-size:7px;margin-top:2px}
.variant-saved-gallery,.variant-pending-preview{display:flex!important;gap:7px!important;flex-wrap:wrap!important;margin-top:9px!important}
.variant-saved-thumb{position:relative;width:72px;height:72px;border:1px solid #363126;border-radius:8px;overflow:hidden}
.variant-saved-thumb img{width:100%;height:100%;object-fit:cover}
.variant-saved-thumb button{position:absolute;right:3px;top:3px;width:21px;height:21px;border:0;border-radius:50%;background:rgba(0,0,0,.78);color:#fff}
.variant-saved-empty{margin-top:8px;color:#666;font-size:7px}
.variant-admin-foot>span{font-size:7px;color:#777}

/* Image framing controls */
.image-position-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;padding:0 7px 7px}
.image-position-grid button{padding:4px!important;border:1px solid #2f2b23!important;background:#111!important;color:#a99058!important;border-radius:4px!important;font-size:8px!important}

/* MOBILE / CLIENT top menu */
.mobile-menu-btn{display:none;border:1px solid #342f27;background:#10100f;color:#e5ad22;border-radius:8px;width:40px;height:40px;font-size:18px}
.mobile-menu{position:absolute;top:58px;left:8px;z-index:800;width:210px;padding:6px;background:#0a0a0a;border:1px solid #3a3122;border-radius:10px;box-shadow:0 18px 45px rgba(0,0,0,.65)}
.mobile-menu.hidden{display:none!important}
.mobile-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;color:#ddd;padding:11px 10px;border-radius:7px;font-size:10px;font-weight:800}
.mobile-menu button:hover{background:#181309;color:#e5ad22}

/* Streetwear cards are actual controls */
button.street-card{display:block;width:100%;text-align:left;color:#fff;cursor:pointer}
button.street-card:hover{border-color:#5a4316;transform:translateY(-2px)}

/* Commercial stock language only */
.badge-stock.soldout{color:#df8a8a;border-color:#5d2d2d;background:#211111}
.badge-stock.last{color:#e8bd55;border-color:#5c481c;background:#211a09}
.badge-stock.best{color:#d4b4f5;border-color:#533a6d;background:#1b1324}
.product-unavailable .product-visual{filter:saturate(.55);opacity:.78}

/* Product detail inspired by mature ecommerce patterns: image first, options clear */
#productDetailModal .product-detail-card>.drawer-head{
  position:sticky;top:-18px;z-index:250;margin:-18px -18px 12px;padding:14px 18px 12px;
  background:rgba(9,9,9,.97);border-bottom:1px solid #29251d;backdrop-filter:blur(10px)
}
.detail-main-image{position:relative;background-position:center}
.detail-zoom-hint{position:absolute;right:9px;bottom:9px;padding:5px 7px;border-radius:999px;background:rgba(0,0,0,.72);border:1px solid #444;color:#ddd;font-size:7px;font-weight:900}
.detail-thumbs button.on{border-color:var(--gold);box-shadow:0 0 0 1px var(--gold)}
.variant-choice{grid-template-columns:22px 1fr auto!important;min-height:48px!important}
.variant-choice.on{border-color:#e2af34!important;background:#211907!important;box-shadow:0 0 0 1px rgba(226,175,52,.25)!important}
.variant-choice.on:after{content:"✓";color:#e2af34;font-size:11px;font-weight:1000}
.variant-choice.on small{display:none}
.variant-choice small{font-size:7px!important;text-transform:uppercase!important}
.detail-stock-state{font-size:8px!important;font-weight:900!important;margin-top:5px!important}
.detail-stock-state.available{color:#7bc990!important}.detail-stock-state.last{color:#e0ae47!important}.detail-stock-state.soldout{color:#db7e7e!important}

/* Fullscreen viewer with prev/next + swipe */
.product-image-viewer{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.96);display:grid;place-items:center;padding:22px}
.product-image-viewer.hidden{display:none!important}
.product-image-viewer img{max-width:94vw;max-height:88vh;object-fit:contain}
.product-image-viewer button{position:absolute;z-index:2;border:1px solid #444;background:rgba(15,15,15,.9);color:#fff;border-radius:50%;display:grid;place-items:center}
.viewer-close{right:16px;top:16px;width:42px;height:42px}
.viewer-prev,.viewer-next{top:50%;transform:translateY(-50%);width:46px;height:46px;font-size:26px}
.viewer-prev{left:14px}.viewer-next{right:14px}
#productImageViewerCount{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);padding:5px 9px;border-radius:999px;background:#111;color:#ddd;font-size:9px}

@media(max-width:760px){
  .mobile-menu-btn{display:grid;place-items:center;flex:0 0 auto}
  header nav{position:relative}
  header .orders-top,header .account-top{display:none!important}
  .product-detail-card{padding:12px!important}
  .product-detail-layout{grid-template-columns:1fr!important}
  .detail-main-image{width:100%;min-height:0}
  .variant-buttons{grid-template-columns:1fr 1fr!important}
  .variant-choice{padding:10px!important}
  .detail-buy-row{position:sticky;bottom:-12px;z-index:80;background:#090909;padding:11px 0 max(11px,env(safe-area-inset-bottom));border-top:1px solid #2b261e}
}
@media(max-width:520px){
  .variant-buttons{grid-template-columns:1fr!important}
}

/* ============================================================
   V5.46.2 — PREMIUM CLIENT EXPERIENCE
============================================================ */
/* exactly one mobile menu */
#v546MobileMenuBtn,#v546MobileMenu{display:none!important}

/* sticky customer header */
@media(max-width:760px){
  body>header{
    position:sticky!important;top:0!important;z-index:850!important;
    background:rgba(7,7,7,.96)!important;backdrop-filter:blur(14px)!important;
    border-bottom:1px solid #2b271e!important
  }
  body>header nav{min-height:58px!important}
  .brand-img{height:42px!important;width:auto!important}
  .mobile-menu-btn{display:inline-flex!important}
  .search-box{order:10!important;width:100%!important;margin-top:6px!important}
  .orders-top,.account-top{display:none!important}
}

/* unify category cards; no separate Streetwear visual language */
.cat-grid{align-items:stretch!important}
.cat-tile{
  min-height:82px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  gap:6px!important;border-radius:12px!important
}
.cat-tile .cat-icon{font-size:22px!important;line-height:1!important}
.cat-tile small{font-size:10px!important;font-weight:800!important;text-align:center!important}

/* premium product detail */
.product-detail-v5462{overflow:hidden!important}
.product-detail-v5462 .product-detail-head{
  position:sticky!important;top:0!important;z-index:20!important;
  background:rgba(10,10,10,.96)!important;backdrop-filter:blur(12px)!important
}
.detail-media-column{min-width:0!important}
.detail-main-image{
  aspect-ratio:1/1!important;min-height:0!important;border-radius:14px!important;
  background-size:contain!important;background-repeat:no-repeat!important;background-color:#0e0e0d!important;
  cursor:zoom-in!important
}
.detail-thumbs{
  display:flex!important;gap:8px!important;overflow-x:auto!important;padding:10px 2px!important;
  scroll-snap-type:x mandatory!important
}
.detail-thumbs button{scroll-snap-align:start!important;flex:0 0 66px!important;width:66px!important;height:66px!important;border-radius:9px!important}
.detail-product-info{display:flex!important;flex-direction:column!important;gap:14px!important}
.detail-price-block{display:flex!important;align-items:center!important;gap:9px!important;flex-wrap:wrap!important}
.detail-price-block>b{font-size:24px!important;color:#f5f2e8!important}
.detail-compare-price{font-size:13px!important;color:#7d7a73!important;text-decoration:line-through!important}
.detail-discount-badge{padding:4px 7px!important;border-radius:999px!important;background:#27351f!important;color:#9dd57e!important;font-size:9px!important;font-weight:900!important}
.detail-stock-state{width:max-content!important;padding:5px 8px!important;border-radius:999px!important;font-size:9px!important;font-weight:900!important}
.detail-stock-state.available{background:#102317!important;color:#85cd9a!important}
.detail-stock-state.last{background:#2a210d!important;color:#dfb953!important}
.detail-stock-state.soldout{background:#281313!important;color:#dc8585!important}
.detail-description{font-size:13px!important;line-height:1.6!important;color:#a7a39b!important;margin:0!important}
.detail-option-group{display:grid!important;gap:8px!important}
.detail-option-title{display:flex!important;justify-content:space-between!important;align-items:center!important}
.detail-option-title b{font-size:10px!important;letter-spacing:.08em!important}
.detail-option-title span{font-size:10px!important;color:#b28b36!important}
.color-choice-row,.size-choice-row{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
.color-choice,.size-choice{
  border:1px solid #353229!important;background:#11110f!important;color:#ddd!important;border-radius:9px!important;
  min-height:42px!important;padding:8px 12px!important;display:inline-flex!important;align-items:center!important;gap:7px!important
}
.color-choice i{width:18px!important;height:18px!important;border-radius:50%!important;border:1px solid #777!important;box-shadow:inset 0 0 0 2px rgba(0,0,0,.25)!important}
.color-choice.on,.size-choice.on{border-color:#d4a43a!important;background:#211a0c!important;color:#f1ca70!important;box-shadow:0 0 0 1px rgba(212,164,58,.3)!important}
.color-choice.soldout,.size-choice.soldout{opacity:.35!important;text-decoration:line-through!important}
.detail-buy-row{margin-top:4px!important}
.detail-buy-row .cta{width:100%!important;min-height:48px!important;font-size:11px!important}

/* price hierarchy on cards */
.price-stack{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important}
.price-stack b{font-size:15px!important;color:#f2eee3!important}
.price-stack .price-was{font-size:10px!important;color:#777!important;text-decoration:line-through!important}
.price-stack em{font-style:normal!important;font-size:8px!important;color:#91c774!important;font-weight:900!important}
.price-stack.compact b{font-size:14px!important}

/* clean mobile grid */
@media(max-width:760px){
  .product-detail-v5462{width:100%!important;max-height:100dvh!important;border-radius:0!important}
  .product-detail-layout{display:block!important}
  .product-detail-v5462 .drawer-head{padding:12px 14px!important}
  .detail-media-column{padding:0 14px!important}
  .detail-product-info{padding:8px 16px 20px!important}
  .detail-main-image{width:100%!important}
  .product-grid{gap:10px!important}
  .product{border-radius:12px!important;overflow:hidden!important}
  .product-body{padding:10px!important}
  .product-name{font-size:12px!important;line-height:1.3!important}
  .product-cat{font-size:8px!important}
  .badge-stock{font-size:7px!important}
}

/* admin sales smart */
.v5462-sales-card{cursor:pointer!important;transition:.15s!important}
.v5462-sales-card.on{border-color:#d0a23a!important;background:#1c1609!important;box-shadow:0 0 0 1px #d0a23a inset!important}
.v5462-hidden-sale{display:none!important}


/* ============================================================
   V5.47 — STORE EDITOR / CATEGORY TREE / PRODUCT UX
============================================================ */
.store-editor-panel{margin-top:12px!important}.store-editor-map{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:9px 11px;border:1px solid #332c1d;background:#0d0d0b;border-radius:9px;margin-bottom:10px}.store-editor-map b,.store-editor-map i{font-size:7px;color:#d0a13a}.store-editor-map span{font-size:8px;color:#aaa}.store-flow-map{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 12px}.store-flow-map span{border:1px solid #39311f;background:#11100d;border-radius:999px;padding:6px 9px;font-size:7px;color:#c9b37c}.store-flow-map b{color:#806526}.hero-admin-form{display:grid;grid-template-columns:1fr 130px;gap:8px}.hero-admin-form .span-2{grid-column:1/-1}.hero-form-actions{display:flex;gap:7px}.hero-admin-list{display:grid;gap:7px;margin-top:10px}.hero-admin-card{display:grid;grid-template-columns:110px 1fr auto;gap:10px;align-items:center;border:1px solid #30291d;background:#0e0e0d;border-radius:10px;padding:8px}.hero-admin-card.off{opacity:.55}.hero-admin-thumb{height:70px;border-radius:8px;background:#16130d center/cover no-repeat;display:grid;place-items:center}.hero-admin-thumb b{font-size:18px;color:#d2a33a}.hero-admin-card small,.hero-admin-card span{font-size:7px;color:#777}.hero-admin-card h3{margin:3px 0;font-size:10px}.hero-admin-card p{margin:0 0 3px;color:#999;font-size:8px}.hero-admin-actions{display:grid;gap:5px}.hero-admin-actions button,.category-group-controls button{border:1px solid #3d3526;background:#14120e;color:#d3bd86;border-radius:7px;padding:7px;font-size:7px}.hero-admin-actions .danger,.category-group-controls .danger,.subcategory-admin-row .danger{border-color:#5e3030;color:#e28b8b;background:#1a0e0e}.store-empty{padding:18px;border:1px dashed #343027;border-radius:9px;color:#777;text-align:center;font-size:8px}
.showcase-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.showcase-edit-card{border:1px solid #322c20;background:#0d0d0c;border-radius:11px;padding:10px}.showcase-map small{display:block;color:#8d7135;font-size:7px}.showcase-map b{display:block;margin-top:3px;font-size:9px}.showcase-map span{display:block;margin-top:2px;color:#777;font-size:7px}.showcase-mini-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:9px 0}.showcase-mini-preview i{height:48px;border:1px solid #30291e;border-radius:7px;background:linear-gradient(145deg,#17140e,#0e0e0d)}.showcase-fields{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:8px}.showcase-fields .span-2{grid-column:1/-1}.showcase-fields label{font-size:7px;color:#8c867a}.showcase-fields input,.showcase-fields select{margin-top:3px;width:100%}
.category-group-create{display:grid;grid-template-columns:1fr 90px 100px auto;gap:7px;margin-bottom:10px}.category-tree-admin{display:grid;gap:8px}.category-group-card{border:1px solid #332d20;background:#0d0d0c;border-radius:11px;overflow:hidden}.category-group-card>summary{list-style:none;display:grid;grid-template-columns:36px 1fr auto;gap:9px;align-items:center;padding:10px;cursor:pointer;background:#11100e}.category-group-card>summary::-webkit-details-marker{display:none}.category-group-icon{width:34px;height:34px;border:1px solid #51411e;border-radius:9px;display:grid;place-items:center;color:#ddb047}.category-group-card summary small{display:block;color:#8c7135;font-size:6px}.category-group-card summary b{display:block;font-size:9px;margin-top:2px}.category-group-card summary em{display:block;font-style:normal;color:#777;font-size:7px;margin-top:2px}.category-group-state{font-size:7px;color:#78bd89}.category-group-state.off{color:#b46f6f}.category-group-controls{display:grid;grid-template-columns:1.2fr 80px 80px 100px 100px auto;gap:6px;padding:8px;border-top:1px solid #26231c}.category-group-controls label{font-size:6px;color:#777}.category-group-controls input,.category-group-controls select{width:100%;margin-top:3px}.subcategory-admin-list{padding:0 8px}.subcategory-admin-row{display:grid;grid-template-columns:22px 1fr 1fr 70px 90px auto;gap:6px;align-items:center;padding:7px 0;border-top:1px solid #222}.subcategory-admin-row>span{color:#8f7234}.subcategory-admin-row input,.subcategory-admin-row select{width:100%}.subcategory-admin-row button{border:1px solid #553030;background:#180e0e;color:#dc8585;border-radius:6px;padding:7px;font-size:7px}.subcategory-empty{padding:10px;color:#777;font-size:7px}.subcategory-create{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;padding:8px;border-top:1px solid #28241b;background:#0a0a09}
.product-display-admin{background:#0d0d0b;border:1px solid #382f1e;border-radius:10px;padding:10px!important}.product-primary-badge{position:absolute;left:8px;top:8px;z-index:3;background:#d6a83d;color:#080808;border-radius:999px;padding:5px 7px;font-size:7px;font-weight:1000;letter-spacing:.04em}.product-soldout-badge{position:absolute;left:8px;top:8px;z-index:3;background:#281313;color:#dc8585;border:1px solid #5e3030;border-radius:999px;padding:5px 7px;font-size:7px;font-weight:1000}.card-price-was{display:block;color:#777;text-decoration:line-through;font-size:9px;margin-bottom:1px}

/* CLIENT — hero */
.hero-slider-shell{padding:0!important;min-height:420px!important;display:block!important}.hero-slides{position:absolute;inset:0}.hero-slide{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .55s ease;background:#10100e var(--hero-bg) center/cover no-repeat}.hero-slide.on{opacity:1;pointer-events:auto}.hero-slide-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,4,4,.96) 0%,rgba(4,4,4,.72) 50%,rgba(4,4,4,.28) 100%)}.hero-slide-copy{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;height:100%;max-width:650px;padding:42px}.hero-slide-copy img{width:190px;max-height:90px;object-fit:contain;object-position:left center}.hero-slide-copy h1{font-size:clamp(38px,6vw,70px);line-height:.94;margin:10px 0;letter-spacing:-2px;text-transform:uppercase}.hero-slide-copy p{color:#b3b0a8;font-size:14px;line-height:1.5;max-width:520px}.hero-nav{position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:1px solid rgba(225,175,57,.45);background:rgba(8,8,8,.7);color:#e0ad39;font-size:27px}.hero-prev{left:14px}.hero-next{right:14px}.hero-dots{position:absolute;z-index:5;bottom:15px;left:50%;transform:translateX(-50%);display:flex;gap:6px}.hero-dots button{width:7px;height:7px;border:0;border-radius:99px;background:#777;padding:0}.hero-dots button.on{width:24px;background:#e0ad39}
/* categories */
.category-carousel{display:flex!important;gap:10px!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important;padding-bottom:5px!important}.category-carousel .cat-tile{flex:0 0 min(190px,42vw)!important;scroll-snap-align:start!important;min-height:105px!important;position:relative!important}.category-carousel .cat-tile em{font-style:normal;font-size:7px;color:#927532}.subcategory-row{display:flex;gap:7px;overflow-x:auto;margin:8px 0 16px;padding-bottom:4px}.subcategory-row button{flex:0 0 auto;border:1px solid #302c23;background:#0e0e0c;color:#aaa;border-radius:999px;padding:8px 11px;font-size:8px;font-weight:900}.subcategory-row button.on{border-color:#c59632;background:#211908;color:#e2b444}
/* mobile menu */
.mobile-menu-backdrop{position:fixed;inset:0;z-index:899;background:rgba(0,0,0,.62);backdrop-filter:blur(2px)}.mobile-nav-drawer{position:fixed;z-index:900;left:0;top:0;bottom:0;width:min(340px,88vw);background:#090909;border-right:1px solid #41351e;box-shadow:24px 0 70px rgba(0,0,0,.65);display:flex;flex-direction:column;animation:navIn .2s ease}.mobile-nav-drawer.hidden,.mobile-menu-backdrop.hidden{display:none!important}@keyframes navIn{from{transform:translateX(-20px);opacity:0}to{transform:none;opacity:1}}.mobile-nav-head{height:66px;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-bottom:1px solid #27231b}.mobile-nav-head img{height:46px;width:130px;object-fit:contain;object-position:left}.mobile-nav-head button{width:36px;height:36px;border:1px solid #3c3425;background:#111;color:#ddd;border-radius:8px}.mobile-nav-content{padding:8px;overflow:auto}.mobile-nav-content>button{width:100%;display:flex;justify-content:space-between;align-items:center;border:0;border-bottom:1px solid #1f1f1d;background:transparent;color:#ddd;padding:13px 10px;text-align:left;font-size:11px}.mobile-nav-content>button:hover{background:#151108;color:#d7a83c}.mobile-nav-title{padding:10px}.mobile-nav-title small{display:block;color:#8c7034;font-size:7px}.mobile-nav-title b{display:block;margin-top:3px;font-size:15px}.mobile-nav-divider{padding:13px 10px 6px;color:#7c6533;font-size:7px;font-weight:1000;letter-spacing:.1em}.mobile-nav-back{color:#d5a83d!important}.mobile-nav-open{overflow:hidden!important}
/* product modal */
#productDetailModal{overflow:hidden!important;overscroll-behavior:contain!important}.product-detail-v5462{max-height:94dvh!important;overflow:auto!important;overscroll-behavior:contain!important}.detail-media-column{position:relative}.detail-image-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:12;width:39px;height:39px;border-radius:50%;border:1px solid rgba(225,175,57,.45);background:rgba(8,8,8,.72);color:#e2b13f;font-size:24px}.detail-image-nav.prev{left:10px}.detail-image-nav.next{right:10px}.detail-gallery-dots{display:flex;justify-content:center;gap:5px;margin:6px 0}.detail-gallery-dots i{width:6px;height:6px;border-radius:50%;background:#59554e}.detail-gallery-dots i.on{width:18px;border-radius:99px;background:#d5a63a}.detail-description-panel{border-top:1px solid #28251e;border-bottom:1px solid #28251e;padding:9px 0}.detail-description-panel summary{display:flex;justify-content:space-between;list-style:none;cursor:pointer;color:#c4b998;font-size:9px;font-weight:900}.detail-description-panel summary::-webkit-details-marker{display:none}.detail-description-panel[open] summary span{transform:rotate(45deg)}.detail-description-panel .detail-description{margin:10px 0 2px}.detail-stock-state.choose{background:#1c190f!important;color:#c8a34d!important}
@media(max-width:850px){.showcase-editor-grid{grid-template-columns:1fr}.category-group-controls{grid-template-columns:1fr 1fr}.category-group-controls .danger{grid-column:1/-1}.subcategory-admin-row{grid-template-columns:20px 1fr 1fr}.subcategory-admin-row input:nth-of-type(3),.subcategory-admin-row select,.subcategory-admin-row button{grid-column:auto}.hero-admin-form{grid-template-columns:1fr}.hero-admin-form .span-2{grid-column:auto}}
@media(max-width:760px){body>header{position:sticky!important;top:0!important;z-index:850!important}.hero-slider-shell{min-height:360px!important}.hero-slide-copy{padding:28px 20px}.hero-slide-copy img{width:145px;height:72px}.hero-slide-copy h1{font-size:42px}.hero-slide-copy p{font-size:12px;max-width:86%}.hero-nav{width:36px;height:36px}.hero-prev{left:8px}.hero-next{right:8px}.category-carousel .cat-tile{flex-basis:42vw!important}.product-detail-v5462{width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;padding:0!important}.product-detail-v5462 .product-detail-head{padding:12px 14px!important}.detail-media-column{padding:0 12px!important}.detail-product-info{padding:8px 15px 24px!important}.detail-main-image{border-radius:10px!important}.detail-image-nav{display:grid!important;place-items:center!important}.category-group-create{grid-template-columns:1fr 70px}.category-group-create button{grid-column:1/-1}.subcategory-create{grid-template-columns:1fr}.hero-admin-card{grid-template-columns:80px 1fr}.hero-admin-actions{grid-column:1/-1;grid-template-columns:1fr 1fr}}

/* V5.47 RC2 audit fixes */
.hero-slide-link{display:inline-flex;align-items:center;gap:8px;width:max-content;margin-top:14px;border:1px solid rgba(224,173,57,.55);color:#e0ad39;text-decoration:none;padding:10px 14px;border-radius:999px;font-size:9px;font-weight:1000;letter-spacing:.08em}.hero-slide-link:hover{background:#e0ad39;color:#111}.showcase-fields small{display:block;color:#777;font-size:8px;margin-top:4px}

/* V5.47 RC4 — stable navigation and product sheet */
.mobile-menu-btn{display:inline-grid!important;place-items:center!important;flex:0 0 auto!important}
#productDetailModal{z-index:5000!important;position:fixed!important;inset:0!important;overflow:hidden!important;padding:0!important;align-items:center!important;justify-content:center!important;background:rgba(0,0,0,.78)!important}
#productDetailModal .product-detail-v5462{position:relative!important;z-index:5001!important;display:flex!important;flex-direction:column!important;width:min(1080px,96vw)!important;height:min(900px,94dvh)!important;max-height:94dvh!important;overflow:hidden!important;padding:0!important}
#productDetailModal .product-detail-head{position:sticky!important;top:0!important;z-index:40!important;flex:0 0 auto!important;margin:0!important;padding:14px 18px!important;background:#090909!important;border-bottom:1px solid #29251d!important}
#productDetailModal .product-detail-layout{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;padding:0 18px 18px!important}
#productDetailModal .detail-media-column{position:relative!important;min-width:0!important}
#productDetailModal .detail-main-image{position:relative!important;overflow:hidden!important}
#productDetailModal .detail-image-nav{display:grid!important;place-items:center!important;top:50%!important;visibility:visible!important;opacity:1!important}
#productDetailModal .detail-image-nav.hidden{display:none!important}
@media(min-width:761px){body>header{z-index:850!important}.mobile-menu-btn{display:inline-grid!important}}
@media(max-width:760px){#productDetailModal{align-items:stretch!important}#productDetailModal .product-detail-v5462{width:100%!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}#productDetailModal .product-detail-head{padding:11px 14px!important;padding-top:max(11px,env(safe-area-inset-top))!important}#productDetailModal .product-detail-head h2{font-size:15px!important;line-height:1.1!important;margin:3px 0 0!important}#productDetailModal .product-detail-layout{display:block!important;padding:0 12px calc(20px + env(safe-area-inset-bottom))!important;overflow-y:auto!important;overflow-x:hidden!important}#productDetailModal .detail-media-column{padding:0!important}#productDetailModal .detail-product-info{padding:10px 3px 24px!important}#productDetailModal .detail-main-image{width:100%!important;min-height:330px!important;max-height:58dvh!important}#productDetailModal .detail-image-nav{width:40px!important;height:40px!important}}

/* V5.47 RC5 — single navigation/product engine */
.mobile-menu-btn{display:inline-grid!important;place-items:center!important;visibility:visible!important;opacity:1!important}
.mobile-nav-loading{padding:20px 14px;color:#8f7440;font-size:10px;font-weight:900;letter-spacing:.08em}
#mobileMenu{z-index:9100!important}
#mobileMenuBackdrop{z-index:9090!important}
#productDetailModal{z-index:9200!important}
#productDetailModal .product-detail-v5462{z-index:9201!important}

/* ============================================================
   V5.47 RC6.1 — INTERACTION POLISH
============================================================ */
#mobileMenuBackdrop{
  position:fixed!important;inset:0!important;z-index:2147483000!important;
}
#mobileMenu{
  position:fixed!important;left:0!important;top:0!important;bottom:0!important;
  z-index:2147483001!important;isolation:isolate!important;
}
.mobile-nav-open{overflow:hidden!important}

/* thumbnails */
#productDetailModal .detail-thumbs{
  display:flex!important;gap:7px!important;overflow-x:auto!important;
  padding:8px 1px!important;min-height:70px!important;
}
#productDetailModal .detail-thumbs.hidden{display:none!important}
#productDetailModal .detail-thumbs button{
  display:block!important;flex:0 0 62px!important;width:62px!important;height:62px!important;
  background-repeat:no-repeat!important;border:1px solid #37332b!important;
}
#productDetailModal .detail-thumbs button.on{
  border-color:#e0aa31!important;box-shadow:0 0 0 1px #e0aa31!important;
}

/* Toggle states are intentionally obvious but restrained. */
.cat-tile.on,.subcategory-row button.on,.bottom-nav button.on{
  border-color:#d8a535!important;color:#e7b43f!important;
}
.bottom-nav button.on{background:rgba(218,166,54,.08)!important;border-radius:8px!important}

/* Account remains accessible even before opening the hamburger. */
@media(max-width:760px){
  .account-top{
    display:inline-flex!important;width:38px!important;height:38px!important;padding:0!important;
    align-items:center!important;justify-content:center!important;font-size:0!important;
  }
  .account-top::before{content:"♙";font-size:18px!important}
}

/* V5.47 RC6.2 — clean card badges/prices */
.product-primary-badge{
  position:absolute!important;left:8px!important;top:8px!important;z-index:4!important;
  padding:5px 8px!important;border-radius:999px!important;
  font-size:7px!important;font-weight:900!important;letter-spacing:.06em!important;
  background:#16130d!important;color:#e6b84d!important;border:1px solid #57451e!important;
}
.product-primary-badge.badge-promo{background:#203018!important;color:#a7dd89!important;border-color:#3e6532!important}
.product-primary-badge.badge-new{background:#15202b!important;color:#93c6ed!important;border-color:#30485d!important}
.product-primary-badge.badge-featured{background:#2a1d0d!important;color:#e8bd62!important;border-color:#664c21!important}
.product-primary-badge.badge-best{background:#25172c!important;color:#d0a8ea!important;border-color:#523664!important}
.price-from-label{
  display:block!important;margin-bottom:2px!important;
  font-size:7px!important;letter-spacing:.08em!important;color:#8a8478!important;font-weight:800!important;
}

/* V5.47 RC6.2.1 — mobile account specificity fix */
@media(max-width:760px){
  header .account-top{
    display:inline-flex!important;
    width:38px!important;
    height:38px!important;
    padding:0!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:0!important;
  }
  header .account-top::before{
    content:"♙";
    font-size:18px!important;
  }
}

/* ============================================================
   V5.47 RC6.3 — FINAL POLISH
============================================================ */
#topCartBtn.on{
  border-color:#e0aa31!important;
  box-shadow:0 0 0 1px rgba(224,170,49,.35),0 7px 18px rgba(0,0,0,.25)!important;
  background:#2a200c!important;
}
#productDetailModal #detailGalleryDots{
  display:none!important;
}

.hero.hero-hide-brand-rc64 .hero-logo,.hero.hero-hide-brand-rc64 .hero-brand,.hero.hero-hide-brand-rc64 .hero-mark{display:none!important}
@media(max-width:760px){
header .header-inner,header .topbar,header .nav-inner{position:relative!important;display:grid!important;grid-template-columns:auto auto 1fr auto auto!important;align-items:center!important;gap:5px!important}
#mobileMenuBtn{grid-column:1!important}#mobileSearchBtnRC64{grid-column:2!important;display:inline-flex!important}header .brand,header .logo,header .header-logo{grid-column:3!important;justify-self:center!important}header .account-top{grid-column:4!important}#topCartBtn{grid-column:5!important}header .fav-top,header .favorites-top,#favoriteTopBtn{display:none!important}
.mobile-search-wrap-rc64{position:absolute!important;inset:0!important;z-index:2147483000!important;display:flex!important;align-items:center!important;gap:8px!important;padding:8px!important;background:#050505!important;transform:translateY(-110%)!important;opacity:0!important;pointer-events:none!important}.mobile-search-wrap-rc64.open{transform:none!important;opacity:1!important;pointer-events:auto!important}.mobile-search-wrap-rc64 input{flex:1!important;height:40px!important;font-size:16px!important}
.support-drag-rc64{touch-action:none!important}
}
#catalogSection .product{content-visibility:auto;contain-intrinsic-size:280px 420px}

/* RC6.4.2 — actual one-line mobile header selectors */
@media(max-width:760px){
  header>nav{
    position:relative!important;
    display:grid!important;
    grid-template-columns:40px 40px minmax(0,1fr) 40px 48px!important;
    align-items:center!important;
    gap:4px!important;
    padding:8px 8px!important;
    min-height:58px!important;
  }
  header>nav>#mobileMenuBtn{grid-column:1!important;margin:0!important;width:40px!important}
  header>nav>#mobileSearchBtnRC64{grid-column:2!important;display:inline-flex!important;margin:0!important;width:40px!important}
  header>nav>.brand-img{grid-column:3!important;grid-row:1!important;justify-self:center!important;width:min(132px,100%)!important;height:40px!important;object-position:center!important}
  header>nav>#accountTopBtn{grid-column:4!important;display:inline-flex!important;width:40px!important;height:40px!important;margin:0!important}
  header>nav>#topCartBtn{grid-column:5!important;width:48px!important;height:40px!important;margin:0!important;padding:0 4px!important}
  header>nav>.search-box,header>nav>.orders-top,header>nav>button[onclick="showFavorites()"]{display:none!important}
}
.catalog-home-extra-rc642{display:none!important}.catalog-more-rc642{display:block;margin:18px auto 0}


/* ============================================================
   V5.47 RC6.4.3 — HEADER / SEARCH POLISH
============================================================ */

/* The RC6.4 mobile search layer must never leak into desktop. */
#mobileSearchWrapRC64,
#mobileSearchBtnRC64{
  display:none !important;
}

/* Give the established desktop brand more presence without increasing header height. */
@media (min-width:761px){
  header .brand img,
  header .logo img,
  header .header-logo img,
  nav .brand img,
  nav .logo img,
  nav .header-logo img{
    width:auto !important;
    max-width:min(250px,22vw) !important;
    transform:scaleX(1.10) !important;
    transform-origin:center !important;
  }
}

/* Mobile: one row, integrated dark search, centered/larger brand. */
@media (max-width:760px){
  #mobileSearchBtnRC64{display:none !important;}

  nav,
  header .header-inner,
  header .topbar,
  header .nav-inner{
    min-height:58px !important;
  }

  #mobileSearchWrapRC64.mobile-search-integrated-rc643{
    display:flex !important;
    position:static !important;
    inset:auto !important;
    grid-column:2 !important;
    grid-row:1 !important;
    width:clamp(82px,24vw,116px) !important;
    min-width:0 !important;
    padding:0 !important;
    margin:0 !important;
    gap:0 !important;
    background:transparent !important;
    transform:none !important;
    opacity:1 !important;
    pointer-events:auto !important;
    z-index:auto !important;
  }

  #mobileSearchWrapRC64.mobile-search-integrated-rc643 > button{
    display:none !important;
  }

  #mobileSearchInputRC64{
    display:block !important;
    width:100% !important;
    height:34px !important;
    min-width:0 !important;
    padding:0 9px 0 27px !important;
    border:1px solid rgba(201,157,65,.48) !important;
    border-radius:11px !important;
    outline:none !important;
    background:
      linear-gradient(transparent,transparent),
      #111 !important;
    color:#f5f1e8 !important;
    -webkit-text-fill-color:#f5f1e8 !important;
    caret-color:#d5aa50 !important;
    font-size:13px !important;
    line-height:34px !important;
    box-shadow:none !important;
    appearance:none !important;
    -webkit-appearance:none !important;
    transition:border-color .16s ease, box-shadow .16s ease, width .16s ease !important;
  }

  #mobileSearchWrapRC64.mobile-search-integrated-rc643{
    position:relative !important;
  }
  #mobileSearchWrapRC64.mobile-search-integrated-rc643:before{
    content:"⌕";
    position:absolute;
    left:8px;
    top:50%;
    transform:translateY(-52%);
    color:#d5aa50;
    font-size:18px;
    line-height:1;
    pointer-events:none;
    z-index:2;
  }

  #mobileSearchInputRC64::placeholder{
    color:#9f9a90 !important;
    -webkit-text-fill-color:#9f9a90 !important;
    opacity:1 !important;
  }
  #mobileSearchInputRC64:focus{
    border-color:#d5aa50 !important;
    box-shadow:0 0 0 2px rgba(213,170,80,.10) !important;
    background:#111 !important;
  }

  /* Preserve geometric center and make the brand more readable. */
  nav .brand,
  nav .logo,
  nav .header-logo,
  header .brand,
  header .logo,
  header .header-logo{
    justify-self:center !important;
    overflow:visible !important;
  }
  nav .brand img,
  nav .logo img,
  nav .header-logo img,
  header .brand img,
  header .logo img,
  header .header-logo img{
    width:auto !important;
    max-width:132px !important;
    transform:scaleX(1.12) !important;
    transform-origin:center !important;
  }

  /* Keyboard opening must not make fixed bottom navigation fight for the viewport. */
  body:has(#mobileSearchInputRC64:focus) .bottom-nav{
    transform:translateY(100%) !important;
    pointer-events:none !important;
  }
}


/* ============================================================
   V5.47 RC6.4.4 — ONE-LINE MOBILE SEARCH + REAL LOGO SCALE
============================================================ */

/* Desktop: no RC6.4 mobile search UI at all. */
@media(min-width:761px){
  #mobileSearchWrapRC64{display:none!important;}

  /* Actual brand image in current header */
  header nav img[alt*="TabacaCria"],
  header img[src*="logo-tabacacria"],
  nav img[src*="logo-tabacacria"]{
    width:190px!important;
    max-width:22vw!important;
    height:auto!important;
    object-fit:contain!important;
    transform:scaleX(1.10)!important;
    transform-origin:center!important;
  }
}

@media(max-width:760px){
  /* Header remains a single row:
     hamburger | search | centered logo | account | cart */
  header nav{
    position:relative!important;
    display:grid!important;
    grid-template-columns:38px minmax(96px,1fr) minmax(100px,132px) 38px 44px!important;
    align-items:center!important;
    gap:5px!important;
    min-height:58px!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }

  #mobileMenuBtn{grid-column:1!important;}

  #mobileSearchWrapRC64.mobile-search-integrated-rc644{
    grid-column:2!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 34px!important;
    align-items:center!important;
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    min-width:0!important;
    height:36px!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
    opacity:1!important;
    pointer-events:auto!important;
    background:#111!important;
    border:1px solid rgba(205,162,69,.55)!important;
    border-radius:11px!important;
    overflow:hidden!important;
    z-index:auto!important;
  }

  #mobileSearchInputRC64{
    grid-column:1!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    height:34px!important;
    border:0!important;
    outline:0!important;
    border-radius:0!important;
    background:#111!important;
    color:#f4f1ea!important;
    -webkit-text-fill-color:#f4f1ea!important;
    caret-color:#d7aa4b!important;
    padding:0 8px!important;
    font-size:16px!important; /* prevents Safari auto-zoom */
    line-height:34px!important;
    appearance:none!important;
    -webkit-appearance:none!important;
    box-shadow:none!important;
  }
  #mobileSearchInputRC64::placeholder{
    color:#99938a!important;
    -webkit-text-fill-color:#99938a!important;
    opacity:1!important;
  }

  #mobileSearchSubmitRC644{
    grid-column:2!important;
    display:grid!important;
    place-items:center!important;
    width:34px!important;
    height:34px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-left:1px solid rgba(205,162,69,.26)!important;
    border-radius:0!important;
    background:#16130d!important;
    color:#dfb457!important;
    font-size:18px!important;
    line-height:1!important;
  }

  /* Kill every previous overlay behavior from RC6.4.3. */
  #mobileSearchWrapRC64.open,
  #mobileSearchWrapRC64.mobile-search-integrated-rc643{
    position:relative!important;
    inset:auto!important;
    transform:none!important;
    opacity:1!important;
    pointer-events:auto!important;
    background:#111!important;
  }
  #mobileSearchWrapRC64:before{content:none!important;}

  /* Real logo element — larger and horizontally stretched. */
  header nav img[alt*="TabacaCria"],
  header img[src*="logo-tabacacria"],
  nav img[src*="logo-tabacacria"]{
    grid-column:3!important;
    justify-self:center!important;
    width:118px!important;
    max-width:118px!important;
    height:auto!important;
    object-fit:contain!important;
    transform:scaleX(1.14)!important;
    transform-origin:center!important;
  }

  header .account-top{grid-column:4!important;}
  #topCartBtn{grid-column:5!important;}

  /* Keep keyboard from fighting the bottom nav. */
  body:has(#mobileSearchInputRC64:focus) .bottom-nav{
    transform:translateY(105%)!important;
    pointer-events:none!important;
  }
}

/* ============================================================
   V5.47 RC6.4.5 — HEADER PROPORTION FIX
============================================================ */
.header-brand-rc645{
  display:block!important;
  object-fit:contain!important;
  object-position:center!important;
  background:transparent!important;
}

/* Desktop: logo visually larger, header physically thinner. */
@media(min-width:761px){
  #mobileSearchWrapRC64{display:none!important}
  header nav{
    min-height:62px!important;
    padding-top:5px!important;
    padding-bottom:5px!important;
    align-items:center!important;
  }
  header nav .header-brand-rc645{
    width:185px!important;
    max-width:18vw!important;
    height:48px!important;
    margin:0!important;
    transform:none!important;
  }
}

/* Mobile: all five controls live in the SAME nav row. */
@media(max-width:760px){
  header nav{
    display:grid!important;
    grid-template-columns:40px minmax(94px,1fr) minmax(100px,118px) 38px 43px!important;
    grid-template-rows:52px!important;
    align-items:center!important;
    column-gap:4px!important;
    row-gap:0!important;
    min-height:52px!important;
    height:52px!important;
    padding:0 6px!important;
    overflow:visible!important;
  }

  #mobileMenuBtn{
    grid-column:1!important;grid-row:1!important;
    width:36px!important;height:36px!important;margin:0!important;
  }

  #mobileSearchWrapRC64.mobile-search-integrated-rc644{
    grid-column:2!important;grid-row:1!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 31px!important;
    position:relative!important;
    width:100%!important;height:33px!important;min-width:0!important;
    margin:0!important;padding:0!important;
    border:1px solid rgba(205,162,69,.52)!important;
    border-radius:10px!important;
    background:#111!important;
    overflow:hidden!important;
    transform:none!important;opacity:1!important;pointer-events:auto!important;
  }
  #mobileSearchWrapRC64:before{content:none!important}

  #mobileSearchInputRC64{
    width:100%!important;min-width:0!important;height:31px!important;
    margin:0!important;padding:0 7px!important;
    border:0!important;outline:0!important;border-radius:0!important;
    background:#111!important;color:#f4f1ea!important;
    -webkit-text-fill-color:#f4f1ea!important;
    caret-color:#d7aa4b!important;
    font-size:16px!important;line-height:31px!important;
    appearance:none!important;-webkit-appearance:none!important;box-shadow:none!important;
  }

  #mobileSearchSubmitRC644{
    width:31px!important;height:31px!important;margin:0!important;padding:0!important;
    display:grid!important;place-items:center!important;
    border:0!important;border-left:1px solid rgba(205,162,69,.24)!important;
    background:#16130d!important;color:#dfb457!important;font-size:17px!important;
  }

  header nav .header-brand-rc645{
    grid-column:3!important;grid-row:1!important;
    justify-self:center!important;
    width:112px!important;max-width:112px!important;height:40px!important;
    margin:0!important;transform:none!important;
  }

  header .account-top{
    grid-column:4!important;grid-row:1!important;
    width:36px!important;height:36px!important;margin:0!important;
  }
  #topCartBtn{
    grid-column:5!important;grid-row:1!important;
    width:41px!important;height:36px!important;margin:0!important;
  }

  /* Desktop-only items stay out of mobile row. */
  header nav > .search.search-box,
  header nav > .orders-top,
  header nav > .fav-top,
  header nav > button.icon-btn:not(.account-top):not(#topCartBtn):not(#mobileMenuBtn){
    display:none!important;
  }
}

/* ============================================================
   V5.47 RC6.4.6 — FINAL HEADER LAYOUT
   MOBILE: hamburger + cart | centered logo | search
============================================================ */

@media(max-width:760px){
  header nav{
    display:grid!important;
    grid-template-columns:40px 44px minmax(108px,1fr) minmax(118px,145px)!important;
    grid-template-rows:52px!important;
    align-items:center!important;
    column-gap:5px!important;
    row-gap:0!important;
    min-height:52px!important;
    height:52px!important;
    padding:0 7px!important;
    position:relative!important;
  }

  /* Left cluster */
  #mobileMenuBtn{
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
  }

  #topCartBtn{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:start!important;
    width:42px!important;
    height:36px!important;
  }

  /* Account is already available in the hamburger menu. */
  header .account-top{
    display:none!important;
  }

  /* Brand centered in the remaining visual header area. */
  header nav .header-brand-rc645{
    grid-column:3!important;
    grid-row:1!important;
    justify-self:center!important;
    align-self:center!important;
    width:116px!important;
    max-width:116px!important;
    height:40px!important;
    margin:0!important;
    transform:none!important;
  }

  /* Search on the right */
  #mobileSearchWrapRC64.mobile-search-integrated-rc644{
    grid-column:4!important;
    grid-row:1!important;
    justify-self:stretch!important;
    width:100%!important;
    max-width:145px!important;
    min-width:118px!important;
    height:34px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 34px!important;
    border-radius:10px!important;
  }

  #mobileSearchInputRC64{
    height:32px!important;
    font-size:16px!important;
    padding:0 7px!important;
  }

  #mobileSearchSubmitRC644{
    width:34px!important;
    height:32px!important;
    display:grid!important;
    place-items:center!important;
    color:#dfb457!important;
    background:#16130d!important;
  }

  #mobileSearchSubmitRC644 svg{
    width:18px!important;
    height:18px!important;
    display:block!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:2!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }

  /* Ensure no hidden/legacy button reoccupies layout. */
  header nav > button.icon-btn:not(#mobileMenuBtn):not(#topCartBtn){
    display:none!important;
  }
}

/* Desktop: keep the header thin, with a visually centered brand. */
@media(min-width:761px){
  header nav{
    position:relative!important;
  }

  header nav .header-brand-rc645{
    width:180px!important;
    max-width:18vw!important;
    height:46px!important;
    margin:0!important;
    transform:none!important;
  }
}

/* ============================================================
   V5.47 RC6.4.7 — HEADER + HERO FINAL OVERRIDE
   Highest-specificity mobile placement to neutralize old grid rules.
============================================================ */
@media(max-width:760px){
  body>header>nav{
    display:block!important;
    position:relative!important;
    height:54px!important;
    min-height:54px!important;
    padding:0 7px!important;
    overflow:visible!important;
  }

  /* LEFT: hamburger + cart */
  body>header>nav>#mobileMenuBtn{
    position:absolute!important;
    left:7px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:38px!important;
    height:38px!important;
    margin:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    z-index:10!important;
  }

  body>header>nav>#topCartBtn{
    position:absolute!important;
    left:51px!important;
    right:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:43px!important;
    height:38px!important;
    margin:0!important;
    padding:0 4px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    z-index:10!important;
  }

  /* Account stays only inside hamburger */
  body>header>nav>#accountTopBtn,
  body>header>nav>.account-top{
    display:none!important;
  }

  /* TRUE SCREEN-CENTERED BRAND */
  body>header>nav>.header-brand-rc645{
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
    width:116px!important;
    max-width:116px!important;
    height:40px!important;
    margin:0!important;
    z-index:4!important;
    object-fit:contain!important;
  }

  /* RIGHT: search */
  body>header>nav>#mobileSearchWrapRC64{
    position:absolute!important;
    right:7px!important;
    left:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:118px!important;
    min-width:118px!important;
    max-width:118px!important;
    height:34px!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 33px!important;
    border:1px solid rgba(205,162,69,.56)!important;
    border-radius:10px!important;
    background:#111!important;
    overflow:hidden!important;
    opacity:1!important;
    pointer-events:auto!important;
    z-index:10!important;
  }

  body>header>nav>#mobileSearchWrapRC64:before{
    content:none!important;
  }

  body>header>nav>#mobileSearchWrapRC64>#mobileSearchInputRC64{
    width:100%!important;
    min-width:0!important;
    height:32px!important;
    margin:0!important;
    padding:0 6px!important;
    border:0!important;
    outline:0!important;
    background:#111!important;
    color:#f4f1ea!important;
    -webkit-text-fill-color:#f4f1ea!important;
    caret-color:#dfb457!important;
    font-size:16px!important;
    line-height:32px!important;
    appearance:none!important;
    -webkit-appearance:none!important;
    box-shadow:none!important;
  }

  /* Robust CSS-only magnifier */
  body>header>nav>#mobileSearchWrapRC64>#mobileSearchSubmitRC644{
    position:relative!important;
    width:33px!important;
    height:32px!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    border:0!important;
    border-left:1px solid rgba(205,162,69,.26)!important;
    background:#16130d!important;
    color:#dfb457!important;
    overflow:visible!important;
  }
  body>header>nav>#mobileSearchWrapRC64>#mobileSearchSubmitRC644 svg{
    display:none!important;
  }
  body>header>nav>#mobileSearchWrapRC64>#mobileSearchSubmitRC644:before{
    content:""!important;
    position:absolute!important;
    width:10px!important;
    height:10px!important;
    border:2px solid #dfb457!important;
    border-radius:50%!important;
    left:8px!important;
    top:7px!important;
    box-sizing:border-box!important;
  }
  body>header>nav>#mobileSearchWrapRC64>#mobileSearchSubmitRC644:after{
    content:""!important;
    position:absolute!important;
    width:7px!important;
    height:2px!important;
    background:#dfb457!important;
    border-radius:2px!important;
    transform:rotate(45deg)!important;
    left:17px!important;
    top:18px!important;
    transform-origin:left center!important;
  }

  /* Hide legacy desktop-only header controls on mobile. */
  body>header>nav>.search.search-box,
  body>header>nav>.orders-top,
  body>header>nav>button[onclick="showFavorites()"]{
    display:none!important;
  }

  /* HERO: swipe is primary; arrows stay as subtle fallback. */
  #heroSection{
    touch-action:pan-y!important;
  }
  #heroSection .hero-nav{
    width:34px!important;
    height:34px!important;
    opacity:.24!important;
    background:rgba(8,8,8,.42)!important;
    border-color:rgba(225,175,57,.32)!important;
    font-size:23px!important;
    transition:opacity .16s ease!important;
  }
  #heroSection .hero-nav:active{
    opacity:.7!important;
  }
  #heroSection .hero-prev{left:5px!important;}
  #heroSection .hero-next{right:5px!important;}
}

/* Desktop: keep current validated thin header. */
@media(min-width:761px){
  body>header>nav>.header-brand-rc645{
    width:180px!important;
    max-width:18vw!important;
    height:46px!important;
  }
}

/* ============================================================
   V5.47 RC6.4.8 — HEADER MATCH REFERENCE
   Target: [MENU][CART]   [CENTER LOGO]   [SEARCH]
============================================================ */

/* MOBILE — isolate from every previous layout rule */
@media(max-width:760px){

  header nav.tc-header-final-rc648{
    display:block!important;
    position:relative!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    padding:0 10px!important;
    margin:0!important;
    overflow:visible!important;
  }

  /* MENU */
  header nav.tc-header-final-rc648 > #mobileMenuBtn{
    position:absolute!important;
    left:10px!important;
    right:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    z-index:50!important;
  }

  /* CART — immediately beside hamburger */
  header nav.tc-header-final-rc648 > #topCartBtn{
    position:absolute!important;
    left:54px!important;
    right:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    width:43px!important;
    height:38px!important;
    min-width:43px!important;
    margin:0!important;
    padding:0 3px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    z-index:50!important;
  }

  /* ACCOUNT lives only inside hamburger */
  header nav.tc-header-final-rc648 > #accountTopBtn,
  header nav.tc-header-final-rc648 > .account-top{
    display:none!important;
  }

  /* LOGO — geometric center of viewport */
  header nav.tc-header-final-rc648 > .header-brand-rc645{
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    top:50%!important;
    transform:translate(-50%,-50%) scale(1.42)!important;
    transform-origin:center center!important;
    width:124px!important;
    max-width:124px!important;
    height:44px!important;
    max-height:44px!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    object-fit:contain!important;
    object-position:center!important;
    z-index:20!important;
  }

  /* SEARCH — locked to right side */
  header nav.tc-header-final-rc648 > #mobileSearchWrapRC64{
    position:absolute!important;
    right:10px!important;
    left:auto!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    box-sizing:border-box!important;
    width:122px!important;
    min-width:122px!important;
    max-width:122px!important;
    height:36px!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 34px!important;
    align-items:center!important;
    border:1px solid rgba(215,170,75,.62)!important;
    border-radius:12px!important;
    background:#111!important;
    overflow:hidden!important;
    opacity:1!important;
    pointer-events:auto!important;
    z-index:50!important;
  }

  header nav.tc-header-final-rc648 > #mobileSearchWrapRC64 > #mobileSearchInputRC64{
    width:100%!important;
    min-width:0!important;
    height:34px!important;
    margin:0!important;
    padding:0 6px 0 9px!important;
    border:0!important;
    outline:0!important;
    border-radius:0!important;
    background:#111!important;
    color:#f5f2ec!important;
    -webkit-text-fill-color:#f5f2ec!important;
    caret-color:#dfb457!important;
    font-size:16px!important;
    line-height:34px!important;
    appearance:none!important;
    -webkit-appearance:none!important;
    box-shadow:none!important;
  }

  header nav.tc-header-final-rc648 > #mobileSearchWrapRC64 > #mobileSearchInputRC64::placeholder{
    color:#aaa39a!important;
    -webkit-text-fill-color:#aaa39a!important;
    opacity:1!important;
  }

  /* SEARCH BUTTON — CSS magnifier, guaranteed visible */
  header nav.tc-header-final-rc648 > #mobileSearchWrapRC64 > #mobileSearchSubmitRC644{
    position:relative!important;
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    border:0!important;
    border-left:1px solid rgba(215,170,75,.25)!important;
    background:#16130d!important;
    color:#dfb457!important;
    overflow:visible!important;
  }

  header nav.tc-header-final-rc648 > #mobileSearchWrapRC64 > #mobileSearchSubmitRC644 svg{
    display:none!important;
  }

  header nav.tc-header-final-rc648 > #mobileSearchWrapRC64 > #mobileSearchSubmitRC644::before{
    content:""!important;
    position:absolute!important;
    box-sizing:border-box!important;
    width:13px!important;
    height:13px!important;
    left:7px!important;
    top:6px!important;
    border:3px solid #dfb457!important;
    border-radius:50%!important;
  }

  header nav.tc-header-final-rc648 > #mobileSearchWrapRC64 > #mobileSearchSubmitRC644::after{
    content:""!important;
    position:absolute!important;
    width:8px!important;
    height:3px!important;
    left:18px!important;
    top:20px!important;
    border-radius:3px!important;
    background:#dfb457!important;
    transform:rotate(45deg)!important;
    transform-origin:left center!important;
  }

  /* Never allow legacy desktop controls into this row */
  header nav.tc-header-final-rc648 > .search.search-box,
  header nav.tc-header-final-rc648 > .orders-top,
  header nav.tc-header-final-rc648 > .fav-top,
  header nav.tc-header-final-rc648 > button.icon-btn:not(#mobileMenuBtn):not(#topCartBtn){
    display:none!important;
  }

  /* Hero swipe remains primary. Arrows stay as subtle fallback. */
  #heroSection{touch-action:pan-y!important;}
  #heroSection .hero-nav{
    width:32px!important;
    height:32px!important;
    opacity:.18!important;
    background:rgba(8,8,8,.28)!important;
    border-color:rgba(225,175,57,.22)!important;
  }
  #heroSection .hero-prev{left:4px!important;}
  #heroSection .hero-next{right:4px!important;}
  #heroSection .hero-nav:active{opacity:.62!important;}
}

/* DESKTOP / MAC — maintain thin bar and give the tight logo enough presence */
@media(min-width:761px){
  header nav.tc-header-final-rc648{
    position:relative!important;
    min-height:64px!important;
    height:64px!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
    box-sizing:border-box!important;
  }

  header nav.tc-header-final-rc648 > #mobileSearchWrapRC64{
    display:none!important;
  }

  header nav.tc-header-final-rc648 > .header-brand-rc645{
    width:205px!important;
    max-width:20vw!important;
    height:50px!important;
    object-fit:contain!important;
    transform:none!important;
  }
}

/* ============================================================
   V5.47 RC6.4.12 — IOS SEARCH FOCUS STABILITY
   While the mobile search field owns the keyboard, pin only the already
   validated header and reserve the same 58px in document flow.
============================================================ */
@media(max-width:760px){
  body.tc-mobile-search-focus-rc6412 > header{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    z-index:1200!important;
    transform:translateZ(0)!important;
    -webkit-transform:translateZ(0)!important;
  }

  body.tc-mobile-search-focus-rc6412 > main.wrap{
    padding-top:74px!important;
  }

  body.tc-mobile-search-focus-rc6412 #catalog{
    scroll-margin-top:66px!important;
  }
}

/* ============================================================
   V5.47 RC6.4.13 — MOBILE SEARCH LAYER + HEADER LOCK
   Search results own the viewport while a query exists. This is
   intentionally stronger than old Hero/category display rules.
============================================================ */
@media(max-width:760px){
  /* Safari may blur the input during a drag/scroll. Active query state,
     not :focus, therefore owns the fixed header. */
  body.tc-mobile-search-active-rc6413 > header,
  body.tc-mobile-search-focus-rc6412 > header{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    z-index:2147482000!important;
    transform:translateZ(0)!important;
    -webkit-transform:translateZ(0)!important;
  }

  body.tc-mobile-search-active-rc6413 > main.wrap,
  body.tc-mobile-search-focus-rc6412 > main.wrap{
    padding-top:74px!important;
  }

  /* During a real mobile query, results become the first content below
     the fixed header. IDs intentionally beat older !important Hero/grid
     declarations without changing their normal Home styling. */
  body.tc-mobile-search-active-rc6413 #heroSection,
  body.tc-mobile-search-active-rc6413 #categoriesTitle,
  body.tc-mobile-search-active-rc6413 #categoriesGrid,
  body.tc-mobile-search-active-rc6413 #subcategoryRow,
  body.tc-mobile-search-active-rc6413 #homeShowcases{
    display:none!important;
  }

  body.tc-mobile-search-active-rc6413 #catalogSection{
    margin-top:0!important;
    padding-top:0!important;
  }

  body.tc-mobile-search-active-rc6413 #catalog{
    scroll-margin-top:66px!important;
  }

  /* Bottom fixed navigation stays out of the reduced keyboard viewport
     for the whole active search, even if Safari momentarily drops focus. */
  body.tc-mobile-search-active-rc6413 .bottom-nav{
    display:none!important;
  }
}

/* ============================================================
   V5.47 RC6.4.14 — HERO SMART DESTINATIONS
============================================================ */
.hero-slide-link-smart-rc614{background:transparent;cursor:pointer;font-family:inherit;appearance:none;-webkit-appearance:none}
.hero-destination-smart{display:grid;grid-template-columns:1fr 1fr;gap:8px;border:1px solid #332c1d;background:#0d0d0b;border-radius:9px;padding:10px}
.hero-destination-smart.hidden{display:none!important}
.hero-destination-note{grid-column:1/-1;display:flex;flex-direction:column;gap:3px;padding:4px 2px}
.hero-destination-note b{font-size:9px;color:#d0a13a}.hero-destination-note span{font-size:8px;color:#8f8f8f}
.hero-destination-warning{grid-column:1/-1;border:1px solid #5e4930;background:#18130c;color:#d5a852;border-radius:7px;padding:8px;font-size:8px}
#heroDestinationExternalWrap small{display:block;color:#777;font-size:8px;margin-top:4px}
@media(max-width:850px){.hero-destination-smart{grid-template-columns:1fr}}

/* ============================================================
   V5.47 RC6.4.15 — PWA SAFE AREA + TRUE HEADER LOCK
   Surgical layer over RC6.4.14.
   - Installed iPhone PWA reserves the top safe-area below status icons.
   - Store announcement and header keep a deterministic vertical stack.
   - Active/focused mobile search follows Safari's visual viewport while
     the keyboard is open, without touching the validated search engine.
============================================================ */
:root{
  --tc-announcement-height-rc6415:0px;
  --tc-visual-viewport-top-rc6415:0px;
  --tc-pwa-safe-top-rc6415:0px;
}

@media(max-width:760px){
  /* Only the installed app receives an explicit iPhone safe-area spacer.
     Browser/Safari layout remains unchanged outside active search. */
  body.tc-pwa-standalone-rc6415{
    --tc-pwa-safe-top-rc6415:env(safe-area-inset-top,0px);
  }
  body.tc-pwa-standalone-rc6415::before{
    content:"";
    display:block;
    width:100%;
    height:var(--tc-pwa-safe-top-rc6415);
    min-height:var(--tc-pwa-safe-top-rc6415);
    background:#050505;
    pointer-events:none;
  }

  /* Normal installed-app stack: black iOS safe area -> optional gold
     announcement -> validated 58px header. */
  body.tc-pwa-standalone-rc6415 #storeAnnouncement:not(.hidden){
    top:var(--tc-pwa-safe-top-rc6415)!important;
    z-index:860!important;
  }
  body.tc-pwa-standalone-rc6415 > header{
    top:var(--tc-pwa-safe-top-rc6415)!important;
  }
  body.tc-pwa-standalone-rc6415.tc-store-announcement-on-rc6415 > header{
    top:calc(var(--tc-pwa-safe-top-rc6415) + var(--tc-announcement-height-rc6415))!important;
  }

  /* Search/keyboard mode: fixed elements must track the *visual* Safari
     viewport. This survives keyboard panning and finger scrolling. */
  body.tc-mobile-search-active-rc6413 #storeAnnouncement:not(.hidden),
  body.tc-mobile-search-focus-rc6412 #storeAnnouncement:not(.hidden){
    position:fixed!important;
    top:calc(var(--tc-visual-viewport-top-rc6415) + var(--tc-pwa-safe-top-rc6415))!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    z-index:1210!important;
    transform:translateZ(0)!important;
    -webkit-transform:translateZ(0)!important;
  }

  body.tc-mobile-search-active-rc6413 > header,
  body.tc-mobile-search-focus-rc6412 > header{
    position:fixed!important;
    top:calc(var(--tc-visual-viewport-top-rc6415) + var(--tc-pwa-safe-top-rc6415) + var(--tc-announcement-height-rc6415))!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    z-index:1200!important;
    transform:translateZ(0)!important;
    -webkit-transform:translateZ(0)!important;
  }

  /* Announcement is fixed during keyboard mode too, so reserve its real
     measured height in addition to RC6.4.13's validated header reserve. */
  body.tc-mobile-search-active-rc6413 > main.wrap,
  body.tc-mobile-search-focus-rc6412 > main.wrap{
    padding-top:calc(74px + var(--tc-announcement-height-rc6415))!important;
  }

  body.tc-mobile-search-active-rc6413 #catalog,
  body.tc-mobile-search-focus-rc6412 #catalog{
    scroll-margin-top:calc(66px + var(--tc-announcement-height-rc6415))!important;
  }
}

/* ============================================================
   V5.47 RC6.4.16 — ACCOUNT + CRM PRACTICAL FLOW
   Surgical UX layer over RC6.4.15.1.
   - Account modal always sits above the locked storefront header.
   - Registered customers see saved data in read-only mode by default.
   - Admin manual-customer creation uses the existing CRM identity rules.
============================================================ */
#accountModal{
  z-index:9300!important;
  padding-top:max(16px,env(safe-area-inset-top,0px))!important;
  padding-bottom:max(16px,env(safe-area-inset-bottom,0px))!important;
}
#accountModal .account-card{
  max-height:calc(100dvh - max(24px,env(safe-area-inset-top,0px)) - max(24px,env(safe-area-inset-bottom,0px)))!important;
  overscroll-behavior:contain!important;
}
#accountModal .account-card>.drawer-head{
  position:sticky!important;
  top:-18px!important;
  z-index:80!important;
  margin:-18px -18px 12px!important;
  padding:14px 18px 12px!important;
  background:#090909!important;
  border-bottom:1px solid #29251d!important;
}
#accountModal .account-profile{
  position:relative!important;
  top:auto!important;
  z-index:auto!important;
}
.account-data-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.account-data-head h3{margin:0!important}
.account-edit-btn{width:auto!important;margin:0!important;padding:7px 9px!important;font-size:8px!important}
.account-data-summary{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.account-data-summary>div{min-width:0;background:#0d0d0d;border:1px solid #242424;border-radius:8px;padding:9px}
.account-data-summary>div.wide{grid-column:1/-1}
.account-data-summary small{display:block;color:#777;font-size:7px;font-weight:900;margin-bottom:4px}
.account-data-summary b{display:block;color:#e8e8e5;font-size:10px;line-height:1.35;overflow-wrap:anywhere}
.account-data-hint{display:block;color:#777;font-size:8px;line-height:1.45;margin-top:9px}
.account-edit-actions{display:grid;grid-template-columns:.75fr 1.25fr;gap:7px;margin-top:8px}
.account-edit-actions .btn{margin-top:0!important}

#newClientModal{z-index:9300!important}
.new-client-card{width:min(560px,96vw)!important}
.new-client-intro{color:#999;font-size:9px;line-height:1.5;margin:2px 0 12px}
.new-client-note{display:block;color:#777;font-size:8px;line-height:1.45;margin-top:8px}
.new-client-identity-msg{border:1px solid #6b531f;background:#171208;color:#d7ae4a;border-radius:8px;padding:9px;margin:6px 0 9px;font-size:9px;line-height:1.45}
.new-client-identity-msg.bad{border-color:#663333;background:#190d0d;color:#e08b8b}
#newClientSaveBtn:disabled{opacity:.55;cursor:wait}

@media(max-width:760px){
  #accountModal{padding-left:8px!important;padding-right:8px!important}
  #accountModal .account-card{width:100%!important;max-width:100%!important}
  .account-data-summary{grid-template-columns:1fr}
  .account-data-summary>div.wide{grid-column:auto}
  .account-edit-actions{grid-template-columns:1fr}
}


/* ============================================================
   V5.47 RC6.4.17 — CUSTOM SHOWCASES + SPLIT COLOR ADMIN
============================================================ */
.showcase-create-card{border:1px solid #4a3a19;background:linear-gradient(145deg,#151107,#0d0d0c);border-radius:12px;padding:12px;margin:0 0 12px}
.showcase-create-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:9px}.showcase-create-head small{display:block;color:#9c7c34;font-size:7px}.showcase-create-head b{display:block;margin-top:3px;font-size:10px}.showcase-create-head span{font-size:7px;color:#777}
.showcase-create-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:9px}.showcase-create-grid .span-2{grid-column:1/-1}.showcase-create-grid label,.showcase-source-smart label{font-size:7px;color:#8c867a}.showcase-create-grid input,.showcase-create-grid select,.showcase-source-smart select{width:100%;margin-top:3px}.showcase-source-smart{display:grid;grid-template-columns:1fr 1fr;gap:7px}.showcase-source-smart.hidden{display:none!important}
.showcase-card-actions{display:flex;gap:7px}.showcase-card-actions .btn{flex:1}.custom-showcase-admin{border-color:#4a3a19}.custom-showcase-admin .showcase-map small{color:#d1a33c}
.rc6417-variant-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))!important}.variant-color-mode-field select{min-width:130px}.variant-color-preview{background-clip:padding-box!important}
@media(max-width:850px){.showcase-create-grid{grid-template-columns:1fr}.showcase-create-grid .span-2{grid-column:auto}.showcase-source-smart{grid-template-columns:1fr}.showcase-create-head{align-items:flex-start;flex-direction:column}.showcase-card-actions{flex-direction:column}}

/* ============================================================
   V5.47 RC6.4.17.1 — CLIENT NOTIFICATIONS + ORDER MODAL LAYER FIX
   Surgical visual patch over RC6.4.17.
   - Customer status/chat notifications sit below the effective mobile
     top stack (visual viewport + PWA safe area + announcement + header).
   - Orders / tracking modals and their close controls always sit above
     the storefront header, matching the already-approved Account modal.
   - No order, chat, notification, search, Hero, showcase or product
     business logic is changed here.
============================================================ */
@media(max-width:760px){
  /* RC6.4.15.1 already keeps these variables synchronized on iPhone/PWA.
     Reuse that validated stack instead of adding another JS observer. */
  .tc-notification-toast{
    top:calc(
      var(--tc-visual-viewport-top-rc6415,0px)
      + var(--tc-pwa-safe-top-rc6415,0px)
      + var(--tc-announcement-height-rc6415,0px)
      + 66px
    )!important;
    left:10px!important;
    right:10px!important;
    width:auto!important;
    z-index:9450!important;
    max-height:calc(100dvh - 100px)!important;
  }

  /* Order surfaces must never be hidden behind the sticky/fixed store
     header. The same safe modal pattern was already validated for Account. */
  #ordersHub,
  #trackingModal{
    z-index:9350!important;
    padding-top:max(10px,env(safe-area-inset-top,0px))!important;
    padding-bottom:max(10px,env(safe-area-inset-bottom,0px))!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }

  #ordersHub .orders-hub-card,
  #trackingModal .tracking-card{
    width:100%!important;
    max-width:500px!important;
    max-height:calc(
      100dvh
      - max(20px,env(safe-area-inset-top,0px))
      - max(20px,env(safe-area-inset-bottom,0px))
    )!important;
    overscroll-behavior:contain!important;
  }

  #ordersHub .orders-hub-card>.drawer-head,
  #trackingModal .tracking-card>.drawer-head{
    position:sticky!important;
    top:-18px!important;
    z-index:90!important;
    margin:-18px -18px 12px!important;
    padding:14px 18px 12px!important;
    background:#090909!important;
    border-bottom:1px solid #29251d!important;
  }

  #ordersHub .drawer-head .close,
  #trackingModal .drawer-head .close{
    position:relative!important;
    z-index:2!important;
    flex:0 0 auto!important;
  }
}


/* ============================================================
   V5.47 RC6.4.18 — CATEGORY FOCUS + ADMIN CATEGORY GUIDE
   Category browsing only removes Home showcases; Hero and category controls
   stay available. Search/PWA/header layers keep their existing precedence.
============================================================ */
.category-admin-guide-rc6418{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:-2px 0 10px}
.category-admin-guide-rc6418>div{border:1px solid #30291d;background:#0c0c0b;border-radius:8px;padding:8px 9px}
.category-admin-guide-rc6418 b{display:block;color:#d4a53b;font-size:7px;margin-bottom:3px}
.category-admin-guide-rc6418 span{display:block;color:#858585;font-size:7px;line-height:1.4}

@media(max-width:760px){
  body.tc-category-browse-active-rc6418 #homeShowcases{
    display:none!important;
  }
  body.tc-category-browse-active-rc6418 #catalogSection{
    margin-top:0!important;
    padding-top:0!important;
  }
  body.tc-category-browse-active-rc6418 #catalog{
    scroll-margin-top:calc(68px + var(--tc-announcement-height-rc6415,0px) + var(--tc-pwa-safe-top-rc6415,0px))!important;
  }
}
@media(max-width:850px){.category-admin-guide-rc6418{grid-template-columns:1fr}}


/* ============================================================
   V5.47 RC6.4.18.1 — CATEGORY FOCUS DESKTOP + VIEWPORT SYNC
   RC6.4.18 hid showcases only below 760px. Category focus is now identical
   on mobile and desktop, and selection stays anchored at category controls.
============================================================ */
body.tc-category-browse-active-rc6418 #homeShowcases{
  display:none!important;
}
body.tc-category-browse-active-rc6418 #catalogSection{
  margin-top:0!important;
  padding-top:0!important;
}
#categoriesTitle{
  scroll-margin-top:82px;
}
body.tc-category-browse-active-rc6418 #subcategoryRow{
  scroll-margin-top:116px;
}
@media(max-width:760px){
  #categoriesTitle{
    scroll-margin-top:calc(70px + var(--tc-announcement-height-rc6415,0px) + var(--tc-pwa-safe-top-rc6415,0px))!important;
  }
  body.tc-category-browse-active-rc6418 #subcategoryRow{
    scroll-margin-top:calc(122px + var(--tc-announcement-height-rc6415,0px) + var(--tc-pwa-safe-top-rc6415,0px))!important;
  }
}

/* ============================================================
   V5.47 RC6.4.19 — HOME MOBILE CLEANUP / LAYER HYGIENE
   Surgical layer over approved RC6.4.18.3:
   - retire redundant mobile bottom navigation without deleting its DOM;
   - restore true hidden state for absent product option groups;
   - cart and hamburger start below the validated safe-area/announcement/header stack;
   - cart close header remains visible while the drawer scrolls.
============================================================ */

/* RC6.4.17's option-group display rule is intentionally strong for real
   selectors, but hidden option groups must always win when a product has no
   color/size choice. Higher specificity avoids changing any selector logic. */
.detail-option-group.hidden{
  display:none!important;
}

@media(max-width:760px){
  /* The lower navigation duplicates routes already available through the
     logo/header/menu. Keep the DOM for backwards-compatible JS references,
     but retire it visually and reclaim the reserved page space. */
  #bottomNav,
  .bottom-nav{
    display:none!important;
  }
  body:not(.admin-preview-mode) .wrap{
    padding-bottom:max(24px,calc(16px + env(safe-area-inset-bottom,0px)))!important;
  }

  /* Shared storefront top stack: installed-iPhone safe-area + optional store
     announcement + approved 58px header. Drawers begin *below* this stack. */
  #overlay{
    top:calc(
      var(--tc-pwa-safe-top-rc6415,0px)
      + var(--tc-announcement-height-rc6415,0px)
      + 58px
    )!important;
    bottom:0!important;
    left:0!important;
    right:0!important;
    z-index:1180!important;
  }
  #overlay .drawer{
    top:0!important;
    bottom:0!important;
    height:100%!important;
    max-height:100%!important;
    padding-top:0!important;
  }
  #overlay .drawer>.drawer-head{
    position:sticky!important;
    top:0!important;
    z-index:40!important;
    margin:0 -16px 10px!important;
    padding:12px 16px!important;
    background:#070707!important;
    border-bottom:1px solid #29251d!important;
  }
  #overlay .drawer>.drawer-head .close{
    position:relative!important;
    z-index:2!important;
    flex:0 0 auto!important;
  }

  #mobileMenuBackdrop,
  #mobileMenu{
    top:calc(
      var(--tc-pwa-safe-top-rc6415,0px)
      + var(--tc-announcement-height-rc6415,0px)
      + 58px
    )!important;
    bottom:0!important;
  }
  #mobileMenuBackdrop{z-index:1185!important}
  #mobileMenu{z-index:1190!important}
  #mobileMenu .mobile-nav-head{
    flex:0 0 58px!important;
    height:58px!important;
    min-height:58px!important;
    background:#090909!important;
  }
}

/* ============================================================
   V5.47 RC6.4.20 — HOME BUILDER PRO
============================================================ */
.home-builder-enabled-rc6420 .showcase-section.home-builder-unplaced-rc6420{display:none!important}
.home-builder-block-rc6420{position:relative;margin:22px 0;border:1px solid #252219;border-radius:16px;overflow:hidden;background:#090909}
.home-rich-shade-rc6420{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.9),rgba(0,0,0,.46) 58%,rgba(0,0,0,.2));pointer-events:none}
.home-banner-block-rc6420,.home-category-spotlight-block-rc6420{min-height:280px;background-position:center;background-size:cover;display:flex;align-items:flex-end}
.home-category-spotlight-block-rc6420{min-height:330px}
.home-rich-copy-rc6420{position:relative;z-index:2;padding:34px;max-width:620px}
.home-rich-copy-rc6420 h2,.home-about-copy-rc6420 h2,.home-builder-title-rc6420 h2,.home-social-block-rc6420 h2{margin:6px 0 8px;font-size:clamp(25px,4vw,48px);line-height:.98;letter-spacing:-.035em}
.home-rich-copy-rc6420 p,.home-about-copy-rc6420 p,.home-social-block-rc6420 p{margin:0 0 18px;color:#c5c0b5;line-height:1.55;max-width:620px}
.home-block-action-rc6420,.home-slider-action-rc6420{display:inline-flex;align-items:center;justify-content:center;border:1px solid #d6a638;background:#d6a638;color:#070707;border-radius:9px;padding:11px 15px;font-size:10px;font-weight:1000;letter-spacing:.04em;text-decoration:none;cursor:pointer}
.home-benefits-block-rc6420{padding:25px}
.home-builder-title-rc6420{margin-bottom:16px;text-align:center}
.home-builder-title-rc6420 h2{font-size:25px}
.home-benefits-grid-rc6420{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.home-benefits-grid-rc6420 article{display:flex;gap:12px;align-items:center;padding:16px;border:1px solid #28241b;border-radius:12px;background:#0d0d0c;min-height:86px}
.home-benefits-grid-rc6420 article i{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#17140d;border:1px solid #4d3c18;font-style:normal;font-size:18px;flex:0 0 auto}
.home-benefits-grid-rc6420 article b{display:block;font-size:10px;color:#e5ad22;letter-spacing:.06em}.home-benefits-grid-rc6420 article span{display:block;margin-top:4px;color:#aaa;font-size:10px;line-height:1.35}
.home-about-block-rc6420{display:grid;grid-template-columns:minmax(0,1fr);min-height:260px}.home-about-block-rc6420.has-image{grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr)}
.home-about-media-rc6420{min-height:300px;background-position:center;background-size:cover}.home-about-copy-rc6420{padding:38px;align-self:center}.home-about-copy-rc6420 h2{font-size:36px}
.home-social-block-rc6420{padding:30px;display:flex;align-items:center;justify-content:space-between;gap:25px}.home-social-block-rc6420 h2{font-size:31px}.home-social-block-rc6420 p{margin-bottom:0}
.home-social-links-rc6420{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.home-social-links-rc6420 a{min-width:84px;padding:12px 10px;border:1px solid #332b1b;border-radius:11px;color:#ddd;text-decoration:none;text-align:center;background:#0e0d0b}.home-social-links-rc6420 a i{display:block;font-style:normal;color:#e5ad22;font-weight:1000;font-size:16px}.home-social-links-rc6420 a span{display:block;margin-top:5px;font-size:8px;font-weight:900;letter-spacing:.05em}
.home-slider-block-rc6420{min-height:320px}.home-slider-track-rc6420{position:relative;min-height:320px}.home-slider-slide-rc6420{position:absolute;inset:0;opacity:0;pointer-events:none;transition:opacity .32s ease;background-position:center;background-size:cover;display:flex;align-items:flex-end}.home-slider-slide-rc6420.on{opacity:1;pointer-events:auto}.home-slider-nav-rc6420{position:absolute;z-index:4;top:50%;transform:translateY(-50%);width:37px;height:47px;border:1px solid rgba(255,255,255,.25);border-radius:10px;background:rgba(0,0,0,.45);color:#fff;font-size:25px}.home-slider-nav-rc6420.prev{left:10px}.home-slider-nav-rc6420.next{right:10px}.home-slider-dots-rc6420{position:absolute;z-index:5;left:50%;bottom:12px;transform:translateX(-50%);display:flex;gap:7px}.home-slider-dots-rc6420 button{width:7px;height:7px;border:0;border-radius:50%;background:#6c6659;padding:0}.home-slider-dots-rc6420 button.on{background:#e5ad22;transform:scale(1.25)}
.home-footer-rc6420{margin:30px auto 0;max-width:1180px;border-top:1px solid #332b1a;padding:30px 20px calc(30px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:1.15fr .85fr 1fr;gap:28px;color:#aaa;background:#070707}.home-footer-brand-rc6420 img{width:170px;height:52px;object-fit:contain;object-position:left}.home-footer-brand-rc6420 p{color:#ddd;font-weight:900;font-size:11px}.home-footer-brand-rc6420 span,.home-footer-meta-rc6420 span{font-size:10px;line-height:1.45}.home-footer-rc6420 nav{display:grid;align-content:start;gap:9px}.home-footer-rc6420 nav a{color:#bbb;text-decoration:none;font-size:10px;font-weight:800}.home-footer-meta-rc6420{display:flex;flex-direction:column;gap:9px}.home-footer-meta-rc6420 b{color:#e5ad22;font-size:10px}

/* Admin — clear responsibilities: Showcase = content, Builder = placement. */
.home-builder-flow-map-rc6420{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:12px 0 16px;padding:13px;border:1px solid #342b18;background:#0e0c08;border-radius:11px}.home-builder-flow-map-rc6420 span,.home-builder-flow-map-rc6420 strong{border:1px solid #44371d;border-radius:8px;padding:8px 10px;font-size:9px;color:#ddd}.home-builder-flow-map-rc6420 strong{background:#d6a638;color:#090909}.home-builder-flow-map-rc6420 small{font-size:6px;color:#887550;margin-left:4px}.home-builder-flow-map-rc6420 b{color:#8d7440}
.home-builder-migration-warning-rc6420{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #865f13;background:#1b1407;border-radius:10px;margin-bottom:14px}.home-builder-migration-warning-rc6420 b{color:#e5ad22;font-size:9px}.home-builder-migration-warning-rc6420 span{font-size:10px;color:#c7bfae}.home-builder-migration-warning-rc6420 code{color:#fff}
.home-builder-create-rc6420{border:1px solid #3b311d;border-radius:12px;padding:14px;background:#0b0b09;margin-bottom:12px}.home-builder-create-grid-rc6420{display:grid;grid-template-columns:1.2fr 1.2fr .6fr 1fr;gap:9px;margin:12px 0}.home-builder-create-grid-rc6420 label,.home-block-fields-rc6420 label,.home-builder-common-rc6420 label{display:flex;flex-direction:column;gap:5px;font-size:8px;color:#8d7a50;font-weight:900}.home-new-block-extra-rc6420{display:flex;align-items:end}.home-new-block-extra-rc6420 label{width:100%}.home-builder-create-note-rc6420{border:1px solid #2d291f;border-radius:8px;padding:9px;display:flex;flex-direction:column;gap:3px}.home-builder-create-note-rc6420 b{font-size:8px;color:#e5ad22}.home-builder-create-note-rc6420 span{font-size:8px;color:#999}
.home-builder-guide-rc6420{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.home-builder-guide-rc6420>div{padding:10px;border:1px solid #27241c;border-radius:9px;background:#0c0c0b}.home-builder-guide-rc6420 b{display:block;color:#e5ad22;font-size:8px}.home-builder-guide-rc6420 span{display:block;color:#999;font-size:8px;margin-top:4px;line-height:1.4}
.home-builder-list-rc6420{display:grid;gap:13px}.home-builder-card-rc6420{border:1px solid #332b1b;border-radius:13px;padding:14px;background:#090909}.home-builder-card-rc6420.off{opacity:.66}.home-builder-card-head-rc6420{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid #25221b;padding-bottom:11px;margin-bottom:11px}.home-builder-card-head-rc6420 small{display:block;color:#826b37;font-size:7px;font-weight:1000}.home-builder-card-head-rc6420 b{display:block;color:#eee;font-size:15px;margin:3px 0}.home-builder-card-head-rc6420 span{font-size:8px;color:#888}
.home-builder-common-rc6420{display:grid;grid-template-columns:1.4fr .55fr .65fr;gap:8px;margin-bottom:11px}.home-block-fields-rc6420{display:grid;grid-template-columns:1fr 1fr;gap:9px}.home-block-fields-rc6420 .span-2{grid-column:1/-1}.home-block-fields-rc6420 input,.home-block-fields-rc6420 textarea,.home-block-fields-rc6420 select,.home-builder-common-rc6420 input,.home-builder-common-rc6420 select,.home-builder-create-grid-rc6420 input,.home-builder-create-grid-rc6420 select{width:100%}
.home-block-media-rc6420{grid-column:1/-1;display:grid;grid-template-columns:180px 1fr auto;align-items:center;gap:10px;border:1px solid #28241c;border-radius:10px;padding:9px}.home-media-preview-rc6420{width:180px;height:90px;border-radius:8px;background-position:center;background-size:cover;border:1px solid #333}.home-media-preview-rc6420.empty{display:grid;place-items:center;color:#665c47;font-size:8px}.home-remove-image-rc6420{display:flex!important;flex-direction:row!important;align-items:center!important;color:#aaa!important}.home-remove-image-rc6420 input{width:auto!important}
.home-destination-editor-rc6420{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px solid #2b271e;border-radius:10px;padding:10px;background:#0d0c0a}.home-destination-editor-rc6420 label{display:flex;flex-direction:column;gap:5px}
.home-benefit-editor-rc6420,.home-slider-editor-rc6420{display:grid;gap:8px;margin:9px 0}.home-benefit-edit-row-rc6420{display:grid;grid-template-columns:70px .8fr 1.6fr 36px;gap:7px}.home-slider-edit-row-rc6420{border:1px solid #2d281d;border-radius:11px;padding:11px;background:#0d0c0a}.home-slider-edit-top-rc6420{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.home-slider-edit-top-rc6420 b{color:#e5ad22;font-size:9px}.home-builder-actions-rc6420{display:flex;gap:8px;margin-top:12px}.home-builder-actions-rc6420 .btn{flex:1}

@media(max-width:760px){
  .home-builder-block-rc6420{margin:15px 0;border-radius:12px}
  .home-banner-block-rc6420,.home-category-spotlight-block-rc6420,.home-slider-block-rc6420,.home-slider-track-rc6420{min-height:250px}
  .home-rich-copy-rc6420{padding:22px 18px 26px;max-width:92%}.home-rich-copy-rc6420 h2{font-size:29px}.home-rich-copy-rc6420 p{font-size:11px}
  .home-slider-nav-rc6420{width:31px;height:40px;font-size:21px;opacity:.68}.home-slider-nav-rc6420.prev{left:6px}.home-slider-nav-rc6420.next{right:6px}
  .home-benefits-block-rc6420{padding:17px 12px}.home-benefits-grid-rc6420{grid-template-columns:1fr 1fr;gap:7px}.home-benefits-grid-rc6420 article{padding:11px;gap:8px;min-height:74px}.home-benefits-grid-rc6420 article i{width:31px;height:31px;font-size:14px}.home-benefits-grid-rc6420 article b{font-size:8px}.home-benefits-grid-rc6420 article span{font-size:8px}
  .home-about-block-rc6420.has-image{grid-template-columns:1fr}.home-about-media-rc6420{min-height:190px}.home-about-copy-rc6420{padding:22px 18px}.home-about-copy-rc6420 h2{font-size:29px}
  .home-social-block-rc6420{display:block;padding:21px 16px}.home-social-block-rc6420 h2{font-size:27px}.home-social-links-rc6420{justify-content:flex-start;margin-top:15px}.home-social-links-rc6420 a{min-width:72px;flex:1}
  .home-footer-rc6420{grid-template-columns:1fr;padding:25px 17px calc(26px + env(safe-area-inset-bottom,0px));gap:18px}.home-footer-brand-rc6420 img{width:150px}
  .home-builder-create-grid-rc6420,.home-builder-common-rc6420,.home-block-fields-rc6420,.home-destination-editor-rc6420{grid-template-columns:1fr}.home-block-fields-rc6420 .span-2{grid-column:auto}.home-block-media-rc6420{grid-column:auto;grid-template-columns:1fr}.home-media-preview-rc6420{width:100%;height:140px}.home-builder-guide-rc6420{grid-template-columns:1fr}.home-benefit-edit-row-rc6420{grid-template-columns:52px 1fr 36px}.home-benefit-edit-row-rc6420 [data-bf="text"]{grid-column:1/3}.home-builder-actions-rc6420{flex-direction:column}
}

/* ============================================================
   V5.47 RC6.4.21 — ADMIN UX + HOME VISUAL POLISH
============================================================ */
.settings-accordion-toolbar-rc6421{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:11px 13px;border:1px solid #3d321d;border-radius:11px;background:#0d0c09}.settings-accordion-toolbar-rc6421 b{display:block;color:#e5ad22;font-size:9px}.settings-accordion-toolbar-rc6421 span{display:block;margin-top:3px;color:#8e887b;font-size:8px}.settings-accordion-toolbar-rc6421>div:last-child{display:flex;gap:7px}.settings-accordion-toolbar-rc6421 button,.settings-collapse-toggle-rc6421,.home-block-collapse-toggle-rc6421{border:1px solid #4d3c1c;background:#151107;color:#e5ad22;border-radius:8px;font-weight:1000;cursor:pointer}.settings-accordion-toolbar-rc6421 button{padding:8px 10px;font-size:7px}.settings-accordion-panel-rc6421{position:relative;padding-top:14px!important}.settings-collapse-toggle-rc6421{position:absolute;z-index:4;right:12px;top:10px;width:30px;height:30px;font-size:17px;line-height:1}.settings-accordion-panel-rc6421>.section-head{padding-right:42px}.settings-accordion-panel-rc6421>h3{padding-right:42px}.settings-accordion-panel-rc6421.settings-collapsed-rc6421>:not(.settings-collapse-toggle-rc6421):not(h3):not(.section-head){display:none!important}.settings-accordion-panel-rc6421.settings-collapsed-rc6421{padding-bottom:12px!important;opacity:.9}.settings-accordion-panel-rc6421.settings-collapsed-rc6421>.section-head{margin-bottom:0!important}.settings-accordion-panel-rc6421.settings-collapsed-rc6421>.section-head span{opacity:.65}

.hero-edit-image-preview-rc6421{grid-column:1/-1;display:grid;grid-template-columns:180px 1fr;gap:12px;align-items:center;border:1px solid #3b311e;border-radius:10px;padding:9px;background:#0b0a08}.hero-edit-image-canvas-rc6421{height:96px;border-radius:8px;background:#17140e center/cover no-repeat;border:1px solid #31291b}.hero-edit-image-preview-rc6421.empty .hero-edit-image-canvas-rc6421{background:linear-gradient(145deg,#17140e,#0d0d0c)}.hero-edit-image-preview-rc6421 b{display:block;color:#e5ad22;font-size:8px}.hero-edit-image-preview-rc6421 span{display:block;margin-top:5px;color:#9b9588;font-size:8px;line-height:1.45}

.showcase-mini-preview{position:relative;padding-bottom:17px}.showcase-mini-preview i{background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}.showcase-mini-preview i.empty{background:linear-gradient(145deg,#17140e,#0e0e0d)!important}.showcase-mini-preview small{position:absolute;left:0;bottom:0;color:#716544;font-size:6px;letter-spacing:.04em}

.home-block-collapse-toggle-rc6421{margin-left:auto;width:30px;height:30px;font-size:17px;flex:0 0 auto}.home-block-collapsed-rc6421>:not(.home-builder-card-head-rc6420){display:none!important}.home-block-collapsed-rc6421 .home-builder-card-head-rc6420{border-bottom:0;margin-bottom:0;padding-bottom:0}.home-builder-card-head-rc6420{align-items:center}
.home-visual-editor-rc6421{margin-top:12px;border:1px solid #3d321f;border-radius:11px;padding:11px;background:#0d0c09}.home-visual-editor-head-rc6421{margin-bottom:9px}.home-visual-editor-head-rc6421 b{display:block;color:#e5ad22;font-size:8px}.home-visual-editor-head-rc6421 span{display:block;color:#8e887b;font-size:8px;margin-top:3px}.home-visual-grid-rc6421{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.home-visual-grid-rc6421 label{display:flex;flex-direction:column;gap:5px;color:#8d7a50;font-size:8px;font-weight:900}.home-visual-auto-note-rc6421{grid-column:span 2;border:1px dashed #342d20;border-radius:8px;padding:8px}.home-visual-auto-note-rc6421 b{display:block;color:#c99a31;font-size:7px}.home-visual-auto-note-rc6421 span{display:block;color:#8d887e;font-size:7px;margin-top:3px;line-height:1.4}
.home-footer-items-admin-rc6421{display:grid;gap:9px;margin:10px 0}.home-footer-item-editor-rc6421{border:1px solid #30291d;border-radius:10px;padding:10px;background:#0b0b0a}.home-footer-item-head-rc6421{display:grid;grid-template-columns:1fr 180px;gap:10px;align-items:center;margin-bottom:8px}.home-footer-item-head-rc6421 b{display:block;color:#e5ad22;font-size:8px}.home-footer-item-head-rc6421 span{display:block;color:#888;font-size:7px;margin-top:3px}.home-footer-item-editor-rc6421>label,.home-footer-item-editor-rc6421>[data-footer-mode]>label{display:flex;flex-direction:column;gap:4px;font-size:8px;color:#8d7a50}.social-icon-note-rc6421{grid-column:1/-1}

.home-social-links-rc6420 a i{height:24px;display:grid!important;place-items:center!important;color:#e5ad22}.home-social-links-rc6420 a i svg{width:22px;height:22px;display:block}.home-footer-rc6420 nav button{appearance:none;border:0;background:transparent;padding:0;text-align:left;color:#bbb;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.home-footer-rc6420 nav button:hover,.home-footer-rc6420 nav a:hover{color:#e5ad22}
.home-info-modal-rc6421{position:fixed;z-index:9400;inset:0;background:rgba(0,0,0,.78);display:flex;align-items:flex-start;justify-content:center;padding:calc(env(safe-area-inset-top,0px) + 18px) 14px calc(env(safe-area-inset-bottom,0px) + 18px);overflow:auto}.home-info-modal-rc6421.hidden{display:none!important}.home-info-card-rc6421{width:min(720px,100%);max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 36px);overflow:auto;border:1px solid #55421d;border-radius:14px;background:#0b0b0a;box-shadow:0 30px 90px #000;padding:0}.home-info-head-rc6421{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 17px;border-bottom:1px solid #29251c;background:#0b0b0af2;backdrop-filter:blur(10px)}.home-info-head-rc6421 h2{margin:4px 0 0;font-size:20px}.home-info-head-rc6421 button{width:38px;height:38px;border:1px solid #4b3c20;border-radius:50%;background:#16130d;color:#e5ad22;font-size:18px}.home-info-content-rc6421{padding:20px 18px 26px}.home-info-content-rc6421 p{margin:0 0 15px;color:#ccc;line-height:1.65;font-size:12px;white-space:pre-line}.home-info-open-rc6421{overflow:hidden!important}

.home-visual-border-off-rc6421{border-color:transparent!important;box-shadow:none!important}.home-visual-corners-square-rc6421{border-radius:0!important}.home-visual-corners-square-rc6421>*{border-radius:0!important}.home-visual-full-rc6421{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}.home-visual-space-compact-rc6421{margin-top:8px!important;margin-bottom:8px!important}.home-visual-space-wide-rc6421{margin-top:34px!important;margin-bottom:34px!important}.home-banner-block-rc6420.home-visual-size-compact-rc6421,.home-category-spotlight-block-rc6420.home-visual-size-compact-rc6421,.home-slider-block-rc6420.home-visual-size-compact-rc6421,.home-about-block-rc6420.home-visual-size-compact-rc6421{min-height:190px!important}.home-slider-block-rc6420.home-visual-size-compact-rc6421 .home-slider-track-rc6420{min-height:190px!important}.home-banner-block-rc6420.home-visual-size-medium-rc6421,.home-category-spotlight-block-rc6420.home-visual-size-medium-rc6421,.home-slider-block-rc6420.home-visual-size-medium-rc6421,.home-about-block-rc6420.home-visual-size-medium-rc6421{min-height:300px!important}.home-slider-block-rc6420.home-visual-size-medium-rc6421 .home-slider-track-rc6420{min-height:300px!important}.home-banner-block-rc6420.home-visual-size-large-rc6421,.home-category-spotlight-block-rc6420.home-visual-size-large-rc6421,.home-slider-block-rc6420.home-visual-size-large-rc6421,.home-about-block-rc6420.home-visual-size-large-rc6421{min-height:420px!important}.home-slider-block-rc6420.home-visual-size-large-rc6421 .home-slider-track-rc6420{min-height:420px!important}.home-visual-size-custom-rc6421.home-banner-block-rc6420,.home-visual-size-custom-rc6421.home-category-spotlight-block-rc6420,.home-visual-size-custom-rc6421.home-slider-block-rc6420,.home-visual-size-custom-rc6421.home-about-block-rc6420{min-height:var(--tc-home-custom-height,300px)!important}.home-visual-size-custom-rc6421.home-slider-block-rc6420 .home-slider-track-rc6420{min-height:var(--tc-home-custom-height,300px)!important}

@media(max-width:760px){.settings-accordion-toolbar-rc6421{align-items:flex-start;flex-direction:column}.settings-accordion-toolbar-rc6421>div:last-child{width:100%}.settings-accordion-toolbar-rc6421 button{flex:1}.hero-edit-image-preview-rc6421{grid-template-columns:1fr}.hero-edit-image-canvas-rc6421{height:150px}.home-visual-grid-rc6421{grid-template-columns:1fr 1fr}.home-visual-auto-note-rc6421{grid-column:1/-1}.home-footer-item-head-rc6421{grid-template-columns:1fr}.home-info-modal-rc6421{padding-left:8px;padding-right:8px}.home-info-card-rc6421{border-radius:12px}.home-visual-full-rc6421{width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}}

/* ============================================================
   V5.47 RC6.4.22 — VISUAL EDITOR + OFFICIAL BRAND
============================================================ */
/* Official full logomark is wider than the previous provisional artwork.
   Preserve the already-approved mobile header geometry while preventing the
   new asset from intruding into the search field. */
@media(max-width:760px){
  header nav.tc-header-final-rc648 > .header-brand-rc645{
    transform:translate(-50%,-50%) scale(1.08)!important;
  }
}

/* Non-destructive media layer: the source image itself is never modified. */
.tc-hero-visual-rc6422,.home-banner-block-rc6420,.home-category-spotlight-block-rc6420,.home-slider-slide-rc6420,.tc-about-media-host-rc6422{overflow:hidden}
.tc-hero-media-layer-rc6422,.tc-media-layer-rc6422{position:absolute;inset:0;z-index:0;background-repeat:no-repeat;background-color:#0a0a09;transform-origin:center center;pointer-events:none;will-change:transform}
.tc-hero-visual-rc6422>.hero-slide-shade,.home-builder-block-rc6420>.home-rich-shade-rc6420,.home-slider-slide-rc6420>.home-rich-shade-rc6420{z-index:1}
.tc-hero-visual-rc6422>.hero-slide-copy,.home-builder-block-rc6420>.home-rich-copy-rc6420,.home-slider-slide-rc6420>.home-rich-copy-rc6420{z-index:2}
.tc-about-media-host-rc6422{position:relative;background-image:none!important}
.tc-about-media-host-rc6422>.tc-media-layer-rc6422{z-index:0}

/* Copy positioning / alignment */
.tc-copy-typography-rc6422{display:flex!important;flex-direction:column!important}
.tc-copy-typography-rc6422[data-tc-title-size="compact"] h1,.tc-copy-typography-rc6422[data-tc-title-size="compact"] h2{font-size:clamp(24px,4vw,36px)!important}
.tc-copy-typography-rc6422[data-tc-title-size="medium"] h1,.tc-copy-typography-rc6422[data-tc-title-size="medium"] h2{font-size:clamp(30px,5vw,48px)!important}
.tc-copy-typography-rc6422[data-tc-title-size="large"] h1,.tc-copy-typography-rc6422[data-tc-title-size="large"] h2{font-size:clamp(38px,6vw,64px)!important}
.tc-copy-typography-rc6422[data-tc-title-size="custom"] h1,.tc-copy-typography-rc6422[data-tc-title-size="custom"] h2{font-size:clamp(20px,var(--tc-title-custom-rc6422,48px),86px)!important}
.tc-copy-typography-rc6422[data-tc-body-size="compact"] p{font-size:11px!important}
.tc-copy-typography-rc6422[data-tc-body-size="medium"] p{font-size:14px!important}
.tc-copy-typography-rc6422[data-tc-body-size="large"] p{font-size:18px!important}
.tc-copy-typography-rc6422[data-tc-body-size="custom"] p{font-size:clamp(10px,var(--tc-body-custom-rc6422,14px),28px)!important}
.tc-copy-typography-rc6422[data-tc-kicker-size="compact"] .kicker{font-size:7px!important}
.tc-copy-typography-rc6422[data-tc-kicker-size="medium"] .kicker{font-size:9px!important}
.tc-copy-typography-rc6422[data-tc-kicker-size="large"] .kicker{font-size:12px!important}
.tc-copy-typography-rc6422[data-tc-kicker-size="custom"] .kicker{font-size:clamp(7px,var(--tc-kicker-custom-rc6422,9px),18px)!important}

/* The new logomark is official and should stay crisp but inside the approved
   Hero copy envelope. */
.hero-slide-copy .hero-slide-brand-rc64{object-fit:contain!important}

/* Footer links requested visually closer to the right on desktop. */
@media(min-width:761px){
  .home-footer-rc6420{grid-template-columns:minmax(0,1.35fr) minmax(150px,.6fr) minmax(0,1fr)!important}
  .home-footer-rc6420>nav{justify-self:end;width:max-content;min-width:155px}
}

/* Admin — visual editor */
.hero-visual-editor-rc6422,.home-media-text-editor-rc6422,.home-slide-visual-editor-rc6422{grid-column:1/-1;border:1px solid #49381c;border-radius:11px;background:#0c0b08;padding:11px;margin-top:10px}
.tc-visual-editor-head-rc6422{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.tc-visual-editor-head-rc6422 b{display:block;color:#e5ad22;font-size:8px}.tc-visual-editor-head-rc6422 span{display:block;color:#918a7b;font-size:8px;line-height:1.4;margin-top:3px}.tc-visual-editor-head-rc6422 button{border:1px solid #4b3a1b;background:#151106;color:#e5ad22;border-radius:7px;padding:7px 9px;font-size:7px;font-weight:1000}
.tc-visual-grid-rc6422{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.tc-visual-grid-rc6422 label{display:flex;flex-direction:column;gap:5px;color:#8d7a50;font-size:8px;font-weight:900}.tc-visual-grid-rc6422 input[type="range"]{accent-color:#e5ad22;padding:0}.tc-range-readout-rc6422{color:#e5ad22;font-size:7px;font-weight:1000;white-space:nowrap}.tc-visual-custom-wrap-rc6422.hidden{display:none!important}
.tc-editor-note-rc6422{grid-column:1/-1;border:1px dashed #3b321f;border-radius:8px;padding:8px;color:#918a7b;font-size:7px;line-height:1.45}.tc-editor-note-rc6422 strong{color:#e5ad22}
.hero-live-preview-rc6422{grid-column:1/-1;position:relative;min-height:230px;border:1px solid #4c3b1d;border-radius:12px;overflow:hidden;background:#090909;margin-top:10px}.hero-live-preview-media-rc6422{position:absolute;inset:0;background-repeat:no-repeat;background-color:#0a0a09;transform-origin:center}.hero-live-preview-shade-rc6422{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.9),rgba(0,0,0,.5) 58%,rgba(0,0,0,.22));z-index:1}.hero-live-preview-copy-rc6422{position:relative;z-index:2;min-height:230px;padding:22px;display:flex;flex-direction:column;max-width:72%}.hero-live-preview-copy-rc6422 img{width:145px;max-height:65px;object-fit:contain;object-position:left center;margin-bottom:7px}.hero-live-preview-copy-rc6422 .kicker{color:#e5ad22;font-size:8px;font-weight:1000}.hero-live-preview-copy-rc6422 h2{font-size:34px;line-height:.95;margin:6px 0;text-transform:uppercase}.hero-live-preview-copy-rc6422 p{font-size:11px;color:#c4bfb4;line-height:1.4;margin:0}.hero-live-preview-copy-rc6422 em{font-style:normal;border:1px solid #d6a638;color:#d6a638;border-radius:999px;padding:7px 10px;font-size:7px;font-weight:1000;margin-top:10px;width:max-content}
.hero-visual-migration-warning-rc6422{grid-column:1/-1;border:1px solid #815d17;background:#1c1406;color:#d4b36a;border-radius:9px;padding:9px;font-size:8px;line-height:1.45}.hero-visual-migration-warning-rc6422.hidden{display:none!important}

/* Builder preview now mirrors focal point / zoom and text more closely. */
.home-media-preview-rc6420.tc-live-preview-rc6422{position:relative;overflow:hidden;background-image:none!important;background:#0a0a09!important}.home-media-preview-media-rc6422{position:absolute;inset:0;background-repeat:no-repeat;background-color:#0a0a09;transform-origin:center}.home-media-preview-shade-rc6422{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(0,0,0,.78),rgba(0,0,0,.25))}.home-media-preview-copy-rc6422{position:absolute;z-index:2;inset:0;padding:9px;display:flex;flex-direction:column;pointer-events:none}.home-media-preview-copy-rc6422 .kicker{font-size:5px;color:#e5ad22;font-weight:1000}.home-media-preview-copy-rc6422 b{font-size:12px;line-height:1;color:#fff;margin:3px 0}.home-media-preview-copy-rc6422 span{font-size:6px;line-height:1.25;color:#ddd;max-width:85%}
.home-slider-edit-row-rc6420{position:relative}

@media(max-width:900px){.tc-visual-grid-rc6422{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .hero-live-preview-rc6422{min-height:260px}.hero-live-preview-copy-rc6422{min-height:260px;max-width:88%;padding:18px}.hero-live-preview-copy-rc6422 h2{font-size:29px}
  .tc-visual-grid-rc6422{grid-template-columns:1fr 1fr}
  .tc-hero-copy-visual-rc6422[data-tc-title-size="large"] h1{font-size:46px!important}.tc-hero-copy-visual-rc6422[data-tc-title-size="custom"] h1{font-size:min(var(--tc-title-custom-rc6422,42px),46px)!important}
  .tc-copy-typography-rc6422[data-tc-body-size="large"] p{font-size:16px!important}.tc-copy-typography-rc6422[data-tc-body-size="custom"] p{font-size:min(var(--tc-body-custom-rc6422,13px),19px)!important}
  .home-footer-rc6420>nav{justify-self:start;width:auto;min-width:0}
}


/* ============================================================
   V5.47 RC6.4.23 — ADMIN EDITOR CLARITY + HERO FRAME
============================================================ */
.admin-section-actions-rc6423{margin-left:auto;display:flex;align-items:center;gap:7px;flex-wrap:wrap}.admin-create-trigger-rc6423{white-space:nowrap}.admin-create-closed-rc6423{display:none!important}.hero-editor-mode-rc6423{display:flex!important;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 11px;border:1px solid #4b3a1d;border-radius:10px;background:#0e0c08}.hero-editor-mode-rc6423 small{display:block;color:#8b7a55;font-size:7px;font-weight:900}.hero-editor-mode-rc6423 b{display:block;color:#e5ad22;font-size:10px;margin-top:2px}.hero-editor-mode-rc6423 span{display:block;color:#8f8a80;font-size:7px;line-height:1.45;margin-top:3px}.hero-editor-mode-rc6423 button{border:1px solid #4a3a20;background:#15120c;color:#d8aa3d;border-radius:7px;padding:7px 9px;font-size:7px;font-weight:900}
.showcase-edit-card:not(.showcase-card-open-rc6423) .showcase-fields,.showcase-edit-card:not(.showcase-card-open-rc6423) .showcase-card-actions{display:none!important}.showcase-map{position:relative;padding-right:84px}.showcase-edit-toggle-rc6423{position:absolute;right:0;top:50%;transform:translateY(-50%);border:1px solid #4b3a1d;background:#14110b;color:#e5ad22;border-radius:7px;padding:7px 9px;font-size:7px;font-weight:1000}.showcase-edit-card.showcase-card-open-rc6423{border-color:#58441e}
.subcategory-create-trigger-rc6423{margin:9px 0 0}.home-builder-create-note-rc6423{border:1px dashed #4a3b21;border-radius:8px;padding:8px;background:#0b0a08}.home-builder-create-note-rc6423 b{display:block;color:#e5ad22;font-size:7px}.home-builder-create-note-rc6423 span{display:block;color:#8f8a80;font-size:7px;line-height:1.45;margin-top:3px}
.hero-frame-controls-rc6423{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:4px;padding-top:10px;border-top:1px solid #2f281b}.hero-frame-title-rc6423{grid-column:1/-1}.hero-frame-title-rc6423 b{display:block;color:#e5ad22;font-size:8px}.hero-frame-title-rc6423 span{display:block;color:#8f887b;font-size:7px;line-height:1.45;margin-top:3px}.hero-frame-controls-rc6423 label{display:flex;flex-direction:column;gap:5px;color:#8d7a50;font-size:8px;font-weight:900}
.hero-frame-border-on-rc6423{border:1px solid #6a5226!important}.hero-frame-border-off-rc6423{border-color:transparent!important}.hero-frame-square-rc6423{border-radius:0!important}.hero-frame-rounded-rc6423{border-radius:15px!important}.hero-frame-size-compact-rc6423{min-height:320px!important}.hero-frame-size-medium-rc6423{min-height:420px!important}.hero-frame-size-large-rc6423{min-height:520px!important}.hero-frame-size-custom-rc6423{min-height:var(--tc-hero-frame-height-rc6423,420px)!important}
.hero-live-preview-rc6422.hero-frame-border-on-rc6423{border-color:#6a5226!important}.hero-live-preview-rc6422.hero-frame-border-off-rc6423{border-color:transparent!important}.hero-live-preview-rc6422.hero-frame-square-rc6423{border-radius:0!important}.hero-live-preview-rc6422.hero-frame-rounded-rc6423{border-radius:12px!important}.hero-live-preview-rc6422.hero-frame-size-compact-rc6423,.hero-live-preview-rc6422.hero-frame-size-compact-rc6423 .hero-live-preview-copy-rc6422{min-height:190px!important}.hero-live-preview-rc6422.hero-frame-size-medium-rc6423,.hero-live-preview-rc6422.hero-frame-size-medium-rc6423 .hero-live-preview-copy-rc6422{min-height:230px!important}.hero-live-preview-rc6422.hero-frame-size-large-rc6423,.hero-live-preview-rc6422.hero-frame-size-large-rc6423 .hero-live-preview-copy-rc6422{min-height:300px!important}.hero-live-preview-rc6422.hero-frame-size-custom-rc6423,.hero-live-preview-rc6422.hero-frame-size-custom-rc6423 .hero-live-preview-copy-rc6422{min-height:clamp(190px,calc(var(--tc-hero-frame-height-rc6423,420px) * .58),410px)!important}
.home-benefits-grid-rc6420 article.no-icon-rc6423{grid-template-columns:1fr!important}
/* Latest user direction: institutional links closer to LEFT, not centered/right. */
@media(min-width:761px){.home-footer-rc6420{grid-template-columns:minmax(0,1.15fr) minmax(165px,.75fr) minmax(0,1fr)!important}.home-footer-rc6420>nav{justify-self:start!important;width:auto!important;min-width:0!important;margin-left:0!important}}
@media(max-width:850px){.hero-frame-controls-rc6423{grid-template-columns:1fr 1fr}.admin-section-actions-rc6423{width:100%;margin-left:0}.admin-section-actions-rc6423 .btn{flex:1}.showcase-map{padding-right:0;padding-bottom:36px}.showcase-edit-toggle-rc6423{top:auto;bottom:0;transform:none}.hero-frame-size-compact-rc6423{min-height:290px!important}.hero-frame-size-medium-rc6423{min-height:360px!important}.hero-frame-size-large-rc6423{min-height:440px!important}.hero-frame-size-custom-rc6423{min-height:min(var(--tc-hero-frame-height-rc6423,360px),560px)!important}}


/* ============================================================
   V5.47 RC6.4.23.1 — ADMIN UNIFIED TOGGLE + HERO WIDTH
============================================================ */
.settings-head-clickable-rc64231{cursor:pointer;border-radius:8px;transition:background .16s ease}
.settings-head-clickable-rc64231:hover{background:rgba(229,173,34,.035)}
.settings-head-clickable-rc64231:focus-visible{outline:1px solid #6d5425;outline-offset:4px}
.admin-inner-actions-rc64231{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:2px 42px 12px 0;padding-top:9px;border-top:1px dashed #2e281c}
.admin-inner-actions-rc64231 .admin-create-trigger-rc6423{margin:0}
.admin-create-form-actions-rc64231{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}
.showcase-create-card>.admin-create-form-actions-rc64231,.home-builder-create-rc6420>.admin-create-form-actions-rc64231{justify-content:flex-start}
.category-group-create>.admin-create-form-actions-rc64231{grid-column:1/-1;margin-top:0}
.admin-create-cancel-rc64231{border-color:#4c463d!important;color:#bbb!important;background:#111!important}
.subcategory-create>.admin-create-cancel-rc64231{min-width:92px}
.showcase-map-clickable-rc64231{cursor:pointer}
.showcase-map-clickable-rc64231:focus-visible{outline:1px solid #6d5425;outline-offset:3px}

/* Hero width control. Legacy leaves the deployed geometry untouched. */
#heroSection.hero-frame-width-contained-rc64231{width:85%!important;margin-left:auto!important;margin-right:auto!important}
#heroSection.hero-frame-width-wide-rc64231{width:100%!important;margin-left:auto!important;margin-right:auto!important}
#heroSection.hero-frame-width-full-rc64231{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
#heroSection.hero-frame-width-custom-rc64231{width:var(--tc-hero-frame-width-pct-rc64231,100%)!important;margin-left:auto!important;margin-right:auto!important}
.hero-live-preview-rc6422.hero-frame-width-contained-rc64231{width:85%!important;margin-left:auto!important;margin-right:auto!important}
.hero-live-preview-rc6422.hero-frame-width-wide-rc64231,.hero-live-preview-rc6422.hero-frame-width-full-rc64231{width:100%!important;margin-left:auto!important;margin-right:auto!important}
.hero-live-preview-rc6422.hero-frame-width-custom-rc64231{width:var(--tc-hero-frame-width-pct-rc64231,100%)!important;margin-left:auto!important;margin-right:auto!important}

@media(max-width:850px){
  .admin-inner-actions-rc64231{margin-right:0;justify-content:stretch}.admin-inner-actions-rc64231 .btn{flex:1}
  .admin-create-form-actions-rc64231{display:grid;grid-template-columns:1fr 1fr;width:100%}.admin-create-form-actions-rc64231 .btn{width:100%}
}
@media(max-width:760px){
  #heroSection.hero-frame-width-full-rc64231{width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
  #heroSection.hero-frame-width-contained-rc64231{width:90%!important}
}
