/* RC.28 — shell only. The theme and public checkout are deliberately untouched. */
body.emm-ch-standalone-page{margin:0;background:#f7ede3;min-width:0}
body.emm-ch-standalone-page > :is(header,footer,#masthead,#colophon,.site-header,.site-footer,.emm-site-header,.emm-site-footer,.emm-header,.emm-footer){display:none!important}
.emm-customer-hub{--emm-ch-shadow:5px 7px 18px rgba(105,78,54,.11),inset 1px 1px 0 rgba(255,255,255,.9);--emm-ch-border:#e5d9c9;--emm-ch-focus:#82602f;padding:clamp(9px,1.6vw,22px);font-family:inherit}
.emm-customer-hub .emm-ch-dashboard-grid{gap:16px;max-width:1600px}
.emm-customer-hub .emm-ch-panel{border-radius:22px;min-width:0}
.emm-customer-hub .emm-ch-brand{min-height:94px;padding:8px 6px;gap:5px}
.emm-customer-hub .emm-ch-brand strong{font-weight:800;direction:rtl;font-family:inherit;font-size:16px;line-height:1.5}
.emm-customer-hub .emm-ch-brand>.emm-ch-icon{width:37px;height:37px}
.emm-customer-hub .emm-ch-nav{gap:5px}
.emm-customer-hub .emm-ch-nav>a,.emm-customer-hub .emm-ch-nav-exit{min-height:46px;padding:8px 12px;gap:10px;border-radius:13px;font-size:13px;box-shadow:2px 3px 8px rgba(105,78,54,.08)}
.emm-customer-hub .emm-ch-nav>a .emm-ch-icon,.emm-customer-hub .emm-ch-nav-exit .emm-ch-icon{width:22px;height:22px;stroke-width:1.7}
.emm-customer-hub .emm-ch-sidebar-gift:empty{display:none}
.emm-customer-hub .emm-ch-sidebar-gift{height:auto;min-height:0;max-height:128px;margin-top:0}
.emm-customer-hub .emm-ch-nav-tools{display:grid;gap:6px;border-top:1px solid #e4d8c8;padding:10px 4px 0}
.emm-customer-hub .emm-ch-nav-tools :is(a,button){display:flex;align-items:center;gap:8px;min-height:42px;border:0;border-radius:12px;background:#f3e9db;color:#40552c;padding:8px 10px;font-size:12px;font-weight:700;cursor:pointer;text-align:right}
.emm-customer-hub .emm-ch-nav-tools .emm-ch-icon{width:20px;height:20px}
.emm-customer-hub .emm-ch-nav-tools button[aria-pressed=true]{background:#e0e8c9}
.emm-customer-hub .emm-ch-action-center{padding:16px}
.emm-customer-hub .emm-ch-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.emm-customer-hub .emm-ch-action-grid>a{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #fff;border-radius:16px;background:#f7ede2;box-shadow:2px 4px 10px #62472212;min-width:0}
.emm-customer-hub .emm-ch-action-grid>a:hover{background:#e8ecd6}
.emm-customer-hub .emm-ch-action-grid>a>span:nth-child(2){display:grid;gap:4px;flex:1;min-width:0;overflow-wrap:anywhere}
.emm-customer-hub .emm-ch-action-grid>a strong{font-size:14px;color:#344d23}
.emm-customer-hub .emm-ch-action-grid>a small{font-size:11px;color:#655b4c;line-height:1.6}
.emm-customer-hub .emm-ch-action-icon{display:grid;place-items:center;border-radius:13px;flex:none;width:40px;height:40px;background:#e5e9d2;color:#4e6730}
.emm-customer-hub .emm-ch-action-grid>a>.emm-ch-icon{width:16px;height:16px;color:#9a7542}
.emm-customer-hub .emm-ch-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.emm-customer-hub .emm-ch-stat{min-height:76px;padding:10px}
.emm-customer-hub .emm-ch-stat-icon{width:44px;height:44px;border-radius:14px;background:#e8ecd5;color:#536e30;box-shadow:none}
.emm-customer-hub .emm-ch-stat-icon .emm-ch-icon{width:25px;height:25px}
.emm-customer-hub .emm-ch-stat strong{font-size:25px}
.emm-customer-hub .emm-ch-stat-title{font-size:12px;color:#435234}
.emm-customer-hub .emm-ch-page-head{padding:10px 2px 8px;display:grid;gap:3px}
.emm-customer-hub .emm-ch-page-head h2{font-size:clamp(20px,2vw,26px);color:#344d23}
.emm-customer-hub .emm-ch-page-head p{font-size:13px;color:#655e50}
.emm-customer-hub .emm-ch-dashboard-grid.is-loading::after{height:3px;transform-origin:right;animation:emm-ch-route-load .65s ease-in-out infinite alternate}
.emm-customer-hub #emm-ch-main:focus{outline:none}
@media(min-width:768px){
 .emm-customer-hub .emm-ch-screen-dashboard{grid-template-columns:minmax(205px,236px) minmax(0,1fr) minmax(230px,280px);grid-template-rows:auto auto;grid-template-areas:'side hero hero' 'side center left'}
 .emm-customer-hub .emm-ch-screen-internal{grid-template-columns:minmax(205px,236px) minmax(0,1fr);grid-template-rows:auto;grid-template-areas:'side center'}
 .emm-customer-hub .emm-ch-sidebar{position:sticky;top:12px;max-height:calc(100dvh - 24px);min-height:0;overflow-y:auto;overscroll-behavior:contain;gap:10px;padding:10px}
 body.admin-bar .emm-customer-hub .emm-ch-sidebar{top:44px;max-height:calc(100dvh - 56px)}
 .emm-customer-hub .emm-ch-hero{min-height:120px;padding:20px 24px}
 .emm-customer-hub .emm-ch-hero h1{font-size:26px}
}
@media(min-width:768px) and (max-width:1099px){.emm-customer-hub .emm-ch-screen-dashboard{grid-template-columns:210px minmax(0,1fr);grid-template-areas:'side hero' 'side center' 'side left';grid-template-rows:auto auto auto}}
@media(max-width:767px){
 .emm-customer-hub{padding:8px 8px calc(84px + env(safe-area-inset-bottom,0px));overflow-x:clip}
 .emm-customer-hub .emm-ch-dashboard-grid{gap:10px}
 .emm-customer-hub .emm-ch-screen-dashboard .emm-ch-center{order:2}
 .emm-customer-hub .emm-ch-screen-dashboard .emm-ch-left{order:3}
 .emm-customer-hub .emm-ch-hero{min-height:110px;padding:14px}
 .emm-customer-hub .emm-ch-hero h1{font-size:21px}
 .emm-customer-hub .emm-ch-dashboard-grid .emm-ch-sidebar:not([aria-hidden=false]){visibility:hidden}
 .emm-customer-hub .emm-ch-dashboard-grid.drawer-is-open .emm-ch-sidebar{visibility:visible}
 .emm-customer-hub .emm-ch-dashboard-grid .emm-ch-nav{gap:5px;padding-bottom:4px}
 .emm-customer-hub .emm-ch-nav>a,.emm-customer-hub .emm-ch-nav-exit{min-height:48px}
 .emm-customer-hub .emm-ch-mobile-bottom{grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;z-index:60}
 .emm-customer-hub .emm-ch-mobile-bottom a{font-size:10px;min-height:48px}
 .emm-customer-hub .emm-ch-mobile-bottom a span{white-space:normal;line-height:1.25}
 .emm-customer-hub .emm-ch-action-center{padding:12px}
 .emm-customer-hub .emm-ch-action-grid{grid-template-columns:1fr;gap:7px}
 .emm-customer-hub .emm-ch-action-grid>a{min-height:62px}
 .emm-customer-hub .emm-ch-stat-icon{width:36px;height:36px}
 .emm-customer-hub .emm-ch-stat-icon .emm-ch-icon{width:22px;height:22px}
 .emm-customer-hub .emm-ch-stat{padding:8px}
}
@media(prefers-reduced-motion:reduce){.emm-customer-hub .emm-ch-dashboard-grid.is-loading::after{animation:none}.emm-customer-hub .emm-ch-nav>a{transition:none}}

/* Common surfaces and line icons without touching specialised data visualisations, payment cards or avatars. */
.emm-customer-hub :is(.emm-ch-icon,.emt-icon,.emp-heading-icon){stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.emm-customer-hub :is(.ej-panel,.ej-hero,.emt-panel,.emt-hero,.oc-hero,.oc-order,.oc-stat,.po-card,.emp-card,.emp-hero){border-radius:20px;box-shadow:var(--emm-ch-shadow)}
.emm-customer-hub :is(.ej-workspace,.emt,.oc-content,.emp-profile){min-width:0;gap:14px}
@media(max-width:767px){.emm-customer-hub :is(.ej-panel,.ej-hero,.emt-panel,.emt-hero,.oc-hero,.oc-order,.oc-stat,.po-card,.emp-card,.emp-hero){border-radius:16px}.emm-customer-hub :is(.ej-workspace,.emt,.oc-content,.emp-profile){gap:10px}}

/* RC.30: compact account navigation and native scroll, no fixed bottom bar. */
.emm-customer-hub .emm-ch-sidebar{scrollbar-width:thin;scrollbar-color:#a5aa86 transparent;scrollbar-gutter:auto}
.emm-customer-hub .emm-ch-sidebar::-webkit-scrollbar{width:5px}
.emm-customer-hub .emm-ch-sidebar::-webkit-scrollbar-track{background:transparent}
.emm-customer-hub .emm-ch-sidebar::-webkit-scrollbar-thumb{background:#a5aa86;border-radius:20px;border:1px solid #f8f0e7}
.emm-customer-hub .emm-ch-sidebar:hover::-webkit-scrollbar-thumb{background:#778653}
.emm-customer-hub .emm-ch-sidebar>*{flex-shrink:0}
.emm-customer-hub .emm-ch-return-links{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-width:0}
.emm-customer-hub .emm-ch-return-links a{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:7px 13px;background:#fff9f2;border:1px solid #e6dac9;border-radius:13px;color:#40572c;font-weight:700;font-size:13px;box-shadow:2px 3px 7px #9e825415}
.emm-customer-hub .emm-ch-return-links .emm-ch-icon{width:19px;height:19px}
.emm-customer-hub .emm-ch-mobile-bottom{display:none!important}
@media(max-width:767px){
 .emm-customer-hub{padding:6px 0 calc(12px + env(safe-area-inset-bottom,0px));width:100%;max-width:100%}
 .emm-customer-hub .emm-ch-dashboard-grid,.emm-customer-hub .emm-ch-center,.emm-customer-hub .emm-ch-left{width:100%;max-width:100%;min-width:0}
 .emm-customer-hub .emm-ch-dashboard-grid{gap:10px}
 .emm-customer-hub .emm-ch-mobile-header{position:relative;top:auto!important;box-shadow:none;backdrop-filter:none;border-radius:12px;min-height:50px}
 .emm-customer-hub .emm-ch-return-links{padding-inline:8px;justify-content:stretch}
 .emm-customer-hub .emm-ch-return-links a{flex:1;justify-content:center}
 .emm-customer-hub .emm-ch-center>.emm-ch-panel,.emm-customer-hub .emm-ch-center>.emm-special-sale{margin-inline:0;max-width:100%}
 .emm-customer-hub .emm-ch-screen-internal .emm-ch-form{width:100%;max-width:100%}
}
/* Inline messages remain available without JS. Toasts use the same semantic palette. */
.emm-customer-hub [data-emm-notice],.emm-customer-hub .emm-bank-status,.emm-customer-hub .woocommerce-message,.emm-customer-hub .woocommerce-error,.emm-customer-hub .woocommerce-info{--emm-note-bg:#f1eee2;--emm-note-ink:#5b543b;--emm-note-line:#b59c65;background:var(--emm-note-bg);color:var(--emm-note-ink);border:1px solid var(--emm-note-line);border-inline-start:4px solid var(--emm-note-line);border-radius:14px;padding:12px 14px;overflow-wrap:anywhere;line-height:1.8;box-shadow:none}
.emm-customer-hub [data-emm-notice=success],.emm-customer-hub .emm-bank-status[data-emm-state=approved],.emm-customer-hub .woocommerce-message{--emm-note-bg:#e6ecd7;--emm-note-ink:#314c27;--emm-note-line:#839957}
.emm-customer-hub [data-emm-notice=error],.emm-customer-hub .emm-bank-status[data-emm-state=rejected],.emm-customer-hub .woocommerce-error{--emm-note-bg:#f9e4e1;--emm-note-ink:#8b3540;--emm-note-line:#c58080}
.emm-customer-hub [data-emm-notice=warning]{--emm-note-bg:#f9edd5;--emm-note-ink:#76511d;--emm-note-line:#c5a162}
.emm-customer-hub [data-emm-notice=info],.emm-customer-hub .woocommerce-info{--emm-note-bg:#e8eee8;--emm-note-ink:#36594e;--emm-note-line:#8ba69a}
.emm-customer-hub .emm-ch-toast-stack{position:fixed;inset-block-start:16px;inset-inline-start:16px;z-index:10001;width:min(390px,calc(100vw - 24px));display:grid;gap:9px;pointer-events:none}
.emm-customer-hub .emm-ch-toast{pointer-events:auto;display:grid;grid-template-columns:42px minmax(0,1fr) 38px;gap:10px;align-items:start;background:#fffaf3;color:#40572c;border:1px solid #fff;border-inline-start:4px solid var(--note-accent,#809657);box-shadow:0 9px 30px #57412a24,inset 1px 1px 0 #fff;border-radius:18px;padding:12px;animation:emm-toast-in .2s ease-out;overflow-wrap:anywhere}
.emm-customer-hub .emm-ch-toast[data-kind=error]{--note-accent:#ad535d;--note-soft:#f8e0df;color:#81353e}
.emm-customer-hub .emm-ch-toast[data-kind=warning]{--note-accent:#a77a33;--note-soft:#faedcf;color:#73531f}
.emm-customer-hub .emm-ch-toast[data-kind=info]{--note-accent:#6e9485;--note-soft:#e3ece5;color:#36594e}
.emm-customer-hub .emm-ch-toast-icon{width:42px;height:42px;border-radius:13px;background:var(--note-soft,#e4ebd2);display:grid;place-items:center;color:var(--note-accent,#58723d)}
.emm-customer-hub .emm-ch-toast-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.emm-customer-hub .emm-ch-toast strong{font-size:14px;display:block;line-height:1.6}
.emm-customer-hub .emm-ch-toast p{font-size:13px;line-height:1.75;margin:3px 0 0;color:inherit}
.emm-customer-hub .emm-ch-toast-close{min-height:38px;width:38px;background:#f4ebdf;border:0;border-radius:11px;color:inherit;font-size:21px;cursor:pointer}
@keyframes emm-toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:767px){.emm-customer-hub .emm-ch-toast-stack{inset-inline:6px;inset-block-start:calc(8px + env(safe-area-inset-top,0px));width:auto;max-width:none}.emm-customer-hub .emm-ch-toast{grid-template-columns:36px minmax(0,1fr) 44px;padding:10px;gap:8px}.emm-customer-hub .emm-ch-toast-icon{width:36px;height:36px}.emm-customer-hub .emm-ch-toast-close{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.emm-customer-hub .emm-ch-toast{animation:none}}
