@font-face{font-family:Archive Serif;src:url(fonts/source-serif-roman.woff2);font-weight:200 900;font-display:swap}
@font-face{font-family:Archive Sans;src:url(fonts/source-sans.woff2);font-weight:200 900;font-display:swap}
:root{--paper:#f6f7f3;--ink:#20363b;--muted:#667471;--line:#cdd4ce;--surface:#e9ede7;--accent:#a23e25;--serif:'Archive Serif',Georgia,serif;--sans:'Archive Sans',Arial,sans-serif}
*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.4 var(--sans);height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}button,input,select{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button,select{cursor:pointer}button{border:1px solid var(--line);background:transparent;padding:6px 10px;min-height:34px}button:hover:not(:disabled){background:#e1e8df;border-color:#8c9b92}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.photo-stage:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip{position:fixed;top:-80px;left:15px;background:var(--paper);padding:15px;z-index:10}.skip:focus{top:0}p,h1,h2{margin:0}svg{fill:none;stroke:currentColor;stroke-width:1.6;flex:none}
.masthead{padding:9px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:18px}.app-identity{display:flex;align-items:baseline;gap:17px}.wordmark{font:26px var(--serif);color:var(--accent);letter-spacing:-.04em;text-decoration:none}.app-identity h1{font:14px var(--sans);color:var(--muted);border-left:1px solid var(--line);padding-left:17px}.masthead nav{display:flex;gap:22px;font-size:13px}.masthead nav a{text-decoration:none}.masthead nav a:hover{text-decoration:underline}
main{padding:0 20px 12px;min-height:0;min-width:0}.explorer-layout{display:grid;grid-template-columns:236px minmax(0,1fr);gap:20px;height:100%;min-height:0}.catalog{position:relative;border-right:1px solid var(--line);padding:16px 18px 0 0;min-width:0;min-height:0}.catalog>summary{display:none}.catalog-content{position:absolute;inset:16px 18px 0 0;display:flex;flex-direction:column;min-height:0}.catalog-summary{font-size:11px;color:var(--muted);margin-bottom:12px}.search{display:flex;align-items:center;border-bottom:1px solid var(--ink);gap:9px;padding:2px 0 8px;flex:none}.search svg{width:17px;height:17px}.search input{width:100%;min-width:0;border:0;background:transparent;padding:4px 0;border-radius:0;outline-offset:0}.filters{display:grid;grid-template-columns:1.3fr 1fr;gap:8px;margin-top:15px}.filters label{font-size:11px;color:var(--muted)}.filters select{display:block;width:100%;font-size:12px;margin-top:4px;border:1px solid var(--line);border-radius:0;padding:7px 2px;background:transparent;color:var(--ink)}.list-heading{display:flex;justify-content:space-between;align-items:center;gap:7px;margin:17px 0 7px;color:var(--muted);font-size:12px}.list-heading select{font-size:12px;border:0;background:transparent;max-width:104px}.object-list{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain;border-top:1px solid var(--line)}.object-entry{display:block;position:relative;text-align:left;width:100%;min-height:65px;border:0;border-bottom:1px solid var(--line);padding:11px 10px 11px 12px;line-height:1.3}.object-entry[aria-pressed=true]{background:#e7ece3;box-shadow:inset 3px 0 var(--accent)}.object-entry strong{display:block;font-weight:500;font-size:14px;overflow-wrap:anywhere}.object-entry small{display:block;margin-top:5px;font-size:11px;color:var(--muted)}.catalog-pages{display:flex;justify-content:space-between;align-items:center;padding-top:10px;font-size:12px;color:var(--muted)}.catalog-pages button{width:34px;padding:4px}
.workspace{min-width:0;min-height:0;display:flex;flex-direction:column}.object-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px 0 11px;flex:none}.accession{font-size:10px;letter-spacing:.04em;color:var(--muted);margin-bottom:3px}.object-heading h2{font:25px/1.15 var(--serif);letter-spacing:-.02em;overflow-wrap:anywhere}.object-meta{font-size:12px;color:var(--muted);margin-top:5px}.text-button{padding:4px 0;border:0;text-decoration:underline;text-underline-offset:4px;white-space:nowrap;font-size:12px}.text-button:hover:not(:disabled){background:transparent;color:var(--accent)}

.view-panels{flex:1;min-height:0;display:flex}.geometry{min-width:0;min-height:0;flex:1;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.panel-heading{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:7px 0;font-size:12px}.panel-heading span:last-child{font-size:11px;color:var(--muted)}
.scene-stage{position:relative;min-height:0;isolation:isolate;overflow:hidden;background:var(--surface)}.viewport{position:absolute;inset:0;background:var(--surface)}.viewport canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-3px!important}.view-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:25px;text-align:center;color:var(--muted);font-size:14px;z-index:1;pointer-events:none}
.selection-tools{position:absolute;top:12px;left:12px;z-index:2;display:flex;align-items:center;gap:6px;padding:5px;background:var(--paper);border:1px solid var(--line);box-shadow:0 2px 8px #20363b0b;max-width:calc(100% - 24px);font-size:12px}.selection-tools>span{padding:0 6px;white-space:nowrap}.selection-tools button{font-size:12px;padding:5px 8px}.camera-view{display:flex;align-items:center;justify-content:center;gap:6px;background:#315d56;border-color:#315d56;color:var(--paper)}.camera-view:hover:not(:disabled){background:#244c46;border-color:#244c46}.camera-view svg{width:16px;height:16px}
.photographs{position:absolute;right:12px;top:66px;width:clamp(270px,33%,400px);max-height:calc(100% - 80px);display:flex;flex-direction:column;z-index:3;background:var(--paper);border:1px solid var(--line);box-shadow:0 5px 22px #20363b24}.inspector-heading{display:flex;align-items:center;justify-content:space-between;padding:3px 5px 3px 12px;font-size:12px;flex:none}.inspector-heading button{border:0;font-size:23px;line-height:1;padding:3px 8px;min-height:30px}.photo-stage{position:relative;min-height:80px;aspect-ratio:4/5;flex:1 1 auto;overflow:hidden;background:var(--surface);outline-offset:-3px!important;touch-action:pan-y}.photo-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.photo-controls{padding:8px 10px;flex:none;position:relative}.photo-navigation{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:6px;font-size:12px}.photo-navigation button{min-height:28px;padding:2px 10px}.photo-tabs{display:flex;border:1px solid var(--line)}.photo-tabs button{flex:1;border:0;font-size:12px;min-height:30px;padding:4px 3px}.photo-tabs button+button{border-left:1px solid var(--line)}.photo-tabs button[aria-pressed=true]{background:#dfe6dc;font-weight:600}.credit{margin-top:7px;font-size:11px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}.credit a{text-decoration-thickness:1px;text-underline-offset:2px}
.photo-browser{position:absolute;bottom:10px;left:10px;right:10px;z-index:4;display:flex;align-items:center;gap:6px;background:var(--paper);padding:6px;border:1px solid var(--line);box-shadow:0 2px 10px #20363b15}.photo-browser>button{height:74px;padding:4px 8px;flex:none}.photo-strip{display:flex;gap:6px;min-width:0;overflow-x:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px}.photo-thumb{position:relative;flex:0 0 88px;height:72px;padding:0;border:2px solid transparent;background:var(--surface)}.photo-thumb img{width:100%;height:100%;object-fit:cover;display:block}.photo-thumb span{position:absolute;bottom:2px;right:2px;background:#f6f7f3e8;padding:0 4px;font-size:10px}.photo-thumb[aria-pressed=true]{border-color:var(--accent)}.photo-thumb:focus-visible{outline-offset:0}.scene-stage:has(.photo-browser:not([hidden])) .photographs{max-height:calc(100% - 180px)}
.geometry-controls{padding-top:8px;display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;min-width:0}.view-tools{display:flex;gap:16px;align-items:center;flex:1}.view-tools>div{display:flex;gap:5px}.view-tools button{font-size:12px;padding:5px 8px}.view-tools button[aria-pressed=true]{background:#dfe6dc;border-color:#8d9c91}.point-size{display:flex;align-items:center;gap:5px;font-size:12px}.point-size input{width:62px;accent-color:#496b60}.filter-tools{display:flex;align-items:center;gap:10px;font-size:12px;flex-wrap:wrap}.filter-tools label{display:flex;align-items:center;gap:6px}.filter-tools input{accent-color:#496b60}.navigation-hint{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px}.gesture{font-size:11px;color:var(--muted)}#browse-photos{font-size:12px;padding:4px 10px;min-height:30px}#browse-photos[aria-expanded=true]{background:#dfe6dc}.error{padding:9px;border:1px solid #b77d68;margin:0 0 10px;color:#89351f;font-size:13px}.error button{margin-left:10px}#no-results{flex:1;padding:28px 4px;color:var(--muted);font-size:14px}#no-results button{margin-top:14px;font-size:12px}
@media(min-width:1800px){.explorer-layout{grid-template-columns:265px minmax(0,1fr);gap:24px}}
@media(max-width:1100px){main{padding:0 15px 10px}.masthead{padding:9px 15px}.explorer-layout{grid-template-columns:210px minmax(0,1fr);gap:16px}.filters{grid-template-columns:1fr}.filters label{display:flex;align-items:center;justify-content:space-between}.filters select{width:125px;margin:0}.list-heading{flex-wrap:wrap}.object-heading h2{font-size:23px}.photographs{width:285px}.view-tools{gap:8px}}
@media(max-width:800px){.masthead{padding:8px 14px}.app-identity{gap:10px}.app-identity h1{font-size:12px;padding-left:10px}.wordmark{font-size:25px}.masthead nav{gap:14px;font-size:12px}main{padding:0 12px 8px}.explorer-layout{display:flex;flex-direction:column;gap:0}.catalog{border-right:0;border-bottom:1px solid var(--line);padding:0;flex:none;height:37px;z-index:8}.catalog>summary{display:flex;justify-content:space-between;cursor:pointer;padding:8px 0;font-size:13px}.catalog-content{position:absolute;inset:37px 0 auto;background:var(--paper);border:1px solid var(--line);padding:14px;height:min(70dvh,550px);box-shadow:0 8px 20px #20363b20}.catalog-summary{margin-bottom:9px}.filters{grid-template-columns:1fr 1fr}.filters label{display:block}.filters select{width:100%;margin-top:4px}.list-heading{flex-wrap:nowrap}.workspace{flex:1}.object-heading{padding:9px 0}.object-heading h2{font-size:23px}.object-meta{font-size:11px}.selection-tools{top:8px;left:8px;max-width:calc(100% - 16px)}.photographs{right:8px}.view-tools{justify-content:space-between}.geometry-controls{gap:5px}.filter-tools{width:100%}.gesture{font-size:10px}}
@media(max-width:560px){.app-identity h1{display:none}.masthead nav{font-size:11px;gap:13px}.object-heading h2{font-size:21px}.object-heading .text-button{font-size:11px}.object-meta{font-size:10px}.selection-tools{gap:4px;flex-wrap:wrap;width:max-content}.selection-tools>span{font-size:11px;padding:0 3px}.selection-tools button{font-size:11px;padding:4px 6px;min-height:30px}.camera-view svg{width:14px;height:14px}.photographs{width:250px;top:58px;max-height:calc(100% - 66px)}.scene-stage:has(.photo-browser:not([hidden])) .photographs{max-height:calc(100% - 150px)}.photo-stage{min-height:50px}.photo-controls{padding:5px 8px}.photo-tabs button{min-height:28px}.photo-navigation{margin-bottom:4px}.credit{margin-top:5px}.photo-browser{left:6px;right:6px;bottom:6px;padding:4px;gap:4px}.photo-browser>button{height:62px;padding:2px 6px}.photo-thumb{flex-basis:74px;height:60px}.view-tools button{padding:4px 6px;font-size:11px}.point-size{font-size:11px}.point-size input{width:48px}.gesture{max-width:220px}.filter-tools{font-size:11px}.object-heading{gap:8px}.photo-thumb span{font-size:9px}}
@media(max-width:350px){.selection-tools .camera-view{flex-basis:100%}.photographs{top:94px;max-height:calc(100% - 102px)}.scene-stage:has(.photo-browser:not([hidden])) .photographs{max-height:calc(100% - 186px)}.masthead nav{gap:10px}.wordmark{font-size:23px}.point-size input{width:36px}}

/* Keep orientation recovery visible over the reconstruction itself. */
.reset-up-overlay{position:absolute;left:12px;bottom:12px;z-index:5;padding:8px 12px;border:1px solid #9caea2;border-radius:3px;background:#f6f7f3f2;color:#20363b;font:500 13px/1.3 var(--sans);box-shadow:0 1px 5px #20363b15}
.reset-up-overlay:hover:not(:disabled){background:#e3ebe0;border-color:#496b60}
.reset-up-overlay:disabled{opacity:.55}
.scene-stage:has(.photo-browser:not([hidden])) .reset-up-overlay{bottom:112px}
@media(max-width:560px){.scene-stage:has(.photo-browser:not([hidden])) .reset-up-overlay{bottom:92px}}
