/* The photograph remains the room; controls follow its real rod endpoints. */
.room-inscription{position:absolute;left:50%;top:67.4%;transform:translate(-50%,-50%);margin:0;z-index:1;pointer-events:none;white-space:pre;font:500 22px/1 var(--serif);letter-spacing:.65px;color:#e7c36f;text-shadow:0 1px 1px #2f1809,0 -1px 0 #ffe4a04d}
.archive-caption{max-width:1540px}.archive-toolbar{max-width:1500px;margin:0 auto 16px;padding:0 30px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}.archive-toolbar button{min-height:44px}.archive-toolbar>p{flex:1;font-size:12px;color:#62725e;margin:0 0 0 12px;min-width:210px;line-height:1.5}
.room-scroll{width:min(100%,1500px);max-width:1600px;max-height:none;min-height:600px;height:clamp(600px,47.2vw,710px);overflow-y:hidden;background:#d0b28d}.room-scene{min-width:1260px;aspect-ratio:3/2;width:100%}.rod-station{position:absolute;inset:0;pointer-events:none}.rod-plaque{position:absolute;top:1.5%;margin:0;transform:translateX(-50%);font:600 17px/1.1 var(--serif);color:#e9d8b7;letter-spacing:.4px;background:#58442cec;border:1px solid #aa8b53;padding:6px 10px;border-radius:2px;box-shadow:0 2px 5px #37270f38;white-space:nowrap;min-width:76px;text-align:center}.rod-next{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;border:1px solid #f1d9a9;border-radius:50%;font-size:24px;background:#59432466;color:#fff3ce;box-shadow:0 0 0 3px #e8cc9233;z-index:150;pointer-events:auto;display:grid;place-items:center;padding:0}.rod-next:hover{background:#315546;color:#fff;box-shadow:0 0 0 5px #f5e5ad66}.rod-next:focus-visible{outline:3px solid #fff0ba;outline-offset:5px}.rod-front-note{position:absolute;margin:0;transform:translateX(-50%);text-align:center;white-space:nowrap;color:#624f32;font-size:12px;letter-spacing:.15px;background:#f5edd9b8;border:1px solid #c9b695;padding:6px 10px;border-radius:3px;box-shadow:0 2px 6px #42260718}
.rod-maps .roll-slot{border-radius:0;pointer-events:none;transition:left .72s cubic-bezier(.25,.6,.25,1),top .72s cubic-bezier(.25,.6,.25,1),width .72s ease,height .72s ease;transform:translateX(-50%);background:none;scroll-snap-align:none}.rod-maps .roll-slot.is-front{pointer-events:auto}.rod-maps .roll-slot.is-deep{visibility:visible}.rod-maps .roll-slot:hover{filter:drop-shadow(0 0 7px #fff0b1);z-index:110}.rod-maps .roll-slot.is-away{visibility:hidden}.roll-photo,.flying-photo{inset:0;clip-path:none;background-image:url('map-roll.webp');background-size:380% 100%;background-position:center;background-repeat:no-repeat;filter:drop-shadow(3px 5px 4px #37260d35)}.rod-maps .roll-label{width:160%;max-width:132px;min-width:92px;top:53%;padding:7px 4px 8px}.rod-maps .roll-name{font-size:14px}.rod-maps .roll-type{font-size:8px;letter-spacing:.6px}.rod-maps .roll-slot:not(.is-front) .roll-label{min-width:0;width:62%;padding:4px 1px;max-width:36px;top:63%;background:#ded2b6}.rod-maps .roll-slot:not(.is-front) .roll-name,.rod-maps .roll-slot:not(.is-front) .roll-type{display:none}.rod-maps .roll-slot:not(.is-front) .roll-number{margin:0;font-size:9px;letter-spacing:0}.rod-maps .roll-label::before{inset:2px}.flying-roll{background:none}.flying-roll .roll-label{width:160%;min-width:92px;max-width:132px}.flying-photo{background-size:380% 100%;background-position:center}
.archive-inspector{max-width:1420px;margin:18px auto 0;padding:17px 26px;display:flex;align-items:center;gap:28px;border-bottom:1px solid var(--edge)}.rod-choice{display:flex;flex-direction:column;gap:7px;min-width:178px}.rod-choice label{font-size:9px;letter-spacing:1.7px;color:var(--muted)}.rod-choice select{min-height:44px;border:1px solid #c7bda8;background:#f8f3e8;border-radius:5px;padding:9px 12px;color:#4c5f49;font-size:12px}.front-card-info{flex:1}.front-card-info h2{font:26px/1.1 var(--serif);margin:7px 0}.front-card-info>p:last-child{font-size:11px;color:#848273;margin:0}.front-card-actions{display:flex;gap:8px}.front-card-actions button{min-height:44px}.mobile-catalog{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;max-width:1100px;margin:12px auto 0;padding:0 20px}.mobile-catalog button{border:1px solid #d2c7b1;background:#f8f3e8;border-radius:5px;min-height:44px;font-size:12px;padding:9px 12px;display:flex;align-items:center;justify-content:center;gap:7px}.mobile-catalog button span{font-size:9px;color:#a29579}.mobile-catalog button[aria-pressed=true]{border-color:#708b6b;background:#e5ebde;color:#34523f}.swipe-note{display:block;text-align:center;font-size:10px;color:#8e897b;margin:12px 18px}
.import-dialog{max-width:650px}.import-dialog h2{font-size:29px}.file-choice{display:block;border:1px dashed #b2a380;border-radius:6px;background:#eee7d8;padding:16px;font-size:13px;font-weight:600;color:#475744}.file-choice input{display:block;margin-top:12px;max-width:100%;font-size:12px}.file-choice input::file-selector-button{border:1px solid #bdaf91;border-radius:4px;padding:9px 12px;background:#fffaf0;margin-right:12px;font-family:inherit;cursor:pointer}.import-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}.import-fields label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:#717663}.import-fields label:first-child{grid-column:1/-1}.import-fields input,.import-fields select{min-height:44px;background:#fffaf0;border:1px solid #c9c2ae;border-radius:5px;padding:10px;font:13px var(--sans);color:#354c3a;min-width:0;max-width:100%}.import-status{min-height:24px;color:#7a5531!important}.import-actions{display:flex;justify-content:flex-end;gap:8px}.import-actions button{min-height:44px}.import-dialog .import-storage{font-size:11px;border-top:1px solid var(--edge);padding-top:16px;margin-top:20px}.import-dialog .import-help{font-size:11px;margin-bottom:0}
@media(max-width:760px){.archive-toolbar{padding:0 16px;gap:7px;margin-bottom:12px}.archive-toolbar .step-button,.archive-toolbar .quiet-button{font-size:11px;padding:10px 11px;min-height:44px}.archive-toolbar>p{width:100%;flex-basis:100%;margin:0;font-size:11px;min-height:0}.archive-toolbar>p:empty{display:none}.room-scroll{max-height:none;min-height:600px;height:600px}.room-scene{width:1260px;min-width:1260px}.archive-inspector{flex-wrap:wrap;gap:15px;margin-top:0;padding:17px 18px}.rod-choice{min-width:0;flex:1;max-width:180px}.front-card-info{min-width:145px}.front-card-info h2{font-size:23px}.front-card-info>p:last-child{font-size:10px}.front-card-actions{width:100%;gap:7px}.front-card-actions .quiet-button{flex:1;font-size:11px}.front-card-actions .step-button{flex:1.2;font-size:12px}.mobile-catalog{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;padding:0 18px}.mobile-catalog button{font-size:12px;padding:10px 7px}.archive-foot{margin-top:15px}.import-fields{grid-template-columns:1fr}.import-fields label:first-child{grid-column:auto}.rod-plaque{font-size:17px}}
@media(min-width:761px) and (max-width:1000px){.archive-inspector{gap:17px;padding-left:20px;padding-right:20px}.front-card-actions{gap:5px}.front-card-actions .quiet-button{font-size:11px;padding:9px}.front-card-info h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.rod-maps .roll-slot{transition:none}}
@media print{.archive-toolbar,.archive-inspector,.import-dialog{display:none!important}}
.manage-access{border-color:#b9b49e}.admin-unlocked .manage-access{background:#e3ebdc;border-color:#819572;color:#34543e}.danger-button{color:#8b483b;border-color:#d3bcb0;background:#f5ebe3}.danger-button:hover{background:#f0dcd3;border-color:#b6816a}.front-card-actions{flex-wrap:wrap}.password-dialog,.delete-dialog{max-width:540px}.password-dialog form>label{display:block;font-size:12px;color:#64705d;margin:20px 0 8px}.password-entry{display:flex;gap:8px}.password-entry input{flex:1;min-width:0;min-height:46px;font:16px var(--sans);padding:10px 12px;border:1px solid #bdb6a0;border-radius:5px;background:#fffaf0;color:#334731}.password-entry button{min-height:46px;min-width:82px}.password-dialog #passwordStatus,.delete-dialog #deleteStatus{min-height:24px;color:#8d4938}.delete-dialog .delete-map-name{font:25px/1.3 var(--serif);color:#4c5f43;background:#eee9db;padding:14px 18px;border-radius:4px}.delete-confirm{min-height:44px;border:1px solid #975344;border-radius:5px;background:#975344;color:#fff8ef;padding:10px 16px;font-size:12px;cursor:pointer}.delete-confirm:hover{background:#7e3f34}.password-dialog .import-storage{font-size:11px;border-top:1px solid var(--edge);padding-top:14px;margin-top:22px}
@media(max-width:760px){.front-card-actions .danger-button{flex-basis:100%;margin-top:2px}.password-dialog h2,.delete-dialog h2{font-size:25px}}
@media print{.password-dialog,.delete-dialog{display:none!important}}
/* Optional information fields and chronological card sequences. */
.map-hotspot-target{cursor:pointer;outline-offset:3px}.map-hotspot-target:focus-visible{outline:3px solid #bc8423}.map-hotspot-target:hover:not(.hotspot-marker){filter:brightness(1.07)}.hotspot-touch-area{fill:transparent;pointer-events:all}.hotspot-dot{fill:#315546;stroke:#fff8e9;stroke-width:2}.hotspot-marker text{font:bold 17px Georgia,serif;fill:#fff8e9;pointer-events:none}.hotspot-marker:hover .hotspot-dot,.hotspot-marker:focus-visible .hotspot-dot{fill:#8c5e15}.hotspot-marker{touch-action:none}.hotspot-dialog{max-height:calc(100svh - 32px);overflow-y:auto}.hotspot-dialog h2{padding-right:10px;overflow-wrap:anywhere}.hotspot-dialog #hotspotContent p{white-space:pre-line;overflow-wrap:anywhere}.hotspot-dialog figure{margin:18px 0}.hotspot-dialog img{width:100%;height:auto;display:block;border-radius:4px}.hotspot-dialog figcaption{font-size:12px;color:var(--muted);line-height:1.5;margin-top:7px}.hotspot-dialog>.step-button{margin-top:20px}
.slide-panel{background:var(--paper);padding:9px 25px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--edge);flex:0 0 auto;min-width:0}.slide-panel h3{font-size:13px;font-weight:600;color:var(--green);margin:0 0 6px;line-height:1.4}.slide-panel p{font-size:12px;line-height:1.5;margin:0 0 8px;max-height:60px;overflow-y:auto;white-space:pre-line}.slide-controls{display:flex;gap:7px;align-items:center;min-width:0}.slide-controls>.quiet-button{min-height:44px;min-width:44px;flex:0 0 44px;padding:0;font-size:20px}.slide-buttons{display:flex;gap:6px;overflow-x:auto;min-width:0;flex:1;scrollbar-width:thin;scroll-padding:4px;padding:3px 2px}.slide-button{min-width:44px;min-height:44px;flex:0 0 44px;border:1px solid #c7c8b4;border-radius:5px;background:#fff5;font-size:13px;font-variant-numeric:tabular-nums}.slide-button[aria-pressed=true]{background:var(--green);color:#fff8e9;border-color:var(--green)}.slide-button:hover{border-color:var(--green)}.has-slides .viewer-footer{padding-bottom:5px}
@media(max-width:760px){.slide-panel{padding:8px 10px calc(8px + env(safe-area-inset-bottom))}.hotspot-dialog{padding:28px 20px}.hotspot-dialog h2{font-size:25px}.slide-panel p{max-height:48px}}
@media(max-height:550px) and (orientation:landscape){.has-slides .label-panel{padding-top:5px;padding-bottom:5px}.has-slides .slide-panel{padding-top:5px;padding-bottom:5px}.has-slides .viewer-footer{display:none}.slide-panel p{max-height:35px}.slide-panel h3{margin-bottom:3px}}
@media print{.slide-panel,.hotspot-dialog{display:none!important}}

/* Read the stack as one continuous row back to the wall. Back rolls keep
   their material and hook; only the front carries a large paper label. */
.rod-maps .roll-slot:not(.is-front) .roll-label{display:none}
.rod-maps .roll-slot.is-front .roll-label{max-width:148px}
.rod-maps .roll-slot:not(.is-front){filter:drop-shadow(1px 2px 1px #30251038)}
