/* REFRM v164 — spacing + sizing clean-up. Loaded last on every page that shares these layouts.
   Root cause: studio-premium-v158.css styles the marketing page with bare `.sec` / `.lede` selectors
   (padding up to 150px, 16–19px text, 1.8 line-height). index.html loads that file too, so the editor's
   own `.sec` / `.lede` inherited it — hence the huge gaps and oversized text in the tool sidebar. */

/* ===================== 1. EDITOR (tool sidebar, inspector, dialogs) ===================== */
#app .sec,#left .sec,#right .sec,dialog .sec{padding:12px 0 0;margin-top:12px;border-top:1px solid var(--line-soft,rgba(255,255,255,.07))}
#app .lede,#left .lede,#right .lede,dialog .lede{max-width:none;margin:0;font-size:12px;line-height:1.5;font-weight:400;color:var(--mut,#9a9a9a)}
.pane{padding:14px 14px 20px}
.pane-head{padding-bottom:10px;margin-bottom:0;border-bottom:0}
.pane h3{margin:0 0 4px;font-size:14px;line-height:1.3;letter-spacing:-.01em}
/* the header already ends the block: no second divider + gap straight after it */
.pane-head+.sec,.pane-head+button,.pane-head+p{margin-top:6px}
.pane-head+.sec{border-top:0;padding-top:4px}
.pane .lbl{margin-bottom:8px}
.pane .hint{margin:6px 0 0;font-size:11.5px;line-height:1.5}
.pane .wide+.hint,.pane .hint.center{margin-top:8px}
#right .pane-head,#right .phead{padding-bottom:8px}
@media(max-width:860px){.pane{padding:12px 12px 18px}}

/* ===================== 2. PUBLIC LANDING (landing.html) ===================== */
.nav-in{max-width:none;height:64px;padding:0 clamp(16px,2vw,28px)}
.hero{padding:clamp(28px,4vw,52px) 0 clamp(36px,5vw,68px)}
.hero h1{margin-top:16px}
.showcase{margin-top:clamp(32px,5vw,60px)}
.wrap{max-width:1440px;padding-inline:clamp(16px,2.4vw,32px)}
.wrap.narrow{max-width:calc(820px + 2*clamp(16px,2.4vw,32px))}
@media(max-width:860px){.nav-in{height:60px}.hero{padding-top:28px}}
@media(max-width:600px){.hero{padding:24px 0 32px}}

/* ===================== 3. DASHBOARD / ACCOUNT / SETTINGS (rf-main shell) ===================== */
.rf-main .shell{max-width:none;padding:0 clamp(16px,2vw,28px)}
.rf-main main{max-width:none}
.rf-main .topbar{height:64px}
.rf-side{padding:14px 12px}
.rf-side .rf-logo{padding:4px 10px 12px}
.rf-side .rf-label{margin:12px 12px 4px}
body.rf-dash .welcome{padding:26px 0 16px}
body.rf-dash .welcome h1{margin:8px 0}
body.rf-dash .stats{margin:14px 0 28px}
body.rf-dash .support-section{padding-top:36px}
body.rf-dash footer{padding:24px 0 18px;margin-top:20px}
body.rf-acct .hero{padding-top:26px;padding-bottom:16px}
@media(max-width:980px){.rf-main .shell{padding:0 16px}}

/* ===================== 4. STUDIO START SCREEN + MY PROJECTS (index.html) ===================== */
.land-top{padding-inline:clamp(16px,2vw,28px);min-height:64px}
.land-main{width:min(100%,1640px);padding:clamp(14px,2.6vh,30px) clamp(16px,2.4vw,40px) 36px}
.projects-topbar{min-height:60px;padding:10px clamp(16px,2vw,28px)}
.projects-content{width:100%;max-width:1680px;padding:22px clamp(16px,2.2vw,32px) 36px}
@media(max-width:860px){.land-main{padding-inline:16px}}
