/* Feishu r495: phone-sized controls and a compact, readable storefront. */
/* Feishu r529: keep both guest sign-in and personal-center avatars discoverable. */
:root .site-header .header-actions .account-avatar-link{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:8px;border-radius:50%;border:1px solid var(--stroke,#625d7f);background:transparent;color:inherit;box-shadow:none}
:root .site-header .header-actions .account-avatar-link svg{width:24px;height:24px}
:root .site-header .header-actions .account-avatar-link:focus-visible{outline:2px solid var(--accent,#b9a2f0);outline-offset:3px}
:root .site-header .header-actions .account-avatar-link.is-signed-in{padding:4px;border-width:2px}
@media(max-width:760px){
  :root .header-actions>.account-avatar-link,:root .header-actions>.account-menu-anchor{order:10}
}
@media (min-width:761px) and (max-width:1000px){
  :root .align-header .header-inner{padding-inline:16px;gap:12px}
  :root .align-header .header-actions{gap:8px}
  :root .align-header .header-actions>.join-button,:root .align-header .header-actions>a[href="/favorites"]{display:none}
  :root .align-header .brand-name{font-size:18px}
  :root .align-header .header-actions>a[href="/search"]{display:grid;place-items:center;min-width:44px;min-height:44px}
}
@media (max-width:760px){
  :root .align-header .header-inner{min-height:60px;padding:8px;gap:8px}
  :root .align-header .logo{flex:none;min-width:44px;min-height:44px;justify-content:center}
  :root .align-header .logo-mark{width:36px;height:36px}
  :root .align-header .brand-name{display:none}
  :root .align-header .header-actions{min-width:0;gap:4px}
  :root .align-header .header-actions>.join-button,:root .align-header .header-actions>a[href="/favorites"]{display:none}
  :root .align-header .header-actions>a[href="/search"]{display:none}
  :root .align-header .menu-button,:root .align-header .pv-theme-toggle{width:44px;height:44px;min-width:44px;min-height:44px;padding:10px}
  :root .align-header .account-link.is-signed-in{width:44px;height:44px}
  :root .align-header .currency-switch select{width:68px;min-height:44px;padding:6px 3px;font-size:12px}
  :root .align-header .language-switch{min-height:44px;padding:0 4px;gap:0}
  :root .align-header .language-switch>span{display:none}
  :root .align-header .language-switch select{width:68px;min-height:42px;padding:5px 2px;border:0;background:transparent;border-radius:inherit;font-size:12px}
  :root .align-mobile{gap:8px;padding:12px 16px;max-height:65dvh;overflow-y:auto}
  :root .align-mobile>a{display:flex;align-items:center;min-height:44px;padding:8px 10px}
  :root .announcement{padding:6px 12px;min-height:44px;gap:6px;font-size:12px;line-height:1.4}
  :root .announcement-close{flex:none;width:32px;height:32px;min-width:32px}
  :root .mp-home .shell{width:calc(100% - 32px);max-width:540px;min-width:0}
  :root .mp-activity-inner{display:grid;grid-template-columns:32px minmax(0,1fr) 44px;gap:8px 10px;min-height:0;padding-block:12px}
  :root .mp-activity-icon{width:32px;height:32px;border-radius:10px;font-size:18px}
  :root .mp-activity-copy{min-width:0;gap:4px}
  :root .mp-activity-copy small{font-size:9px;letter-spacing:.1em}
  :root .mp-activity-copy strong{font-size:17px;line-height:1.25;overflow-wrap:anywhere}
  :root .mp-activity-copy>span{font-size:12px;line-height:1.5}
  :root .mp-activity-close{grid-column:3;grid-row:1;width:44px;height:44px}
  :root .mp-activity-inner>a{grid-column:2 / 4;grid-row:2;justify-self:start;display:inline-flex;align-items:center;min-height:44px;margin:0;padding:10px 14px;font-size:12px}
  :root .mp-intro{grid-template-columns:minmax(0,1fr);padding-block:20px 24px;gap:20px}
  :root .mp-intro-copy{min-width:0;padding:0}
  :root .mp-intro-copy .eyebrow{font-size:10px;line-height:1.5;letter-spacing:.16em;margin:0 0 10px}
  :root .mp-intro-copy h1{font-size:clamp(34px,9vw,42px);line-height:1.08;letter-spacing:-.045em;margin:0 0 14px;overflow-wrap:anywhere}
  :root .mp-intro-copy>p:not(.eyebrow){font-size:14px;line-height:1.6;margin:0 0 20px}
  :root .mp-search{height:54px;min-width:0;padding:4px;border-radius:14px}
  :root .mp-search input{min-width:0;padding:10px 12px;font-size:16px}
  :root .mp-search button{width:44px;height:44px;min-width:44px;border-radius:10px}
  :root .mp-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
  :root .mp-quick :is(a,button){display:flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:8px 6px;font-size:12px;line-height:1.4;text-align:center;white-space:normal}
  :root .mp-discord-banner{min-height:190px;padding:20px;border-radius:18px}
  :root .mp-discord-banner .mp-discord-copy{max-width:74%;min-width:0}
  :root .mp-discord-banner .mp-discord-copy>span{font-size:9px;letter-spacing:.09em}
  :root .mp-discord-banner h2{font-size:26px;line-height:1.15;margin:12px 0 10px;overflow-wrap:anywhere}
  :root .mp-discord-banner p{font-size:12px;line-height:1.5;margin-bottom:14px}
  :root .mp-discord-banner .mp-discord-art{width:84px;height:84px;right:-10px;top:32%;border-radius:23px}
  :root .mp-discord-art svg{width:54px;height:42px}
  :root .mp-discord-banner a{min-height:44px;display:inline-flex;align-items:center;padding:10px 12px;font-size:12px}
  :root .mp-home :is(.mp-featured,.mp-sale,.mp-fresh,.mp-top,.mp-explore,.mp-category){min-width:0}
  :root .mp-home .mp-heading{gap:12px;flex-wrap:wrap;align-items:flex-start}
  :root .mp-home .mp-heading h2{font-size:23px;line-height:1.25;overflow-wrap:anywhere}
  :root .mp-home .product-info{min-width:0}
  :root .mp-home .product-info h3{overflow-wrap:anywhere}
  :root .mp-home .mp-carousel-arrow{width:44px;height:44px}
  :root .feedback-launcher{width:48px;height:48px;min-height:48px;padding:12px;border-radius:50%;gap:0}
  :root .feedback-launcher svg{width:24px;height:24px}
  :root .feedback-launcher>span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  :root .feedback-dialog{max-height:calc(100dvh - env(safe-area-inset-top) - 12px)}
  :root .detail-layout{grid-template-columns:minmax(0,1fr)}
  :root .detail-layout>div{min-width:0}
  :root .qc-section-heading{flex-wrap:wrap;gap:8px}
  :root .qc-section-heading>button{width:auto;min-width:44px;min-height:44px;flex-shrink:0;white-space:normal}
}
@media (max-width:600px){
  :root .mp-activity-copy>span{display:none}
}
@media (max-width:359px){
  :root .align-header .header-inner{gap:4px;padding-inline:4px}
  :root .align-header .header-actions{gap:0}
  :root .align-header .currency-switch select{width:54px}
  :root .align-header .language-switch select{width:62px}
  :root .mp-home .shell{width:calc(100% - 24px)}
  :root .mp-discord-banner{padding:16px}
}
