/* Phone layouts and touch interactions; desktop stays editorial. */
.mobile-card-actions,.mobile-editor-tabs,#mobile-create-toggle{display:none}
@media(max-width:650px){
  html{-webkit-text-size-adjust:100%;scroll-padding-top:90px}
  input,textarea,select{font-size:16px;min-height:48px}label{font-size:13px;line-height:1.5}.form-note{font-size:12px;line-height:1.7}
  button,.primary,.secondary,.quiet,.text-button{min-height:44px;font-size:13px}.primary,.secondary{padding:12px 15px}.quiet{padding:10px 8px}.text-button{padding:10px 0}
  .brandbar{height:88px;padding:0 16px}.brandbar .brand img{width:112px;height:72px}.header-actions{gap:8px}.header-actions .quiet{font-size:13px}.brand-caption{max-width:115px;text-align:right;line-height:1.8}
  .status{font-size:12px;padding:12px 16px;line-height:1.7}.workspace{padding:0 16px;margin-bottom:40px}.workspace-heading{margin-bottom:22px}.workspace h1{font-size:35px}.workspace-heading p{font-size:14px;line-height:1.7}.workspace-heading .pill{font-size:12px}
  .editor-panel{padding:22px 18px}.section-heading{gap:10px}.section-heading h2{font-size:26px}.section-heading>span{font-size:9px}.field-grid{grid-template-columns:1fr;gap:0}
  #cards-panel .team-grid{gap:22px}#cards-panel .team-grid>.editor-panel:first-child{padding-top:18px;padding-bottom:18px}#cards-panel .team-grid>.editor-panel:first-child .section-heading{margin:0}#cards-panel .team-grid>.editor-panel:first-child h2{font-size:24px}
  #mobile-create-toggle{display:inline-flex;white-space:nowrap;min-width:100px}#new-card-form{display:none;margin-top:24px}.mobile-create-open #new-card-form{display:block}
  .team-filters{gap:0}.library-card{gap:12px;padding:22px 0}.library-details strong{font-size:23px}.library-details small{font-size:13px}.library-card .team-badge{font-size:10px;line-height:1.7}.library-card .member-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:0 0 100%;width:100%;max-width:none}.library-card .member-actions>*{min-height:46px;font-size:13px;padding:11px 8px}.library-portrait{width:62px;height:76px;flex-basis:62px}
  .mobile-editor-tabs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;position:sticky;top:0;z-index:5;background:#f6f6f0f5;backdrop-filter:blur(10px);padding:10px 0;margin:0 0 20px;border-bottom:1px solid var(--line)}.mobile-editor-tabs button{border:1px solid var(--line);color:var(--teal);background:white;font-size:12px;padding:10px 4px}.mobile-editor-tabs button[aria-pressed=true]{background:#e5e9dc;border-color:#a5b29d}#mobile-save-card{background:var(--teal);color:#fff;border-color:var(--teal)}
  #workspace .workspace-grid>.preview-column{display:none}#workspace.mobile-preview-mode .workspace-grid>.editor-panel{display:none}#workspace.mobile-preview-mode .workspace-grid>.preview-column{display:block}.preview-stage{padding:45px 10px 18px}.preview-heading{font-size:10px;line-height:1.5}.photo-control{gap:14px}#choose-photo{font-size:14px;text-align:left}.photo-control p{font-size:12px;line-height:1.6}.save-actions{gap:10px}.save-actions>*{font-size:13px}.publish-note p{font-size:13px}
  .public-page .brandbar{height:84px}.public-main.couture-layout{margin-top:6px;padding:0 14px;gap:25px;margin-bottom:105px}.fashion-card{border-radius:100px 100px 4px 4px}.fashion-card .card-cover{height:215px;padding-top:30px}.fashion-card .card-cover:after{width:calc(100% - 38px);left:19px;top:16px}.fashion-card .cover-wordmark{font-size:34px;margin-top:22px}.fashion-card .cover-line{top:168px}.fashion-card .couture-edition{font-size:7px;letter-spacing:1.6px}.fashion-card .avatar{width:124px;height:146px;margin-top:-28px}.fashion-card .card-content{padding-left:22px;padding-right:22px}.fashion-card h1{font-size:34px;line-height:1.15}.fashion-card .card-title{font-size:14px}.fashion-card .card-company{font-size:13px}.fashion-card .card-eyebrow{font-size:10px}.fashion-card .contact-row{min-height:68px;padding:13px 0}.fashion-card .contact-row strong{font-size:14px}.fashion-card .contact-row small{font-size:13px}.fashion-card .contacts{margin-bottom:22px}.fashion-card .primary{font-size:13px;letter-spacing:1px}.preview-card-link{font-size:13px;min-height:44px;display:flex;align-items:center;justify-content:center}.qr-details summary{min-height:44px;display:flex;align-items:center;justify-content:center}.fashion-card .card-footer{font-size:8px;padding:17px 14px}.fashion-card .card-footer span{font-size:6px}
  .instagram-column .lookbook h2{font-size:30px}.lookbook-controls button{width:46px;height:46px;font-size:18px}.lookbook-controls .lookbook-pause{font-size:13px;min-width:64px}.lookbook-count{font-size:12px}.lookbook-heading>a{font-size:13px;display:inline-flex;align-items:center;min-height:44px}.lookbook-slide>span{font-size:10px;padding:11px 13px}.lookbook-heading .eyebrow{font-size:9px}.lookbook-heading{padding-bottom:12px}.lookbook-slide img{aspect-ratio:4/5}.lookbook-track{touch-action:pan-x pan-y}
  .mobile-card-actions{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:6px;position:fixed;inset:auto 0 0;z-index:15;background:#f9f8eff5;backdrop-filter:blur(14px);border-top:1px solid #d7d5be;padding:10px max(10px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));box-shadow:0 -6px 30px #003b4020}.mobile-card-actions>a,.mobile-card-actions>button{margin:0;min-height:46px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;letter-spacing:0;border:1px solid #d9dfcf;padding:10px 4px;text-decoration:none;color:var(--teal);background:white;line-height:1.4}.mobile-card-actions>a:first-child{background:var(--teal);color:white;border-color:var(--teal)}.mobile-card-actions .copy-link-feedback{position:absolute;bottom:calc(100% + 10px);left:50%;transform:translateX(-50%);padding:10px 20px;border-radius:30px;background:#fff;white-space:nowrap;border:1px solid var(--line)}.video-page>.motion-toggle{bottom:calc(84px + env(safe-area-inset-bottom));font-size:11px;min-height:40px}
  .photo-dialog,.library-qr-dialog,.member-dialog,.public-mobile-qr{width:calc(100% - 16px);max-width:480px;max-height:calc(100dvh - 16px);margin:auto;padding:20px 18px;overscroll-behavior:contain;border-radius:12px}.photo-dialog .section-heading,.library-qr-dialog .section-heading,.public-mobile-qr .section-heading{position:sticky;top:-20px;z-index:2;background:#f6f6ef;padding:12px 0;margin-bottom:12px}.photo-dialog h2,.library-qr-dialog h2,.public-mobile-qr h2{font-size:25px}.photo-dialog .save-actions{position:sticky;bottom:-20px;background:#f6f6ef;padding:14px 0 calc(14px + env(safe-area-inset-bottom));z-index:2}.photo-dialog input[type=range]{height:38px}#crop-canvas{width:min(100%,210px);margin:12px auto 20px}.photo-dialog label{font-size:13px}.share-qr-art{padding:18px 12px;margin:8px 0 20px}.qr-brand{height:50px;width:95px;margin-bottom:12px}.share-qr-border{max-width:220px}.share-qr-art h3{font-size:27px;margin-top:18px}.share-qr-art p{font-size:13px}.share-qr-art .qr-card-link{font-size:13px;min-height:44px;display:flex;align-items:center;justify-content:center}.library-qr-dialog .share-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.library-qr-dialog .share-buttons .primary{grid-column:1/-1}.library-qr-dialog .form-note{font-size:12px}.public-mobile-qr{background:#f6f6ef;color:var(--teal);border:1px solid var(--line);text-align:center}.public-mobile-qr::backdrop{background:#002d35b8;backdrop-filter:blur(7px)}.public-mobile-qr .quiet{color:var(--teal)}.public-mobile-qr h3{font:28px Georgia,serif;overflow-wrap:anywhere}.mobile-public-qr{display:block;margin:15px auto;max-width:100%;height:auto;background:#fff}
  .login-layout{margin-top:18px;gap:25px}.login-story h1{font-size:42px}.login-box{padding:25px 20px}.login-box h2{font-size:29px}.login-box>p{font-size:14px}.login-box .form-note{font-size:12px}.site-footer{padding-bottom:calc(25px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){.workspace{padding:0 12px}.editor-panel{padding:20px 14px}.public-main.couture-layout{padding:0 10px}.fashion-card h1{font-size:30px}.fashion-card .card-content{padding-left:18px;padding-right:18px}.header-actions{gap:3px}.header-actions .quiet{font-size:12px}.brandbar .brand img{width:96px}.share-buttons>*{min-width:0}}
@media(max-height:700px) and (max-width:650px){#crop-canvas{width:165px}.photo-dialog label{margin-bottom:8px}}
@media(max-width:650px){.public-page .brandbar{height:104px}.public-page .brand-caption{align-self:flex-start;margin-top:22px}.video-page>.motion-toggle{position:absolute;top:58px;right:16px;bottom:auto;min-height:36px;font-size:10px;padding:8px 12px}}
.public-header-tools{display:flex;align-items:center;gap:20px}.public-header-tools .motion-toggle{position:static;min-height:36px;font-size:11px;white-space:nowrap}
@media(max-width:650px){.public-header-tools{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.public-page .public-header-tools .brand-caption{align-self:auto;margin:0;max-width:none;font-size:7px}.public-header-tools .motion-toggle{position:static;inset:auto;font-size:10px;min-height:36px;padding:8px 12px}.public-page .brandbar{height:96px}.couture-layout>.instagram-column:not(.instagram-left){display:none}.couture-layout>.public-note{grid-row:3}}
/* On phones the portrait leads the card, without the decorative cover. */
@media(max-width:650px){.fashion-card .card-cover{display:none}.fashion-card{border-radius:6px}.fashion-card .avatar{margin-top:26px;margin-bottom:23px;width:124px;height:146px}.fashion-card .card-content{padding-top:1px}}
@media(max-width:650px){.fashion-card{border-radius:100px 100px 4px 4px}}
/* Keep the original framed portrait overlapping a short teal cover. */
@media(max-width:650px){.fashion-card .card-cover{display:block;height:90px;padding:0}.fashion-card .card-cover .couture-edition,.fashion-card .card-cover .cover-wordmark,.fashion-card .card-cover .cover-line{display:none}.fashion-card .avatar{margin-top:-38px;margin-bottom:23px;width:124px;height:146px;border:6px solid #fff;border-radius:4px}.fashion-card .card-content{padding-top:0}}
