/* Client only: document scrolling, intrinsic sizing and usable media controls. */
body { height:auto!important; min-height:100dvh; overflow-y:auto!important; }
body *, body *::before, body *::after { box-sizing:border-box; }
.shell { display:block!important; height:auto!important; min-height:100dvh; max-width:1080px; margin:auto; padding-bottom:150px!important; }
.stage,.step,.step-inner,.step-scroll { height:auto!important; max-height:none!important; overflow:visible!important; min-width:0; }
.stage { margin-top:16px; min-height:0!important; }
.step.active { position:relative!important; }
.step-inner { max-width:960px; margin:auto; }
.topbar,.top-actions,.brand,.wrap,.grid,.hero-grid,.cardx,.stat,.codebox,.linkbox,.giftrow,.production-layout,.picker,.choice-card,.recent-copy { min-width:0; max-width:100%; }
.grid > *, .hero-grid > *, .topbar > *, .codebox > *, .linkbox > *, .giftrow > * { min-width:0; }
.cardx,.codevalue,.refer-msg,.sub,.recent-copy,.choice-name { overflow-wrap:anywhere; }
input,textarea,select,video,img { max-width:100%; }
.choice-rail,.production-music .choice-rail { display:grid!important; grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr)); overflow:visible!important; max-height:none!important; }
.choice-card { width:auto!important; min-width:0!important; }
.production-music { height:auto!important; }
.picker-tools { display:none!important; }
.footerbar { position:fixed!important; bottom:0!important; left:50%; transform:translateX(-50%); width:min(1056px,calc(100% - 16px)); z-index:40; padding-bottom:max(12px,env(safe-area-inset-bottom)); }
.support-button { bottom:120px!important; }
.vcenter { top:18px!important; bottom:auto!important; right:14px!important; left:auto!important; width:auto!important; transform:none!important; }
.vcenter button { width:48px!important; height:48px!important; }
.vplayer { background:transparent!important; padding:0!important; }
.vplayer video { object-fit:cover!important; display:block; }
.video-variant-tabs { display:flex; gap:8px; flex-wrap:nowrap; }
.video-variant-tabs [role=tab] { width:80px; padding:4px!important; flex:0 0 80px; font-size:16px; border-radius:12px; }
.variant-thumb { width:100%; height:64px; object-fit:cover; border-radius:8px; background:#eee6d9; display:block; }
.video-variant-tabs [role=tab] span { display:block; }
@media(max-width:600px) {
 .wrap { width:calc(100% - 24px)!important; }
 .topbar { height:auto; flex-wrap:wrap; }
 .topactions { flex-wrap:wrap; }
 .topbar .btnx span { display:inline!important; }
 .linkbox { grid-template-columns:minmax(0,1fr) 48px!important; }
 .linkbox .share { grid-column:1/-1; min-height:48px; }
 .tablewrap { overflow:visible!important; }
 .tbl,.tbl tbody,.tbl tr,.tbl td { display:block; width:100%; white-space:normal!important; }
 .tbl thead { display:none; }
 .tbl tr { padding:14px; border:1px solid var(--line); border-radius:16px; margin-bottom:12px; }
 .tbl td { display:flex; gap:12px; flex-wrap:wrap; overflow-wrap:anywhere; }
 .tbl td[data-label]::before { content:attr(data-label); font-weight:800; flex:0 0 80px; }
 .modegrid { grid-template-columns:1fr!important; gap:12px!important; }
 .format-select { padding:14px!important; display:grid!important; grid-template-columns:54px 1fr; gap:4px 12px; }
 .format-visual { grid-row:1/4; height:54px!important; min-height:0!important; padding:0!important; margin:0!important; }
 .format-visual .visual-caption,.mode-features,.format-facts,.format-example,.format-estimate-note { display:none!important; }
 .modetitle { margin:0!important; font-size:20px!important; }
 .modecopy { font-size:16px!important; }
 .format-check { right:8px; top:8px; }
 .visual-video .video-preview-frame { height:48px!important; width:30px!important; }
 .modecard { min-height:0!important; }
 .step-inner { padding:20px 16px!important; }
 .production-layout { grid-template-columns:minmax(0,1fr)!important; }
 .foot-status { display:none; }
 .navs { width:100%; }
 .navs .btn-next { flex:1; }
}
.tablewrap { overflow:visible!important; }
.tbl { table-layout:fixed; width:100%; }
.tbl td,.tbl th { white-space:normal!important; overflow-wrap:anywhere; }
