/* Remove the exposed blue page-background strip only at the Studio/mobile join. */
#main.hf-home>.hr-studio:has(+.ip-mobile){margin-bottom:0}
#main.hf-home>.ip-mobile{margin-top:0}
/* The photo remains visible through the glass. Fields retain an opaque reading surface. */
:root{--ps-glass:rgba(249,246,252,.6);--ps-paper:rgba(255,253,255,.92);--ps-ink:#201929;--ps-muted:#2c2339;--ps-line:rgba(75,44,105,.2);--ps-edge:rgba(255,255,255,.64);--ps-purple:#3e0e69;--ps-soft:rgba(104,39,174,.09);--ps-green:#07513b;--ps-green-bg:#def2e8;--ps-shadow:rgba(26,13,43,.11);--ps-action:#7226c7;--ps-action-ink:#fff;--ps-pdf:#a9233d}
:root[data-theme=dark]{--ps-glass:rgba(23,18,34,.72);--ps-paper:rgba(42,32,56,.94);--ps-ink:#faf5ff;--ps-muted:#e6d8f2;--ps-line:rgba(220,192,247,.28);--ps-edge:rgba(240,219,255,.45);--ps-purple:#e1bcff;--ps-soft:rgba(199,151,246,.15);--ps-green:#a6efd0;--ps-green-bg:#234637;--ps-shadow:rgba(0,0,0,.22);--ps-action:#d5acff;--ps-action-ink:#28103f;--ps-pdf:#ffb3c2}
#main.hf-home :is(.ps-glass,.ps-course,.ps-evidence){border-radius:19px;backdrop-filter:blur(14px) saturate(1.12);box-shadow:0 7px 20px var(--ps-shadow),inset 0 1px 0 var(--ps-edge)}
#main.hf-home .ps-glass{padding:17px}
#main.hf-home .ps-head{font-weight:500;letter-spacing:0}
#main.hf-home .ps-entry{border-color:color-mix(in srgb,var(--ps-purple) 38%,var(--ps-line));border-radius:10px;padding:12px}
#main.hf-home .ps-entry>span{margin-top:13px}
#main.hf-home .ps-entry>span>svg:last-child{padding:5px;border-radius:7px;background:var(--ps-action);color:var(--ps-action-ink)}
#main.hf-home .ps-file{padding-block:13px;margin-top:6px;gap:9px}
#main.hf-home .ps-file>svg:first-child{padding:5px;box-sizing:content-box;border:1px solid var(--ps-line);border-radius:6px;background:var(--ps-paper)}
#main.hf-home .ps-source{font-size:16px;line-height:1.4}
#main.hf-home .ps-paper{width:86%;border-radius:10px;box-shadow:0 7px 17px var(--ps-shadow);transform:rotate(2deg)}
#main.hf-home .ps-pdf-icon{color:var(--ps-pdf)}
#main.hf-home .ps-editor{border-radius:9px;gap:12px}
#main.hf-home .ps-course>img{height:72px;border-radius:7px}
#main.hf-home .ps-matrix{gap:14px 8px}
#main.hf-home .ps-matrix>span{border:1px solid var(--ps-line);background:var(--ps-paper)}
#main.hf-home .ps-form-row>b{background:var(--ps-green-bg);border-radius:5px;padding:4px 6px}
#main.hf-home .ps-form-answer{padding:5px 7px;border:1px solid var(--ps-line);border-radius:5px;background:var(--ps-paper)}
#main.hf-home .ps-transcript{border-radius:9px;padding:12px;line-height:1.5}
#main.hf-home .ps-voice-input{padding-bottom:20px}
#main.hf-home .ps-wave{height:36px;margin-top:16px}
#main.hf-home .ps-review{padding-top:3px}
@media(max-width:600px){
 #main.hf-home .ps-glass{padding:11px;border-radius:13px}
 #main.hf-home .ps-entry{padding:9px}
 #main.hf-home .ps-file{gap:6px}
 #main.hf-home .ps-file>svg:first-child{padding:3px;width:16px;height:16px}
 #main.hf-home .ps-course>img{height:42px}
 #main.hf-home .ps-matrix{gap:9px 4px}
 #main.hf-home .ps-voice-output .ps-transcript{padding:0}
 #main.hf-home .ps-voice-output .ps-review{padding-top:0}
}

@media(prefers-reduced-motion:no-preference){
 #main.hf-home .ip-mobile.ic-entered .ps-wave>i{transform-origin:center;animation:ps-voice-level .8s ease-in-out 2 alternate}
 #main.hf-home .ip-mobile.ic-entered .ps-wave>i:nth-child(3n){animation-delay:.12s}
 #main.hf-home .ip-mobile.ic-entered .ps-wave>i:nth-child(3n + 1){animation-delay:.24s}
 @keyframes ps-voice-level{from{transform:scaleY(.45)}to{transform:scaleY(1)}}
}
