/* Live scene. Colours come from the site tokens (gotham.css) when present, so both themes work; the fallbacks
   are the site's day values, for the standalone page. One accent (--hl-accent), no boxes around things. */
.hl { --hl-ink: var(--ink, #1D1D1F); --hl-ash: var(--ash, #6B665E); --hl-line: var(--line, #DCD3C3); --hl-panel: var(--panel, #F4EEE2); --hl-panel-2: var(--panel-2, #EEE7D9);
  --hl-bone: var(--bone, #FBF8F3); --hl-accent: var(--hi, #FF9500); margin-top: clamp(30px, 4.5vw, 52px); min-width: 0; }
.hl-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 78vh; border-radius: 22px; overflow: hidden; background: #0a0908; touch-action: none; }
.hl-stage canvas { display: block; width: 100% !important; height: 100% !important; outline: none; }
.hl-bar { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.hl-status { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0 10px; min-height: 44px; font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--hl-ink); font-variant-numeric: tabular-nums; }
.hl-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--hl-ash); opacity: .55; flex: none; transition: background .2s, opacity .2s; }
.hl-status[data-s="on"] i, .hl-status[data-s="ok"] i { background: var(--hl-accent); opacity: 1; }
.hl-status[data-s="on"] i { animation: hl-pulse 1.4s ease-in-out infinite; }
.hl-status[data-s="off"] { color: var(--hl-ash); font-weight: 400; }
@keyframes hl-pulse { 50% { opacity: .35; } }
.hl-retry { font: inherit; font-weight: 500; color: var(--link, #C45A00); background: none; border: 0; padding: 10px 0; cursor: pointer; }
.hl-retry:hover { text-decoration: underline; }
.hl-btns { display: flex; gap: 8px; }
.hl-btns button { font: inherit; font-size: 15px; font-weight: 500; height: 44px; min-width: 84px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--hl-panel); color: var(--hl-ink); cursor: pointer; transition: background .2s, opacity .2s; }
.hl-btns button:hover:not(:disabled) { background: var(--hl-panel-2); }
.hl-btns button.main { background: var(--hl-ink); color: var(--hl-bone); min-width: 116px; }
.hl-btns button.main:hover:not(:disabled) { background: var(--ink-soft, #424245); }
.hl-btns button:disabled { opacity: .38; cursor: default; }
.hl-btns button:focus-visible, .hl-retry:focus-visible { outline: 2px solid var(--hl-accent); outline-offset: 3px; }
.hl-hint { margin: 6px 0 0; min-height: 1.5em; max-width: 72ch; font-size: 13.5px; line-height: 1.5; color: var(--hl-ash); }
@media (max-width: 760px) {
  .hl-stage { aspect-ratio: 4 / 5; border-radius: 16px; max-height: 70svh; }
  .hl-bar { margin-top: 14px; }
  .hl-btns { width: 100%; }
  .hl-btns button { flex: 1; min-width: 0; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) { .hl-status[data-s="on"] i { animation: none; } }

/* loading / restoring veil over the stage, and the small note while the first plan is computed */
.hl-veil { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #0a0908; color: rgba(255,255,255,.72); font-size: 14px; letter-spacing: -0.005em; pointer-events: none; }
.hl-veil b { width: 96px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; position: relative; }
.hl-veil b::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--hl-accent); border-radius: 2px; animation: hl-slide 1.1s ease-in-out infinite; }
.hl-veil[data-s="off"] b { display: none; }
.hl-note { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgba(20,18,16,.72); color: rgba(255,255,255,.86); font-size: 13px; white-space: nowrap; pointer-events: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@keyframes hl-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .hl-veil b::after { animation: none; width: 100%; opacity: .5; } }
.hl-veil span { max-width: 34ch; text-align: center; line-height: 1.5; padding: 0 20px; }

/* live camera view: the image the policy is given, streamed from the server; click to enlarge */
.hl-cam { position: absolute; right: 14px; top: 14px; z-index: 3; width: min(34%, 300px); padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: zoom-in; box-shadow: 0 6px 24px rgba(0,0,0,.45); line-height: 0; transition: width .25s ease; }
.hl-cam img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hl-cam span { position: absolute; left: 8px; bottom: 7px; padding: 3px 8px; border-radius: 999px; background: rgba(20,18,16,.62); color: rgba(255,255,255,.88); font: 500 11px/1.4 inherit; font-family: inherit; white-space: nowrap; }
.hl-cam.big { width: min(72%, 760px); cursor: zoom-out; }
.hl-cam.only, .hl-cam.only.big { inset: 0; width: 100%; height: 100%; border-radius: 0; cursor: default; box-shadow: none; }
.hl-cam.only img { height: 100%; aspect-ratio: auto; object-fit: contain; }
@media (max-width: 560px) { .hl-cam { width: 44%; right: 10px; top: 10px; } .hl-cam span { display: none; } }
.hl-view { position: absolute; left: 14px; top: 14px; z-index: 4; display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(20,18,16,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hl-view button { font: inherit; font-size: 13px; font-weight: 500; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: rgba(255,255,255,.78); cursor: pointer; transition: background .2s, color .2s; }
.hl-view button[aria-pressed="true"] { background: rgba(255,255,255,.92); color: #141210; }
.hl-view button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .hl-view { left: 10px; top: 10px; } .hl-view button { font-size: 12px; height: 30px; padding: 0 11px; } .hl-cam { top: 52px; } }
.hl-view button:disabled { opacity: .45; cursor: default; }
.hl-pol { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.hl-pol > span { font-size: 14px; color: var(--hl-ash); }
.hl-pol > div { display: flex; flex-wrap: wrap; padding: 3px; gap: 2px; border-radius: 999px; background: var(--hl-panel); }
.hl-pol button { font: inherit; font-size: 14px; font-weight: 500; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--hl-ash); cursor: pointer; transition: background .2s, color .2s; }
.hl-pol button[aria-checked="true"] { background: var(--hl-ink); color: var(--hl-bone); }
.hl-pol button:focus-visible { outline: 2px solid var(--hl-accent); outline-offset: 2px; }
@media (max-width: 560px) { .hl-pol button { padding: 0 12px; font-size: 13px; } }
.hl-camsel { margin-top: 10px; }
.hl-mini { font: inherit; font-size: 13px; font-weight: 500; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--hl-panel); color: var(--hl-ink); cursor: pointer; }
.hl-mini:hover { background: var(--hl-panel-2); }
.hl-mini:focus-visible { outline: 2px solid var(--hl-accent); outline-offset: 2px; }
.hl-layers { margin-top: 10px; }
.hl-layers label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--hl-ink); cursor: pointer; }
.hl-layers input { width: 16px; height: 16px; accent-color: var(--hl-accent); }
.hl-tour { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hl-line); max-width: 72ch; }
.hl-tour-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hl-tour-head b { font-size: 17px; font-weight: 600; color: var(--hl-ink); text-wrap: balance; }
.hl-tour-head span { font-size: 13px; color: var(--hl-ash); white-space: nowrap; }
.hl-tour p { margin: 8px 0 14px; font-size: 15px; line-height: 1.55; color: var(--hl-ink); min-height: 4.6em; }
.hl-tour-nav { display: flex; gap: 8px; }
.hl-tour-nav button { font: inherit; font-size: 14px; font-weight: 500; height: 38px; min-width: 84px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--hl-panel); color: var(--hl-ink); cursor: pointer; }
.hl-tour-nav button.main { background: var(--hl-ink); color: var(--hl-bone); }
.hl-tour-nav button:disabled { opacity: .38; cursor: default; }
.hl-tour-nav button:focus-visible { outline: 2px solid var(--hl-accent); outline-offset: 3px; }
.hl-task { margin-top: 18px; }
.hl-task a { text-decoration: none; display: inline-flex; }
