/* R136: approved Deep Teal / Sage / Ivory / Gold; R7 component and original owners only. */
body.aic-r136-shared{--r136-bg:#f8f6ee;--r136-surface:#fffdf8;--r136-text:#103b3b;--r136-muted:#52665f;--r136-line:#c6d0c4;--r136-sage:#dfe8d5;--r136-gold:#d8ba78;background:var(--r136-bg);color:var(--r136-text)}
body.aic-r136-shared[data-r136-theme=dark]{--r136-bg:#102c2b;--r136-surface:#183b38;--r136-text:#f3efdf;--r136-muted:#c3d0c4;--r136-line:#587069;--r136-sage:#294c45;color-scheme:dark}
body.aic-r136-shared #aic-global-shell-r7 :is(.aic-shell-header,.aic-shell-drawer,.aic-shell-searchbox){background:var(--r136-surface);color:var(--r136-text);border-color:var(--r136-line)}
body.aic-r136-shared #aic-global-shell-r7 :is(a,button,.aic-shell-group h2,.aic-shell-drawer-title){color:var(--r136-text)}
body.aic-r136-shared #aic-global-shell-r7 .aic-shell-row{max-width:1440px;gap:12px;padding-inline:20px;box-sizing:border-box}
body.aic-r136-shared #aic-global-shell-r7 .aic-shell-primary{gap:6px;min-width:0}
body.aic-r136-shared #aic-global-shell-r7 .aic-shell-primary a{padding:10px 12px;min-height:44px;box-sizing:border-box;line-height:1.5;border-radius:12px;text-decoration:none}
body.aic-r136-shared #aic-global-shell-r7 .aic-shell-primary a:is(:hover,[aria-current=page]),body.aic-r136-shared #aic-global-shell-r7 .aic-shell-group a:is(:hover,[aria-current=page]){background:var(--r136-sage);color:var(--r136-text)}
body.aic-r136-shared #aic-global-shell-r7 a[aria-current=page]{box-shadow:inset 0 0 0 1px var(--r136-line),inset 0 -3px 0 var(--r136-gold)}
body.aic-r136-shared #aic-global-shell-r7 .aic-shell-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}
/* Approved four-journey primary navigation; duplicated destinations stay in original Explore. */
body.aic-r136-shared #aic-global-shell-r7 .aic-shell-primary a[data-r139-secondary],body.aic-r136-shared #aic-global-shell-r7 :is(.aic-shell-myaic,.aic-shell-route){display:none}
body.aic-r136-shared #aic-global-shell-r7 .aic-r136-premium{background:#d8ba78!important;color:#103b3b!important;border:1px solid #966513;border-radius:12px;min-height:44px;padding:9px 13px;font:inherit;font-weight:700;line-height:1.35;cursor:pointer;white-space:normal}
body.aic-r136-shared #aic-global-shell-r7 :is(button,a):focus-visible{outline:3px solid #966513;outline-offset:3px}
body.aic-r136-shared[data-r136-theme=dark] #aic-global-shell-r7 :is(button,a):focus-visible{outline-color:#d8ba78}
body.aic-r136-shared #aic-global-shell-r7 .aic-shell-lang a{background:var(--r136-surface);color:var(--r136-text)}
body.aic-r136-shared #aic-global-shell-r7 .aic-shell-lang a.is-current{background:var(--r136-sage);color:var(--r136-text)}
body.aic-r136-shared #aic-r136-premium-note{max-width:1180px;margin:12px auto;padding:16px 20px;box-sizing:border-box;border-left:4px solid #d8ba78;background:var(--r136-sage);color:var(--r136-text);font:inherit}
body.aic-r136-shared .aic-r136-free{display:flex;margin:12px 20px;padding:12px;min-height:44px;border:1px solid var(--r136-line);border-radius:12px;justify-content:space-between;background:var(--r136-sage)}
body.aic-r136-shared :is(.b5-global-footer,.w2-footer){background:var(--r136-surface)!important;color:var(--r136-text)!important;border-color:var(--r136-line)!important}
body.aic-r136-shared .w2-footer :is(a,p,h2,h3){color:var(--r136-text)!important}
/* Existing learning/product bars, artwork, ruby and feedback are not redesigned. */
body.aic-r136-shared #aic-learn-ui01{min-height:0}
@media(max-width:1300px){body.aic-r136-shared #aic-global-shell-r7 .aic-shell-primary{display:none}}
/* Retained global reference: logo/theme/language first row, Explore/search second row. */
body.aic-r136-shared #aic-global-shell-r7 .aic-shell-logo img{position:static;width:100%;height:auto;max-height:none;object-fit:contain;filter:none;transform:none}
body.aic-r136-shared #aic-global-shell-r7 .aic-shell-logo{width:174px;flex:0 0 174px}
body.aic-r136-shared #aic-global-shell-r7 .aic-r139-brand-dark{display:none}
body.aic-r136-shared[data-r136-theme=dark] #aic-global-shell-r7 .aic-r139-brand-light{display:none}
body.aic-r136-shared[data-r136-theme=dark] #aic-global-shell-r7 .aic-r139-brand-dark{display:block}
@media(max-width:767px){
 body.aic-r136-shared #aic-global-shell-r7 .aic-shell-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px 14px;padding:10px 20px}
 body.aic-r136-shared #aic-global-shell-r7 .aic-shell-logo{grid-area:1/1;width:152px;min-width:0}
 body.aic-r136-shared #aic-global-shell-r7 .aic-shell-actions{display:contents}
 body.aic-r136-shared #aic-global-shell-r7 .aic-r136-theme{grid-area:1/2}
 body.aic-r136-shared #aic-global-shell-r7 .aic-shell-lang{grid-area:1/3}
 body.aic-r136-shared #aic-global-shell-r7 .aic-shell-explore{grid-area:2/1/3/3;justify-self:start}
 body.aic-r136-shared #aic-global-shell-r7 [data-aic-search-open]{grid-area:2/3;justify-self:end}
 body.aic-r136-shared #aic-global-shell-r7 .aic-shell-drawer{width:min(90vw,380px);max-width:100vw;box-sizing:border-box}
 body.aic-r136-shared #aic-r136-premium-note{margin-inline:16px}
}
@media(max-width:359px){
 body.aic-r136-shared #aic-global-shell-r7 .aic-shell-row{padding:10px 14px;gap:5px 7px}
 body.aic-r136-shared #aic-global-shell-r7 .aic-shell-logo{width:135px}
 body.aic-r136-shared #aic-global-shell-r7 .aic-shell-lang a{min-width:34px;padding-inline:6px}
 body.aic-r136-shared #aic-global-shell-r7 .aic-r136-theme{width:36px;min-width:36px;height:36px}
}

/* R140: exact inherited <=360 language hiding and companion auto-margin conflicts. */
@media(max-width:767px){
 body.aic-r136-shared #aic-global-shell-r7 .aic-shell-explore{margin-left:0;justify-self:start}
 body.aic-r136-shared #aic-global-shell-r7 .aic-shell-actions .aic-shell-lang a.is-current{display:flex}
}
