/*
 * Figma mobile parity layer — 375 px reference boards.
 * This file is linked with media="(max-width: 767px)" so none of these rules
 * participate in the desktop cascade.
 */

.mobile-breadcrumb{
  width:100%;height:18px;display:flex;align-items:center;gap:8px;
  color:rgba(255,255,255,.4);font-size:13px;line-height:18px;white-space:nowrap
}
.mobile-breadcrumb button{padding:0;border:0;background:none;color:inherit}
.mobile-breadcrumb strong{color:#fff;font-weight:400}

/* The Figma header keeps search as an icon until the user explicitly opens it. */
body[data-route="collection"] .site-search{display:none}
body[data-route="collection"] .site-search.mobile-open{display:flex}

/* Secondary pages use the same 24 px content gutter as the Figma boards. */
.add-wrap{padding-top:16px}
.add-wrap>.mobile-breadcrumb{margin-bottom:16px}
.edit-wrap,.membership-wrap,.recharge-wrap,.payment-wrap{padding-top:16px;padding-bottom:56px}
.edit-wrap>.mobile-breadcrumb,.recharge-wrap>.mobile-breadcrumb,.payment-wrap>.mobile-breadcrumb{margin-bottom:40px}
.membership-wrap>.mobile-breadcrumb{margin-bottom:16px}

/* Account page: retain every account field and membership action from desktop. */
.profile-wrap{padding:24px 0 80px}
.profile-grid{gap:40px}
.profile-grid>section{height:auto;padding:20px;gap:20px}
.profile-card{min-height:525px}
.profile-card>.eyebrow{display:block;font-size:12px;line-height:15px;letter-spacing:0}
.profile-card dl div:nth-child(2),.profile-card dl div:nth-child(5){display:grid}
.profile-card dl{gap:20px}
.membership-card{min-height:455px}
.membership-card dl{display:grid;gap:16px}
.membership-card dl div{gap:4px}
.profile-card-actions{margin-top:auto}

/* Membership page: the mobile design includes entitlements and plan actions. */
.plan-grid{height:auto;display:grid;grid-template-columns:1fr;gap:16px}
.plan-grid article{height:auto;padding:24px;gap:16px}
.plan-grid article:nth-child(1){min-height:360px}
.plan-grid article:nth-child(2){min-height:419px}
.plan-grid article:nth-child(3){min-height:437px}
.plan-grid h2{font-size:32px;line-height:40px}
.plan-grid ul{display:block;margin:0;padding-left:0;list-style:none}
.plan-grid article>button{display:inline-flex;min-height:48px}
.plan-grid .featured{height:auto;min-height:419px}
.plan-grid .featured>b{font-size:12px}

/* Recharge and payment retain the complete desktop business summary. */
.recharge-grid,.payment-grid{gap:40px}
.recharge-grid>section,.payment-grid>section,.payment-grid>form{padding:24px}
.payment-grid>section{height:auto;min-height:474px}
.payment-grid>form{height:auto;min-height:421px}
.payment-grid>section dl>div:not(.total){display:grid}
.payment-grid dl{gap:16px}
.payment-grid .total{margin-top:auto}

/* Authentication spacing follows the 84 px header and 24 px mobile gutter. */
.auth-wrap,.signup-wrap{padding-top:16px;padding-bottom:32px}
.signup-wrap{padding-top:20px}
body[data-route="sign-up"] .signup-wrap{padding-bottom:20px}

/* Detail, add and advisor boards all contain the shared footer on mobile. */
body:is([data-route="advisor"],[data-route="collection-detail"],[data-route="add-collection"]) .site-footer{display:grid}
.detail-actions{grid-template-columns:1fr 1fr;gap:10px}
body.advisor-active{height:auto;overflow-x:hidden;overflow-y:auto}
.advisor-page.active{height:728px;min-height:728px;overflow:hidden}
.advisor-workspace,.advisor-shell{height:728px}

/* Figma state 165:866 — the share choices dim the whole detail page. */
.detail-share-sheet{inset:0;z-index:220}
.detail-share-backdrop{background:rgba(0,0,0,.78);backdrop-filter:blur(4px)}
.detail-share-card{
  left:53px;right:auto;top:475px;width:276px;padding:0;border-radius:0;
  background:transparent;box-shadow:none
}
.detail-share-card>div{
  position:absolute;left:0;right:0;bottom:76px;margin:0;padding:14px;
  border-radius:12px;background:linear-gradient(180deg,rgba(30,30,30,.88),rgba(15,15,15,.92))
}
.detail-share-card button{height:30px;min-height:30px;margin-top:8px;padding:0 16px;font-size:12px}
.detail-share-card .primary-button{border-color:transparent;background:rgba(255,255,255,.55);color:#fff}

/* Figma state 335:1348 — exported collection card. */
.mobile-share-overlay{
  position:fixed;inset:0;z-index:320;display:flex;align-items:center;justify-content:center;
  padding:24px;background:rgba(0,0,0,.72)
}
.mobile-share-overlay[hidden]{display:none}
.mobile-share-dismiss{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent}
.mobile-share-export{
  position:relative;z-index:1;width:327px;padding:24px;border-radius:12px;
  display:flex;flex-direction:column;gap:20px;overflow:hidden;color:#000;
  background:linear-gradient(180deg,#edebe6 0%,#d8d4cc 100%);
  box-shadow:0 12px 32px rgba(0,0,0,.16)
}
.mobile-share-export>header{text-align:center;font-size:12px;font-weight:600;line-height:16px;letter-spacing:1.4px}
.mobile-share-matte{width:100%;padding:12px;background:#fff}
.mobile-share-matte img{width:100%;height:280px;object-fit:cover}
.mobile-share-info{display:flex;gap:16px;align-items:flex-end;min-width:0}
.mobile-share-info>div:first-child{min-width:0;flex:1;display:flex;flex-direction:column;gap:12px}
.mobile-share-info h2{margin:0;font-size:26px;line-height:32px;letter-spacing:-.5px;overflow-wrap:anywhere}
.mobile-share-info h2 span{font-weight:400}
.mobile-share-info small{margin-bottom:-8px;color:rgba(0,0,0,.55);font-size:12px;line-height:16px}
.mobile-share-info strong{font-size:16px;line-height:20px}
.mobile-share-info p{margin:0;color:rgba(0,0,0,.55);font-size:13px;line-height:18px;white-space:pre-line}
.mobile-share-qr{width:72px;flex:0 0 72px;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.mobile-share-qr img{width:72px;height:72px;background:#fff}
.mobile-share-qr span{color:rgba(0,0,0,.55);font-size:13px;line-height:18px;text-align:right;white-space:nowrap}

@media (max-width:390px){
  .mobile-share-export{width:calc(100vw - 48px)}
}

/* Responsive completion. This entire sheet is loaded only below 768 px. */
body{--mobile-gutter:24px;--mobile-content:min(100% - 48px,560px)}
.site-header{width:100%;height:84px;padding:20px 16px;gap:8px;align-items:center;justify-content:space-between}
.site-logo{flex:0 0 74px}
.site-nav{width:auto;flex:1 1 auto;min-width:0;gap:8px;justify-content:center}
.site-nav button{height:auto;min-height:44px;min-width:0;font-size:12px;line-height:16px;white-space:normal}
.mobile-search-trigger,.profile-link{width:40px;height:44px;min-width:40px;flex:0 0 40px;margin:0;display:grid;place-items:center}
.profile-link img,.mobile-search-trigger img{width:18px;height:18px}
body[data-route="collection"] .site-search{left:24px;right:24px;top:84px}
.site-search input{font-size:16px!important}
.hero-copy{width:100%;max-width:608px;margin-inline:auto;padding-inline:24px}
.hero-question{left:9px;width:100%;max-width:100%;padding-inline:22px}
.hero-question:before{inset:-24px -12px}
.hero-dots{left:23px;width:297px}
.hero-explore{right:33px;min-height:26px;bottom:21px}
.hero-dots button{position:relative}
.hero-dots button:after{content:"";position:absolute;inset:-16px -10px}
.home-section,.collection-heading,.collection-toolbar,.collection-grid,.view-all,.add-wrap,.profile-wrap,.edit-wrap,.membership-wrap,.recharge-wrap,.payment-wrap,.auth-wrap,.signup-wrap{width:var(--mobile-content);margin-inline:auto;min-width:0}
.news-row>img,.news-row.reverse>img{width:100%;height:auto;aspect-ratio:1.3;object-fit:cover}
.museum-meta{flex-wrap:wrap;gap:8px}.museum-link{min-height:44px;display:inline-flex;align-items:center}
.collection-summary{width:100%;height:auto;max-width:608px;margin-inline:auto;padding:28px 24px 40px}
.collection-summary .collection-mobile-intro{width:100%;max-width:320px;height:auto;min-height:90px;padding-bottom:28px;font-size:16px}
.collection-summary-card{width:100%;height:auto;min-height:318px}
.collection-summary-content{height:auto;min-height:318px;padding-top:8px}
.collection-summary-content>canvas{width:calc(100% - 32px)!important;max-width:400px;height:169px!important}
.collection-summary-content>div{padding:20px 12px 24px;min-width:0}
.collection-summary-content>div>strong{font-size:clamp(27px,9vw,40px);overflow-wrap:anywhere}
.collection-summary p{flex-wrap:wrap;gap:4px 14px}.collection-summary .collection-summary-empty{width:100%;max-width:300px}
.collection-summary-empty-state{min-height:280px;padding:24px}
.collection-heading{margin-top:8px;gap:12px;flex-wrap:wrap}.collection-heading>div{flex-wrap:wrap}.collection-heading h2{white-space:normal}
.collection-heading .outline-button{min-height:44px;font-size:12px}
.collection-toolbar{height:auto;margin-top:16px;margin-bottom:16px;gap:12px}
.collection-toolbar>div:not(.collection-sort){width:100%;height:auto;min-height:44px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;align-items:center;padding:2px 0 6px;scrollbar-width:thin;overscroll-behavior-x:contain}
.chip{flex:0 0 auto;min-height:40px;padding-inline:12px}
.collection-sort-trigger{min-height:44px;padding:10px 14px}
.collection-sort-options{min-width:200px;max-height:min(360px,60dvh);overflow-y:auto;background:#191919}
.collection-sort-options>[role="option"]{min-height:44px;padding:12px 0;font-size:14px}
.collection-grid{min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}
.collection-card{width:100%;height:175px;min-height:175px}.collection-card>img{width:100%;height:108px;aspect-ratio:auto;object-fit:cover}
.collection-card>div{height:67px}.collection-card h3{left:8px;right:8px;top:5px;max-width:calc(100% - 16px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.collection-card h3.is-long{font-size:10px;letter-spacing:-.15px}.collection-card h3.is-very-long{font-size:9px;letter-spacing:-.22px}.collection-card small{left:8px;right:8px;top:25px;margin:0;font-size:9px;line-height:1.08}.collection-card small.is-long{font-size:8px;line-height:1.03}.collection-card small.is-very-long{font-size:7.5px;line-height:1}
.collection-card strong{font-size:clamp(11px,3.3vw,14px);max-width:calc(100% - 16px);overflow-wrap:anywhere}
.collection-card-delete{width:36px;height:36px;top:4px;right:4px}.view-all{height:44px;margin-top:16px}
.detail-wrap{width:100%;max-width:608px;padding-inline:24px}.detail-layout,.detail-copy,.detail-gallery{min-width:0}
.detail-main{width:100%;height:auto;aspect-ratio:327/412;object-fit:contain;background:#111}
.detail-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-thumbs img{width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.detail-copy h1,.detail-copy h2,.detail-panel strong,.detail-panel dd{overflow-wrap:anywhere}
.detail-panel strong{font-size:clamp(17px,5.8vw,22px)}.detail-panel{min-width:0}
.detail-share{width:44px;height:44px;right:0;top:40px}.detail-copy h1{padding-inline-end:44px}
.detail-actions>.wide{height:auto;min-height:48px;padding:12px 8px;white-space:normal}
.add-form>section:first-child,.add-form>section:nth-child(2){height:auto;padding:16px 0 32px}
.add-form h2{height:auto}.category-grid{height:auto;gap:8px;display:flex;flex-wrap:wrap}
.category-grid label:nth-child(n) span{width:auto;min-height:44px;height:auto;padding:10px 14px;white-space:normal}
.category-note{height:auto;margin-bottom:0!important}
.upload-zone{height:auto;min-height:144px;padding:20px;display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.upload-zone strong,.upload-zone small,.upload-zone b{position:static;width:auto;max-width:100%;min-width:0;height:auto}
.upload-zone b{min-height:44px;padding:8px 16px}.upload-zone strong{font-size:14px}.file-ready{height:auto;overflow-wrap:anywhere}.file-ready>div{flex-wrap:wrap}
.review-gallery{height:auto}.review-gallery>img,.review-gallery>figure{width:100%;max-width:100%}
.review-gallery>div{height:auto;flex-wrap:wrap}.review-gallery>div img{max-width:100%}
.review-fields{margin-top:28px;gap:16px 12px}.review-fields input,.review-fields select,.auth-wrap input,.signup-wrap input,.edit-wrap input{font-size:16px}
.review-fields input{min-width:0}.review-field-money-row{grid-template-columns:1fr!important;gap:16px!important}.compound-money-field{min-width:0}.compound-money-field input{min-width:0}
.form-actions{width:100%;height:auto;margin:0;padding:28px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.form-actions button:first-child,.form-actions button:last-child{width:100%;min-height:48px;height:auto;white-space:normal}
.profile-card,.membership-card,.plan-grid article:nth-child(n),.payment-grid>section,.payment-grid>form{min-height:0}
.profile-grid>section{gap:20px}.profile-grid dd,.profile-identity h2,.profile-identity small{overflow-wrap:anywhere}.profile-identity>div{min-width:0}
.profile-grid dd{line-height:1.5}.profile-account-actions .secondary-button{min-height:44px;white-space:normal}
.choice-grid button{height:auto;min-height:44px!important;white-space:normal;overflow-wrap:anywhere}
.edit-wrap .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.edit-wrap input[type="checkbox"],.mobile-drawer .advisor-memory-toggle input{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:40px;min-width:40px;max-width:40px;height:24px;min-height:24px;max-height:24px;flex:0 0 40px;border:1px solid #888;border-radius:20px;background:#444;position:relative;padding:0;margin:0}
.edit-wrap input[type="checkbox"]:before,.advisor-memory-toggle input:before{content:"";position:absolute;width:18px;height:18px;top:2px;left:2px;border-radius:50%;background:#fff}
.edit-wrap input[type="checkbox"]:checked,.advisor-memory-toggle input:checked{background:#999}
.edit-wrap input[type="checkbox"]:checked:before,.advisor-memory-toggle input:checked:before{left:18px}
.site-footer,body[data-route] .site-footer{width:var(--mobile-content);height:auto;min-height:0;padding:56px 0 max(40px,env(safe-area-inset-bottom));gap:48px}
.footer-brand>p{max-width:100%}.footer-copy p{font-size:11px;line-height:1.6}
body.advisor-active{height:var(--mobile-viewport-height,100dvh);overflow:hidden}
body[data-route="advisor"] .site-footer{display:none}
.advisor-page.active{height:calc(var(--mobile-viewport-height,100dvh) - 84px);min-height:0}
.advisor-workspace,.advisor-shell{height:100%;min-height:0}
.advisor-workspace{display:flex;flex-direction:column;padding-top:58px}
.conversation{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;width:100%;padding:8px 20px 20px;scroll-padding-bottom:20px}
.composer-wrap{position:static;flex:0 0 auto;width:100%;padding:8px 16px max(8px,env(safe-area-inset-bottom));max-height:65%;overflow-y:auto;background:#000}
.composer{height:auto;min-height:62px}.composer textarea{font-size:16px;max-height:112px}.composer-note{margin-bottom:0}
.starter{min-height:44px;font-size:12px}.message .bubble{max-width:calc(100% - 44px);min-width:0}.message.user .bubble{max-width:85%}
.assistant-answer{overflow-wrap:anywhere}.assistant-answer pre,.assistant-answer table{max-width:100%;overflow-x:auto}
body[data-route="advisor"] .mobile-menu{position:absolute;left:24px;top:91px;width:44px;height:44px}
.advisor-thread-label{top:24px;right:24px;max-width:calc(100% - 104px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-drawer{width:min(292px,calc(100vw - 32px));height:var(--mobile-viewport-height,100dvh);padding:20px;padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}
.mobile-drawer:not(.open){visibility:hidden;pointer-events:none}.mobile-drawer.open{visibility:visible}
.mobile-drawer-head button{min-width:44px;min-height:44px}.mobile-drawer .advisor-history-row{grid-template-columns:minmax(0,1fr) 44px}.mobile-drawer .advisor-history-menu-trigger{width:44px;height:44px;opacity:1}
.mobile-drawer .advisor-history-open{min-height:44px;font-size:14px}.mobile-drawer .advisor-memory-toggle{min-height:44px}
.mobile-memory-details summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#aaa;font-size:12px}
.mobile-history-date{margin:14px 0 4px;color:#999;font-size:12px}
.detail-share-sheet{display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto}
.detail-share-card{position:relative;left:auto;right:auto;top:auto;width:min(100%,327px);max-height:100%;overflow-y:auto;padding:16px;border-radius:16px;background:#191919}
.detail-share-card>div{position:static;padding:0 0 16px;background:none}.detail-share-card button{height:auto;min-height:44px;white-space:normal}
.mobile-share-overlay{overflow-y:auto;align-items:safe center;padding:24px}
.mobile-share-export{flex:0 0 auto;width:min(327px,100%);max-width:100%;max-height:none;overflow:visible}
.mobile-share-matte img{height:auto;max-height:360px;object-fit:contain}.mobile-share-info{align-items:flex-start}.mobile-share-info h2{font-size:24px}
.mobile-share-close,.mobile-save-card{min-height:44px;padding:10px 16px;border-radius:24px;border:1px solid currentColor;background:transparent;color:inherit;font:inherit;font-size:14px}
.mobile-share-close{align-self:flex-end}.mobile-save-card{background:#111;color:#fff}.mobile-share-status{margin:0;font-size:12px;line-height:1.5}
.mobile-share-qr[hidden]{display:none!important}
#mobileShareConvertedPrice[hidden]{display:none!important}
.mobile-memory-details summary{display:list-item;line-height:44px;min-height:44px}
.composer textarea{line-height:22px;min-height:24px;padding-block:8px}
.review-media-remove{width:36px;height:36px;top:2px;right:2px}
.review-fields input:focus-visible,.edit-wrap input:focus-visible,.auth-wrap input:focus-visible,.signup-wrap input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.upload-zone strong,.upload-zone small,.upload-zone b{align-self:flex-start;justify-self:start;transform:none;margin:0;text-align:start;inset:auto}
.mobile-message-copy{min-height:44px;border:0;background:transparent;color:#aaa;font-size:12px;padding:8px 0}
@media(max-height:650px){body[data-route="advisor"] .starter-grid{display:none}.advisor-workspace{padding-top:48px}.composer-note{font-size:10px}}
@media(max-width:350px){body{--mobile-gutter:16px;--mobile-content:calc(100% - 32px)}.site-header{padding-inline:8px;gap:4px}.site-nav{gap:4px}.mobile-search-trigger,.profile-link{width:36px;min-width:36px;flex-basis:36px}.collection-summary,.detail-wrap{padding-inline:16px}.detail-panel{padding:16px}.detail-panel>div{gap:12px}.signup-wrap .choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.mobile-drawer{transition:none}}
