/* FRAME Settings Studio — personalized controls first, account tools last. */
.fs-page{display:flex;flex-direction:column;gap:22px;padding-bottom:40px}
.fs-page *{box-sizing:border-box}
.fs-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,35%);gap:22px;min-height:232px;overflow:hidden;border:1px solid var(--line);border-radius:24px;padding:35px 38px;background:radial-gradient(ellipse at 88% 20%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 67%),linear-gradient(115deg,var(--surface),var(--surface2));align-items:center}
.fs-hero .fs-kicker,.fs-kicker{color:var(--accent);font-size:10px;font-weight:900;letter-spacing:2px;text-transform:uppercase}
.fs-hero h2{font-size:clamp(31px,3.6vw,47px);line-height:1.08;letter-spacing:-1.7px;margin:12px 0}
.fs-hero h2 em{font-style:normal;color:var(--accent)}
.fs-hero p{font-size:13px;color:var(--muted);line-height:1.7;max-width:570px}
.fs-hero-art{height:203px;min-width:0;position:relative;overflow:visible}
.fs-hero-poster{--r:0deg;position:absolute;top:50%;left:50%;height:162px;width:108px;border-radius:12px;overflow:hidden;background:var(--surface3);border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line));box-shadow:0 14px 33px #0006;transform:translate(-50%,-50%) rotate(var(--r));z-index:var(--z)}
.fs-hero-poster img{width:100%;height:100%;object-fit:cover}
.fs-hero-poster:nth-child(1){--z:5;--r:-5deg;margin-left:-10px}
.fs-hero-poster:nth-child(2){--z:4;--r:11deg;margin-left:95px;margin-top:11px}
.fs-hero-poster:nth-child(3){--z:3;--r:-11deg;margin-left:-112px;margin-top:9px}
.fs-hero-poster:nth-child(4){--z:2;--r:12deg;margin-left:170px;margin-top:22px}
.fs-hero-poster:nth-child(5){--z:1;--r:-15deg;margin-left:-183px;margin-top:17px}
.fs-mini-nav{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.fs-mini-nav button{background:var(--surface);border:1px solid var(--line);border-radius:99px;padding:10px 15px;color:var(--text);font-size:12px;font-weight:750}
.fs-mini-nav button:hover,.fs-mini-nav button:focus-visible{border-color:var(--accent);color:var(--accent)}
.fs-section{scroll-margin-top:35px}
.fs-section-title{display:flex;align-items:center;justify-content:space-between;gap:13px;margin:5px 1px 15px}
.fs-section-title h2{font-size:22px;letter-spacing:-.6px;margin:0 0 4px}
.fs-section-title p{margin:0;color:var(--muted);line-height:1.5;font-size:12px}
.fs-section-label{font-weight:800;font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--accent)}
.fs-layout{display:grid;grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr);gap:17px;align-items:stretch}
.fs-panel{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:23px}
.fs-panel h3{font-size:17px;letter-spacing:-.4px;margin:0 0 6px}
.fs-panel-intro{color:var(--muted);font-size:12px;line-height:1.55;margin:0 0 21px}
.fs-label{display:block;color:var(--text);font-size:12px;font-weight:800;margin:16px 0 7px}
.fs-help{display:block;font-size:11px;color:var(--muted);line-height:1.55;margin-top:7px}
.fs-field{display:flex;flex-direction:column;gap:5px}
.fs-field select{width:100%;min-width:0}
.fs-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.fs-row .fs-label{margin-top:0}
.fs-preview{display:flex;flex-direction:column;justify-content:center;min-width:0;border-radius:17px;border:1px solid var(--line);background:var(--bg);padding:20px;overflow:hidden}
.fs-preview >.fs-preview-heading{font-size:11px;font-weight:900;letter-spacing:.3px;display:flex;align-items:center;justify-content:space-between;gap:7px}
.fs-preview-mark{width:10px;height:10px;background:var(--accent);border-radius:50%;box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 15%,transparent)}
.fs-preview-eyebrow{margin:17px 0 5px;font-size:10px;letter-spacing:1.3px;color:var(--accent);font-weight:900}
.fs-preview-title{font-weight:850;font-size:20px;letter-spacing:-.7px}
.fs-preview-p{font-size:10px;line-height:1.55;color:var(--muted);max-width:260px}
.fs-preview-cards{display:flex;gap:9px;align-items:flex-start;margin-top:12px}
.fs-preview-cards img,.fs-preview-placeholder{aspect-ratio:2/3;width:min(29%,95px);height:auto;object-fit:cover;border-radius:8px;background:var(--surface2);border:1px solid var(--line)}
.fs-preview-placeholder{display:grid;place-items:center;color:var(--muted);font-size:10px;padding:8px}
.fs-preview-action{margin-top:16px;display:inline-flex;padding:9px 12px;border-radius:9px;background:var(--accent);color:#17141b;font-size:11px;font-weight:850;align-self:flex-start}
.fs-checkrow{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:15px 0;border-bottom:1px solid var(--line)}
.fs-checkrow:last-child{border-bottom:0}
.fs-checkrow h4{margin:0 0 3px;font-size:12px}
.fs-checkrow p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}
.fs-checkrow input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent);cursor:pointer}
.fs-select{margin:0}
.fs-grid-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fs-grid-choices button{border:1px solid var(--line);color:var(--text);border-radius:12px;background:var(--surface2);padding:12px 9px;text-align:left;min-width:0;display:flex;align-items:start;flex-direction:column;gap:8px}
.fs-grid-choices button:hover{border-color:var(--accent)}
.fs-grid-choices button[aria-pressed=true]{border-color:var(--accent);background:color-mix(in srgb,var(--surface2) 81%,var(--accent) 19%)}
.fs-grid-choices button b{font-size:11px}
.fs-grid-choices button small{font-size:10px;line-height:1.4;color:var(--muted)}
.fs-preview-bars{height:29px;display:flex;align-items:flex-end;gap:4px}
.fs-preview-bars i{display:block;width:12px;background:var(--accent);border-radius:3px 3px 2px 2px}
.fs-preview-bars i:first-child{height:90%}.fs-preview-bars i:nth-child(2){height:75%}.fs-preview-bars i:nth-child(3){height:58%}
.fs-grid-choices button[data-value=compact] .fs-preview-bars{gap:2px}
.fs-grid-choices button[data-value=compact] .fs-preview-bars i{width:8px}
.fs-grid-choices button[data-value=large] .fs-preview-bars i{width:16px}
.fs-feature-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}
.fs-feature-row:last-child{border:0}
.fs-feature-row h4{font-size:13px;margin:0 0 5px}
.fs-feature-row p{font-size:11px;line-height:1.5;color:var(--muted);margin:0}
.fs-feature-row button{white-space:nowrap}
.fs-section-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:18px}
.fs-section-picker label{display:flex;align-items:center;gap:10px;background:var(--surface2);padding:12px;border:1px solid var(--line);border-radius:11px;font-size:11px;cursor:pointer}
.fs-section-picker label:has(input:checked){border-color:color-mix(in srgb,var(--accent) 40%,var(--line))}
.fs-section-picker input{accent-color:var(--accent);width:16px;height:16px}
.fs-muted-card{border:1px solid var(--line);border-radius:14px;background:var(--surface2);padding:15px}
.fs-muted-card h4{font-size:12px;margin:0 0 6px}
.fs-muted-card p{font-size:11px;line-height:1.6;color:var(--muted);margin:0}
.fs-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.fs-data-grid .fs-panel{min-width:0}
.fs-data-status{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);padding:7px 10px;background:var(--surface2);border:1px solid var(--line);border-radius:99px}
.fs-data-status i{background:var(--accent);height:7px;width:7px;border-radius:99px}
.fs-cloud-wrap{margin-top:15px}
.fs-cloud-wrap .cloud-panel{margin:0;min-width:0}
.fs-cloud-open{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;background:var(--surface);color:var(--text);padding:17px 19px;border-radius:14px;border:1px solid var(--line)}
.fs-cloud-open:hover{border-color:var(--accent)}
.fs-cloud-open strong{font-size:13px;display:block;margin-bottom:4px}
.fs-cloud-open small{font-size:11px;color:var(--muted);line-height:1.5}
.fs-cloud-open>span:last-child{font-size:17px;color:var(--accent)}
.fs-data-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:17px}
.fs-audit-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:10px;margin-top:17px}
.fs-audit-item{padding:13px;border-radius:11px;border:1px solid var(--line);background:var(--surface2)}
.fs-audit-item strong{display:block;font-size:12px;margin-bottom:5px}
.fs-audit-item .secondary{margin-top:9px}
.fs-endnote{font-size:10.5px;color:var(--muted);line-height:1.6;text-align:center;padding-top:6px}
body[data-poster-size=compact] .catalog-grid{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:17px 13px}
body[data-poster-size=compact] .rail .poster-card{flex:0 0 124px}
body[data-poster-size=large] .catalog-grid{grid-template-columns:repeat(auto-fill,minmax(188px,1fr));gap:27px 20px}
body[data-poster-size=large] .rail .poster-card{flex:0 0 190px}
body.frame-reduced-motion *,body.frame-reduced-motion *::before,body.frame-reduced-motion *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
@media(max-width:1000px){
 .fs-layout{grid-template-columns:1fr}
 .fs-preview{min-height:220px}
 .fs-data-grid{grid-template-columns:1fr}
 .fs-hero-poster:nth-child(4),.fs-hero-poster:nth-child(5){display:none}
}
@media(max-width:640px){
 .fs-page{gap:16px}
 .fs-hero{grid-template-columns:1fr;display:flex;flex-direction:column-reverse;align-items:stretch;padding:17px 21px 24px;gap:1px}
 .fs-hero-art{height:150px;transform:scale(.78)}
 .fs-hero h2{font-size:31px}
 .fs-mini-nav{gap:6px}.fs-mini-nav button{padding:9px 12px;font-size:11px}
 .fs-section-title{align-items:start}
 .fs-section-title h2{font-size:20px}
 .fs-panel{padding:17px}
 .fs-row{grid-template-columns:1fr}
 .fs-grid-choices{gap:5px}
 .fs-grid-choices button{padding:11px 7px}
 .fs-grid-choices button b{font-size:10px}
 .fs-feature-row{grid-template-columns:1fr}
 .fs-feature-row button{justify-self:start}
 .fs-section-picker{grid-template-columns:1fr}
 body[data-poster-size=large] .catalog-grid{grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:18px 13px}
}
@media(max-width:390px){
 .fs-hero-art{transform:scale(.65)}
 .fs-grid-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
 .fs-grid-choices button small{font-size:9px}
 body[data-poster-size=large] .catalog-grid{grid-template-columns:repeat(auto-fill,minmax(138px,1fr))}
}
@media(prefers-reduced-motion:reduce){.fs-hero-poster{transition:none}}


/* Reactive mini-FRAME demonstration: local, non-mutating and theme-aware. */
.fs-preview-column{min-width:0;align-self:stretch}
.fs-live-preview{height:100%;min-width:0;justify-content:flex-start;gap:13px;padding:17px 18px 13px;background:linear-gradient(160deg,var(--bg),var(--surface));border-color:color-mix(in srgb,var(--accent) 24%,var(--line))}
.fs-live-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.fs-live-top>div{display:flex;gap:14px;align-items:center;min-width:0}
.fs-live-top strong{font-size:14px;letter-spacing:-.8px}
.fs-live-accent{color:var(--accent)}
.fs-live-dot{font-size:9px;white-space:nowrap;font-weight:900;letter-spacing:1px;color:var(--accent);display:flex;align-items:center;gap:7px}
.fs-live-dot:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 13%,transparent)}
.fs-live-top>small{font-size:10px;line-height:1.3;color:var(--muted);text-align:right}
.fs-live-views{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;padding:1px 0 7px}
.fs-live-views button{color:var(--muted);border:1px solid var(--line);background:var(--surface);border-radius:8px;padding:7px 8px;font-size:9px;font-weight:800;white-space:nowrap}
.fs-live-views button[aria-pressed=true]{color:var(--bg);background:var(--accent);border-color:var(--accent)}
.fs-live-views button:hover{border-color:var(--accent)}
.fs-live-screen{min-width:0;flex:1;border:1px solid var(--line);border-radius:13px;background:var(--surface);padding:16px 17px 12px;overflow:hidden;min-height:240px}
.fs-live-screen h3{font-size:18px;line-height:1.25;margin:6px 0 5px;letter-spacing:-.5px}
.fs-live-label{font-weight:900;font-size:9px;letter-spacing:1.2px;color:var(--accent)}
.fs-live-sub{font-size:10px;color:var(--muted);line-height:1.4;margin:0 0 14px}
.fs-live-feature{display:grid;grid-template-columns:minmax(0,1fr) 75px;gap:12px;align-items:center;background:radial-gradient(ellipse at 95% 10%,color-mix(in srgb,var(--accent) 12%,transparent),transparent 75%),var(--surface2);border-radius:11px;border:1px solid var(--line);padding:13px;min-height:115px;margin-bottom:14px}
.fs-live-feature>div{display:flex;flex-direction:column;gap:8px;min-width:0}
.fs-live-feature strong{font-size:15px;letter-spacing:-.35px;line-height:1.2;overflow-wrap:anywhere}
.fs-live-feature img{display:block;width:75px;height:104px;object-fit:contain;object-position:center;border-radius:6px}
.fs-live-mock-button{border-radius:7px;background:var(--accent);color:var(--bg);font-size:9px;font-weight:850;align-self:flex-start;padding:8px 10px}
.fs-live-rail{margin:14px 0 11px}
.fs-live-row-head{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;font-weight:850;margin-bottom:9px}
.fs-live-row-head span{color:var(--accent)}
.fs-live-strip{display:flex;flex-wrap:wrap;align-items:flex-start;gap:11px}
.fs-live-card{flex:0 0 var(--fs-cover);max-width:var(--fs-cover);min-width:0}
.fs-live-art{width:100%;aspect-ratio:2/3;border-radius:7px;border:1px solid var(--line);overflow:hidden;background:var(--surface2);position:relative}
.fs-live-art img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .18s ease}
.fs-live-card:hover img{transform:scale(1.04)}
.fs-live-card b{display:block;max-width:100%;font-size:9px;line-height:1.4;margin-top:5px;overflow-wrap:anywhere}
.fs-live-preview{--fs-cover:73px}
.fs-live-preview[data-size=compact]{--fs-cover:57px}
.fs-live-preview[data-size=large]{--fs-cover:91px}
.fs-live-preview[data-motion=reduced] .fs-live-card img{transition:none}
.fs-live-preview[data-motion=reduced] .fs-live-card:hover img{transform:none}
.fs-live-empty{padding:18px;border:1px dashed var(--line);border-radius:8px;font-size:10px;color:var(--muted);line-height:1.5}
.fs-live-foot{font-size:9px;color:var(--muted);line-height:1.5;margin:13px 0 4px}
.fs-live-search-mock{font-size:10px;color:var(--muted);border:1px solid var(--line);background:var(--bg);border-radius:8px;padding:10px;margin:10px 0 15px}
.fs-live-region{border:1px solid var(--line);border-radius:10px;padding:13px;background:var(--surface2);margin-top:15px;display:flex;flex-direction:column;gap:6px}
.fs-live-region b{font-size:11px}
.fs-live-region span{font-size:10px;line-height:1.45;color:var(--muted)}
.fs-live-detail{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;margin-top:15px}
.fs-live-detail-art{width:100%;aspect-ratio:2/3;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:var(--surface2)}
.fs-live-detail-art img{width:100%;height:100%;display:block;object-fit:contain}
.fs-live-detail-copy{display:flex;flex-direction:column;align-items:flex-start;gap:12px;justify-content:center}
.fs-live-detail-copy p{font-size:10px;line-height:1.5;color:var(--muted);margin:0}
.fs-live-taste-bar{display:grid;grid-template-columns:75px minmax(0,1fr);gap:7px;margin-top:12px;align-items:center}
.fs-live-taste-bar span{font-size:10px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fs-live-taste-bar i{height:8px;background:var(--surface2);border-radius:100px;overflow:hidden}
.fs-live-taste-bar i b{height:100%;display:block;background:var(--accent);border-radius:100px}
.fs-live-missing{display:grid;place-items:center;text-align:center;width:100%;height:100%;padding:8px;font-size:9px;color:var(--muted)}
.fs-live-footer{display:flex;gap:5px;flex-wrap:wrap;align-items:center}
.fs-live-footer span{padding:6px 8px;border-radius:100px;background:color-mix(in srgb,var(--accent) 7%,var(--surface2));border:1px solid var(--line);font-size:9px;color:var(--muted);line-height:1.2}
.fs-live-explainer{color:var(--muted);font-size:9px;line-height:1.45}
@media(max-width:1100px){
 .fs-live-preview{padding:14px}
 .fs-live-screen{padding:14px}
 .fs-live-preview[data-size=large]{--fs-cover:79px}
}
@media(max-width:1000px){
 .fs-live-preview{max-width:720px;margin:0 auto;min-height:400px}
 .fs-preview-column{min-height:410px}
 .fs-live-preview[data-size=large]{--fs-cover:91px}
}
@media(max-width:640px){
 .fs-preview-column{min-height:400px}
 .fs-live-preview{padding:12px;gap:10px}
 .fs-live-top>small{font-size:9px}
 .fs-live-views button{padding:7px}
 .fs-live-preview{--fs-cover:68px}
 .fs-live-preview[data-size=compact]{--fs-cover:51px}
 .fs-live-preview[data-size=large]{--fs-cover:81px}
 .fs-live-screen{padding:12px}
 .fs-live-feature{grid-template-columns:minmax(0,1fr) 66px}
 .fs-live-feature img{width:66px;height:98px}
 .fs-live-detail{grid-template-columns:90px minmax(0,1fr)}
}
@media(max-width:360px){
 .fs-live-preview[data-size=large]{--fs-cover:70px}
 .fs-live-top>small{display:none}
 .fs-live-feature strong{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.fs-live-card img{transition:none!important}.fs-live-card:hover img{transform:none!important}}


/* Aesthetic controls consolidated beside the live preview. */
.fs-aesthetic-divider{height:1px;background:var(--line);margin:22px 0 18px}
.fs-control-heading{font-size:14px;font-weight:850;letter-spacing:-.15px;margin:0 0 5px}
.fs-control-intro{color:var(--muted);font-size:11px;line-height:1.5;margin:0 0 13px}
.fs-launch-field{margin-top:18px}
.fs-launch-field .fs-label{margin:0 0 6px}
.fs-aesthetic-note{display:flex;gap:12px;align-items:center;line-height:1.55;background:var(--surface2);color:var(--muted);border:1px solid var(--line);border-radius:11px;margin-top:20px;padding:13px;font-size:11px}
.fs-aesthetic-note .fs-preview-mark{flex:0 0 9px}
.fs-comfort-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 30px;align-items:start}
.fs-comfort-panel .fs-panel-intro{min-height:30px;margin-bottom:12px}
.fs-comfort-panel .fs-label{margin-top:0}
.fs-comfort-panel .form-input{width:100%}
.fs-comfort-foot{grid-column:1/-1;border-top:1px solid var(--line);padding-top:15px;color:var(--muted);font-size:11px;line-height:1.55}
@media(max-width:640px){
 .fs-aesthetic-divider{margin:20px 0 16px}
 .fs-comfort-panel{grid-template-columns:1fr;gap:20px}
 .fs-comfort-panel .fs-panel-intro{min-height:0}
}
