/* Additive refinement: retain the existing portal handlers and project palette. */
:root{--uds-polish-radius:14px}
header.uds-project-header{gap:20px;padding-inline:24px}
header.uds-project-header nav{gap:8px}
:root .uds-controls header.uds-project-header nav :is(button,a,summary){min-height:44px;touch-action:manipulation}
:root .uds-controls header.uds-project-header nav .uds-selection-shortcut{width:44px;height:44px;min-width:44px}
:root .uds-controls header.uds-project-header nav>[data-panel=apartments]{background:var(--ink);color:var(--paper);border-radius:24px;padding:10px 18px;font-size:12px}
:root .uds-controls header.uds-project-header nav>[data-panel=apartments]:hover{background:var(--green);color:#fff}
#uds-more{position:relative;flex:none;order:10}
#uds-more>summary{display:flex;align-items:center;justify-content:center;gap:8px;list-style:none;cursor:pointer;padding:10px 14px;border:1px solid var(--line);border-radius:12px;font-size:12px;font-weight:600;user-select:none}
#uds-more>summary::-webkit-details-marker{display:none}
#uds-more>summary::after{content:'⌄'}
#uds-more[open]>summary::after{transform:rotate(180deg)}
#uds-more .uds-more-items{position:absolute;inset-inline-end:0;top:calc(100% + 8px);width:240px;max-width:calc(100vw - 24px);padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 40px #14282026;z-index:30}
:root .uds-controls header.uds-project-header nav #uds-more .uds-more-items>*{display:flex!important;align-items:center;width:100%;text-align:start;min-height:48px;padding:12px;font-size:13px;border-radius:10px}
header.uds-project-header:has(#uds-more[open]){z-index:40}
.platform-ribbon{min-height:48px;height:auto;gap:12px;padding-block:4px}
.platform-ribbon .comic-link{font-size:11px;display:inline-flex;align-items:center;min-height:40px}
#svoi-open{min-height:40px;margin:0;font-size:12px}
#panel{border-top-left-radius:20px;padding:24px;overscroll-behavior:contain;scrollbar-width:thin}
#panel .panel-header{margin-bottom:20px}
#panel .lead{font-size:14px;line-height:1.65}
#panel .fine{font-size:12px;line-height:1.6}
#panel .plan{padding:20px;margin:18px 0;background:var(--paper);border:1px solid var(--line);border-radius:18px}
#panel .plan p{font-size:13px}
#panel .plan img{border-radius:12px}
#panel .badge{font-size:11px;border-radius:8px}
#panel :is(button,a.secondary){min-height:44px}
#panel .favorite{min-width:44px;border:1px solid var(--line);border-radius:50%}
.iva-dock{display:none!important}
.view-switch{border-radius:16px;padding:5px;box-shadow:0 3px 18px #152a2217}
.view-switch button{min-height:44px;border-radius:11px}
#place-nav{scroll-snap-type:x proximity;gap:10px;scrollbar-width:thin}
#place-nav button{scroll-snap-align:start;border-radius:12px;min-height:60px;font-size:11px}
#place-nav img{border-radius:8px}
@media(max-width:1100px){header.uds-project-header{height:auto;min-height:100px;flex-wrap:wrap;padding:12px 18px;gap:12px}header.uds-project-header nav{order:3;flex-basis:100%;margin:0;justify-content:flex-start;flex-wrap:wrap}.uds-project-header .project{margin-right:auto}.uds-project-header nav .uds-account-link{margin-left:auto}}
@media(max-width:700px){header.uds-project-header{padding:10px 12px;gap:10px}.uds-project-header .project{padding-left:12px}.uds-project-header .project b{font-size:18px}.uds-project-header nav{gap:6px}.uds-project-header nav>[data-panel=apartments]{order:-2}.uds-project-header nav .uds-selection-shortcut{order:0}.uds-project-header nav .uds-account-link{order:2}.uds-project-header nav #uds-open-floors{order:3}#uds-more{order:4}.platform-ribbon{padding-inline:12px;gap:10px}#panel{width:100%;max-width:none;border-radius:20px 20px 0 0;padding:18px;padding-bottom:max(24px,env(safe-area-inset-bottom));}#panel .row{flex-wrap:wrap}#panel .row>*{flex:1 1 160px}#panel .plan{padding:16px}.view-switch{left:14px;right:auto;top:42px;max-width:calc(100% - 28px)}.view-switch button{padding:9px 12px;font-size:10px}#scene-copy{top:28%;left:24px}#scene-copy h1{font-size:clamp(32px,7.3vw,44px);line-height:1.13;letter-spacing:-1.6px;max-width:340px}#scene-copy p{max-width:290px}#stage{min-height:440px}#main{min-height:540px}#place-nav button{min-width:112px}.source-stamp{bottom:12px}}
@media(max-width:420px){.uds-project-header .brand{font-size:25px}.uds-project-header .project b{font-size:16px}.uds-project-header .project small{display:none}.uds-project-header nav .uds-account-link{margin-left:0}header.uds-project-header nav{gap:5px}.view-switch button{padding:9px 8px}#scene-copy{left:20px}#scene-copy h1{max-width:290px}}
@media(prefers-reduced-motion:reduce){#uds-platform-toggle::after{transition:none}}
@media(max-width:700px){#uds-more .uds-more-items{inset-inline-end:auto;inset-inline-start:0}#scene-copy{top:108px}#scene-copy h1{font-size:clamp(32px,6.2vw,40px);margin-bottom:14px}#scene-copy p{margin-bottom:18px}}
#uds-more .uds-more-items{position:fixed;inset-inline-end:auto;max-height:calc(100dvh - 24px);overflow:auto}
#panel .favorite{width:44px;height:44px;flex:none;align-self:flex-start}
body:has(#panel:not([hidden])) .uos-iva-launcher{visibility:hidden}

/* Touch targets: override the legacy controls selector with an ID in :is(). */
:root body.uds-controls #stage .view-switch button{min-height:44px}
:root body.uds-controls .platform-ribbon :is(#svoi-open,.comic-link){min-height:44px}
