/* Navigation bar shared by every Home Planner page. Pages that fill the viewport give up its height. */
:root{--hsn:52px}
.hsn{position:relative;z-index:50;height:var(--hsn);display:flex;align-items:center;gap:6px;padding:0 10px;background:#0A1621;color:#F7F3EC;border-bottom:1px solid rgba(226,203,153,.25)}
.hsn a{text-decoration:none;color:inherit}
.hsn-home{flex:none;display:flex;align-items:center;gap:8px;height:38px;padding:0 12px 0 8px;border-radius:999px;font:600 14px/1 "Jost",system-ui,sans-serif;letter-spacing:.02em}
.hsn-home svg{width:20px;height:20px;color:#E2CB99}
.hsn-home.on{background:rgba(226,203,153,.14)}
.hsn-steps{flex:1;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;mask-image:linear-gradient(90deg,transparent,#000 12px,#000 calc(100% - 24px),transparent)}
.hsn-steps::-webkit-scrollbar{display:none}
.hsn-step{flex:none;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:999px;font:500 13.5px/1 "Jost",system-ui,sans-serif;color:#C9D2DC;white-space:nowrap;transition:background .2s,color .2s}
.hsn-step:hover{color:#fff;background:rgba(247,243,236,.06)}
.hsn-step.on{background:#E2CB99;color:#0A1621}
.hsn-step i{width:7px;height:7px;border-radius:50%;background:#7FBF9A}
.hsn-step.on i{background:#0F4F52}
.hsn :focus-visible{outline:2px solid #E2CB99;outline-offset:2px}
@media (max-width:600px){.hsn-home span{display:none}.hsn-home{padding:0 8px}}
body.hs-has-nav .app{height:calc(100dvh - var(--hsn))!important}
/* Asking before a shared home file replaces this device's planner. Floats, so full-height tools keep their layout. */
.hsn-shared{position:fixed;z-index:60;left:12px;right:12px;top:calc(var(--hsn) + 10px);max-width:560px;margin:0 auto;padding:16px;border-radius:10px;background:#FCFAF6;color:#0A1621;box-shadow:0 18px 40px -16px rgba(10,22,33,.55);border:1px solid #E6DAC4;display:grid;gap:12px;font:400 15px/1.45 "Jost",system-ui,sans-serif}
.hsn-shared b{color:#16304F}
.hsn-shared div{display:flex;gap:8px;flex-wrap:wrap}
.hsn-shared button{min-height:44px;padding:0 18px;border-radius:999px;border:1px solid #16304F;background:none;font:600 14px "Jost",system-ui,sans-serif;color:#16304F;cursor:pointer}
.hsn-shared button[data-a="open"]{background:#16304F;color:#F7F3EC}
/* See it in your room: the AR view and its help card */
.ar-pill{min-height:42px;padding:0 16px;border-radius:999px;border:0;background:#16304F;color:#F7F3EC;box-shadow:0 6px 16px -8px rgba(10,22,33,.45);display:inline-flex;align-items:center;gap:8px;font:600 14px "Jost",system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.ar-pill svg{width:17px;height:17px}
/* The wardrobe builder's own floating buttons gain the AR button inside the planner: let them wrap,
   and lift its "Design idea" label and drag hint clear of them. */
body.hs-has-nav .doors{width:max-content;max-width:calc(100% - 24px);flex-wrap:wrap;justify-content:center}
body.hs-has-nav .doors .pill{white-space:nowrap}
body.hs-has-nav .di{bottom:auto;top:84px}
@media (max-width:600px){body.hs-has-nav .hint{display:none}}
.ar-pill[aria-busy="true"]{opacity:.6}
.ar-help{position:fixed;z-index:60;left:12px;right:12px;bottom:16px;max-width:460px;margin:0 auto;padding:18px;border-radius:10px;background:#FCFAF6;color:#0A1621;box-shadow:0 18px 40px -16px rgba(10,22,33,.55);border:1px solid #E6DAC4;display:grid;gap:10px;font:400 15px/1.45 "Jost",system-ui,sans-serif}
.ar-help h2{font:500 24px/1.1 "Cormorant Garamond",Georgia,serif;color:#16304F}
.ar-help a,.ar-help button{justify-self:start;min-height:44px;padding:0 18px;border-radius:999px;display:inline-flex;align-items:center;font:600 14px "Jost",system-ui,sans-serif;text-decoration:none;cursor:pointer}
.ar-help a{background:#E2CB99;color:#0A1621}
.ar-help button{border:1px solid #16304F;background:none;color:#16304F}
.ar-ui{position:fixed;inset:0;pointer-events:none;font:500 15px/1.4 "Jost",system-ui,sans-serif}
.ar-ui p{position:absolute;left:16px;right:16px;top:20px;padding:12px 14px;border-radius:10px;background:rgba(10,22,33,.75);color:#F7F3EC;text-align:center}
.ar-ui button{pointer-events:auto;position:absolute;left:50%;bottom:28px;transform:translateX(-50%);min-height:48px;padding:0 24px;border-radius:999px;border:0;background:#F7F3EC;color:#16304F;font:600 15px "Jost",system-ui,sans-serif}
.ar-ui .ar-tag{position:absolute;left:16px;bottom:96px;padding:6px 9px 5px;background:rgba(22,48,79,.9);color:#F7F3EC;font:600 10.5px/1 "Jost",system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase}
/* Picture tiles in the dark control trays, and the material card under them */
.ptiles{display:grid;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));gap:8px}
.ptile{display:grid;gap:3px;padding:6px 6px 9px;border-radius:8px;border:1px solid rgba(226,203,153,.25);background:rgba(247,243,236,.04);text-align:left;color:#F7F3EC;cursor:pointer;font:500 13px/1.25 "Jost",system-ui,sans-serif}
.ptile:hover{border-color:rgba(226,203,153,.6)}
.ptile[aria-pressed="true"]{border-color:#F7F3EC;background:rgba(247,243,236,.12);box-shadow:0 0 0 1px #F7F3EC inset}
.pt-pic{display:grid;place-items:center;aspect-ratio:4/3;border-radius:5px;margin-bottom:4px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);overflow:hidden;color:#E2CB99}
.pt-pic svg{width:46%;height:auto}
.ptile b{font-weight:600}
.ptile small{font-size:11.5px;color:#AEBBC9}
.pabout{display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:start;padding:10px;border-radius:8px;background:rgba(247,243,236,.06)}
.pabout img{width:96px;height:72px;object-fit:cover;border-radius:5px}
.pabout b{display:block;font:600 13.5px/1.3 "Jost",system-ui,sans-serif;color:#E2CB99}
.pabout p{margin-top:3px;font:400 13px/1.45 "Jost",system-ui,sans-serif;color:#D5DCE4}
.pideas{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,1fr);gap:10px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.pideas figure{margin:0;border-radius:8px;overflow:hidden;background:rgba(247,243,236,.06)}
.pideas img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.pideas figcaption{padding:9px 10px 11px;font:400 12.5px/1.45 "Jost",system-ui,sans-serif;color:#C9D2DC}
.pideas figcaption b{display:block;margin-bottom:2px;font-weight:600;color:#F7F3EC}
.pnote{font:400 11.5px/1.4 "Jost",system-ui,sans-serif;color:#8FA0B2}
@media (max-width:340px){.ptiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.hsn,.hsn-shared,.ar-pill,.ar-help{display:none}body.hs-has-nav .app{height:auto!important}}
