/* Keep MEIAI's original muted rose and teal palette; improve legibility and alignment. */
:root{
  --identity-pink:#b35e79;--identity-pink-dark:#9b4762;--identity-pink-soft:#faedef;
  --identity-aqua:#57bec8;--identity-aqua-dark:#287b83;--identity-aqua-soft:#edf8f9;
  --identity-ink:#3a3d42;--identity-secondary:#74787e;--identity-soft-text:#64686f;
  --identity-line:#e8e8ec;--identity-background:#fafafa;
  --identity-gradient:linear-gradient(105deg,#de8ea0 0%,#b59da1 38%,#7eb5c2 72%,#57c5cf 100%);
  --pf-pink:#bd717e;--pf-aqua:#3b919d;--pf-wash:linear-gradient(115deg,#fcf0f2,#f8f6f8 48%,#edf9fa);
  --pf-line:#eeedf0;--pm-nav-fill:linear-gradient(120deg,#f5e6e9,#e1f3f5);--pm-nav-border:#d6e4e6;
  --ink:#3a3d42;--muted:#74787e;--accent:#287b83;--line:#e8e8ec;
}
/* Desktop channels stay centered. Mobile keeps its three equally sized tabs. */
@media(min-width:1000px){
  body.single .phone .hm-mode-tabs{justify-content:center;gap:8px;padding-inline:24px;height:64px;min-height:64px}
  body.single .phone .hm-mode-tabs:before{inset:8px auto;width:376px;left:50%;transform:translateX(-50%);border-radius:14px}
  body.single .phone .hm-mode-tabs>a{flex:0 0 116px;min-width:0;height:42px;font-size:13px}
}
/* Original brand surfaces, with darker labels rather than darker backgrounds. */
.phone .app-header.bh-header .ec-search{color:#70767e}
.phone .nd-copy h3,.phone .cat-intro h2,.phone .hp-title h2{color:#3a3d42}
body.single .phone .ss-bag-heading h2,body.single .phone .ss-bag-items h3{color:#3a3d42}
body.single .phone .ss-bag-heading>p,body.single .phone .ss-bag-heading .ss-muted,body.single .phone .ss-bag-items .ss-muted{color:#74787e}
.ss-bag-items .ss-price,.ss-bag-summary .ss-summary strong{color:#287b83}
.ss-bag-items .ss-stepper>span,.ss-bag-items .ss-stepper>.ss-text-button,.ss-bag-delivery,.ss-bag-summary>.ss-small,.ss-continue-shopping{color:#74787e}
.ss-bag-checkout .ss-button{color:#286875;font-weight:600;border:1px solid #d4dfe6}
.preview-note{font-size:10px;color:#806469}
.section-title p,.field label,.field small,.optional,.small-copy,.summary-note,.check-line,.delivery-box p,.security-line,.under-button,.checkout-footer,.method-panel small,.method-option small{color:#74787e}
.field label{font-size:12px}.field input,select{border-color:#e1e2e6}.field input::placeholder{color:#868b92}
.field small,.section-title p,.small-copy,.check-line,.method-option small,.summary-note,.checkout-footer{font-size:11px}
.summary-heading h2{color:#646c72}.summary-heading a,.summary-toggle{color:#74787e;font-size:11px!important}
.product-copy p,.line-price span{color:#74787e;font-size:11px}
.primary,.completion .primary{color:#286875;font-weight:600;border:1px solid #d4dfe6;font-size:14px}
.steps li,.steps li>span{color:#74787e}.steps li[aria-current],.steps li[aria-current]>span{color:#287b83}
.payment-category>summary>.category-title{color:#536b76;font-size:13px}
.payment-category>summary>span,.payment-category>summary:after{color:#74787e}
.method-option:has(input:checked){border-color:#7dabb8;box-shadow:0 0 0 1px #7dabb8 inset}
.method-option strong,.address-summary p{font-size:13px}.mini-label,.review-block h3{color:#74787e}
.completion h2{color:#456d7a}.completion>p#complete-message{color:#697883}
.completion-preview{color:#886b70}.completion:not([hidden]) .spark{animation:none}
/* The rainbow remains on intentional taps; no additional idle animation. */
.phone .pt-light meiai-tap-sheen{background:linear-gradient(112deg,transparent 18%,#eba7b238 34%,#d4c2d444 48%,#8dd1e345 59%,transparent 76%)}
.phone .pt-light meiai-tap-glow{background:radial-gradient(ellipse at 35% 40%,#d79ba533,transparent 52%),radial-gradient(ellipse at 65% 55%,#79cbd536,transparent 55%)}
.primary,.ss-bag-checkout .ss-button{transition:transform .16s,filter .16s}
.primary:active,.ss-bag-checkout .ss-button:active{transform:scale(.985);filter:brightness(.98)}
@media(max-width:600px){
  .primary{font-size:13px}.steps li{font-size:12px}
  .ss-bag-heading>p,.ss-bag-items .ss-muted,.ss-bag-delivery,.ss-bag-summary>.ss-small,.ss-continue-shopping{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.primary,.ss-bag-checkout .ss-button{transition:none}.primary:active,.ss-bag-checkout .ss-button:active{transform:none}}
:root{--meiai-action-fill:linear-gradient(110deg,#efcdd3,#e5dce4 52%,#c6e9ef);--meiai-action-ink:#554e60;--meiai-action-border:#decbd9}

/* Review corrections: readable controls, quiet account utilities, lighter SNAP cards. */
.phone :is(.nd-tabs a,.nd-tabs button,.hp-topics button,.bc-sort-trigger,.b7-buy-choice,.md-order-shortcuts small){font-size:13px;color:#545762}
.phone :is(.b7-buy-choice,.hp-topics button,.bc-sort-trigger){min-height:44px}
.phone .b7-buy-choice[aria-pressed=true]{font-weight:600;border-width:2px;text-decoration:underline;text-underline-offset:4px}
.phone .b7-buy-choice:disabled{opacity:.62;text-decoration:line-through}
.phone .b16-personal-shelf{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0;background:transparent}
.phone .b16-shelf-card{min-height:48px;border:0;border-radius:0;background:transparent;padding:10px 12px;box-shadow:none}
.phone .b16-shelf-heading{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;color:#626875}
.phone .b16-shelf-heading strong{font-size:13px;font-weight:400;white-space:nowrap}
.phone .b16-shelf-heading small{margin-left:auto;font-size:12px;color:#626875}
.phone .b16-shelf-heading svg{width:18px;height:18px}
.phone .b16-shelf-photos{display:none}
.phone .md-recent-panel{display:block}
.phone .md-recent-panel[hidden]{display:none}
@media(min-width:1000px){.phone[data-account-role=guest] .md-order-shortcuts{display:none}}
.phone .b16-dashboard-tools [hidden],.phone .b16-creator-center[hidden]{display:none!important}
#home_photo .hp-title h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:20px}
#home_photo .hp-card>.hp-tags{display:none}
#home_photo .hp-card>.sp-post-products{margin:4px 8px;display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity}
#home_photo .hp-card .sp-post-product{min-height:44px;min-width:0;flex:0 0 100%;box-sizing:border-box;scroll-snap-align:start}
#home_photo .hp-card .sp-post-product img{width:38px;height:38px;flex:0 0 38px;min-width:38px}
#home_photo .hp-card .sp-post-product .sp-post-label{display:none}
html[data-theme=dark] .phone :is(.nd-tabs a,.nd-tabs button,.hp-topics button,.bc-sort-trigger,.b7-buy-choice,.md-order-shortcuts small,.b16-shelf-heading,.b16-shelf-heading small){color:#dde2eb}
html[data-theme=dark] .phone .b16-shelf-card{background:transparent}
/* Public destinations remain visible on mobile, including before sign-in. */
.phone :is(.b16-mobile-entry,.b16-community-browse,.b16-shopping-guide){display:none!important}
@media(max-width:999px){
 .phone .b16-dashboard-tools .b16-mobile-entry{display:flex!important}
 .phone :is(.b16-community-browse,.b16-shopping-guide){display:block!important}
 .phone[data-account-role=guest] :is(.md-community-fold,.md-support-fold){display:none}
 .phone .b16-community-browse{padding:0 14px 14px;margin:0;border-radius:18px;border:1px solid #eeedf3;background:#fff}
 .phone .b16-community-browse .ap-panel-head{padding:13px 0 10px}
 .phone .b16-community-browse .b16-creator-formats{margin:0;gap:8px}
 .phone .b16-community-browse .b16-creator-formats a{min-height:60px}
 .phone .b16-shopping-guide{padding:14px;margin:0;border-radius:18px;border:1px solid #eeedf3;background:#fff}
 .phone .b16-shopping-guide .ah-guide-title{margin:0 0 6px}
 .phone .b16-shopping-guide .ah-guide-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
 .phone .b16-shopping-guide .ah-guide-shortcuts a{min-height:44px;font-size:12px}
 .phone .md-order-shortcuts small{white-space:nowrap;font-size:11px}
 html[data-theme=dark] .phone :is(.b16-community-browse,.b16-shopping-guide){background:#303c49;border-color:#50616e}
}
/* Purchase facts remain selectable text, with longer reference material disclosed on demand. */
.pi-purchase-facts{color:#545762;font-size:13px;line-height:1.8}
.pi-purchase-facts h3{font-size:14px;font-weight:600;margin:0 0 8px}
.pi-purchase-facts p{margin:7px 0}
.pi-purchase-facts summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;border-top:1px solid #ebe7ee}
.pi-purchase-facts summary::after{content:'＋';font-size:16px}
.pi-purchase-facts details[open]>summary::after{content:'−'}
.pi-purchase-facts table{width:100%;border-collapse:collapse;text-align:center;font-size:12px}
.pi-purchase-facts th,.pi-purchase-facts td{padding:6px 2px;border-bottom:1px solid #ebe7ee}
.pi-purchase-facts .pi-retry{min-height:44px;padding:10px 14px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer}
.pi-purchase-facts .pi-retry:disabled{cursor:wait;opacity:.6}
.pi-purchase-facts .pi-guide-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:8px}
.pi-purchase-facts .pi-guide-links a{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:underline}
html[data-theme=dark] .pi-purchase-facts{color:#dde2eb}
