/* Responsive delivery and touch ergonomics; preserve the desktop composition. */
:root{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);--music-player-height:140px}
html{-webkit-text-size-adjust:100%;scroll-padding-bottom:calc(var(--music-player-height) + var(--safe-bottom) + 24px)}
body{min-width:0}
img{height:auto}
.profile-copy h1,.panel-heading h2,.section-head h2,.modal-head h2,.link-content h3,.record-info h3,.record-detail-head h3,.setup-welcome h1{overflow-wrap:anywhere}
.intro-card p,.profile-copy p,.side-card p,.selected-empty p,.bring-it-home p,.panel-heading p,.full-empty p,.family-intro p,.modal-body>p,.tagline-box p{font-size:1rem;line-height:1.7}
.local-note,.storage-hint,.field small,.modal-head p,.form-error,.check-label,.section-option label,.share-option small{font-size:.875rem;line-height:1.65}
.button,.icon-button,.chip,.cover-edit,.record-tabs button{min-height:44px}
.icon-button{width:44px;height:44px}
.section-option .icon-button{width:44px;height:44px}
.field input:not([type=checkbox]),.field textarea,.field select,.search,.share-url{font-size:1rem!important;min-height:48px}
.field input[type=file]{max-width:100%;min-width:0;font-size:.875rem!important}
.field input[type=file]::file-selector-button{font:inherit;min-height:44px;border:1px solid var(--line);border-radius:6px;padding:8px 12px;margin:0 12px 0 0;background:var(--soft);color:var(--ink);cursor:pointer}
.field textarea{line-height:1.65;scroll-margin-block:100px}
.field input,.field select{scroll-margin-block:90px}
.check-label{min-height:44px;align-items:flex-start;padding-block:6px}
.check-label input,.section-option input{width:22px;height:22px;flex-shrink:0;margin-top:1px;accent-color:var(--green)}
.field-pair,.panel-heading>div,.modal-head>div,.section-head>div{min-width:0}
.mobile-section-picker{display:none}
.main-column,.side-column,.panel,.media-card,.music-room,.record-grid,.record-detail{min-width:0}
.media-meta>span{min-width:0}
dialog{max-height:calc(100vh - 32px);max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 32px);overscroll-behavior:contain}
.modal-head{position:sticky;top:0;background:white;z-index:2}
.modal-head>.icon-button{margin:-7px -10px 0 0}
.modal-body{padding-bottom:max(27px,var(--safe-bottom))}
.preview-image{max-height:65vh;max-height:65dvh}
.music-dock{bottom:calc(18px + var(--safe-bottom));left:max(20px,var(--safe-left));right:max(20px,var(--safe-right))}
.dock-controls audio{min-width:0}
.music-dock .icon-button{width:44px;height:44px}
.has-music-player{padding-bottom:calc(var(--music-player-height) + var(--safe-bottom) + 40px)}
.has-music-player #toast{bottom:calc(var(--music-player-height) + var(--safe-bottom) + 40px)}
#toast{bottom:calc(24px + var(--safe-bottom))}
@media(max-width:1100px){
 .brand span:last-child:not(:nth-child(2)),.header-links>span{display:none}
 .site-header{padding-inline:24px;gap:18px}
 .header-links{gap:12px}
}
@media(min-width:761px) and (max-width:1000px){
 .overview-layout{grid-template-columns:1fr}
 .side-column{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
 .side-card{margin-bottom:0}
 .side-card .button{padding-inline:10px}
 .profile-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;max-width:260px}
}
@media(max-width:760px){
 .site-header{height:auto;min-height:68px;padding:10px max(12px,var(--safe-right)) 10px max(12px,var(--safe-left));gap:10px}
 .brand{font-size:24px;gap:8px;flex-shrink:0;letter-spacing:-.7px}
 .brand img{width:30px;height:30px}
 .header-links{gap:8px;min-width:0;flex:1;justify-content:flex-end}
 .header-links .owner-avatar{display:none}
 .header-links .button{font-size:.875rem;min-height:44px;padding:10px 12px}
 .header-links [data-action=customize]{width:44px;padding:0;flex-shrink:0;gap:0}
 .header-button-label{display:none}
 .header-links [data-action=my-porches] .icon{display:none}
 .header-links [data-action=my-porches]{white-space:nowrap}
 .header-links [data-action=start-setup]{max-width:150px}
 .prototype-bar{font-size:.75rem;line-height:1.6;padding:9px 16px}
 .shell{padding:18px max(16px,var(--safe-right)) 35px max(16px,var(--safe-left))}
 .breadcrumb{font-size:.75rem;margin-bottom:16px}
 .cover{height:180px}
 .cover-edit{padding:9px 12px;min-height:44px;font-size:.875rem;bottom:10px;right:10px}
 .cover-note{top:22px;left:22px;font-size:23px;line-height:1.35;max-width:210px}
 .cover-note span{font-size:.625rem;letter-spacing:1.8px;max-width:200px}
 .profile-area{display:grid;grid-template-columns:80px minmax(0,1fr);gap:14px;padding:0 0 24px;align-items:start}
 .profile-photo{width:80px;height:80px;margin-top:-25px;border-width:4px}
 .profile-copy{padding-top:14px;min-width:0}
 .profile-copy h1{font-size:31px;line-height:1.15;letter-spacing:-.8px}
 .profile-copy p{font-size:1rem;line-height:1.6}
 .profile-actions{grid-column:1/-1;display:flex;flex-direction:row;gap:10px;padding:0;width:100%;max-width:none}
 .profile-actions .button{flex:1;min-height:48px;font-size:.875rem;padding:11px 12px}
 .profile-actions .icon{width:18px;height:18px}
 .section-navigation{position:sticky;top:var(--safe-top);z-index:8;background:var(--paper);margin-bottom:24px;padding-top:2px;box-shadow:0 5px 8px -9px #253d3280}
 .tabs{margin-bottom:0;gap:24px;padding:0}
 .tab{min-height:52px;padding:14px 2px;font-size:.9375rem}
 .tab svg.icon{width:18px;height:18px}
 .has-many .tabs{display:none}
 .has-many .mobile-section-picker{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid var(--line)}
 .mobile-section-picker>span{font-size:.875rem;color:var(--muted);flex-shrink:0}
 .mobile-section-picker select{font:inherit;font-size:1rem;font-weight:600;line-height:1.4;color:var(--green);appearance:none;min-height:48px;border:1px solid #d0d9cb;border-radius:9px;padding:10px 35px 10px 13px;width:100%;min-width:0;max-width:245px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='m6 8 4 4 4-4' fill='none' stroke='%23294b3e' stroke-width='1.5'/%3E%3C/svg%3E") right 10px center/20px no-repeat}
 #main{scroll-margin-top:90px}
 .intro-card h2{font-size:29px}
 .intro-card p{font-size:1rem}
 .section-head{gap:15px;align-items:center;flex-wrap:wrap}
 .section-head h2{font-size:26px}
 .section-head .button{font-size:.875rem;min-height:44px}
 .section-head .button.text{padding:10px 4px}
 .side-column{grid-template-columns:1fr;gap:16px}
 .side-card{padding:23px}
 .side-card h2{font-size:25px}
 .side-card p{font-size:1rem}
 .side-card small{font-size:.875rem}
 .side-card .button{font-size:.875rem;min-height:48px}
 .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
 .creation-art{height:180px}
 .creation-text{padding:17px}
 .creation-text h3{font-size:23px}
 .creation-text p{font-size:1rem;line-height:1.6}
 .creation-text span{font-size:.75rem;letter-spacing:.6px}
 .art-tag{font-size:.6875rem}
 .link-row{padding:12px;gap:8px}
 .link-row>a{gap:11px;min-height:48px}
 .link-content h3{font-size:1rem}
 .link-content p{font-size:.8125rem}
 .link-thumb{width:43px;height:43px}
 .link-row .external{display:none}
 .button,.button.small{min-height:48px}
 .icon-button,.section-option .icon-button{width:44px;height:44px;min-height:44px}
 .panel-heading{align-items:flex-start;flex-wrap:wrap;gap:18px}
 .panel-heading h2{font-size:32px;line-height:1.2}
 .panel-heading p{font-size:1rem}
 .panel-heading>.inline-actions{width:100%;display:flex;flex-wrap:wrap;gap:10px}
 .panel-heading>.inline-actions>.button{flex:1 1 140px;font-size:.875rem;min-height:48px}
 .album-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .album-cover{height:165px}
 .album-info{padding:15px;gap:7px}
 .album-info strong{font-size:23px}
 .album-info span{font-size:.8125rem}
 .media-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
 .media-grid[data-kind=audio],.media-grid[data-kind=video]{grid-template-columns:1fr}
 .media-card .photo-open{height:190px}
 .media-card video{height:auto;aspect-ratio:16/9;display:block}
 .media-card audio{min-height:64px}
 .media-meta{padding:10px;gap:6px;font-size:.875rem}
 .photo-source{font-size:.75rem}
 .selected-empty{padding:20px;align-items:flex-start;gap:15px}
 .selected-empty strong{font-size:1rem}
 .selected-empty p,.bring-it-home p{font-size:1rem}
 .selected-empty>.button{width:100%;margin-left:0}
 .bring-it-home strong{font-size:1.0625rem}
 .local-note{font-size:.875rem;padding:15px}
 .full-empty{padding:32px 20px}
 .full-empty p{font-size:1rem}
 .testimony-sheet{padding:25px}
 .testimony-sheet h3{font-size:28px}
 .testimony-body{font-size:1.125rem;line-height:1.9}
 .testimony-actions .button{flex:1 1 150px}
 .family-intro p{font-size:1rem}
 .footer{font-size:.8125rem;line-height:1.7}
 .footer button{min-height:44px;text-align:left;padding:8px 0}
 .setup-shell{padding:32px max(20px,var(--safe-right)) 32px max(20px,var(--safe-left))}
 .setup-welcome h1{font-size:clamp(38px,8.5vw,48px)}
 .setup-welcome p{font-size:1rem}
 .setup-name input{font-size:1rem}
 .setup-label>span{font-size:.875rem}
 .porch-option{padding:20px 40px 20px 16px;min-height:114px}
 .option-copy strong{font-size:1rem}
 .option-copy small{font-size:.875rem}
 .option-check{width:22px;height:22px;top:15px;right:13px}
 .option-check .icon{width:19px;height:19px}
 .setup-bottom{gap:18px}
 .setup-bottom .button{width:100%;min-height:52px;font-size:1rem}
 .setup-note{font-size:.8125rem}
 dialog,dialog:has(#import-review){width:calc(100% - 16px);max-width:600px;margin:auto;max-height:calc(100vh - 20px);max-height:calc(100dvh - var(--safe-top) - var(--safe-bottom) - 20px);border-radius:15px}
 .modal-head{padding:20px 18px 16px;gap:10px;align-items:flex-start}
 .modal-head h2{font-size:25px;line-height:1.2}
 .modal-head p{font-size:.875rem;line-height:1.6}
 .modal-head>.icon-button{margin:-6px -8px 0 0}
 .modal-body{padding:20px 18px max(22px,var(--safe-bottom))}
 .field-pair{grid-template-columns:1fr;gap:0}
 .field>span{font-size:.9375rem}
 .field{margin-bottom:20px}
 .modal-actions{display:flex;gap:10px;flex-wrap:wrap}
 .modal-actions>.button{flex:1 1 calc(50% - 10px);min-height:48px;font-size:.9375rem;margin:0}
 .modal-actions>.button.primary{flex-basis:100%;order:0}
 .modal-actions>.button.secondary{order:1}
 .modal-actions>.button.danger{order:2}
 .share-option{min-height:76px;padding:15px;gap:12px}
 .share-option>span:last-child{min-width:0}
 .share-option strong{font-size:1rem;line-height:1.4}
 .share-option small{font-size:.875rem;line-height:1.6}
 .theme-options{gap:8px}
 .theme-option{min-height:62px;font-size:.875rem;padding:12px 8px;gap:8px}
 .section-option{padding:10px;gap:6px;min-height:66px}
 .section-option label{min-height:44px;gap:9px;line-height:1.5}
 .section-option .icon-button{margin:0}
 .danger-zone{align-items:flex-start;flex-direction:column}
 .danger-zone p{font-size:.875rem}
 .import-grid{max-height:none;overflow:visible;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .import-photo img{height:145px}
 .import-photo input{width:24px;height:24px}
 .import-photo strong{font-size:.875rem;max-height:none;overflow:visible}
 .import-photo small{font-size:.75rem}
 .import-toolbar{gap:8px;align-items:center}
 .import-toolbar .button{min-height:44px;padding:10px 8px}
 .import-explainer p{font-size:1rem}
 .source-summary a{font-size:.875rem}
 .music-view .profile-area{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;padding-bottom:22px;align-items:center}
 .music-view .profile-photo{width:52px;height:52px;margin:0}
 .music-view .profile-copy h1{font-size:27px;line-height:1.2}
 .music-view .profile-actions{grid-column:1/-1;width:100%;display:flex;flex-wrap:wrap}
 .music-view .profile-actions .button{display:inline-flex;font-size:.875rem;min-height:48px;padding:11px 12px;flex:1}
 .music-view .tabs{margin-bottom:0}
 .music-intro h2{font-size:clamp(31px,7.7vw,43px);letter-spacing:-.8px}
 .music-intro .eyebrow{font-size:.6875rem;line-height:1.6}
 .record-info h3 button{min-height:44px;display:flex;align-items:center}
 .music-view .round-play,.preview-records .round-play{width:48px;height:48px;min-height:48px}
 .record-tabs button{min-height:44px;font-size:.9375rem;padding:10px 17px}
 .record-detail{scroll-margin-top:100px}
 .record-detail-head p{font-size:1rem}
 .track-row{min-height:78px;padding-block:16px}
 .track-name strong{font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
 .track-name small{font-size:.8125rem}
 .track-duration{font-size:.8125rem}
 .record-source{font-size:.875rem}
 .record-source a{display:inline-flex;align-items:center;min-height:44px}
 .music-sharing-note p,.personal-recordings p{font-size:1rem}
 .music-dock{left:max(8px,var(--safe-left));right:max(8px,var(--safe-right));bottom:calc(8px + var(--safe-bottom));padding:12px;gap:8px 12px;display:grid;grid-template-columns:minmax(0,1fr) 44px;border-radius:14px}
 .dock-track{min-width:0;grid-column:1;order:0}
 .dock-track img{width:44px;height:44px;flex-shrink:0}
 .dock-title{font-size:.9375rem;line-height:1.4}
 .dock-album{font-size:.8125rem}
 .dock-controls{grid-column:1/-1;order:2;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:4px;min-width:0;width:100%;max-width:none}
 .dock-controls audio{width:100%;min-width:0;height:44px}
 .music-dock .icon-button{width:44px;height:44px;min-height:44px}
 .close-player{grid-column:2;order:1}
 .player-message{right:0;font-size:.875rem;max-width:min(360px,calc(100vw - 30px))}
 .has-music-player{padding-bottom:calc(var(--music-player-height) + var(--safe-bottom) + 28px)}
}
@media(max-width:500px){
 .feature-grid{grid-template-columns:1fr}
 .creation-card{display:grid;grid-template-columns:104px minmax(0,1fr)}
 .creation-art{width:104px;min-width:0;height:100%;min-height:155px}
 .creation-text{padding:15px}
 .creation-text h3{font-size:24px}
 .creation-text p{font-size:.9375rem}
 .music-view .record-card{grid-template-columns:132px minmax(0,1fr);gap:17px;align-items:start;padding-bottom:20px}
 .music-view .record-info{padding-top:0}
 .music-view .record-credit{font-size:.75rem;line-height:1.5;display:block}
 .music-view .record-info h3{font-size:25px;margin:5px 0 8px}
 .music-view .record-info p{font-size:.8125rem;line-height:1.5}
 .music-view .round-play{margin-top:12px}
 .preview-records .record-info h3{font-size:23px}
 .preview-records .record-credit{font-size:.75rem}
}
@media(max-width:360px){
 .brand{font-size:23px;gap:7px}
 .brand img{width:28px;height:28px}
 .header-links .button{padding-inline:9px}
 .header-links [data-action=customize]{padding:0}
 .site-header{gap:8px}
 .mobile-section-picker>span{max-width:85px;line-height:1.4}
 .profile-copy h1{font-size:28px}
 .album-grid,.media-grid{grid-template-columns:1fr}
 .album-cover{height:210px}
 .music-view .record-card{grid-template-columns:112px minmax(0,1fr);gap:14px}
 .music-view .record-info h3{font-size:22px}
 .music-view .cover-caption strong{font-size:22px}
 .setup-welcome h1{font-size:37px}
 .setup-welcome::after{width:25%;height:135px;top:45px}
 .preview-records{grid-template-columns:1fr!important}
 .import-toolbar{flex-wrap:wrap}
}
@media(hover:none){.button:hover,.creation-card:hover,.round-play:hover{transform:none}.record-cover:hover img{transform:none}}
@media(max-height:500px) and (orientation:landscape){dialog{max-height:calc(100dvh - 12px)}.modal-head{position:static}.music-dock{grid-template-columns:minmax(120px,1fr) minmax(250px,1.5fr) 44px;gap:8px}.dock-controls{grid-column:2;grid-row:1;order:1}.close-player{grid-column:3;order:2}.dock-track{grid-column:1}.section-navigation{position:static}}
@media(max-width:760px){.button.text,.button.small{min-height:44px}}
