/* One control/header rhythm across the app; storefront and marketing pages are untouched. */
html body .kbp :is(.btn,.gh){min-height:44px!important;min-width:44px;max-width:100%;box-sizing:border-box;border-radius:14px!important;padding:10px 16px;font-size:14px!important;font-weight:650;line-height:1.35;justify-content:center;text-align:center;white-space:normal;overflow-wrap:break-word;gap:8px;transition:background-color .15s,border-color .15s,opacity .15s}
html body .kbp :is(.btn,.gh):disabled{opacity:.5;cursor:not-allowed;transform:none!important}
html body .kbp .kb-tertiary{background:transparent!important;border-color:transparent!important;text-decoration:underline;text-underline-offset:3px}
html body .kbp.kbp.kbp .kb-danger{color:var(--mut,#5A6474)!important;background:transparent!important;border-color:var(--line,rgba(90,100,116,.24))!important}
html[data-kt-dark] body .kbp.kbp.kbp .kb-danger{color:var(--mut,#B2B9C5)!important}
html body .kbp :is(.btn,.gh,.sub):focus-visible{outline:2px solid var(--g2,#B87A35)!important;outline-offset:3px!important}
html body .kbp .ph{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:16px}
html body .kbp .ph h1{font-size:28px;line-height:1.2;font-weight:700;letter-spacing:-.02em;min-width:0;overflow-wrap:break-word;margin:0;padding:0}
html body .kbp .ph>.actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;min-width:0}
html body .kbp .ph>.subs{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px;min-width:0}
html body .kbp .sub{min-height:44px;font-size:13px;line-height:1.3;padding:10px 14px;flex-shrink:0}
html body .kbm .mh{min-height:44px;align-items:center}
html body .kbm .mt{padding:0 2px;margin-top:12px;margin-bottom:8px}
html body .kbm .mt h1{font-size:26px;line-height:1.2;letter-spacing:-.02em;font-weight:700}
html body .kbm .kbm-top{padding-bottom:8px}
html body .kbm .kbm-tabs-hint .sub{min-height:44px;padding:10px 14px;font-size:13px}
html body .kbm-tabbar .key{min-height:52px}
html body .kbm-tabbar .kbm-nav-label{font-size:11px!important;font-weight:600;letter-spacing:normal}
html[data-kt] body :is(.mm2btn,.mm2tab,.mm2icobtn){min-height:44px!important;font-size:13px!important}
html[data-kt] body .mm2btn{border-radius:14px!important;font-weight:650!important}
html[data-kt] body #mm2tabs{gap:8px!important;min-width:0}
@media(max-width:600px){html body .kbp .ph{grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:12px}html body .kbp .ph h1{font-size:26px}html body .kbp .ph>.actions{max-width:100%;justify-content:flex-start}html body .kbp .ph>.subs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin;scroll-padding-inline:8px}html body .kbp .ph>.subs::-webkit-scrollbar{height:3px}html body .kbp .ph>.actions .btn{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){html body .kbp :is(.btn,.gh,.sub){transition:none!important}}
/* Narrow shell fallback; desktop places title, tabs, and actions on one row below. */
html[data-kt] body #mm2sec:not([hidden]){grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto minmax(0,1fr)!important;row-gap:8px;align-items:start!important}
html[data-kt] body #mm2sec>.mm2sechd{grid-column:1!important;grid-row:1!important;margin-bottom:0!important}
html[data-kt] body #mm2sectitle{font-size:28px!important;font-weight:700!important;line-height:1.2!important;letter-spacing:-.02em!important;white-space:normal!important}
html[data-kt] body #mm2sec>#mm2tabs{grid-column:1/-1!important;grid-row:2!important;margin:0 22px!important;align-self:start!important}
html[data-kt] body #mm2sec>#mm2dealsactions{grid-column:2!important;grid-row:1!important;margin-bottom:0!important}
html[data-kt] body #mm2sec>.mm2page{grid-column:1/-1!important;grid-row:3!important}
html[data-kt] body #mm2sec:has(>#mm2tabs:empty){grid-template-rows:auto minmax(0,1fr)!important}
html[data-kt] body #mm2sec:has(>#mm2tabs:empty)>.mm2page{grid-row:2!important}

html body .kbm-tabbar .key:focus-visible{outline:none!important}
html body .kbm-tabbar .key:focus-visible .ring{outline:2px solid var(--g1,#E7BC7A)!important;outline-offset:3px}

html body .kbm .mh :is(.pill,.avbtn){min-width:44px;min-height:44px}
html[data-kt] body .ibtn{min-width:44px!important;min-height:44px!important}

/* Desktop page tabs sit beside the title; mobile keeps its existing stacked header. */
@media(min-width:601px){
 html body .kbp .ph{grid-template-columns:auto minmax(0,1fr) auto}
 html body .kbp .ph>h1{grid-column:1;grid-row:1}
 html body .kbp .ph>.subs{grid-column:2;grid-row:1;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding:4px;scroll-padding-inline:4px}
 html body .kbp .ph>.actions{grid-column:3;grid-row:1}
 html body .kbp .ph:not(:has(>.subs)){grid-template-columns:minmax(0,1fr) auto}
 html body .kbp .ph:not(:has(>.subs))>.actions{grid-column:2}
}
@media(min-width:901px){
 html[data-kt] body #mm2sec[data-kpage]>.mm2sechd{margin-bottom:0!important}
 html[data-kt] body #mm2sec:not([hidden]){grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-rows:auto minmax(0,1fr)!important;align-items:center!important}
 html[data-kt] body #mm2sec>#mm2tabs{grid-column:2!important;grid-row:1!important;margin:0!important;align-self:center!important;flex-wrap:nowrap!important;overflow-x:auto!important;scrollbar-width:thin;scroll-padding-inline:4px}
 html[data-kt] body #mm2sec>#mm2dealsactions{grid-column:3!important;grid-row:1!important;align-self:center!important}
 html[data-kt] body #mm2sec>.mm2page{grid-row:2!important}
}

/* Header hierarchy: notifications are secondary; gold surfaces use navy ink. */
html body :is(.tbar .ibtn[data-header-notifications],[data-header-notifications]){background:transparent!important;background-image:none!important;color:rgba(255,255,255,.7)!important;-webkit-text-fill-color:rgba(255,255,255,.7)!important;border:1px solid rgba(255,255,255,.1)!important;box-shadow:none!important;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}
html body [data-header-notifications]:hover{background:rgba(255,255,255,.05)!important;color:#f2ede3!important;-webkit-text-fill-color:#f2ede3!important}
html body [data-header-notifications] :is(.fxbadge,.kadm-bdg,[data-notification-badge]){background:#B93832!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:none!important}
html:not([data-kt-dark]) body [data-header-notifications]{color:#46536a!important;-webkit-text-fill-color:#46536a!important;border-color:rgba(10,20,40,.15)!important}
html:not([data-kt-dark]) body [data-header-notifications]:hover{background:rgba(10,20,40,.05)!important;color:#0b1120!important;-webkit-text-fill-color:#0b1120!important}
html[data-kt] body .tbar.tbar .acct{background:var(--ecl-btn,linear-gradient(180deg,#E7BC7A,#CF9550))!important;color:#0b1120!important;-webkit-text-fill-color:#0b1120!important}
html[data-kt] body .tbar.tbar .acct :is(.an,.ar){color:#0b1120!important;-webkit-text-fill-color:#0b1120!important}
/* Shared primary actions and solid-gold badges, including nested light labels. */
html[data-kt] body :is(.kb-btn.gold,.mm2btn.dark,.kvbtn.pri),html body .kbp :is([class~="bg-gold"],[class~="bg-[#CF9550]"],[class~="bg-[#E7BC7A]"]){color:#0b1120!important}
html body .kbp .btn:not(.ghost):not(.done):not(.kb-danger):not([aria-pressed=true]):not([style*="background"]) :is([class~="text-white"],[class~="text-[#F2EDE3]"],[class~="text-cream"]){color:#0b1120!important}
/* A fixed circular Community action; no inherited pill padding or tiny SVG. */
html body .kbp .kf-fab.kf-fab{display:flex!important;align-items:center!important;justify-content:center!important;width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;max-width:56px!important;padding:0!important;border-radius:50%!important;background:var(--ecl-btn,linear-gradient(180deg,var(--g1,#E7BC7A),var(--g2,#CF9550)))!important;box-shadow:0 4px 12px rgba(0,0,0,.4)!important;gap:0!important;transition:transform .15s,filter .15s,box-shadow .15s}
html body .kbp .kf-fab.kf-fab>svg{width:24px!important;height:24px!important;stroke-width:2.5;flex:none}
html body .kbp .kf-fab.kf-fab:hover{transform:translateY(-1px) scale(1.03);filter:brightness(1.06)}
@media(prefers-reduced-motion:reduce){html body .kbp .kf-fab.kf-fab{transition:none!important}html body .kbp .kf-fab.kf-fab:hover{transform:none!important}}

/* Match the embedded content edge and keep title/tabs grouped. */
html[data-kt] body #mm2sec>.mm2sechd{padding-left:22px!important}

/* Follow the feature frame's width, including the sidebar and its scrollbar. */
html[data-kt] body #mm2sec{container-type:inline-size;container-name:kmdr-page-frame}
@container kmdr-page-frame (max-width:900px){html[data-kt] body #mm2sec>.mm2sechd{padding-left:14px!important}}
@media(max-width:900px){@container kmdr-page-frame (max-width:900px){html[data-kt] body #mm2sec>#mm2tabs{margin-left:14px!important;margin-right:14px!important}}}

/* Product typography: semantic text sizes; prices, charts and compact badges keep their own scale. */
html body .kbp{--ui-card-title:16px;--ui-section-title:18px;--ui-helper:12px}
html body .kbp .card>h4{font-size:var(--ui-card-title);font-weight:600;line-height:1.4}
html body .kbp .k{font-size:var(--ui-helper);line-height:1.5}
html body :is(.kbp,.kadm) [data-ui-section-heading]{font-size:18px!important;font-weight:600;line-height:1.35;letter-spacing:normal;text-transform:none}

/* Exact-message notification landing: highlight the bubble without changing
   row dimensions, reply geometry or the history scroll anchor. */
@keyframes kmdr-reaction-focus{0%,25%{outline-color:rgba(231,188,122,.8);box-shadow:0 0 14px rgba(231,188,122,.18)}100%{outline-color:transparent;box-shadow:none}}
[data-reaction-target] [data-chat-reaction-host]{border-radius:14px;outline:2px solid transparent;outline-offset:2px;animation:kmdr-reaction-focus 3s ease-out}
@media(prefers-reduced-motion:reduce){[data-reaction-target] [data-chat-reaction-host]{animation:none;outline-color:var(--text-accent,#E7BC7A)}}
/* Main app tab surfaces match Admin's shared theme fills. Keep active treatments
   and keyboard focus rings; the old Midnight outline was an inset shadow. */
html[data-kt] body :is(#mm2tabs .mm2tab,.mm2tabs .mm2tab,.kbp .sub,.kbm .sub,.kbp [role=tab],.kbm [role=tab]):not(.kadm *){
 border-radius:9999px!important;padding:8px 16px!important;min-height:44px;box-sizing:border-box;
}
html[data-kt] body :is(#mm2tabs,.mm2tabs,.kbp .subs,.kbm .subs,.kbp [role=tablist],.kbm [role=tablist]):not(.kadm *){gap:8px!important}
html[data-kt] body :is(#mm2tabs .mm2tab,.mm2tabs .mm2tab,.kbp .sub,.kbm .sub,.kbp [role=tab],.kbm [role=tab]):not(.kadm *):not(.on):not([aria-selected=true]):not([aria-current=page]){
 background:var(--kc-soft,rgba(242,237,227,.05))!important;color:var(--kc-mut,var(--mut))!important;border:0!important;box-shadow:none!important;
}
html[data-kt] body :is(#mm2tabs .mm2tab,.mm2tabs .mm2tab,.kbp .sub,.kbm .sub,.kbp [role=tab],.kbm [role=tab]):not(.kadm *):not(.on):not([aria-selected=true]):not([aria-current=page]):not(:disabled):not([aria-disabled=true]):hover{
 background:var(--kc-soft2,rgba(242,237,227,.1))!important;color:var(--kc-ink,var(--cream))!important;
}
