:root {
  color-scheme: light;
  --paper: #f8f8f3;
  --graphite: #222b26;
  --moss: #445a42;
  --thread: #78846e;
  --hairline: #d5d9cd;
  --type: "DM Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--type);
  color: var(--graphite);
  background: var(--paper);
}
*, *::before, *::after {box-sizing:border-box}
html, body {margin:0;height:100%;overflow:hidden}
button {font:inherit;cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}
button:focus-visible, #view:focus-visible {outline:3px solid #e19b47;outline-offset:-3px}
button:disabled {opacity:.4;cursor:default}
[hidden] {display:none!important}
.tour {height:100vh;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.masthead, .dock {display:flex;align-items:center;background:var(--paper);position:relative;z-index:3}
.masthead {
  min-height:66px;padding: max(6px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) 6px max(24px,env(safe-area-inset-left));
  gap:24px;border-bottom:1px solid var(--hairline);
}
.identity {display:flex;gap:11px;align-items:baseline;white-space:nowrap}
.identity strong {font-size:24px;letter-spacing:.035em;font-weight:800}
.identity span {font:600 22px/1 "DM Sans","Segoe UI",sans-serif;letter-spacing:-.06em}
.masthead h1 {margin:0;border-left:1px solid #bcc2b5;padding-left:24px;font-size:14px;font-weight:500;letter-spacing:.12em}
.text-button {border:0;background:transparent;padding:10px 0;font-size:13px;min-height:44px;text-underline-offset:5px}
.text-button:hover {text-decoration:underline}
.header-actions {display:flex;align-items:center;gap:20px;margin-left:auto}
#planButton {color:var(--moss);font-weight:600}
.stage {position:relative;min-width:0;overflow:hidden;background:#c4c7bb;isolation:isolate}
#view, #fallback {position:absolute;inset:0}
#view.pnlm-container {background:#c4c7bb!important;font-family:var(--type)}
#view .pnlm-load-box,#view .pnlm-about-msg,#view .pnlm-error-msg {display:none}
#fallback {display:flex;align-items:center;justify-content:center;background:#29312a;overflow:auto}
#fallbackImage {display:block;width:100%;height:100%;object-fit:contain}
#fallbackTip,.status {font-size:13px;color:white;background:#28372ce8;padding:8px 13px;border-radius:3px}
#fallbackTip {position:absolute;left:14px;bottom:13px}
.status {pointer-events:none;position:absolute;z-index:2;left:50%;top:16px;transform:translateX(-50%);text-align:center;max-width:80%;width:max-content}
.status:empty {display:none}
.controls {position:absolute;right:max(18px,env(safe-area-inset-right));bottom:20px;display:flex;flex-direction:column;gap:1px;padding:1px;background:#aeb3a66b;border-radius:5px;overflow:hidden}
.controls button {width:44px;height:42px;display:grid;place-items:center;border:0;background:#f9faf4f5;font-size:22px;font-weight:400;line-height:1}
.controls button:hover,.controls button:focus-visible {background:#dce4d4}
.reset-icon {font-size:24px;line-height:1}
.corners {width:16px;height:16px;background:linear-gradient(var(--graphite),var(--graphite)) left top/6px 1.5px no-repeat,linear-gradient(var(--graphite),var(--graphite)) left top/1.5px 6px no-repeat,linear-gradient(var(--graphite),var(--graphite)) right top/6px 1.5px no-repeat,linear-gradient(var(--graphite),var(--graphite)) right top/1.5px 6px no-repeat,linear-gradient(var(--graphite),var(--graphite)) left bottom/6px 1.5px no-repeat,linear-gradient(var(--graphite),var(--graphite)) left bottom/1.5px 6px no-repeat,linear-gradient(var(--graphite),var(--graphite)) right bottom/6px 1.5px no-repeat,linear-gradient(var(--graphite),var(--graphite)) right bottom/1.5px 6px no-repeat}
.dock {gap:26px;min-height:69px;padding:0 max(24px,env(safe-area-inset-right)) max(0px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));border-top:1px solid var(--hairline)}
.dock-label {font-size:12px;color:#626d61;letter-spacing:.08em}
#stationNav {display:flex;align-items:stretch;gap:10px;align-self:stretch}
.station {border:0;border-top:3px solid transparent;margin-top:-1px;background:transparent;display:flex;align-items:center;gap:9px;padding:0 15px;font-size:14px;white-space:nowrap}
.station .step {font:500 11px/1 "DM Sans",Arial,sans-serif;color:#687266;font-variant-numeric:tabular-nums}
.station[aria-current="location"] {border-top-color:var(--moss);color:var(--moss);font-weight:700}
.station:hover {background:#ecefe6}
#readButton {margin-left:auto;color:var(--moss);font-weight:600;white-space:nowrap}
#readButton[aria-expanded="true"] {text-decoration:underline}
#view .pnlm-hotspot.tour-spot {width:0;height:0;background:none;border:0}
.tour-spot button {position:absolute;left:0;top:0;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0;border:0;background:transparent;color:#fff;white-space:nowrap;font-size:12px;line-height:1.15}
.mark {flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#354c39f2;box-shadow:0 0 0 1px #fff,0 1px 6px #0005;font:600 18px/1 Georgia,serif;color:#fff}
.spot-go .mark {background:#f5f8f2ef;color:#2e4435;box-shadow:0 0 0 1px #424c40,0 1px 6px #0005;font:500 19px/1 var(--type)}
.spot-name {position:absolute;top:calc(50% + 19px);left:50%;transform:translateX(-50%);padding:4px 7px;border-radius:2px;background:#263328ee;color:#fff;opacity:0;pointer-events:none;max-width:180px;overflow:hidden;text-overflow:ellipsis}
.spot-go .spot-name,.tour-spot button:hover .spot-name,.tour-spot button:focus-visible .spot-name {opacity:1}
.reading {position:absolute;bottom:20px;left:max(22px,env(safe-area-inset-left));width:min(354px, calc(100% - 92px));padding:18px 20px;background:var(--paper);border-left:3px solid var(--thread);box-shadow:0 2px 20px #18241d22}
.station-role {margin:0 32px 7px 0;color:#52644f;font-size:11px;letter-spacing:.045em;font-weight:650}
.reading h2 {font-size:19px;line-height:1.3;margin:0 16px 7px 0}
#sampleDetail:not([hidden]) {width:clamp(100px,11vw,156px);height:auto;float:right;margin:0 0 3px 10px}
.reading::after {content:"";display:table;clear:both}
.reading p:last-child {margin:0;font-size:13px;line-height:1.75}
#closeNote,.dialog-close {position:absolute;right:4px;top:4px;width:34px;height:34px;border:0;background:transparent;font-size:22px;color:#556353}
dialog {border:0;width:min(386px, calc(100% - 36px));padding:29px 28px 18px;background:var(--paper);color:var(--graphite);box-shadow:0 8px 60px #16251d44}
dialog h2 {font-size:21px;margin:0 28px 15px 0}
dialog p {font-size:14px;line-height:1.7}
dialog::backdrop {background:#1522197a}
#plan {width:min(760px,calc(100% - 28px));padding:22px}
#planCanvas {position:relative;width:100%;aspect-ratio:17200/8700;margin:16px 0 12px;background:#fff}
#planCanvas>svg {display:block;width:100%;height:100%}
.pin {position:absolute;transform:translate(-50%,-50%);width:42px;height:42px;display:grid;place-items:center;border:0;background:transparent;line-height:1}
.pin span {width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font:700 11px/1 var(--type);color:#344137;background:var(--paper);border:1.5px solid #465441;box-shadow:0 0 0 2px #fff}
.pin[aria-current="location"] span {background:var(--moss);color:white}
#planLegend {display:flex;align-items:stretch;gap:10px;justify-content:center}
#planLegend button {border:0;margin:0;background:transparent;padding:7px 3px;font-size:13px;min-height:36px}
#planLegend button[aria-current="location"] {font-weight:700;color:var(--moss);text-decoration:underline;text-underline-offset:4px}
#planLegend small {font-size:10px;margin-right:4px}
@media(max-width:700px) {
  .tour-spot .spot-name {display:none}
  .masthead {min-height:55px;padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right));gap:14px}
  .identity {gap:7px}.identity strong {font-size:22px}.identity span {font-size:19px}
  .header-actions {gap:12px}
  .masthead h1 {font-size:12px;padding-left:14px}
  .dock {gap:0;min-height:60px;padding-left:max(7px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  .dock-label {display:none}
  #stationNav {flex:1;gap:0}
  .station {flex:1;justify-content:center;padding:4px 6px;gap:4px;font-size:13px}.station .step {font-size:10px}
  #readButton {font-size:12px;margin-left:8px;padding-left:10px;border-left:1px solid var(--hairline)}
  .controls {right:max(9px,env(safe-area-inset-right));bottom:12px}
  .controls button {width:40px;height:40px}
  .reading {bottom:12px;left:10px;width:min(347px,calc(100% - 69px));padding:14px 16px}
  #plan {padding:18px 12px 10px}
}
@media(max-width:375px) {
  .masthead h1 {display:none}.station .step {display:none}
  .station {padding:4px 5px}
}
@media(max-height:450px) and (orientation:landscape) {
  .masthead {min-height:42px;padding-top:0;padding-bottom:0}.identity strong {font-size:18px}.identity span {font-size:16px}
  .dock {min-height:44px}.controls {flex-direction:row}
  .reading {max-height:calc(100% - 16px);overflow:auto}
}

