
@font-face { font-family: "Good Sans"; font-weight: 300; font-display: swap; src: url(media/fonts/GoodSans-Light.ttf) format("truetype"); }
@font-face { font-family: "Good Sans"; font-weight: 400; font-display: swap; src: url(media/fonts/GoodSans-Regular.otf) format("opentype"); }
@font-face { font-family: "Good Sans"; font-weight: 500; font-display: swap; src: url(media/fonts/GoodSans-Medium.ttf) format("truetype"); }
@font-face { font-family: "Good Sans"; font-weight: 700; font-display: swap; src: url(media/fonts/GoodSans-Bold.ttf) format("truetype"); }
@font-face { font-family: "PT Serif"; font-weight: 400; font-display: swap; src: url(media/fonts/PTSerif-Regular.ttf) format("truetype"); }

:root {
  --hb-white: #FCFCFA;
  --hb-off-white: #F6F6F0;
  --taupe: #EBEAE4;
  --hb-black: #353535;
  --dark-gray: #66666D;
  --hairline: rgba(53, 53, 53, 0.12);
  --stroke: rgba(53, 53, 53, 0.35);
  --moss: #9CA084;
  --blue: #526675;
  --toast: #C59877;
  --peach: #EAD1B3;
  --sans: "Good Sans", Inter, Helvetica, Arial, sans-serif;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hb-white);
  color: var(--hb-black);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.viewing { overflow: hidden; background: var(--hb-black); }
button { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.viewer-page :focus-visible { outline-color: var(--peach); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

.label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.label-bold { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dark-gray); }
.muted { color: var(--dark-gray); }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; }

.page { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(32px + var(--safe-bottom)); }
.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 22px; cursor: pointer; color: inherit; text-decoration: none;
}


.pill {
  height: 44px; padding: 0 20px; border-radius: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--hb-black); background: transparent; color: var(--hb-black);
  transition: opacity 150ms var(--ease);
}
.pill:active { opacity: 0.8; }
.pill.solid { background: var(--hb-black); color: var(--hb-white); }
.pill[disabled] { opacity: 0.45; cursor: default; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; white-space: nowrap; cursor: pointer; text-decoration: none;
  border: 1px solid var(--stroke); background: transparent; color: var(--hb-black);
}
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--hb-black); border-color: var(--hb-black); color: var(--hb-white); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; }


.sites-head { padding: calc(20px + var(--safe-top)) 16px 16px; display: flex; flex-direction: column; gap: 20px; border-bottom: 1px solid var(--hairline); }
.brand-row { display: flex; align-items: center; justify-content: space-between; height: 24px; }
.status { display: flex; align-items: center; gap: 6px; color: var(--dark-gray); }
.brand-actions { display: flex; align-items: center; gap: 16px; }
.account-link { color: var(--hb-black); text-decoration: underline; text-underline-offset: 3px; }
.page-title { margin: 0; font-size: 32px; line-height: 1.05; }
.search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid rgba(53,53,53,0.25); border-radius: 4px; background: #fff; }
.search:focus-within { border-color: var(--hb-black); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--hb-black); padding: 0; outline: none; }
.search input::placeholder { color: var(--dark-gray); opacity: 1; }
.sites-main { padding: 20px 16px 0; display: flex; flex-direction: column; gap: 28px; }
.section-title { margin: 0 0 12px; }
.feature { display: flex; flex-direction: column; gap: 12px; text-decoration: none; border-radius: 4px; }
.feature-photo { position: relative; aspect-ratio: 358 / 196; border-radius: 4px; overflow: hidden; background: var(--taupe); }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 44%, rgba(0,0,0,0.65) 100%); }
.feature-caption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; color: var(--hb-white); }
.feature-name { font-size: 24px; line-height: 1.1; }
.walk-track { position: relative; height: 14px; }
.walk-track::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: rgba(53,53,53,0.25); }
.walk-dot { position: absolute; top: 2px; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--moss); border: 1px solid var(--hb-white); }
.walk-legend { display: flex; justify-content: space-between; font-size: 12px; color: var(--dark-gray); margin-top: 6px; }
.site-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.site-row img { width: 96px; height: 72px; object-fit: cover; border-radius: 4px; flex: none; background: var(--taupe); }
.site-row-name { font-size: 20px; line-height: 1.15; }
.note-card { display: flex; gap: 14px; padding: 16px; background: var(--hb-off-white); border-radius: 4px; align-items: flex-start; }
.note-card p { margin: 4px 0 0; font-size: 14px; line-height: 1.35; color: var(--dark-gray); }
.saved-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--hb-white); }


.site-head { padding: calc(12px + var(--safe-top)) 16px 12px 8px; display: flex; flex-direction: column; gap: 12px; }
.title-row { display: flex; align-items: center; gap: 4px; }
.title-row h1 { margin: 0; font-size: 24px; line-height: 1.1; }
.controls-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-left: 8px; flex-wrap: wrap; }
.segmented { display: flex; border: 1px solid var(--stroke); border-radius: 18px; overflow: hidden; height: 36px; }
.segmented button { border: 0; padding: 0 16px; font-size: 14px; cursor: pointer; background: transparent; color: var(--hb-black); }
.segmented button[aria-pressed="true"] { background: var(--hb-black); color: var(--hb-white); }
.switch { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 4px; background: transparent; border: 0; font-size: 14px; cursor: pointer; }
.switch-track { width: 36px; height: 20px; border-radius: 10px; position: relative; background: rgba(53,53,53,0.3); transition: background 200ms var(--ease); }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--hb-white); transition: left 200ms var(--ease); }
.switch[aria-pressed="true"] .switch-track { background: var(--toast); }
.switch[aria-pressed="true"] .switch-track::after { left: 18px; }
.plan-wrap { padding: 0 16px; }
.plan { position: relative; width: 100%; background: var(--hb-white); overflow: hidden; }
.plan > img, .plan > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan > svg { pointer-events: none; }
.room-hit { position: absolute; background: transparent; border: 0; padding: 0; cursor: pointer; border-radius: 2px; }
.sheet { margin-top: 16px; border-top: 1px solid var(--hairline); box-shadow: 0 -12px 16px -4px rgba(16,24,40,0.06); border-radius: 12px 12px 0 0; padding: 14px 0 8px; display: flex; flex-direction: column; gap: 16px; }
.sheet .chip-row { padding: 0 16px; }
.room-summary { display: flex; gap: 14px; padding: 0 16px; align-items: center; }
.room-summary img { width: 112px; height: 84px; object-fit: cover; border-radius: 4px; flex: none; background: var(--taupe); }
.room-summary h2 { margin: 4px 0; font-size: 24px; line-height: 1.1; }
.coverage { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 0 16px; }
.cov { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: transparent; text-decoration: none; font-size: 12px; color: var(--dark-gray); border-radius: 4px; }
.cov-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--stroke); }
.cov.hit .cov-dot { background: var(--moss); border-color: var(--moss); }
a.cov .cov-dot { box-shadow: 0 0 0 3px rgba(156,160,132,0.25); }
.sheet-actions { display: flex; gap: 10px; padding: 0 16px; }
.sheet-actions .pill { flex: 1; }
.offline-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 0; border-top: 1px solid var(--hairline); font-size: 14px; }
.progress { height: 3px; border-radius: 2px; background: rgba(53,53,53,0.12); overflow: hidden; margin: 8px 16px 0; }
.progress > span { display: block; height: 100%; background: var(--moss); width: 0; transition: width 150ms linear; }
.empty-floor { margin: 24px 16px; padding: 32px 24px; background: var(--hb-off-white); border-radius: 4px; }
.empty-floor h2 { margin: 0 0 12px; font-size: 24px; }
.empty-floor p { margin: 0; font-size: 16px; line-height: 1.35; color: var(--dark-gray); }



.viewer-page { position: fixed; inset: 0; background: var(--hb-black); color: var(--hb-white); overflow: hidden; overflow: clip; }

.viewer { position: absolute; inset: 0; overflow: hidden; overflow: clip; isolation: isolate; z-index: 0; }
#pano .pnlm-render-container { overflow: clip; }
#pano.pnlm-container { width: 100%; height: 100%; background: var(--hb-black); font-family: var(--sans); }
#pano:focus-visible { box-shadow: inset 0 0 0 2px var(--peach); }

#pano .pnlm-load-box { display: none !important; }
.compass-mode { margin-left: auto; flex: none; height: 40px; padding: 0 14px; display: flex; align-items: center; gap: 6px; border-radius: 20px; border: 1px solid rgba(252,252,250,0.6); background: rgba(0,0,0,0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--hb-white); font: 500 14px/1 var(--sans); white-space: nowrap; cursor: pointer; }
.compass-mode[hidden] { display: none; }
.info-btn { margin-left: auto; width: 40px; height: 40px; border: 1px solid rgba(252,252,250,0.55); background: rgba(0,0,0,0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--hb-white); }
.info-btn[aria-pressed="true"] { background: var(--hb-white); color: var(--hb-black); }
.compass-mode:not([hidden]) + .info-btn { margin-left: 0; }
.help { position: absolute; inset: 0; background: rgba(0,0,0,0.45); color: var(--hb-white); font: 500 16px/1.35 var(--sans); text-shadow: 0 1px 3px rgba(0,0,0,0.8); pointer-events: none; }
.help[hidden] { display: none; }
.help p { margin: 0; }
.help svg { flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8)); }
.help-room { position: absolute; left: 20px; top: calc(58px + var(--safe-top)); display: flex; align-items: center; gap: 6px; }
.help-date { position: absolute; left: 0; right: 0; bottom: calc(112px + var(--safe-bottom)); display: flex; align-items: center; justify-content: center; gap: 6px; }
.help-center { position: absolute; left: 50%; transform: translateX(-50%); top: calc(80px + var(--safe-top)); bottom: calc(134px + var(--safe-bottom)); width: min(560px, calc(100% - 24px)); display: flex; flex-direction: column; justify-content: center; gap: 14px; text-align: center; }
.help-hide { pointer-events: auto; margin-top: 4px; border-color: rgba(252,252,250,0.7); background: rgba(0,0,0,0.35); color: var(--hb-white); text-shadow: none; }
.plan-thumb { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 4px 14px 4px 4px; border-radius: 12px; border: 1px solid rgba(252,252,250,0.55); background: rgba(0,0,0,0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--hb-white); text-decoration: none; font: 500 15px/1.2 var(--sans); }
.plan-thumb:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }
.plan-thumb-img { position: relative; height: 64px; flex: none; border-radius: 8px; overflow: hidden; background: var(--hb-white); }
.plan-thumb-img img, .plan-thumb-img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan-thumb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.has-thumb .help-room { top: calc(90px + var(--safe-top)); }
.has-thumb .help-center { top: calc(112px + var(--safe-top)); }
.picker .plan svg { pointer-events: auto; }
.picker .plan polygon { cursor: pointer; }
.picker .title-row h1 { margin: 0; }
.motion-gate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 48px; padding: 0 20px; border-radius: 24px; border: 1px solid rgba(252,252,250,0.7); background: rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--hb-white); font: 500 16px/1 var(--sans); white-space: nowrap; cursor: pointer; }
.motion-gate[hidden] { display: none; }
.loading-pill { position: absolute; left: 50%; top: calc(62px + var(--safe-top)); transform: translateX(-50%); height: 28px; padding: 0 12px; border-radius: 14px; display: flex; align-items: center; background: rgba(0,0,0,0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--taupe); pointer-events: none; opacity: 0; transition: opacity 200ms var(--ease) 0ms; }
.viewer-page.loading .loading-pill { opacity: 1; transition-delay: 300ms; }
#pano .pnlm-about-msg { display: none !important; }
.scrim-top { position: absolute; left: 0; right: 0; top: 0; height: calc(90px + var(--safe-top)); background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0)); pointer-events: none; }
.v-head { position: absolute; left: 0; right: 0; top: 0; padding: calc(10px + var(--safe-top)) 0 0; display: flex; flex-direction: column; gap: 10px; }
.v-title { display: flex; align-items: center; gap: 6px; padding: 0 12px 0 8px; }
.room-select { position: relative; flex: 0 1 auto; min-width: 0; display: flex; align-items: center; }
.room-select select { appearance: none; -webkit-appearance: none; max-width: 100%; height: 40px; padding: 0 34px 0 14px; border-radius: 20px; border: 1px solid rgba(252,252,250,0.55); background: rgba(0,0,0,0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--hb-white); font: 500 15px/1 var(--sans); text-overflow: ellipsis; cursor: pointer; }
.room-select select:focus-visible { outline: 2px solid var(--peach); outline-offset: 2px; }
.room-select svg { position: absolute; right: 12px; pointer-events: none; color: var(--hb-white); }
.viewer-page .chip { color: var(--hb-white); border-color: rgba(252,252,250,0.55); background: rgba(0,0,0,0.25); }
.viewer-page .chip[aria-current="true"] { background: var(--hb-white); color: var(--hb-black); border-color: var(--hb-white); }
.v-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.v-bottom > * { pointer-events: auto; }
.panel { padding: 0 16px calc(45px + var(--safe-bottom)); }
.panel-inner { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.round-btn { width: 44px; height: 44px; border-radius: 22px; background: var(--hb-white); border: 1px solid var(--hb-white); color: var(--hb-black); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; }
.timeline { padding-top: 8px; touch-action: none; cursor: pointer; }
.scrubber { position: relative; height: 44px; touch-action: none; cursor: pointer; outline: none; }
.scrubber::before { content: ""; position: absolute; left: 11px; right: 11px; top: 21px; height: 2px; background: rgba(252,252,250,0.7); box-shadow: 0 0 4px rgba(0,0,0,0.6); }
.tick { position: absolute; top: 15px; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: rgba(252,252,250,0.9); box-shadow: 0 0 4px rgba(0,0,0,0.6); }
.tick.cur { background: var(--peach); }
.thumb { position: absolute; top: 11px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--peach); border: 2px solid var(--hb-white); box-shadow: 0 2px 8px rgba(0,0,0,0.4); pointer-events: none; }
.scrubber:focus-visible .thumb { outline: 2px solid var(--hb-white); outline-offset: 2px; }
.tick-labels { position: relative; height: 18px; margin-bottom: -8px; }
.tick-labels span:first-child { transform: none; margin-left: -11px; }
.tick-labels span:last-child { transform: translateX(-100%); margin-left: 11px; }
.tick-labels span { position: absolute; top: 0; transform: translateX(-50%); font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--hb-white); text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 0 6px rgba(0,0,0,0.6); }
.tick-labels span.cur { color: var(--peach); font-weight: 700; }



.pin-ok { --pin: #3F9A62; }
.pin-review { --pin: #D9A23A; }
.pin-part { --pin: var(--toast); }
.pin-none { --pin: #A8A8A3; }
.pinned-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; color: var(--hb-black); text-underline-offset: 3px; }
.pinned-link svg { width: 18px; height: 18px; }


.pin-hs { width: 18px; height: 18px; }
.pin-dot, .pin-pulse { position: absolute; inset: 0; border-radius: 50%; background: var(--pin); }
.pin-dot { border: 2px solid var(--hb-white); box-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.pin-pulse { animation: pin-pulse 2.2s ease-out infinite; }
.pin-stem { position: absolute; left: 8px; bottom: 16px; width: 2px; height: 52px; background: rgba(252,252,250,0.92); box-shadow: 0 0 3px rgba(0,0,0,0.6); pointer-events: none; }
.pin-card {
  position: absolute; left: 50%; bottom: 68px; transform: translateX(-50%);
  width: 192px; height: 54px; padding: 5px 12px 5px 5px; border: 0; border-radius: 10px;
  background: rgba(252,252,250,0.96); color: var(--hb-black); display: flex; align-items: center; gap: 10px;
  text-align: left; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.pin-card img { width: 44px; height: 44px; border-radius: 6px; object-fit: contain; background: #fff; flex: none; }
.pin-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pin-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-state { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #55555B; white-space: nowrap; }
.pin-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--pin); flex: none; }

.viewer-page.pin-open .pin-card, .viewer-page.pin-open .pin-stem { visibility: hidden !important; }

.pin-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  max-height: min(70vh, 660px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--hb-white); color: var(--hb-black); border-radius: 16px 16px 0 0;
  padding: 8px 16px calc(20px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.3); animation: sheet-up 280ms cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 640px) {
  .pin-sheet { left: auto; right: 16px; bottom: 16px; width: 400px; border-radius: 16px; max-height: calc(100vh - 32px); }
}
.pin-sheet :focus-visible { outline-color: var(--blue); }
.ps-handle { align-self: center; width: 36px; height: 4px; border-radius: 2px; background: rgba(53,53,53,0.25); flex: none; }
.ps-head { display: flex; align-items: flex-start; gap: 8px; }
.ps-head h2 { margin: 6px 0 0; font-size: 24px; line-height: 1.1; outline: none; }
.ps-eyebrow { color: var(--dark-gray); }
.ps-close { margin: -6px -10px 0 0; }
.ps-photo { position: relative; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--taupe); flex: none; }
.ps-photo img { width: 100%; height: 100%; object-fit: cover; }
.ps-date { position: absolute; left: 10px; bottom: 10px; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(0,0,0,0.6); color: var(--hb-white); display: flex; align-items: center; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.ps-note { margin: 0; font-size: 14px; color: var(--dark-gray); }
.ps-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; line-height: 1.35; }
.ps-chip { flex: none; height: 28px; padding: 0 12px; border-radius: 14px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; white-space: nowrap; }
.ps-chip.ok { background: #D6F0DD; color: #1E6B3A; }
.ps-chip.review { background: #FBEBC8; color: #6E4B0C; }
.ps-chip.part { background: #F3E3D3; color: #6E4524; }
.ps-chip.none { background: var(--taupe); color: #55555B; }
.ps-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.ps-items li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.ps-refs { display: flex; flex-direction: column; gap: 4px; flex: none; }
.ps-refs img { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--hairline); }
.ps-item { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.ps-cat { font-weight: 500; }
.ps-attrs, .ps-alt { font-size: 13px; color: var(--dark-gray); margin-top: 2px; }
.ps-alt { margin-top: 6px; }
.ps-hist { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 6px; }
.ps-hist button { padding: 0; border: 0; background: transparent; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--dark-gray); cursor: pointer; }
.ps-hist img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 2px solid transparent; }
.ps-hist button[aria-pressed="true"] { color: var(--hb-black); font-weight: 500; }
.ps-hist button[aria-pressed="true"] img { border-color: var(--hb-black); }
.ps-source { margin: 0; font-size: 12px; line-height: 1.4; color: var(--dark-gray); }
@keyframes pin-pulse { 0% { transform: scale(1); opacity: 0.75; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pin-pulse, .pin-sheet { animation: none; } }


.calib { position: absolute; left: 50%; top: calc(62px + var(--safe-top)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(340px, calc(100% - 32px)); }
.calib[hidden], .calib [hidden] { display: none; }
.calib-begin { color: var(--hb-white); border-color: rgba(252,252,250,0.55); background: rgba(0,0,0,0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); height: 40px; padding: 0 16px; }
.calib-note { display: flex; align-items: center; gap: 10px; height: 28px; padding: 0 12px; border-radius: 14px; background: rgba(0,0,0,0.45); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--peach); }
.calib-note button { border: 0; background: none; color: var(--hb-white); font: inherit; text-decoration: underline; padding: 0; cursor: pointer; }
.calib-card { position: absolute; left: 50%; bottom: calc(115px + var(--safe-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 26px; background: rgba(0,0,0,0.28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.calib-card[hidden] { display: none; }
.calib-deg { min-width: 92px; text-align: center; font-size: 24px; line-height: 1; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,0.7); }
.calib-card .pill { height: 40px; padding: 0 14px; color: var(--hb-white); border-color: rgba(252,252,250,0.6); background: transparent; }
.calib-card .pill.solid { background: var(--hb-white); color: var(--hb-black); border-color: var(--hb-white); }


.ht-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 2px dashed rgba(255,77,77,0.8); transform: translateX(-1px); pointer-events: none; }
.ht-cross { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); pointer-events: none; }
.ht-cross::before, .ht-cross::after { content: ""; position: absolute; background: #FF4D4D; box-shadow: 0 0 0 1px rgba(0,0,0,0.45); }
.ht-cross::before { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.ht-cross::after { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.ht-panel { margin: 0 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,77,77,0.55); display: flex; flex-direction: column; gap: 8px; }
.ht-steps { font-size: 13px; line-height: 1.35; color: var(--taupe); }
.ht-steps.ok { color: #9BE3B1; }
.ht-read { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ht-read div { display: flex; flex-direction: column; gap: 2px; }
.ht-read .label { font-size: 11px; color: var(--peach); }
.ht-read b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1; }
.ht-actions { display: flex; gap: 8px; }
.ht-actions [hidden] { display: none; }
.ht-actions .pill { color: var(--hb-white); border-color: rgba(252,252,250,0.55); height: 44px; padding: 0 14px; }
.ht-actions .pill.solid { background: #FF4D4D; border-color: #FF4D4D; color: #fff; flex: 1; }
.ht-actions .pill[disabled] { opacity: 0.45; }
.ht-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  max-height: min(80vh, 700px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--hb-white); color: var(--hb-black); border-radius: 16px 16px 0 0;
  padding: 8px 16px calc(20px + var(--safe-bottom)); display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
}
@media (min-width: 640px) { .ht-sheet { left: auto; right: 16px; bottom: 16px; width: 420px; border-radius: 16px; } }
.ht-summary { margin: 0; font-size: 14px; line-height: 1.4; }
.ht-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ht-table th, .ht-table td { text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--hairline); }
.ht-table th:first-child, .ht-table td:first-child { text-align: left; }
.ht-table th { font-size: 12px; font-weight: 500; color: var(--dark-gray); }
.ht-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.ht-list li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.ht-sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; }
