/* Phone/tablet refinements. Keep content, media and desktop composition intact. */
.mobile-refined{overflow-wrap:break-word}
.mobile-refined img,.mobile-refined video,.mobile-refined canvas{max-width:100%}
.mobile-refined :is(main,section,article,aside,figure,form){min-width:0}
.mobile-refined :is(input,select,textarea){max-width:100%}
.mobile-refined .table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
@media(max-width:900px){
  .mobile-brand .site-nav{height:72px;padding-inline:max(16px,env(safe-area-inset-left));gap:12px}
  .mobile-brand .site-brand{gap:9px;min-width:0}
  .mobile-brand .site-brand img{width:40px;height:46px;flex-shrink:0}
  .mobile-brand .site-brand strong{font-size:20px}
  .mobile-brand .site-brand small{font-size:8px}
  .mobile-brand .site-nav-tools{margin-left:auto;border:0;padding-left:0;gap:8px;flex-shrink:0}
  .mobile-brand .nav-login{display:inline-flex;min-height:44px;align-items:center;padding:5px 8px}
  .mobile-brand .site-menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:60px;padding:8px 12px;font-size:13px;border-radius:4px}
  .mobile-brand .site-nav-links{display:none;position:absolute;top:100%;left:0;right:0;margin:0;padding:12px 16px 20px;background:var(--paper,#fbfaf6);border-bottom:1px solid var(--line,#dfdfd4);max-height:calc(100dvh - 72px);overflow-y:auto;box-shadow:0 14px 22px #2428200c}
  .mobile-brand .site-nav-links.is-open{display:flex;flex-direction:column;gap:4px}
  .mobile-brand .site-nav-links>a{display:flex;align-items:center;min-height:48px;padding:10px 12px;font-size:16px;border-radius:4px}
  .mobile-brand .site-nav-links>a[aria-current=page]{background:var(--soft,#efeee7)}
  .mobile-brand .site-nav-links>a[aria-current=page]:after{display:none}
  .mobile-brand .nav-user-area{gap:8px;min-width:0;max-width:110px;font-size:12px}
  .mobile-brand .nav-user-area .nav-username{max-width:48px;overflow:hidden;text-overflow:ellipsis}
  .mobile-brand .nav-logout{display:inline-flex;align-items:center;min-height:44px}
}
@media(max-width:700px){
  html:has(body.mobile-refined){scroll-padding-top:92px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .mobile-brand{font-size:15px;line-height:1.85}
  .mobile-brand .wrap{width:100%;padding-inline:clamp(16px,5vw,24px)}
  .mobile-brand .page-heading{padding-top:28px;padding-bottom:24px}
  .mobile-brand .page-heading h1,.mobile-brand .community-main .page-header h1{font-size:clamp(27px,7.8vw,34px);line-height:1.4}
  .mobile-brand .lead{font-size:15px;line-height:1.85}
  .mobile-brand .eyebrow{font-size:11px;letter-spacing:.11em;overflow-wrap:anywhere}
  .mobile-brand .section{padding-block:38px}
  .mobile-brand .section-title{gap:12px;align-items:start}
  .mobile-brand .section-title h2{font-size:25px;line-height:1.5}
  .mobile-brand .button,.mobile-brand .site-action{min-height:48px;padding:11px 18px;text-align:center;white-space:normal;line-height:1.6}
  .mobile-brand :is(.text-link,.reading-link,.footer-links a,.knowledge-paths a){min-height:44px}
  .mobile-brand .text-link{display:inline-flex;align-items:center;white-space:normal}
  .mobile-brand .footer-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 28px;width:100%}
  .mobile-brand .footer-links a{display:flex;align-items:center;font-size:14px}
  .mobile-brand .footer-brand small{display:block;margin:7px 0 0}
  .mobile-brand .footer-meta{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
  .mobile-brand .site-footer{padding:28px max(18px,env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom))}
  .mobile-brand .breadcrumb,.mobile-brand .sync-breadcrumb{font-size:12px;gap:6px 9px;line-height:1.8;overflow-wrap:anywhere}
  .mobile-brand .next-step h2{font-size:24px}
  .mobile-brand .next-step .sync-actions,.mobile-brand .next-step .button{width:100%}
  .mobile-brand .home-hero h1{font-size:clamp(34px,10vw,43px);line-height:1.4}
  .mobile-brand .hero-actions{gap:12px;align-items:center}
  .mobile-brand .hero-actions>.button{flex:1 1 180px}
  .mobile-brand .hero-note{font-size:13px;line-height:1.85}
  .mobile-brand .mineral-carousel-controls{display:grid;grid-template-columns:1fr auto;gap:8px}
  .mobile-brand .mineral-carousel-arrows{grid-column:1;grid-row:1;gap:6px}
  .mobile-brand .mineral-carousel-controls button{min-height:44px;min-width:44px}
  .mobile-brand .mineral-carousel-controls [data-mineral-pause]{grid-column:2;grid-row:1}
  .mobile-brand .mineral-carousel-dots{grid-column:1/-1;grid-row:2;justify-content:center;gap:8px}
  .mobile-brand .mineral-carousel-controls [data-mineral-dot]{width:44px;min-width:44px;min-height:44px}
  .mobile-brand .mineral-credit{font-size:11px;line-height:1.8;text-align:left}
  .mobile-brand .home-quick-start{padding:22px 18px}
  .mobile-brand .home-quick-start .button{width:100%}
  .mobile-brand .founder-teaser>img{max-width:220px;border-radius:6px}
  .mobile-brand .catalog-toolbar{gap:12px}
  .mobile-brand .catalog-toolbar label{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
  .mobile-brand .catalog-toolbar select{margin:0;min-height:46px}
  .mobile-brand .product-info h2{font-size:25px}
  .mobile-brand .product-info p{font-size:15px}
  .mobile-brand .product-footer-actions{flex-wrap:wrap;gap:12px!important}
  .mobile-brand .product-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:visible;padding:10px 0}
  .mobile-brand .product-gallery-item{width:100%;height:auto;aspect-ratio:1;min-width:0}
  .mobile-brand .product-gallery-item img{width:100%;height:100%;object-fit:contain}
  .mobile-brand .product-gallery-add{min-height:100px;width:auto}
  .mobile-brand .product-video-edit-bar{flex-wrap:wrap;gap:8px}
  .mobile-brand .product-video-edit-btn{min-height:44px;font-size:13px;padding:8px 12px}
  .mobile-brand .shop-detail-hero{gap:24px;margin-bottom:36px}
  .mobile-brand .shop-detail-hero h1{font-size:clamp(27px,7.8vw,34px);line-height:1.45}
  .mobile-brand .shop-card-body{padding:20px}
  .mobile-brand .shop-card h3{font-size:23px}
  .mobile-brand .shop-photo-grid{gap:10px}
  .mobile-brand .shop-buy{width:100%}
  .mobile-brand .shop-specs{font-size:15px}
  .mobile-brand .knowledge-paths{gap:6px 14px;font-size:14px}
  .mobile-brand .knowledge-paths a{display:inline-flex;align-items:center}
  .mobile-brand .kb-search{margin-top:22px;min-height:50px}
  .mobile-brand .kb-search input{padding:12px;min-width:0}
  .mobile-brand .kb-search button{min-width:64px;padding:10px 14px}
  .mobile-brand .kb-tags{gap:8px}
  .mobile-brand .kb-tag{min-height:44px;padding:8px 12px;font-size:13px}
  .mobile-brand .kb-card{padding:14px;gap:12px}
  .mobile-brand .kb-card-sub{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
  .mobile-brand .kb-crystal-card .kb-card-price{max-width:50px;white-space:normal;line-height:1.7}
  .mobile-brand :is(.kb-fake,.kb-care,.kb-culture,.kb-ind,.kb-sup,.kb-isn){padding:18px;font-size:15px;overflow-wrap:anywhere}
  .mobile-brand .knowledge-type h3{font-size:20px}
  .mobile-brand .illustrated-card h3{font-size:17px}
  .mobile-brand .illustrated-card p:not(.eyebrow){font-size:13px;line-height:1.75}
  .mobile-brand .illustrated-filter{padding:16px}
  .mobile-brand .illustrated-filter input,.mobile-brand .illustrated-filter select{min-height:48px}
  .mobile-brand .original-copy{font-size:15px;line-height:1.95;overflow-wrap:anywhere}
  .mobile-brand .original-archive-notice{font-size:14px;line-height:1.8}
  .mobile-brand .article-header h1{font-size:clamp(26px,7.4vw,32px);line-height:1.5}
  .mobile-brand .article-sub{font-size:14px}
  .mobile-brand .article-body{font-size:16px;line-height:1.95}
  .mobile-brand .article-body h2{font-size:23px;line-height:1.5;margin-top:30px}
  .mobile-brand .article-body h3{font-size:19px;line-height:1.6}
  .mobile-brand .article-body :is(.highlight,.warning,.tip,.info-box){padding:16px;line-height:1.85}
  .mobile-brand .article-body :is(td,th){font-size:13px;padding:10px;line-height:1.8}
  .mobile-brand .article-toc{gap:4px 12px;padding:14px}
  .mobile-brand .article-toc a{font-size:13px;min-height:38px;display:flex;align-items:center}
  .mobile-brand .related-reading a{font-size:14px;min-height:44px;display:flex;align-items:center}
  .mobile-brand .guide-step p{font-size:15px}
  .mobile-brand .guide-step{grid-template-columns:42px minmax(0,1fr);gap:14px}
  .mobile-brand .guide-step .num{white-space:nowrap;font-size:28px;letter-spacing:-.04em}
  .mobile-brand .guide-step a{min-height:44px;display:inline-flex;align-items:center}
  .mobile-brand .brand-story-body p,.mobile-brand .diary-card .card-body{font-size:15px;line-height:1.95}
  .mobile-brand .brand-chapter>summary{padding-block:10px;min-height:48px}
  .mobile-brand .card-toggle{min-height:44px;padding-block:8px}
  .mobile-brand .community-main .post-form-actions,.mobile-brand .community-main .user-bar{flex-wrap:wrap;gap:12px}
  .mobile-brand .community-main .post-card{padding:18px}
  .mobile-brand .community-main .filter-tabs{flex-wrap:wrap;gap:8px}
  .mobile-brand .community-main :is(.tab-btn,.btn-upload,.emoji-picker-btn,.btn-small){min-height:44px}
  .mobile-brand .community-main .post-content{font-size:15px;overflow-wrap:anywhere}
  .mobile-brand .start-intro h1{font-size:clamp(29px,8.4vw,36px)}
  .mobile-brand .start-intro-links a{display:inline-flex;align-items:center;min-height:44px}
  .mobile-brand .start-share{padding:22px 18px}
  .mobile-brand .atlas-summary,.mobile-brand .atlas-story p{font-size:15px;line-height:1.95}
  .mobile-brand .atlas-quality{font-size:14px;line-height:1.85}
  .mobile-brand .atlas-toolbar label{font-size:13px}
  .mobile-brand .atlas-region-tabs button,.mobile-brand .atlas-learning a,.mobile-brand .atlas-share button{min-height:44px}
  .mobile-brand .atlas-sources a{font-size:12px;min-height:36px}
  .mobile-refined :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){font-size:16px!important;min-height:44px}
  .mobile-brand :is(.login-card,.forgot-card,.reset-card){padding:26px 20px}
  .mobile-brand .auth-modal-overlay{padding:12px;overflow-y:auto;overscroll-behavior:contain}
  .mobile-brand .auth-modal{width:100%;max-height:calc(100dvh - 24px);overflow-y:auto;padding:24px 20px;margin:auto}
  .mobile-brand .auth-modal :is(input,button){min-height:46px}
  .mobile-refined .modal-bg{padding:12px}
  .mobile-refined .modal-box{width:100%;max-height:calc(100dvh - 24px);padding:22px 18px;overscroll-behavior:contain}
  .mobile-refined .modal-close{min-width:44px;min-height:44px}
  .mobile-refined .cms-modal-overlay{padding:12px;overflow:auto;overscroll-behavior:contain}
  .mobile-refined .cms-modal{max-width:100%;width:100%;max-height:calc(100dvh - 24px);overflow-y:auto;padding:22px 18px;margin:auto}
  .mobile-refined .cms-modal .upload-area{padding:24px 12px}
  .mobile-refined .cms-modal .btn-row{gap:10px;flex-wrap:wrap}
  .mobile-refined .cms-modal .btn-row button{min-height:44px;flex:1;padding:10px 14px}
  .mobile-refined .cms-video-file-info{min-width:0;overflow-wrap:anywhere}
  .mobile-refined #cmsVideoFileName{min-width:0;overflow-wrap:anywhere}
  .mobile-refined .cms-toast{max-width:calc(100vw - 24px);white-space:normal;overflow-wrap:anywhere}
  .mobile-refined .sync-lightbox{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:10px}
  .mobile-refined .sync-lightbox-tools{gap:6px;display:grid;grid-template-columns:1fr auto 1fr}
  .mobile-refined .sync-lightbox-tools button{min-height:44px;font-size:13px;padding:8px}
  .mobile-refined .sync-lightbox-tools [data-image-close]{grid-column:1/-1}
  .mobile-refined .sync-lightbox>img{max-height:65dvh}
  .mobile-refined .cms-toolbar{height:96px;align-items:stretch;flex-direction:column;gap:4px;padding:7px 12px}
  .mobile-refined .cms-toolbar .cms-left{gap:8px;min-width:0;font-size:11px}
  .mobile-refined .cms-toolbar .cms-logo{font-size:12px;white-space:nowrap}
  .mobile-refined .cms-toolbar .cms-badge{font-size:10px}
  .mobile-refined .cms-toolbar .cms-right{gap:8px;justify-content:flex-end}
  .mobile-refined .cms-toolbar button{min-height:40px;padding:7px 10px;font-size:12px}
  body.mobile-refined.cms-toolbar-active{padding-top:96px}
  body.mobile-refined.cms-toolbar-active nav{top:96px!important}
  .mobile-content-pack{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
  .mobile-content-pack .phone-frame{width:100%;min-width:0}
  .mobile-content-pack .img-grid{grid-template-columns:1fr;gap:18px;padding-inline:16px}
  .mobile-content-pack .img-item .img-download{width:44px;height:44px;bottom:10px;right:10px}
  .mobile-content-pack :is(.copy-btn,.video-actions a){min-height:44px;line-height:1.7;padding:10px 16px}
  .mobile-content-pack .text-section .content{font-size:16px;line-height:1.9;overflow-wrap:anywhere}
  .mobile-content-pack .bottom-bar{padding:10px 16px calc(10px + env(safe-area-inset-bottom));gap:10px}
  .mobile-content-pack .bottom-bar :is(a,button){min-height:46px;font-size:13px}
  .mobile-tool{padding-inline:0!important;overflow-wrap:anywhere}
  .mobile-tool .wrap,.mobile-tool>.container{padding:16px;width:100%;max-width:100%}
  .mobile-tool .card{padding:18px 16px;border-radius:12px}
  .mobile-tool .row{flex-wrap:wrap;gap:12px}
  .mobile-tool .row>div{min-width:0;flex:1 1 140px}
  .mobile-tool :is(button,.btn,.chip,.step){min-height:44px}
  .mobile-tool :is(.chip,label,.hint,.sub){line-height:1.75}
  .mobile-tool label{font-size:13px}
  .mobile-tool .hint{font-size:12px}
  .mobile-tool :is(.drop,.upload-area){padding:24px 16px}
  .mobile-tool .video-input-row{flex-wrap:wrap}
  .mobile-tool .video-input-row input{min-width:0;flex:1 1 180px}
  .mobile-tool .video-input-row button{flex:1 1 72px}
  .mobile-tool :is(.results,.grid,.ecom-grid){grid-template-columns:minmax(0,1fr)}
  .mobile-tool :is(.pg .ph,.pg .ops,.file-item,.file-row){flex-wrap:wrap;gap:8px}
  .mobile-tool .pg canvas{width:100%;height:auto}
  .mobile-tool .toast{max-width:calc(100vw - 24px);white-space:normal;overflow-wrap:anywhere}
  .mobile-management .topbar{padding:12px;flex-wrap:wrap;gap:12px}
  .mobile-management .topbar .left{gap:8px;flex-wrap:wrap}
  .mobile-management .topbar .right{flex-wrap:wrap;gap:8px}
  .mobile-management .topbar button{min-height:44px;padding:9px 12px;font-size:12px}
  .mobile-management .container{padding:0 14px;margin:18px auto}
  .mobile-management .card{padding:18px 14px;min-width:0}
  .mobile-management :is(.stats-row,.grid-2){grid-template-columns:minmax(0,1fr)}
  .mobile-management table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
  .mobile-management .pw-row{flex-direction:column;align-items:stretch}
  .mobile-management .pw-row input{width:100%}
  .mobile-management .pw-row button{min-height:46px}
}
@media(min-width:701px) and (max-width:1000px){.mobile-brand .wrap{padding-inline:28px}.mobile-brand .shop-grid{gap:16px}}
@media(prefers-reduced-motion:reduce){.mobile-refined{scroll-behavior:auto}}
