/* Mobile app layout, shared by the installed PWA and the mobile website. */
.mobile-dock,.mobile-help,.mobile-account-back,.mobile-seller-intro { display: none; }
.account-hub { max-width: 760px; }
.account-hub-heading { display:flex; gap:20px; align-items:center; padding:20px 0 32px; }
.account-hub-heading h1 { font-size:30px; margin:8px 0; overflow-wrap:anywhere; }
.account-hub-heading p { color:var(--muted); margin:0; font-size:14px; }
.account-avatar { display:grid; place-items:center; flex-shrink:0; width:56px; height:56px; border-radius:50%; color:var(--green); background:#e6eee4; font:650 24px var(--heading); }
.account-hub-auth { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:24px; }
.account-hub-group { display:grid; background:#fff; border:1px solid var(--line); border-radius:12px; padding:0 20px; margin-bottom:16px; }
.account-hub-group a { display:flex; align-items:center; gap:16px; padding:20px 0; min-height:64px; font-size:15px; }
.account-hub-group a + a { border-top:1px solid var(--line); }
.account-hub-group a > span { flex:1; }
.account-hub-group .icon { flex-shrink:0; width:22px; height:22px; }
.account-hub-group .icon:last-child { width:16px; height:16px; color:var(--muted); }
.account-logout { display:flex; gap:16px; align-items:center; width:100%; text-align:start; padding:20px; background:#fff; border:1px solid var(--line); border-radius:12px; }
.account-hub-signature { text-align:center; font-size:12px; color:var(--muted); padding:28px 0 0; }
.seller-guest-page { max-width:760px; }

@media (max-width:800px) {
  :root { --mobile-dock-space:calc(96px + env(safe-area-inset-bottom, 0px)); --mobile-surface:#f6f7f5; }
  html { scroll-padding-bottom:var(--mobile-dock-space); }
  body { background:var(--mobile-surface); }
  #app { padding-bottom:var(--mobile-dock-space); }
  #app:has(.admin-app) { padding-bottom:0; }
  .wrap { width:calc(100% - 40px); }
  .site-header { background:var(--mobile-surface); border:0; padding-top:env(safe-area-inset-top, 0px); }
  .site-header .topbar,.site-header .category-nav,.main-header > .mobile-menu,.header-actions .desktop-account,.header-actions .help-link { display:none; }
  .mobile-workspace .site-footer,.mobile-workspace .main-header .search { display:none; }
  .main-header { grid-template-columns:minmax(0,1fr) auto; min-height:0; gap:18px 8px; padding-top:16px; padding-bottom:24px; }
  .main-header .brand,.main-header .brand img { width:142px; }
  .main-header .brand img { height:48px; }
  .header-actions { gap:0; border:1px solid #dce0da; border-radius:28px; background:#ffffffb8; padding:3px; }
  .header-actions .icon-button { display:flex; width:40px; height:40px; }
  .header-actions .desktop-account { display:none; }
  .header-actions .icon { width:21px; height:21px; }
  .header-actions .cart-count { top:-2px; inset-inline-end:-1px; }
  .search { height:48px; background:#fff; border:1px solid #d4d9d2; border-radius:8px; gap:10px; padding-inline:14px 5px; }
  .search > .icon { width:20px; height:20px; flex-shrink:0; }
  .search > input { font-size:16px; min-width:0; }
  .search-submit { width:44px; height:44px; flex-shrink:0; }
  .search-submit .icon { width:21px; height:21px; }
  .suggestions { z-index:30; }
  .mobile-dock { position:fixed; z-index:35; bottom:calc(12px + env(safe-area-inset-bottom, 0px)); inset-inline:16px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:calc(100% - 32px); max-width:440px; margin-inline:auto; padding:6px; border:1px solid #e8eae5; border-radius:20px; background:#fff; box-shadow:0 8px 32px #1c30221a; }
  .mobile-dock > a,.mobile-dock > button { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; min-width:0; min-height:62px; border:0; border-radius:14px; padding:8px 2px; background:transparent; color:var(--ink); font-size:11px; font-weight:650; line-height:1.25; text-align:center; text-decoration:none; }
  .mobile-dock .icon { width:22px; height:22px; }
  .mobile-dock [aria-current],.mobile-dock .is-active { background:var(--green); color:#fff; }
  .mobile-dock > :focus-visible { outline:2px solid var(--green); outline-offset:3px; }
  body:has(dialog[open]) { overflow:hidden; }
  /* Leave the keyboard the available height; the dock returns on blur. */
  body:has(input:focus,textarea:focus,select:focus) .mobile-dock { visibility:hidden; }
  #toast { bottom:calc(var(--mobile-dock-space) + 12px); width:max-content; }
  dialog { position:fixed; inset:auto 0 0; max-width:100%; width:100%; max-height:90dvh; margin:0; border-radius:24px 24px 0 0; padding:24px 24px calc(24px + env(safe-area-inset-bottom, 0px)); overscroll-behavior:contain; }
  .modal-header { gap:12px; }
  .modal-header h2 { font-size:22px; }
  .modal-header .icon-button { width:44px; height:44px; margin:0; flex-shrink:0; }
  .mobile-links a { min-height:56px; font-size:15px; }
  .market-home { display:flex; flex-direction:column; background:var(--mobile-surface); }
  .market-home > * { flex-shrink:0; }
  .editorial-hero { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; padding:24px; border-radius:16px; background:#e9eee5; margin-bottom:12px; }
  .editorial-copy > .eyebrow { font-size:9px; margin-bottom:14px; }
  .editorial-copy h1 { font-size:32px; line-height:1.15; margin-bottom:14px; }
  .editorial-copy > p { font-size:14px; line-height:1.65; }
  .hero-actions { margin-top:20px; gap:16px; }
  .hero-actions .button { min-height:44px; font-size:13px; }
  .hero-actions .text-link { font-size:12px; }
  .hero-signature { display:none; }
  .editorial-gallery { display:flex; gap:8px; height:132px; }
  .editorial-product { flex:1; padding:10px; border-radius:10px; background:#ffffff78; }
  .editorial-product-label { display:none; }
  .editorial-product img,.editorial-tech img { padding:0; margin:0; width:100%; height:100%; }
  .category-index { border:0; padding-block:28px; }
  .section-heading { align-items:center; gap:12px; margin-bottom:20px; }
  .section-heading h2 { font-size:22px; line-height:1.3; letter-spacing:-.035em; }
  .section-heading .eyebrow { display:none; }
  .section-heading > .text-link { font-size:11px; white-space:nowrap; }
  .section-heading > .text-link .icon { width:16px; }
  .category-tiles { display:grid; grid-auto-flow:column; grid-auto-columns:142px; grid-template-columns:none; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:20px; margin-inline:-20px; padding-inline:20px; padding-bottom:8px; scrollbar-width:none; }
  .category-tile { scroll-snap-align:start; padding:12px; border-radius:14px; background:#e8eddf; }
  .category-tile:nth-child(2n) { background:#eee9e0; }
  .category-image { background:transparent; height:120px; padding:8px; }
  .category-caption { justify-content:center; text-align:center; padding:10px 0 8px; }
  .category-caption h3 { font-size:13px; line-height:1.4; }
  .market-home .section { padding-block:28px; border:0; }
  .market-home .product-grid { display:grid; grid-auto-flow:column; grid-auto-columns:76%; grid-template-columns:none; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:20px; gap:12px; margin-inline:-20px; padding:0 20px 12px; scrollbar-width:none; }
  .market-home .product-card { background:#fff; border-radius:14px; overflow:hidden; scroll-snap-align:start; }
  .market-home .card-picture { height:210px; border-radius:0; background:#fff; }
  .market-home .card-picture img { padding:18px; }
  .market-home .card-content { padding:16px 18px 20px; }
  .market-home .product-card h3 { font-size:16px; }
  .market-home .card-price strong,.market-home .card-content > strong { font-size:22px; }
  .market-home .card-content > p { font-size:12px; color:var(--muted); }
  .market-opening { padding:24px; background:#fff; border:0; border-radius:14px; }
  .market-opening p { font-size:14px; line-height:1.6; }
  .seller-feature { border-radius:18px; margin-top:12px; }
  .seller-feature-copy { padding:30px 26px 32px; }
  .seller-feature-copy > .eyebrow { font-size:9px; letter-spacing:.12em; }
  .seller-feature h2 { font-size:28px; line-height:1.18; margin:18px 0; }
  .seller-feature-copy > p { color:#e0e9e2; font-size:14px; line-height:1.75; margin-bottom:24px; }
  .seller-feature .button { width:100%; justify-content:space-between; font-size:14px; min-height:50px; padding:14px 20px; }
  .seller-feature-image { min-height:0; padding:0; aspect-ratio:1.05; }
  .seller-feature-image img { height:100%; width:100%; }
  .brand-editorial { gap:18px; padding-block:36px; }
  .brand-editorial h2 { font-size:25px; }
  .brand-editorial p { font-size:14px; }
  .site-footer { margin-top:12px; }
  .footer-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
  /* Account home is a list of destinations. Details have a single return link. */
  .account-hub { padding-top:8px; }
  .account-hub-heading { padding-block:16px 28px; gap:14px; }
  .account-hub-heading h1 { font-size:25px; line-height:1.25; }
  .account-hub-heading .eyebrow { font-size:9px; }
  .account-hub-heading p { font-size:13px; line-height:1.6; }
  .account-hub-group { border:0; border-radius:14px; padding-inline:18px; margin-bottom:16px; }
  .account-hub-group a { font-size:15px; min-height:64px; gap:14px; }
  .account-hub-auth .button { flex:1 1 140px; }
  .account-logout { border:0; font-size:14px; }
  .account-page { background:transparent; }
  .account-page .breadcrumbs,.account-page .account-nav { display:none; }
  .mobile-account-back { display:inline-flex; min-height:44px; margin-bottom:20px; font-size:13px; }
  .mobile-account-back .icon { transform:rotate(180deg); width:16px; }
  [dir=rtl] .mobile-account-back .icon { transform:none; }
  .account-body h1 { font-size:28px; }
  .account-body .page-lead { font-size:14px; line-height:1.7; }
  .account-body .form-panel { padding:24px 20px; border:0; border-radius:14px; }
  .account-body .payout-panel { border-top:3px solid var(--green); }
  .payout-heading { align-items:start; flex-wrap:wrap; }
  .profile-shortcuts { background:#fff; border:0; border-radius:14px; padding-inline:18px; }
  .profile-shortcuts a:last-child { border-bottom:0; }
  .account-card { border:0; padding:20px; border-radius:14px; background:#fff; }
  .account-body > .button { display:flex; width:100%; margin-bottom:20px; white-space:normal; }
  .mobile-seller-intro { display:block; margin:0 0 36px; }
  .mobile-seller-intro > .eyebrow { font-size:11px; text-transform:none; letter-spacing:.06em; }
  .mobile-seller-intro h2 { font-size:25px; line-height:1.3; margin:12px 0; }
  .mobile-seller-intro > p { color:var(--muted); font-size:14px; line-height:1.6; margin-bottom:24px; }
  .sell-category-list { display:grid; gap:10px; }
  .sell-category-list > button { display:flex; align-items:center; gap:16px; padding:8px 16px 8px 8px; width:100%; min-height:78px; text-align:start; border:1px solid transparent; border-radius:14px; background:#fff; }
  .sell-category-list > button[aria-pressed=true] { border-color:var(--green); background:#edf2e9; }
  .sell-category-list img { width:64px; height:60px; padding:8px; object-fit:contain; border-radius:9px; background:#f0f2e9; mix-blend-mode:multiply; }
  .sell-category-list > button > span { flex:1; font-size:15px; font-weight:600; }
  .sell-category-list .icon { width:16px; height:16px; color:var(--muted); flex-shrink:0; }
  .mobile-sell-guide { margin-top:32px; }
  .mobile-sell-guide h3 { font-size:22px; }
  .mobile-sell-guide ol { list-style:none; display:grid; gap:20px; padding:0; }
  .mobile-sell-guide li { display:flex; gap:16px; }
  .mobile-sell-guide li > span { display:grid; place-items:center; width:36px; height:36px; flex-shrink:0; border:1px solid #d3dbcf; border-radius:50%; color:var(--green); font-size:11px; }
  .mobile-sell-guide strong { font-size:14px; }
  .mobile-sell-guide p { font-size:13px; line-height:1.65; color:var(--muted); margin:6px 0 0; }
  .seller-auth { padding:24px; border:0; border-radius:14px; }
  .seller-auth h1 { font-size:25px; line-height:1.3; }
  .seller-auth > p { font-size:14px; }
  .seller-auth .offer-actions > a { flex:1 1 100%; }
  .boutique-panel,.offer-editor,.seller-auth { scroll-margin-top:20px; }
  .seller-page .form-panel { border:0; border-radius:14px; padding:24px 20px; }
  form label input:not([type=checkbox]):not([type=radio]),form label select,form label textarea { font-size:16px; }
  .offer-actions { flex-wrap:wrap; }
  .offer-actions .button { white-space:normal; }
  /* Product action bar sits above navigation; neither covers the other. */
  .tech-sticky { bottom:var(--mobile-dock-space); padding:10px 0; z-index:30; }
  .has-tech-page #toast { bottom:calc(var(--mobile-dock-space) + 90px); }
  [dir=rtl] .account-hub-group .icon:last-child,[dir=rtl] .sell-category-list .icon { transform:rotate(180deg); }
}
@media (max-width:370px) {
  .wrap { width:calc(100% - 32px); }
  .main-header .brand,.main-header .brand img { width:124px; }
  .header-actions .icon-button { width:38px; }
  .main-header { column-gap:4px; }
  .mobile-dock { inset-inline:10px; width:calc(100% - 20px); }
  .mobile-dock > a,.mobile-dock > button { font-size:10px; }
  .editorial-hero { padding:20px; }
  .editorial-copy h1 { font-size:28px; }
  .section-heading { flex-wrap:wrap; }
  .category-tiles,.market-home .product-grid { margin-inline:-16px; padding-inline:16px; scroll-padding-inline:16px; }
}
