/* v71: preserve v70 themes and contrast, tighten the relationship between controls and content. */
.p71-icon{display:inline-block;width:19px;height:19px;flex:none;vertical-align:middle;stroke-width:1.8}
button .p71-icon{margin-right:7px}.p71-art{display:block;width:230px;height:150px;color:var(--sig);margin:0 auto}
@keyframes p71-turn{to{transform:rotate(360deg)}}@keyframes p71-appear{50%{opacity:.3;transform:translateY(-4px)}}
.f26-event>i{width:28px!important;height:28px!important;display:grid;place-items:center;background:var(--card)!important;border:1px solid var(--card-edge)!important;border-radius:7px!important}.f26-event>i .p71-icon{width:16px;height:16px}.f26-stat>span,.f26-activity-when>b{display:flex;gap:7px;align-items:center}.f26-stat>span .p71-icon{width:16px;height:16px}
.tour-app{max-width:1260px!important}.tour-page-head h1{font-size:32px!important;font-weight:700!important}.tour-page-head p{margin:7px 0 0;color:var(--ink-2);font-size:14px}.tour-work-head{padding:20px!important;border:1.5px solid var(--card-edge)!important;border-radius:12px;background:var(--card)!important;gap:12px}.tour-work-head input{font-size:21px!important;font-weight:700;max-width:600px}.tour-work-head>div{min-width:0}.tour-work-actions{flex-wrap:wrap;justify-content:flex-end}.tour-mode-nav{display:flex!important;flex:none;gap:2px!important;margin:0 4px 0 auto;padding:0!important;border:0!important;background:none}.tour-mode-nav button{border:0!important;border-radius:8px;padding:9px 13px!important;font-size:13.5px!important;font-weight:650;color:var(--ink-2);white-space:nowrap}.tour-mode-nav button[aria-current=true]{background:var(--sig)!important;color:var(--on-sig,#fff)!important;box-shadow:none!important}.tour-mode-nav button:after{display:none!important}
.tour-workbench{margin-top:0!important;border:1.5px solid var(--card-edge)!important;border-radius:12px!important;overflow:hidden}.tour-main{padding:24px!important}.tour-room-rail{background:var(--card)!important;min-width:0}.tour-room-thumb{width:46px;height:46px;flex:none;background:var(--card-2);border:1px solid var(--card-edge);border-radius:8px;overflow:hidden;display:grid;place-items:center}.tour-room-thumb img{width:100%;height:100%;object-fit:cover}.tour-room-list>button{gap:10px!important;padding:14px!important}.tour-room-list>button>span:nth-child(2){min-width:0;flex:1}.tour-room-list b{overflow-wrap:anywhere}.tour-room-list>button .p71-icon{width:15px;margin:0}.tour-rail-head button{display:none}.tour-add-room{margin-top:16px!important}.tour-drop{border:1.5px dashed var(--card-edge-strong)!important;border-radius:10px;background:var(--card-2)!important;min-height:200px;gap:8px}.tour-drop.has-photos{min-height:90px;display:grid;grid-template-columns:38px 1fr;justify-items:start;align-items:center;column-gap:12px;padding:18px!important}.tour-drop.has-photos>svg{grid-row:1/4;width:30px;height:30px}.tour-drop.has-photos>span,.tour-drop.has-photos>small{grid-column:2}.tour-photos{gap:18px!important}.tour-photo{border:1.5px solid var(--card-edge)!important;border-radius:10px;overflow:hidden}.tour-start{background:var(--sig)!important;color:var(--on-sig,#fff)!important;font-size:10px!important;padding:5px 9px!important;border-radius:4px}.tour-photo-image img{aspect-ratio:2/1;object-fit:cover}.tour-room-head{margin-bottom:18px}.tour-room-head h2{font-size:24px!important;font-weight:700!important}.tour-room-head p{line-height:1.6;max-width:65ch}.tour-table{border:1.5px solid var(--card-edge)!important;border-radius:12px;overflow:hidden}.tour-library-row{min-height:100px!important;padding:24px!important}.tour-library-row>span:first-child>svg{width:36px;height:36px;margin-right:14px}.tour-library-row b{font-size:17px}.tour-table-head{background:var(--card-2)!important}.tour-menu summary{display:grid;place-items:center;width:40px;height:40px}.tour-empty .p71-art{width:230px;height:150px;margin-bottom:20px}.tour-empty h2{font-size:25px!important}.tour-status{min-height:38px}
.connection-heading{gap:16px;align-items:center!important}.connection-heading h2{font-size:23px!important;font-weight:700}.connection-heading p{font-size:13px}.connection-job{border:1px solid var(--card-edge)!important;border-radius:8px;background:var(--card-2)!important;margin:16px 0!important;padding:12px 16px!important;font-size:13px}.connection-board{grid-template-columns:minmax(0,1fr) 290px!important;gap:20px!important}.connection-inspector{border:1.5px solid var(--card-edge)!important;border-radius:10px;background:var(--card)!important;overflow:hidden;min-width:0}.connection-inspector>header{padding:15px!important;display:grid;gap:10px}.connection-inspector h3{font-size:16px!important}.connection-edge{padding:14px!important;gap:10px!important}.connection-edge b{font-size:12px;overflow-wrap:anywhere}.connection-edge i .p71-icon{width:16px;height:16px}.connection-edge>button{align-self:center}.connection-edge input{margin-top:3px!important}.connection-search{display:flex;align-items:end;gap:10px!important}.connection-search>input{width:100%;min-width:90px}.connection-search>button{white-space:nowrap}.connection-group-filter{display:grid;gap:5px;min-width:120px;max-width:180px;font-size:11px;font-weight:650}.connection-group-filter select{width:100%;min-height:39px}.connection-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.connection-photo{border:1.5px solid var(--card-edge)!important;border-radius:9px!important;overflow:hidden;background:var(--card)!important;min-width:0}.connection-photo[aria-pressed=true]{border:2px solid var(--sig)!important;box-shadow:0 0 0 3px var(--sig-bg)!important}.connection-photo img{height:auto!important;aspect-ratio:2/1;object-fit:cover}.connection-photo>span{padding:13px!important}.connection-photo small{font-size:11px}.connection-photo>i{width:27px;height:27px;background:var(--card)!important;border:1px solid var(--card-edge);color:var(--ink)!important;display:grid;place-items:center;border-radius:5px!important}.connection-photo>i .p71-icon{width:17px;height:17px;margin:0}.connection-selection{font-size:13px;font-weight:600;margin:12px 0!important;padding:10px 0!important}.connection-actions{border:1.5px solid var(--card-edge)!important;background:var(--card-2)!important;border-radius:8px;padding:12px!important;align-items:center!important}.connection-actions small{width:100%}.connection-actions button:disabled{display:none}.connection-actions button[data-connection=join]:disabled{display:block}.connection-empty{padding:22px!important;line-height:1.7;font-size:13px}.connection-footer{margin-top:16px;font-size:12px}.tour-player-wrap iframe{min-height:560px}
@media(max-width:1100px){.connection-board{grid-template-columns:minmax(0,1fr) 240px!important}.tour-main{padding:16px!important}.tour-work-head input{font-size:18px!important}.tour-workbench{grid-template-columns:190px minmax(0,1fr)!important}.tour-workbench.connections-mode,.tour-workbench.viewer-mode{grid-template-columns:1fr!important}}
@media(max-width:760px){html.tour-mobile{zoom:1!important;--uz:1!important}html.tour-mobile .main{padding:16px!important;width:100%;min-width:0}.tour-work-head{flex-wrap:wrap!important;padding:12px!important}.tour-work-head>div:nth-child(2){flex:1;min-width:180px}.tour-work-actions{width:100%;justify-content:flex-end}.tour-mode-nav button{font-size:12px!important;padding:12px 4px!important}.tour-workbench{display:block!important}.tour-room-list{display:flex!important;overflow-x:auto}.tour-room-list>button{min-width:180px;border-right:1px solid var(--card-edge)}.tour-room-rail{border:0!important;border-bottom:1px solid var(--card-edge)!important;padding:8px!important}.tour-room-search,.tour-rail-head{display:none}.tour-add-room{margin-top:8px!important}.tour-main{padding:14px!important}.connection-board{grid-template-columns:1fr!important}.connection-heading{display:block}.connection-heading-actions{margin-top:14px;justify-content:flex-start}.connection-search{flex-wrap:wrap}.connection-search>input{flex:1}.connection-group-filter{max-width:100%;width:100%}.connection-photo-grid{gap:10px!important}.connection-photo>span{padding:9px!important}.connection-photo small{overflow-wrap:anywhere}.connection-photo b{font-size:12px}.connection-edge-list{max-height:300px;overflow:auto}.tour-player-wrap iframe{min-height:460px}.tour-photos{grid-template-columns:1fr!important}.tour-library-row{padding:16px!important;grid-template-columns:1fr!important;gap:10px}.tour-table-head{display:none}.tour-page-head{gap:15px;flex-wrap:wrap}.tour-page-head h1{font-size:27px!important}.tour-library-bar{flex-wrap:wrap}.tour-library-bar>label{max-width:100%;min-width:0}.tour-status{font-size:12px}}
.tour-work-actions{margin-left:auto!important}.connection-job:empty{display:none!important}.connection-page[hidden]{display:none!important}.connection-heading{margin-bottom:22px}

.tour-work-head>div:nth-child(2){flex:1}.tour-work-head input{width:100%!important}.connection-actions{margin:0 0 16px!important}.connection-photo-grid{max-height:56vh;overflow:auto;align-content:start;padding:3px}.connection-inspector{align-self:start}.connection-selection{margin:6px 0!important}.connection-heading{padding:0 0 12px!important}.connection-heading h2{margin-top:0!important}@media(min-width:1400px){.connection-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}

/* v73 — one room and its doorways at a time. */
.tour-mode-nav .p71-icon{width:18px;height:18px}.tour-workbench{margin-top:16px!important}.tour-main{background:var(--card)!important}.tour-work-head{padding:18px 22px!important}.tour-work-head>div>span{font-size:13px!important}.tour-work-head input{font-size:20px!important}
.connection-heading{padding:0!important;margin-bottom:22px!important}.connection-heading h2{font-size:24px!important;font-family:inherit!important}.connection-heading p{font-size:12px}.connection-heading-actions{display:flex;align-items:center;gap:10px}.connection-heading-actions>.tour-menu{z-index:20}.connection-heading-actions>.tour-primary{font-size:12px}.connection-footer{border-top:0!important;margin-top:12px!important;font-size:11px}.connection-footer button{font-size:11px}.connection-footer button:disabled{opacity:.35}.connection-board{margin-top:20px}
.tour-photo{overflow:visible!important}.tour-photo-image{overflow:hidden;border-radius:9px 9px 0 0}.tour-photo-menu{position:relative;flex:none}.tour-photo-menu>summary{width:32px;height:32px;display:grid;place-items:center;list-style:none;cursor:pointer;border:1px solid var(--card-edge);border-radius:5px;background:var(--card)}.tour-photo-menu>summary::-webkit-details-marker{display:none}.tour-photo-menu>div{position:absolute;right:0;top:38px;z-index:30;min-width:220px;background:var(--card);padding:10px;border:1px solid var(--card-edge);box-shadow:0 8px 22px #0002;border-radius:8px;display:grid;gap:5px}.tour-photo-menu label{display:grid;font-size:11px;gap:5px;padding:4px}.tour-photo-menu button{font-size:12px!important;display:flex;align-items:center;padding:10px!important;width:100%;text-align:left;border:0!important;background:transparent}.tour-photo-menu button:hover{background:var(--card-2)}.tour-photo-menu select{max-width:100%;width:100%;color:var(--ink);background:var(--card);border:1px solid var(--card-edge);padding:8px;border-radius:5px}.tour-photos{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))!important;max-width:none;gap:16px!important}.tour-photos:has(>.tour-photo:only-child){grid-template-columns:1fr!important}.tour-drop.has-photos{min-height:0!important;display:flex!important;align-items:center;gap:10px;padding:14px 16px!important;margin-bottom:20px!important}.tour-drop.has-photos>svg{width:22px;height:22px}.tour-drop.has-photos b{font-size:12px}.tour-drop.has-photos>span{font-size:11px;margin-left:auto}.tour-drop.has-photos small{display:none}.tour-next73{display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding-top:16px;border-top:1px solid var(--card-edge);gap:12px}.tour-next73>span{font-size:11px;color:var(--ink-3);display:flex;gap:7px;align-items:center}.tour-next73 .tour-primary{font-size:12px}.tour-next73 .p71-icon{width:17px;height:17px}.tour-room-head p{font-size:12px!important}.tour-photo-menu summary:focus-visible,.connection-room-cards>button:focus-visible{outline:2px solid var(--sig);outline-offset:2px}
@media(max-width:1100px){.tour-drop.has-photos>span{display:none}}
@media(max-width:760px){.tour-workbench{margin-top:12px!important}.connection-heading{display:flex!important;align-items:start!important;gap:12px;margin-bottom:18px!important}.connection-heading h2{font-size:22px!important}.connection-heading-actions{margin:0!important;gap:6px;flex-wrap:wrap;justify-content:flex-end}.connection-heading-actions>.tour-primary{font-size:11px;padding:10px!important}.connection-heading-actions>.tour-primary svg{display:none}.connection-heading-actions>.tour-button{font-size:10px;padding:7px}.tour-mode-nav button{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:10px!important}.tour-mode-nav button svg{margin:0}.tour-next73{flex-wrap:wrap}.tour-next73>button{margin-left:auto}.tour-main{overflow:visible!important}.tour-photos{grid-template-columns:1fr!important}.tour-photo-menu>div{min-width:210px}.tour-room-list>button{min-width:155px!important}.tour-room-list b{font-size:12px!important}.tour-room-thumb{width:35px;height:35px}.tour-work-head input{font-size:17px!important}.tour-work-head{padding:14px!important}.tour-work-head>div:nth-child(2){min-width:150px!important}.tour-work-actions{width:auto!important}.tour-work-actions .tour-primary{font-size:12px!important;padding:10px!important}}

/* Keep upload accessible without a second, unstyled file control. */
html .tour-work-head>div:first-of-type{flex:1;min-width:0}
html .tour-work-head input{max-width:none!important;min-width:0;width:100%!important}
.tour-drop{position:relative;cursor:pointer}
.tour-drop input[type=file]{position:absolute!important;width:1px!important;height:1px!important;opacity:0;overflow:hidden;clip-path:inset(50%)}
.tour-drop:focus-within{outline:2px solid var(--sig);outline-offset:3px}
.tour-drop.has-photos{flex-direction:row!important;justify-content:flex-start!important}

html .tour-app .tour-work-head>div:first-of-type{flex:1!important;min-width:0!important}
html .tour-app .tour-photo-menu>summary:after,html .tour-app .tour-photo-menu>summary:before{content:none!important}
html .tour-app .tour-photo-menu>summary svg{margin:0!important}

html[data-theme="dark"] .tour-mode-nav button[aria-current=true]{color:#171b18!important}

/* v75 — automatic processing, viewpoint health, focused correction. */
.tour-load-error{max-width:650px;margin:80px auto;padding:35px;background:var(--card);border:1px solid var(--card-edge);border-radius:12px}.tour-load-error>svg{width:30px;height:30px}.tour-load-error h1{font-size:27px;margin:18px 0 12px}.tour-load-error p{margin-bottom:24px;line-height:1.7}
.tour-process75{margin-top:18px}.connection-job:empty{display:none}.connection-job:not(:empty){margin-bottom:18px}.tour-photo-menu>summary:after{content:none!important}.tour-photo-menu>button,.tour-photo-menu>.photo-move{min-width:210px!important}.tour-photo-menu>summary svg{margin:0}
/* v2 workspace, after the owner's comps: the header card stands off the page top; the Photos tab is a rail of rooms
   beside one large panorama whose actions sit on the photo; the upload bar is a plain bar, not a dashed drop target. */
html .tour-app .tour-work-head{margin-top:20px;align-items:center;flex-wrap:wrap;row-gap:10px}
/* one header row: title, the four tabs, then the tour's actions; narrower screens give the tabs their own row */
@media(max-width:1100px){html .tour-app .tour-mode-nav{order:5;width:100%;margin:0;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))}}
/* clearly drawn edges on every card and control in the tour workspace */
html .tour-app{--card-edge:color-mix(in srgb,var(--ink) 36%,transparent);--card-edge-strong:color-mix(in srgb,var(--ink) 56%,transparent);
  --line-2:color-mix(in srgb,var(--ink) 30%,transparent);--line:color-mix(in srgb,var(--ink) 22%,transparent)}
html .tour-app .tour-work-actions :is(.tour-button,.tour-primary){font-size:13.5px;padding:9px 14px!important}
@media(min-width:761px){html .tour-app .tour-work-head>div:first-of-type{min-width:272px!important}}
@media(min-width:1101px){html .tour-app .tour-mode-nav button{padding:9px 11px!important}}
@media(min-width:1101px){html .tour-app .tour-workbench:has(>.tour-room-rail:not(.is-collapsed)){grid-template-columns:260px minmax(0,1fr)!important}}
.tour-app .tour-rail-head{font-size:10.5px;letter-spacing:.14em}
.tour-app .tour-room-search{position:relative}
.tour-app .tour-room-search>svg{position:absolute;left:26px;top:12px;width:17px;height:17px;color:var(--ink-3);pointer-events:none}
html .tour-app .tour-room-search input{padding:10px 12px 10px 38px!important;border-radius:8px;width:100%;font-size:14px}
@media(min-width:761px){html .tour-app .tour-room-list>button{border:0;border-bottom:1px solid var(--card-edge);border-radius:0;padding:14px 16px!important;gap:14px!important}html .tour-app .tour-room-list>button[aria-current=true]{width:calc(100% - 12px);margin:6px;padding:13px 10px!important}html .tour-app .tour-room-thumb{width:58px;height:50px}html .tour-app .tour-room-list b{font-size:14.5px;font-weight:600}html .tour-app .tour-room-list small{font-size:13px}html .tour-app .tour-room-list>button>.p71-icon{width:18px;height:18px}}
html .tour-app .tour-room-list>button[aria-current=true]{border:1.5px solid var(--sig);border-radius:8px;background:var(--sig-bg)}
/* On a phone the rooms scroll sideways; the app-wide 44px touch floor must not squeeze a room card to one letter a line. */
@media(max-width:760px){#view .tour-app .tour-room-list>button{min-width:155px!important}}
html .tour-app .tour-add-room{font-size:14px!important;font-weight:600;gap:10px;padding:8px 22px}
html .tour-app .tour-drop.has-photos{border:1px solid var(--card-edge)!important;border-radius:10px;padding:18px 22px!important;gap:14px}
html .tour-app .tour-drop.has-photos.dragover{border-color:var(--sig)!important;background:var(--sig-bg)!important}
.tour-app .tour-drop.has-photos>svg{width:26px;height:26px}
html .tour-app .tour-drop.has-photos b{font-size:14.5px;font-weight:600;color:var(--ink)}
html .tour-app .tour-drop.has-photos>span{font-size:13px;color:var(--muted-strong,var(--ink-2))}
html .tour-app .tour-photo{position:relative;border:0!important;background:none}
html .tour-app .tour-photo-image{border-radius:10px;overflow:hidden}
html .tour-app .tour-photo>details.tour-photo-menu{position:absolute;top:10px;right:10px;z-index:3}
.tour-app .tour-photo>.tour-photo-menu>summary{width:36px;height:36px;background:color-mix(in srgb,var(--card) 90%,transparent)}
.tour-app .tour-photo-name{position:absolute;left:10px;bottom:10px;padding:5px 10px;border-radius:6px;background:rgba(18,26,22,.72);color:#fff;font-size:12px;font-weight:600;pointer-events:none}
.tour-app .tour-photo-image:has(.tour-upload-state) .tour-photo-name{display:none}
/* Connections: the photo picker shows the photo; Undo and Redo close the destination list. */
.pm-select>summary img{width:34px;height:26px;object-fit:cover;border-radius:4px;flex:none}
.pm-rail-foot .connection-footer{margin:0!important;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px 16px;color:var(--ink-3)}
.pm-rail-foot .connection-footer>span:empty{display:none}
.pm-rail-foot .connection-footer>div{display:flex;gap:16px}
/* Photos, Connections, Guide, Preview: one footer row closing the section - Go back and the save status on the left, one Done on the right */
html .tour-app .tour-steps{display:flex;align-items:center;gap:14px;min-height:60px;box-sizing:border-box;margin:0;padding:9px 14px;
  border:1.5px solid var(--card-edge);border-top:1px solid var(--line-2);border-radius:0 0 12px 12px;background:var(--card)}
html .tour-app .tour-workbench:has(+.tour-steps){border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border-bottom:0!important}
html .tour-app .tour-step-status{font-size:12.5px;color:var(--ink-3)}
html .tour-app .tour-step-status.error{color:#a54f39}
html .tour-app .tour-step-undo{border:0;background:none;color:var(--sig);text-decoration:underline;font-size:12.5px;cursor:pointer}
/* the section fills the window: header above, this footer below, the stage takes the rest (display scaling divides 100dvh by --uz).
   workspaces-v71.js measures --tour-top (the stage's page offset) and --tour-foot; these are only the values before it runs. */
html .tour-app{--tour-h:calc(100dvh / var(--uz,1));--tour-top:144px;--tour-foot:60px;--tour-end:18px}
#view:has(.tour-app .tour-work-head){padding-bottom:var(--tour-end,16px)!important}
html .tour-app{--tour-fill:calc(var(--tour-h) - var(--tour-top) - var(--tour-foot) - var(--tour-end))}
/* phone: the header wraps to half the screen, so it scrolls away instead; the stage fills the screen above
   a footer that stays in view (owner ruling, 10 Oct 2026) */
html.tour-mobile .tour-app{--tour-fill:calc(var(--tour-h) - var(--tour-foot) - var(--tour-end))}
html.tour-mobile .tour-app .tour-steps{position:sticky;bottom:0;z-index:25}
html .tour-app .tour-workbench{min-height:0!important}
html .tour-app .tour-workbench:not(.connections-mode):not(.guide-mode):not(.viewer-mode){min-height:max(420px,var(--tour-fill))!important}
html .tour-app .tour-photos:has(>.tour-photo:only-child)>.tour-photo{max-width:max(420px,calc((var(--tour-fill) - 250px) * 2))}
html .tour-app .tour-workbench.viewer-mode .tour-player-wrap iframe{height:max(420px,var(--tour-fill))!important}
html .tour-app .tour-step-next{margin-left:auto;display:flex;align-items:center;gap:14px}
html .tour-app .tour-step-reason{font-size:13px;color:var(--ink-3)}
html .tour-app .tour-steps .tour-primary:disabled{opacity:.5;cursor:not-allowed}
.pm-rail-foot .connection-footer>div>button+button{padding-left:16px;border-left:1px solid var(--card-edge)}
.pm-rail-foot .connection-footer button{display:inline-flex;align-items:center;gap:6px;border:0;background:none;color:var(--ink-2);font-size:12.5px;padding:6px 0;cursor:pointer}
.pm-rail-foot .connection-footer button svg{width:16px;height:16px;margin:0}
/* Import connections is a file control that reads as one more menu item. */
.tour-app .tp131-pop>label.tp131-file{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:5px;font-size:12.5px;color:var(--ink);cursor:pointer;white-space:nowrap}
.tour-app .tp131-pop>label.tp131-file:hover,.tour-app .tp131-pop>label.tp131-file:focus-within{background:var(--tint,rgba(23,27,24,.06))}
.tour-app .tp131-pop>label.tp131-file svg{width:16px;height:16px;flex:none;margin:0 7px 0 0}
