@font-face{font-family:Ubuntu;src:url('assets/brand/Ubuntu-Regular.ttf');font-weight:400;font-display:swap}@font-face{font-family:Ubuntu;src:url('assets/brand/Ubuntu-Bold.ttf');font-weight:700;font-display:swap}@font-face{font-family:'Ubuntu Condensed';src:url('assets/brand/UbuntuCondensed-Regular.ttf');font-display:swap}
/* Controls ported from mega-docs: design-system.css → refinement.css → revision031/032.css.
   Viewer layout is local to this application. Original logo and font files are copied unchanged. */
:root{--night:#0f1624;--surface:#fff;--text:#18202d;--muted:#6a6e78;--action-primary:#b84943;--action-hover:#a13e39;--action-secondary:#e4e2e2;--action-secondary-hover:#d5d3d6;--action-secondary-text:#18202d;--focus:#f27166;--selected:#fceae7;--line:#e9e6e4;--shadow:0 8px 32px #0f16241a;--panel:rgba(255,255,255,.96)}
:root[data-theme=dark]{--surface:#151e2d;--text:#f2efed;--muted:#b0b6c3;--action-secondary:#243044;--action-secondary-hover:#2d3b50;--action-secondary-text:#f2efed;--selected:#3c2b31;--line:#344053;--panel:rgba(21,30,45,.96)}
*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{font:15px Ubuntu,system-ui,sans-serif;background:var(--night);color:var(--text)}button,a,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}[hidden]{display:none!important}:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button{touch-action:manipulation}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:160px;max-width:100%;min-height:48px;height:48px;border:0;border-radius:999px;padding:0 20px;background:var(--action-secondary);color:var(--action-secondary-text);font-size:13px;font-weight:400;text-decoration:none;flex-shrink:0}.button.primary{background:var(--action-primary);color:#fff}.button.primary:hover{background:var(--action-hover)}.button.secondary:hover,.icon-button:hover{background:var(--action-primary);color:#fff}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;flex:0 0 48px;border:0;border-radius:50%;background:transparent;color:var(--muted)}.icon-button svg,svg.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.icon-button[aria-pressed=true]{background:var(--selected);color:var(--action-primary)}
#app{position:relative;width:100%;height:100%;height:100dvh;isolation:isolate}#pano{position:absolute;inset:0;touch-action:none;outline-offset:-4px}#pano:focus:not(:focus-visible){outline:none}
.topbar{position:absolute;left:24px;right:24px;top:24px;min-height:80px;border-radius:18px;background:var(--panel);box-shadow:var(--shadow);padding:12px 20px;display:flex;align-items:center;gap:32px;backdrop-filter:blur(16px)}
.product{display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none;white-space:nowrap;flex-shrink:0}.brand-symbol,.brand-word{display:flex;align-items:center}.brand-symbol img{width:48px;height:48px;display:block}.brand-word img{width:80px;height:auto;display:block}.product-name{font:30px/1 'Ubuntu Condensed',Ubuntu,sans-serif;letter-spacing:0;margin-left:-4px}.brand-symbol img,.brand-word img{filter:brightness(0) saturate(100%)}[data-theme=dark] .brand-symbol img,[data-theme=dark] .brand-word img{filter:none}
.project-title{padding-left:28px;border-left:1px solid var(--line);line-height:1.4}.project-title span,.project-title small{display:block}.project-title small{font-size:12px;color:var(--muted);margin-top:3px}.header-actions{margin-left:auto;display:flex;gap:8px;align-items:center}.import-button{margin-left:8px;width:176px}
.scene-caption{position:absolute;top:136px;left:40px;color:white;pointer-events:none;text-shadow:0 1px 16px #0008}.scene-caption>span{font-size:12px;letter-spacing:1.5px}.scene-caption h1{font-size:32px;font-weight:400;line-height:1.1;margin:12px 0 8px}.scene-caption p{font-size:13px;margin:0;opacity:.85}.bottom{position:absolute;bottom:24px;left:24px;right:24px;display:flex;flex-direction:column;align-items:center;gap:16px;pointer-events:none}.toolbar{display:flex;align-items:center;padding:6px 8px;gap:2px;background:var(--panel);backdrop-filter:blur(16px);border-radius:999px;box-shadow:var(--shadow);pointer-events:auto}.divider{height:24px;width:1px;background:var(--line);margin:0 4px}.scene-panel{background:var(--panel);backdrop-filter:blur(16px);border-radius:18px;box-shadow:var(--shadow);padding:8px 16px 16px;width:min(100%,1140px);pointer-events:auto}.panel-heading{display:flex;align-items:center;justify-content:space-between;min-height:48px;font-size:14px}.panel-heading small{font-size:12px;color:var(--muted);margin-left:12px}.panel-heading .icon-button{width:48px;height:48px}#scene-list{display:flex;gap:12px;overflow-x:auto;scrollbar-width:thin;padding:3px 3px 6px;scroll-snap-type:x proximity}.scene-card{display:block;flex:1 0 118px;min-width:0;max-width:160px;background:transparent;border:2px solid transparent;border-radius:14px;padding:4px;text-align:left;color:var(--text);scroll-snap-align:start}.scene-card img{display:block;width:100%;height:62px;object-fit:cover;border-radius:9px}.scene-card span{display:block;font-size:12px;line-height:1.3;margin:9px 4px 4px;white-space:nowrap}.scene-card:hover{background:var(--action-secondary)}.scene-card[aria-current=true]{background:var(--selected);border-color:var(--action-primary)}.scene-panel.collapsed{padding-bottom:8px}.gesture-hint{position:absolute;bottom:264px;right:40px;font-size:11px;color:#fff;text-shadow:0 1px 10px #000;margin:0;pointer-events:none;opacity:.85}.floating{position:absolute;right:24px;bottom:24px;background:var(--panel);box-shadow:var(--shadow)}.clean .ui{display:none}.hotspot{display:flex;align-items:center;gap:8px;min-height:44px;border:0;border-radius:999px;padding:8px 16px 8px 10px;background:var(--panel);box-shadow:0 3px 16px #0003;color:var(--text);white-space:nowrap;font-size:12px;transform:translate(-50%,-50%)}.hotspot svg{width:18px;height:18px;color:var(--action-primary)}.hotspot:hover{background:var(--action-primary);color:#fff}.hotspot:hover svg{color:inherit}.clean .hotspot{display:none}
#loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:18px;padding:20px 28px;background:var(--panel);display:flex;align-items:center;gap:12px;max-width:calc(100% - 32px);box-shadow:var(--shadow);z-index:5;font-size:14px}#loading.error{flex-direction:column;text-align:center}.spinner{width:22px;height:22px;flex-shrink:0;border:2px solid var(--line);border-top-color:var(--action-primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:absolute;left:50%;bottom:280px;transform:translateX(-50%);max-width:calc(100% - 32px);padding:16px 24px;background:var(--surface);color:var(--text);box-shadow:var(--shadow);border-radius:14px;z-index:10;font-size:13px}
dialog{width:460px;max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);overflow:auto;border:0;border-radius:18px;padding:24px;background:var(--surface);color:var(--text);box-shadow:var(--shadow)}dialog::backdrop{background:#0f162499;backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;gap:16px;justify-content:space-between}.dialog-heading h2{font-weight:400;font-size:23px;margin:0}dialog p{font-size:14px;line-height:1.65;color:var(--muted)}dl{display:grid;grid-template-columns:100px 1fr;gap:12px;font-size:13px;margin:24px 0}dt{font-weight:700}dd{margin:0;color:var(--muted)}
@media(max-width:1100px){.project-title{display:none}.scene-card{flex:0 0 132px;max-width:132px}.topbar{gap:16px}.gesture-hint{display:none}}
@media(max-width:680px){.topbar{left:12px;right:12px;top:12px;min-height:64px;padding:8px 10px;border-radius:16px;gap:4px}.product{gap:5px}.brand-symbol img{width:32px;height:32px}.brand-word img{width:56px}.product-name{font-size:21px;margin-left:0}.header-actions{gap:0}.header-actions .icon-button{width:44px;height:44px;flex-basis:44px}.import-button{position:fixed;top:76px;right:0;width:160px;box-shadow:var(--shadow);background:var(--surface);margin:0}.scene-caption{top:104px;left:24px}.scene-caption h1{font-size:26px}.scene-caption p{display:none}.scene-caption>span{font-size:10px}.bottom{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));gap:12px}.toolbar{padding:4px;gap:0;max-width:100%}.toolbar .icon-button{width:40px;height:44px;flex:0 0 40px}.toolbar .divider{margin:0 2px}.scene-panel{padding:4px 10px 10px;border-radius:16px}.panel-heading{min-height:44px;font-size:13px}.panel-heading small{font-size:11px;margin-left:8px}.panel-heading .icon-button{height:44px}.scene-card{flex-basis:118px;max-width:118px}.scene-card img{height:54px}.scene-card span{margin:8px 3px 3px}.scene-caption{right:180px}#toast{bottom:260px}.hotspot{font-size:11px;padding-right:12px}.floating{bottom:16px;right:16px}}
@media(max-width:370px){.product-name{display:none}.toolbar .icon-button{width:36px;flex-basis:36px}.toolbar .divider{margin:0 1px}.toolbar svg{width:20px;height:20px}.scene-caption{right:165px}.scene-caption h1{font-size:22px}.brand-symbol img{width:36px;height:36px}.brand-word img{width:64px}}
@media(max-height:520px){.scene-caption{top:108px}.scene-caption p{display:none}.scene-panel{display:none}.topbar{top:12px;min-height:64px}.bottom{bottom:12px}.gesture-hint{display:none}.import-button{position:static}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.spinner{animation:none}}

/* Marzipano positions the anchor; the button keeps its flex layout and centering. */
.clean .hotspot-anchor{display:none!important}

/* Requested compact viewer layout: shared control panel and centered project. */
.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:24px}
.header-left{display:flex;align-items:center;gap:24px;min-width:0}
.topbar .scene-caption{position:static;inset:auto;min-width:0;color:var(--text);text-shadow:none;pointer-events:auto;padding-left:24px;border-left:1px solid var(--line);display:flex;align-items:center;gap:12px}
.topbar .scene-caption>span{display:block;font-size:11px;letter-spacing:1px;color:var(--muted);white-space:nowrap}
.topbar .scene-caption h1{font-size:16px;line-height:1.3;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar .project-title{display:block;text-align:center;padding:0;border:0;white-space:nowrap;font-size:15px}
.topbar .header-actions{margin:0;justify-content:flex-end;min-width:0}
.import-button>svg{display:none}
.bottom{gap:0}
.scene-panel{padding-top:8px}
.panel-heading{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:12px;min-height:60px;margin-bottom:8px}
.panel-heading>.points-heading{white-space:nowrap}
.panel-heading>#toggle-list{justify-self:end}
.panel-heading .toolbar{background:transparent;backdrop-filter:none;box-shadow:none;border-radius:0;padding:0;gap:2px;max-width:none}
.panel-heading .toolbar .icon-button{width:48px;height:48px;flex-basis:48px}
.scene-panel.collapsed .panel-heading{margin-bottom:0}
.hotspot{width:auto;height:44px;min-width:44px;min-height:44px;justify-content:flex-start;gap:0;padding:0;border-radius:999px;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;transform:translate(-22px,-50%);transition:background .2s,color .2s}
.hotspot-number{display:flex;align-items:center;justify-content:center;width:44px;flex:0 0 44px}
.hotspot-label{max-width:0;overflow:hidden;opacity:0;padding-right:0;font-size:12px;font-weight:400;transition:max-width .25s ease,padding-right .25s ease,opacity .2s ease}
.hotspot:hover .hotspot-label,.hotspot:focus-visible .hotspot-label{max-width:220px;padding-right:16px;opacity:1}
.hotspot-anchor:has(.hotspot:hover),.hotspot-anchor:has(.hotspot:focus-visible){z-index:10}
@media(prefers-reduced-motion:reduce){.hotspot,.hotspot-label{transition:none}}
.fullscreen-clean .ui,.fullscreen-clean .hotspot-anchor,.fullscreen-clean #show,.fullscreen-clean #toast{display:none!important}
.fullscreen-clean #pano:focus-visible{outline:none}
.version-switch{display:flex;align-items:center;flex:0 0 auto;gap:2px;padding:3px;border-radius:999px;background:var(--action-secondary)}
.version-switch button{border:0;width:32px;height:32px;border-radius:50%;background:transparent;color:var(--muted);font-size:13px;font-weight:700}
.version-switch button:hover{background:var(--action-secondary-hover);color:var(--text)}
.version-switch button[aria-pressed=true]{background:var(--action-primary);color:white}
@media(max-width:1500px){.topbar:has(.version-switch:not([hidden])) .product-name{display:none}}
@media(min-width:681px) and (max-width:1120px){.topbar:has(.version-switch:not([hidden])){grid-template-columns:1fr auto}.topbar:has(.version-switch:not([hidden])) .header-left{grid-column:1;grid-row:1}.topbar:has(.version-switch:not([hidden])) .project-title{grid-column:1/-1;grid-row:2}.topbar:has(.version-switch:not([hidden])) .header-actions{grid-column:2;grid-row:1}}
@media(max-width:1120px){.topbar .product-name{display:none}.header-left{gap:16px}.topbar .scene-caption{padding-left:16px}.topbar{gap:16px}}
@media(max-width:900px){.topbar .import-button{position:static;width:48px;height:48px;padding:0;margin:0;border-radius:50%;box-shadow:none;background:transparent;color:var(--muted)}.import-button>svg{display:block}.import-caption{display:none}.topbar .import-button:hover{background:var(--action-primary);color:white}.panel-heading{grid-template-columns:1fr 48px;gap:0}.panel-heading>.points-heading{grid-column:1;grid-row:1}.panel-heading>#toggle-list{grid-column:2;grid-row:1}.panel-heading .toolbar{grid-column:1/-1;grid-row:2;justify-self:center}.panel-heading{margin-bottom:8px}}
@media(max-width:680px){.topbar{grid-template-columns:1fr auto;gap:6px 4px;padding:10px;min-height:0}.header-left{display:contents}.topbar .product{grid-column:1;grid-row:2}.topbar .project-title{grid-column:1/-1;grid-row:1;font-size:14px}.topbar .header-actions{grid-column:2;grid-row:2;gap:0}.topbar .scene-caption{grid-column:1/-1;grid-row:3;display:flex;align-items:center;justify-content:center;gap:10px;padding:4px 0 0;border:0}.topbar .scene-caption h1{font-size:14px;margin:0}.topbar .scene-caption>span{font-size:11px}.topbar .header-actions .icon-button,.topbar .import-button{height:44px;width:44px;flex-basis:44px}.scene-panel{padding-top:4px}.panel-heading{margin-bottom:6px}.panel-heading .toolbar{width:100%;justify-content:center;gap:0}.panel-heading .toolbar .icon-button{width:40px;height:48px;flex:0 0 40px}.panel-heading .toolbar .divider{margin:0 2px}.hotspot{font-size:14px;padding:0}.gesture-hint{display:none}}
@media(max-width:370px){.panel-heading .toolbar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));width:100%;gap:0}.panel-heading .toolbar .divider{display:none}.panel-heading .toolbar .icon-button{width:100%;height:48px;min-width:0}.panel-heading .toolbar svg{width:20px;height:20px}}
@media(max-height:520px){.scene-panel{display:block}.scene-panel #scene-list{display:none}.panel-heading{margin-bottom:0;min-height:48px}.topbar .scene-caption{position:static}.panel-heading .toolbar{grid-column:2;grid-row:1}.panel-heading{grid-template-columns:minmax(0,1fr) auto 48px;gap:8px}.panel-heading>#toggle-list{grid-column:3}.panel-heading>.points-heading{grid-column:1}.panel-heading .toolbar .icon-button{height:40px;width:40px;flex-basis:40px}}
