/* Mobile account hub, scoped independently from desktop and H5 creation pages. */
.h5-account-nav,#h5AccountBack{display:none}
@media(max-width:850px){
  body.h5-account{background:#f8f5f0;min-width:0}
  body.h5-account .account-shell{display:block!important;max-width:768px;padding:16px 14px calc(92px + env(safe-area-inset-bottom));margin:auto;min-width:0}
  body.h5-account .account-sidebar-stack,body.h5-account .memory-home-top-actions,body.h5-account .account-more-menu,body.h5-account #accountAdminLink{display:none!important}
  body.h5-account .account-topbar{position:static;padding:12px 16px;gap:10px;min-height:64px;box-sizing:border-box;flex-wrap:nowrap}
  body.h5-account .account-brand{min-width:0;gap:8px}.account-brand img{width:88px;height:auto}
  body.h5-account .account-brand strong{font-size:14px}body.h5-account .account-brand small{display:none}
  body.h5-account .account-workbench-button{min-height:44px;padding:10px;font-size:12px}.account-workbench-full{display:none}
  body.h5-account .account-workbench-short{display:inline}
  body.h5-account .account-content{width:100%;min-width:0;padding:0;border:0;box-shadow:none;background:none;overflow:visible}
  body.h5-account .account-content-head{display:block!important;margin:0 0 18px;padding:0}
  body.h5-account .account-content-head>div>span{font-size:10px;letter-spacing:2px;color:#a3805c}
  body.h5-account #accountViewTitle{font-size:26px;margin:6px 0;color:#34271f}
  body.h5-account #accountViewDescription{font-size:12px;line-height:1.5;margin:5px 0;color:#998a7e}
  #h5AccountBack:not([hidden]){display:flex;align-items:center;min-height:44px;margin-bottom:8px;text-decoration:none;color:#765336;font-size:13px}
  .h5-my-overview{display:grid;gap:14px}
  .h5-my-card,.h5-my-profile,.h5-my-guest{padding:16px;border:1px solid #e8ddcf;border-radius:18px;background:#fffdfa;min-width:0;box-sizing:border-box}
  .h5-my-card h2{font-size:15px;margin:0 0 8px;color:#34271f}.h5-my-card p{font-size:13px;line-height:1.7;color:#817267;overflow-wrap:anywhere}.h5-my-card small{font-size:12px;line-height:1.6;color:#8d7e71}
  .h5-my-profile{display:flex;align-items:center;gap:10px;background:linear-gradient(145deg,#fffaf2,#f3eadf)}
  .h5-my-avatar{width:48px;height:48px;flex-shrink:0;background:#e9ddcf;border-radius:50%;overflow:hidden;display:grid;place-items:center}
  .h5-my-avatar img{width:100%;height:100%;object-fit:cover}.h5-my-avatar img[src$="svg"]{width:26px;height:26px}
  .h5-my-profile>div{min-width:0;flex:1}.h5-my-profile strong{font-size:15px;overflow-wrap:anywhere}.h5-my-profile small{display:block;font-size:10px;color:#998a7e;margin-top:5px;overflow-wrap:anywhere}
  .h5-my-balance{text-decoration:none;text-align:center;color:#8b603a;flex-shrink:0;min-width:76px}.h5-my-balance strong{display:block;font-size:27px;margin-top:4px}
  .h5-my-growth,.h5-my-cloud{display:block;padding:17px 16px;border:1px solid #e8ddcf;border-radius:18px;background:#f1e7d9;color:#49382c;text-decoration:none}
  .h5-my-cloud{background:#fffdfa}.h5-my-growth strong,.h5-my-cloud strong{display:block;font-size:15px}.h5-my-growth span,.h5-my-cloud span{float:right}.h5-my-growth small,.h5-my-cloud small{display:block;font-size:12px;color:#998a7e;margin-top:8px;line-height:1.5}
  .h5-my-row{display:flex;gap:12px;align-items:center;min-height:68px;border-top:1px solid #efe7dd;text-decoration:none;color:#49382c}
  .h5-my-row>span:nth-child(2){flex:1;min-width:0}.h5-my-row strong{font-size:14px;display:block}.h5-my-row small{display:block;font-size:11px;margin-top:5px;line-height:1.5;color:#998a7e}.h5-my-row b{font-size:21px;font-weight:400;color:#a18569}
  .h5-my-icon{display:grid;place-items:center;flex-shrink:0;width:33px;height:33px;border-radius:10px;background:#f0e6d9;color:#8b633e;font-size:13px}
  .h5-my-logout,.h5-my-more,.h5-my-call{display:block;min-height:46px;padding:10px 16px;border:1px solid #ded0be;border-radius:12px;background:#fffdfa;color:#684728;text-align:center;text-decoration:none;font-size:14px;box-sizing:border-box}
  .h5-my-guest>span{font-size:10px;letter-spacing:2px;color:#a3805c}.h5-my-guest h2{font-size:22px;color:#34271f;margin:10px 0}.h5-my-guest p{font-size:13px;line-height:1.7;color:#998a7e}.h5-my-guest a{display:flex;align-items:center;justify-content:center;min-height:48px;background:#493528!important;border-radius:24px;color:#fffaf3!important;text-decoration:none;font-size:15px;margin-top:18px}
  body.h5-account #accountError:has(.h5-my-guest){display:block;padding:0;border:0;background:none;min-height:0}.h5-my-guest{text-align:left}
  .h5-my-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.h5-my-item{min-width:0;border-radius:14px;border:1px solid #e8ddcf;padding:8px;background:#fffdfa}.h5-my-item button{padding:0;border:0;width:100%;background:#eee3d5;border-radius:10px;overflow:hidden;min-height:44px}.h5-my-item img{width:100%;height:170px;object-fit:contain;display:block}.h5-my-item strong,.h5-my-item small{display:block;margin-top:7px;font-size:12px;overflow-wrap:anywhere}
  .h5-gift-tabs{display:flex;gap:10px;margin-bottom:14px}.h5-gift-tabs button{min-height:44px;flex:1;border:1px solid #ded0be;border-radius:24px;background:#fffdfa;color:#684728}.h5-gift-tabs [aria-pressed="true"]{background:#493528;color:#fff}.h5-my-remote:has(.h5-gift-tabs) .h5-my-items{grid-template-columns:1fr}
  .h5-account-nav{display:flex;position:fixed;z-index:80;inset:auto 0 0;gap:4px;padding:6px 16px calc(8px + env(safe-area-inset-bottom));background:#fffefcfa;border-top:1px solid #e9e4dd;box-sizing:border-box}
  .h5-account-nav a{display:flex;flex:1;min-width:0;min-height:48px;align-items:center;justify-content:center;flex-direction:column;gap:4px;border-radius:12px;color:#817469;text-decoration:none;font-size:12px}.h5-account-nav img{width:22px;height:22px;opacity:.6}.h5-account-nav a[aria-current]{color:#58402c;background:#f3ece1;font-weight:700}.h5-account-nav a[aria-current] img{opacity:1}
  body.h5-account .works-grid{grid-template-columns:minmax(0,1fr)}body.h5-account .work-v11-toolbar{flex-wrap:wrap;gap:10px}body.h5-account .work-v11-toolbar button{min-height:44px}
  body.h5-account .settings-card,body.h5-account .order-card,body.h5-account .address-card{min-width:0;max-width:100%;box-sizing:border-box}
}
