/* Phone layout, including the 701–767px range of the original desktop styles. */
@media(max-width:767px){
  :root{--gutter:18px;--button-size:14px;--mobile-header:60px}
  html{scroll-padding-top:calc(var(--mobile-header) + 12px)}
  html:has(dialog[open]){overflow:hidden}
  body{font-size:14px}
  .preview-bar{min-height:24px;font-size:9px;padding:3px 10px;line-height:18px}
  .preview-bar>a,.preview-detail{display:none}
  .header{display:block;height:var(--mobile-header);padding:0 12px}
  .header>.wordmark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:20px;letter-spacing:2px;gap:8px}
  .header>.wordmark span{font-size:9px;letter-spacing:2px}
  .header-tools{display:contents}
  .header .desktop-nav,.header [data-action="favorites"]{display:none}
  .header .icon-button{position:absolute;top:8px;width:40px;height:44px}
  .header svg{width:20px;height:20px}
  .header [data-action="menu"]{display:flex;left:7px}
  .header [data-action="search"]{left:auto;right:48px}
  .header [data-action="cart"]{right:5px;width:42px;gap:3px}
  .bag-button span{font-size:10px}
  .button{min-height:48px;font-size:14px;line-height:1.5;padding:13px 18px}
  .text-link{min-height:40px;display:inline-flex;align-items:center;justify-content:center;white-space:normal;font-size:12px;padding:7px 0;border-bottom-color:#bbb;text-align:center}
  .section-head{align-items:center;gap:12px}
  .section-head h2,.collection-heading h2{font-size:25px}
  .section-index{font-size:10px}
  .section-note,.subtext,.detail-caption{font-size:11px;line-height:1.9;color:#686863}
  .page-width,.section,.shop-body,.page-intro,.shop-controls,.product-page{padding-left:var(--gutter);padding-right:var(--gutter)}
  .section{padding-top:38px;padding-bottom:38px}
  .page-intro{padding-top:24px;padding-bottom:24px}
  .page-intro h1{font-size:29px;line-height:1.2;overflow-wrap:anywhere}
  .page-intro>p{font-size:12px;line-height:1.9;margin-top:12px}
  .breadcrumb{font-size:10px;line-height:1.8;margin-bottom:19px;overflow-wrap:anywhere}
  /* Home: category shortcuts and new arrivals precede the stories. */
  .mobile-category-nav{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid #ddd;background:#fff}
  .mobile-category-nav a{min-width:0;min-height:46px;display:grid;place-items:center;font-size:12px;text-align:center}
  .hero{height:390px;max-height:57svh;min-height:320px}
  .hero-image{width:min(88vw,330px);height:auto;top:42%}
  .hero-content{bottom:24px;left:18px;right:18px}
  .hero .button{min-height:46px;font-size:12px;padding:13px 22px}
  .ticker{display:none}
  .home-products{padding-top:33px}
  .collection-heading{margin-bottom:24px}
  .collection-heading>p:last-child{font-size:12px;margin-top:8px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 12px}
  .product-title{font-size:13px;line-height:1.7;min-height:3.4em}
  .product-brand{font-size:9px;line-height:1.6;margin-bottom:6px}
  .product-condition{font-size:11px;line-height:1.8;min-height:3.6em;margin-top:6px;color:#676762}
  .product-info{padding-top:13px}
  .product-price{font-size:17px;line-height:1.5;margin-top:7px}
  .product-price small{font-size:9px;margin-left:5px}
  .favorite-button{width:44px;height:44px;top:0;right:0;font-size:24px}
  .product-tag{left:8px;top:9px;font-size:7px;max-width:calc(100% - 49px)}
  .section-end{margin-top:28px}
  .section-end .button{width:100%;min-width:0;font-size:14px}
  .stories{padding-top:36px;padding-bottom:38px;border-top:1px solid #ddd}
  .editorial-heading h2{font-size:28px;line-height:1.15;letter-spacing:-1px;max-width:320px}
  .editorial-heading>p:last-child{font-size:12px;line-height:1.8;margin-top:12px}
  .story-grid{display:grid;grid-template-columns:1fr;gap:24px;margin-top:25px}
  .story-image{aspect-ratio:1.65}
  .story-copy{padding:21px}
  .story-copy h3{font-size:17px}
  .story-copy p{font-size:12px}
  .story-meta{font-size:10px}
  .story-read{font-size:12px;min-height:40px;padding-top:15px;margin-top:18px}
  .brand-section{padding-top:35px;padding-bottom:38px}
  .brands{grid-template-columns:1fr 1fr}
  .brand-tile{min-height:76px;font-size:12px;padding:18px 12px}
  .brand-tile:nth-child(2){border-right:0}
  .brand-tile:nth-child(-n+2){border-bottom:1px solid #ddd}
  .buyback{grid-template-columns:1fr;padding-top:10px;padding-bottom:40px}
  .buyback-image{min-height:0;aspect-ratio:1.65}
  .buyback-copy{padding:28px 24px}
  .buyback-copy h2{font-size:25px}
  .buyback-copy>p:not(.section-index){font-size:12px}
  .buyback-steps{gap:15px;font-size:11px;flex-wrap:wrap;margin:20px 0}
  .buyback .button{width:100%;min-width:0}
  /* Catalog: short tabs stay in view; filtering lives in a bottom sheet. */
  .shop-controls{display:block;position:sticky;top:var(--mobile-header);z-index:17;background:#fff;padding-top:0;padding-bottom:0;border-top:1px solid #eee;border-bottom:1px solid #ddd}
  .shop-controls .tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:20px;scrollbar-width:none;margin:0;padding:0}
  .shop-controls .tabs button{font-size:12px;min-height:48px;flex:none;border:0;border-bottom:2px solid transparent;padding:10px 1px;background:transparent;color:#777}
  .shop-controls .tabs button.selected{border-bottom-color:#111;background:transparent;color:#111}
  .shop-tools{display:none}
  .mobile-catalog-toolbar{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #eee}
  .mobile-catalog-control{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 0;min-height:52px;text-align:left;font-size:12px}
  .mobile-catalog-control+button{border-left:1px solid #ddd;padding-left:16px;margin-left:16px}
  .mobile-catalog-label{color:#777;font-size:11px}
  [data-mobile-catalog-value]{font-size:11px;line-height:1.5}
  .result-summary{font-size:12px;margin:20px 0}
  .shop-body{padding-bottom:35px}
  /* Product: name first, photos next, then price and essential information. */
  .commerce-notice{padding:9px 18px;font-size:10px;line-height:1.8;text-align:left}
  .commerce-notice>span{font-size:9px;display:inline-block;margin-right:7px}
  .product-page{padding-top:20px;padding-bottom:30px}
  .mobile-product-heading{display:block;margin-bottom:22px}
  .mobile-product-heading p{font-size:10px;letter-spacing:.08em;color:#777;margin-bottom:10px}
  .mobile-product-heading h1{font-size:23px;line-height:1.6;font-weight:400;margin:0}
  .product-v4 .detail-layout{display:flex;flex-direction:column;gap:0}
  .product-gallery{display:contents}
  .gallery-stage{width:100%;order:1}
  .gallery-thumbs{width:100%;order:2;gap:8px;margin-top:10px}
  .gallery-thumbs>button{width:calc((100% - 24px)/4);min-height:44px}
  .gallery-thumbs>button span{font-size:11px}
  .product-gallery.single-view .gallery-thumbs{display:none}
  .zoom-caption{font-size:11px;min-height:36px;display:flex;align-items:center;padding:7px 10px}
  .detail-caption{order:3;margin-top:12px}
  .photo-gap{order:5;width:100%;margin-top:22px;padding:20px}
  .photo-gap p{font-size:12px;line-height:1.9}
  .photo-gap strong,.photo-gap .text-link{font-size:12px}
  .detail-copy{display:flex;flex-direction:column;order:4;width:100%;padding-top:5px}
  .detail-copy>h1,.detail-copy>.eyebrow{display:none}
  .detail-price-line{order:0}
  .product-v4 .detail-price-line .product-price{font-size:29px;margin:20px 0}
  .product-v4 .detail-price-line .product-price small{display:block;font-size:10px;margin:3px 0 0}
  .detail-favorite{position:static;width:48px;height:48px}
  .detail-stock{order:1;font-size:12px;line-height:1.8;padding:13px 0}
  .quick-specs{order:2;margin:12px 0}
  .quick-specs>div{font-size:12px;grid-template-columns:75px minmax(0,1fr);gap:16px;padding:8px 0}
  .purchase-conditions{order:3;padding:16px;margin:8px 0 18px}
  .purchase-conditions p{font-size:12px}
  .purchase-conditions .text-link{font-size:12px;margin-top:8px}
  .detail-copy>.button{order:4}
  .detail-copy>.subtext{order:5;margin:5px 0 12px}
  .detail-jump{order:6;gap:12px;padding-top:12px}
  .detail-jump button{font-size:12px;min-height:44px;flex:1;border:1px solid #ccc;padding:8px}
  .detail-description{order:7;font-size:13px;line-height:2;margin-top:22px}
  .detail-sections{margin-top:30px}
  .detail-block{padding:0;scroll-margin-top:12px}
  .device-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:62px;padding:17px 0;list-style:none;font-size:15px;line-height:1.8;cursor:pointer}
  .device-disclosure>summary::-webkit-details-marker{display:none}
  .device-disclosure>summary:after{content:'＋';font-size:19px;font-weight:300;color:#777;flex:none}
  .device-disclosure[open]>summary:after{content:'−'}
  .detail-block .device-disclosure-body{padding:3px 0 25px}
  .detail-block h2{font-size:21px;line-height:1.65}
  .detail-block-head{gap:14px}
  .rank-badge{width:48px;height:48px;font-size:23px;flex:none}
  .detail-block .section-index{display:none}
  .section-lead{font-size:13px;line-height:1.95;margin-top:13px}
  .condition-table>div{grid-template-columns:1fr auto;gap:8px 12px;padding:17px 0;font-size:12px}
  .condition-table p{grid-column:1;grid-row:2}
  .condition-table span{grid-column:2;grid-row:1;font-size:10px}
  .unchecked{padding:18px}
  .unchecked p,.unchecked .text-link,.spec-advice,.accessory-card p,.measurement-sample{font-size:12px}
  .spec-columns{grid-template-columns:1fr;gap:25px;margin-top:22px}
  .specs>div{font-size:12px;grid-template-columns:100px minmax(0,1fr);gap:13px}
  .spec-columns h3{font-size:15px}
  .terms-grid{grid-template-columns:1fr}
  .terms-grid article{padding:20px}
  .terms-grid h3{font-size:15px}.terms-grid p{font-size:12px}
  .purchase-route{display:flex;flex-direction:column;align-items:stretch;gap:12px;font-size:12px}
  .purchase-route b{display:none}
  /* Buyback: compact intro and immediate input, with readable expandable steps. */
  .sell-instant-hero{display:flex;flex-direction:column;gap:23px;padding-top:23px;padding-bottom:30px}
  .sell-instant-intro{padding:0;width:100%}
  .sell-instant-intro>.section-index,.sell-instant-route,.sell-instant-photo{display:none}
  .sell-instant-intro h1{font-size:24px;line-height:1.55;margin:0;letter-spacing:.01em}
  .sell-instant-intro h1 br{display:initial}
  .sell-instant-intro .sell-lead{font-size:12px;line-height:1.9;margin-top:11px}
  .instant-card{width:100%;padding:22px 0 0;border:0;border-top:1px solid #ccc;scroll-margin-top:10px}
  .instant-heading h2{font-size:22px}
  .instant-heading .section-index{font-size:9px;margin-bottom:5px}
  .estimate-demo{font-size:11px;padding:4px 8px}
  .instant-disclosure{font-size:11px;line-height:1.8;padding:11px 13px;margin-top:13px}
  .estimate-progress{margin:20px 0 22px;gap:12px}
  .estimate-progress li{font-size:11px;padding-bottom:10px}
  .estimate-progress span{font-size:11px;margin-right:7px}
  .estimate-step-title{font-size:18px;line-height:1.7;margin-bottom:15px}
  .estimate-categories{margin-bottom:22px;gap:8px}
  .estimate-categories span{font-size:14px;min-height:48px}
  .estimate-select{font-size:13px}
  .estimate-select select{font-size:16px;height:50px;padding:0 10px}
  .estimate-help,.estimate-privacy,.estimate-direct>span{font-size:11px;line-height:1.9}
  .estimate-help{margin-bottom:18px}
  .estimate-direct{margin-top:22px;padding-top:15px;align-items:center}
  .estimate-direct .text-link{font-size:12px}
  .estimate-conditions label{font-size:14px;min-height:50px;gap:12px}
  .estimate-conditions input{width:19px;height:19px}
  .estimate-conditions legend{font-size:13px}
  .estimate-selected-item strong{font-size:13px}
  .estimate-back{min-height:44px;font-size:12px;margin-top:8px}
  .estimate-range{font-size:32px;gap:10px}
  .estimate-result-item,.estimate-price-note{font-size:12px}
  .estimate-reason h4{font-size:13px}
  .estimate-reason ul,.estimate-checks ul,.estimate-result-note{font-size:12px;line-height:1.95}
  .estimate-checks summary{min-height:34px;display:flex;align-items:center;font-size:13px}
  .estimate-result-actions{margin-top:16px}
  .estimate-result-actions .text-link{font-size:12px}
  .sell-subnav{justify-content:flex-start;overflow-x:auto;padding-left:18px;padding-right:18px;scrollbar-width:none}
  .sell-subnav button{font-size:12px;min-height:49px;padding:12px 15px;flex:none}
  .commerce-section{padding-top:32px;padding-bottom:32px;scroll-margin-top:12px}
  .commerce-section>h2{font-size:23px;line-height:1.7}
  .sell-target-grid{grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}
  .sell-target-grid>button{display:block;padding:0 0 14px;text-align:center}
  .sell-target-grid .product-photo{width:100%;margin-bottom:13px;aspect-ratio:1.25}
  .sell-target-grid strong{font-size:13px}.sell-target-grid small{font-size:10px;padding:0 8px;line-height:1.8}
  .estimate-flow-note{font-size:12px;line-height:1.9;padding:16px}
  .handover-switch{gap:10px;margin:24px 0}
  .handover-switch button{padding:17px 13px}
  .handover-switch span{font-size:14px}.handover-switch small{font-size:11px}
  .handover-switch button:after{position:static;display:block;margin-top:12px;font-size:12px}
  .sell-timeline>li{grid-template-columns:32px minmax(0,1fr);gap:14px;padding-bottom:0;align-items:start}
  .timeline-number{width:32px;height:32px;font-size:15px;margin-top:14px}
  .sell-timeline>li:not(:last-child):before{left:15px;top:45px}
  .sell-timeline>li>div{border-bottom:1px solid #ddd;min-width:0}
  .sell-timeline .device-disclosure>summary{min-height:62px;font-size:14px;padding:16px 0}
  .sell-timeline .device-disclosure-body{padding:0 0 20px}
  .sell-timeline .device-disclosure-body>h3{display:none}
  .step-roles{grid-template-columns:1fr;gap:14px}
  .step-roles p{font-size:12px;line-height:1.95}.step-roles b{font-size:11px}
  .step-note{font-size:11px;line-height:1.9;padding:13px}
  .flow-cta{display:block;margin-top:25px;padding:20px}
  .flow-cta .button{width:100%}.flow-cta p{font-size:11px;margin-top:12px}
  .photo-checklist{grid-template-columns:1fr 1fr;gap:22px 16px}
  .photo-checklist h3{font-size:14px}.photo-checklist p{font-size:12px}
  .preparation-split,.sell-decision{grid-template-columns:1fr;gap:22px}
  .preparation-split p,.sell-decision p{font-size:12px;line-height:1.95}
  .fee-list>div{grid-template-columns:1fr;gap:7px;font-size:13px;padding:17px 0}
  .fee-list dd{font-size:12px}
  #sell-faq summary{font-size:14px;line-height:1.9;min-height:44px}
  #sell-faq details p{font-size:13px}
  .sell-end{padding:34px 18px}.sell-end h2{font-size:23px}.sell-end>p:not(.section-index){font-size:12px}.sell-end .button{width:100%}
  /* Contextual bottom actions replace the normal four-item navigation. */
  .mobile-bottom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;position:fixed;bottom:0;left:0;right:0;width:auto;z-index:19;background:#fff;border-top:1px solid #ddd;padding:4px 6px calc(4px + env(safe-area-inset-bottom))}
  .mobile-bottom a,.mobile-bottom a:last-child{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:56px;width:auto;border:0;background:#fff;color:#777;font-size:10px;line-height:1.5;padding:6px 2px}
  .mobile-bottom svg{width:21px;height:21px;stroke-width:1.4}
  .mobile-bottom a[aria-current="page"]{color:#111;font-weight:600}
  .mobile-bottom a[aria-current="page"]:before{content:'';position:absolute;top:0;width:26px;height:2px;background:#111}
  body[data-page="product"] .mobile-bottom,body[data-page="sell"] .mobile-bottom{display:none}
  .purchase-dock,.sell-dock{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:19;background:#fff;border-top:1px solid #ccc;padding:10px 16px calc(10px + env(safe-area-inset-bottom));align-items:center;gap:14px;justify-content:space-between}
  .purchase-dock>div{min-width:0;flex:1}.purchase-dock>div>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;color:#777;margin-bottom:4px}
  .purchase-dock strong{font:400 19px/1.3 var(--display)}
  .purchase-dock .button,.sell-dock .button{font-size:13px;min-height:48px;padding:11px 16px;flex:none}
  .sell-dock>span{font-size:11px;line-height:1.8;max-width:140px}
  /* Full-screen dialogs for search/consultation; a shorter sheet for filters. */
  dialog{inset:0;margin:0;width:100%;height:100dvh;max-height:100dvh;max-width:100%;padding:0 20px calc(28px + env(safe-area-inset-bottom));overflow:auto}
  .dialog-head{position:sticky;top:0;z-index:2;background:#fff;padding:16px 0;border-bottom:1px solid #ccc;min-height:68px}
  .dialog-head h2{font-size:21px;line-height:1.6;letter-spacing:0}
  .dialog-head .icon-button{width:44px;height:44px;flex:none}
  #panel-body{padding-top:22px}
  .dialog-note,.dialog-field,.confirm-list>div,.consult-summary{font-size:13px;line-height:1.9}
  .dialog-field input,.dialog-field select,.dialog-field textarea,.search-field{font-size:16px;min-height:50px}
  .dialog-field{margin-bottom:23px}.dialog-field>span{margin-bottom:8px}
  .form-stepper{gap:10px}.form-stepper li{font-size:11px;gap:5px;white-space:normal}.form-stepper li>span{width:22px;height:22px;font-size:11px}
  .estimate-attached p,.estimate-removed{font-size:12px}
  .panel-subtitle{font-size:15px}.next-checklist li,.connection-note p,.inquiry-options label{font-size:13px}
  .connection-note h3{font-size:14px}
  .inquiry-options input{width:20px;height:20px}
  .confirm-list>div{grid-template-columns:80px minmax(0,1fr);gap:13px}
  .question-product{grid-template-columns:78px minmax(0,1fr);gap:16px}.question-product h3{font-size:13px}
  .cart-item{grid-template-columns:85px minmax(0,1fr);gap:16px}.cart-item h3{font-size:13px}.cart-item .remove{font-size:12px;min-height:44px}
  .catalog-sheet{top:auto;bottom:0;height:auto;max-height:92dvh;padding-bottom:calc(16px + env(safe-area-inset-bottom))}
  .catalog-sheet #panel-body{padding-top:18px}
  .catalog-sheet-intro{font-size:12px;line-height:1.9;color:#777;margin-bottom:22px}
  .catalog-sheet-group{border:0;margin:0 0 24px;padding:0;min-width:0}
  .catalog-sheet-group legend{font-size:14px;margin-bottom:12px}
  .catalog-sheet-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .catalog-sheet-option{position:relative;cursor:pointer;min-width:0}
  .catalog-sheet-option input{position:absolute;opacity:0;margin:0;inset:0;width:100%;height:100%;cursor:pointer}
  .catalog-sheet-option>span{display:flex;flex-direction:column;justify-content:center;min-height:66px;gap:5px;border:1px solid #ccc;padding:11px 7px;text-align:center}
  .catalog-sheet-option strong{font-size:12px;font-weight:400;line-height:1.5}
  .catalog-sheet-option small{font-size:10px;line-height:1.5;color:#777}
  .catalog-sheet-option input:checked+span{color:#fff;background:#111;border-color:#111}
  .catalog-sheet-option input:checked+span small{color:#ddd}
  .catalog-sheet-option input:focus-visible+span{outline:2px solid #888;outline-offset:3px}
  .catalog-sheet-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #ddd;padding-top:15px}
  .catalog-sheet-count{font-size:12px;margin-bottom:12px;color:#666}
  .catalog-sheet-apply{width:100%}
  .catalog-sheet-secondary{display:flex;justify-content:space-between;gap:15px;margin-top:8px}
  .catalog-sheet-secondary button{font-size:12px;min-height:44px;text-decoration:underline;text-underline-offset:4px}
  .journal-heading h1{font-size:26px;line-height:1.6}.journal-heading>p:last-child{font-size:13px}.journal-body p{font-size:14px;line-height:2}.journal-body h2{font-size:20px}
  .guide-steps{grid-template-columns:1fr;gap:26px}.guide-steps h2{font-size:19px}.guide-steps p{font-size:13px}
  footer{padding:34px 18px calc(108px + env(safe-area-inset-bottom))}
  .footer-top{gap:20px;padding-bottom:28px}.footer-top p{font-size:11px}.footer-top>div{gap:6px 24px;font-size:12px}.footer-top>div a{min-height:44px;display:flex;align-items:center}
  .footer-bottom{flex-direction:column;text-align:center;gap:12px;font-size:10px;line-height:1.9}
  #toast{bottom:calc(88px + env(safe-area-inset-bottom));font-size:12px}
}
@media(max-width:359px){
  .header>.wordmark{font-size:17px;gap:6px;letter-spacing:1.6px}
  .header>.wordmark span{font-size:8px;letter-spacing:1.5px}
  .mobile-category-nav a{font-size:11px}
  .product-title{font-size:12px}.product-price{font-size:15px}.product-brand{font-size:8px}
  .estimate-range{font-size:27px;gap:8px}
  .purchase-dock,.sell-dock{padding-left:12px;padding-right:12px;gap:10px}
  .purchase-dock .button,.sell-dock .button{font-size:12px;padding:11px 12px}
  .sell-dock>span{font-size:10px;max-width:112px}
  .catalog-sheet-options{gap:6px}.catalog-sheet-option strong{font-size:11px}
}
