/* Layout only. Colors, fonts and shapes come from the tour's skin (skins/<id>/skin.css),
   which sets the --a3-* variables below and may restyle any element. */
:root {
  --a3-bg: #111111;
  --a3-panel: rgba(20, 20, 20, .72);
  --a3-line: rgba(255, 255, 255, .14);
  --a3-text: #f4f4f2;
  --a3-muted: rgba(244, 244, 242, .7);
  --a3-accent: #EF644C;
  --a3-accent-text: #121212;
  --a3-radius: 4px;
  --a3-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --a3-title-font: var(--a3-font);
  --a3-scene-bg: #15171a;   /* behind the model in the 3D and floor plan views */
  --a3-scene-text: #f4f4f2; /* text on that backdrop (the loading screen); a skin with a light backdrop sets it dark */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* e.g. the empty 360-views bar (it is display:flex otherwise) */
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--a3-bg); color: var(--a3-text);
  font: 14px/1.4 var(--a3-font); }
body { background: var(--a3-scene-bg); background-attachment: fixed; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
/* loading screen: covers the tour until the opening view is sharp enough (viewer.js "start"); the skin's
   logo and the Aero3D logo stay on top of it */
#loader { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; background: var(--a3-scene-bg);
  background-attachment: fixed; transition: opacity .6s ease, visibility .6s; }
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-in { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 0 24px; max-width: 100%; }
.loader-title { font: 400 clamp(22px, 4.5vw, 34px)/1.2 var(--a3-title-font); color: var(--a3-scene-text); text-align: center;
  min-height: 1.2em; }
.loader-bar { width: min(220px, 60vw); height: 2px; border-radius: 1px; overflow: hidden;
  background: color-mix(in srgb, var(--a3-scene-text) 18%, transparent); }
.loader-bar i { display: block; height: 100%; width: 4%; background: var(--a3-accent); transition: width .35s ease; }
.loader-brand { height: 24px; width: auto; opacity: .92; margin-bottom: 6px; }
body.loading #skin-logo { z-index: 11; }
body.loading #brand { visibility: hidden; }   /* the loading screen shows the Aero3D logo itself */
#view.dragging { cursor: grabbing; }
#view.hot { cursor: pointer; }
.glass { position: fixed; background: var(--a3-panel); border: 1px solid var(--a3-line); border-radius: var(--a3-radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
#top { top: 16px; left: 16px; padding: 8px 14px; font: 600 14px var(--a3-title-font); max-width: calc(100% - 180px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tools { top: 16px; right: 16px; display: flex; gap: 4px; padding: 4px; transition: right .2s; }
.tool { width: 38px; height: 38px; border: 0; border-radius: calc(var(--a3-radius) * .75); background: transparent; color: var(--a3-text);
  display: grid; place-items: center; cursor: pointer; }
.tool:hover { background: rgba(255, 255, 255, .14); }
.tool[aria-pressed="true"] { background: var(--a3-accent); color: var(--a3-accent-text); }
.tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }
/* bottom bar: ‹ 18 / 72 › | Sees 3D Plaan | 360 fotod */
#bar { left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 4px;
  white-space: nowrap; max-width: calc(100% - 24px); z-index: 5; }
.bar-steps { display: flex; align-items: center; }
#step-count { min-width: 64px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-sep { width: 1px; align-self: stretch; margin: 6px 4px; background: var(--a3-line); }
.bar-btn { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px 0 10px; border: 0;
  border-radius: calc(var(--a3-radius) * .75); background: transparent; color: var(--a3-text);
  font: 600 13px var(--a3-font); cursor: pointer; }
.bar-btn:hover { background: rgba(255, 255, 255, .14); }
.bar-btn[aria-pressed="true"], .bar-btn.active { background: var(--a3-accent); color: var(--a3-accent-text); }
.bar-btn[aria-expanded="true"]:not(.active) { background: rgba(255, 255, 255, .18); }
.bar-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* 360 views: preview cards above the bar */
#views { left: 50%; bottom: 70px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px;
  max-width: calc(100% - 32px); overflow-x: auto; z-index: 5; }
#views button { display: flex; flex-direction: column; gap: 5px; width: 128px; flex: none; padding: 4px 4px 6px; border: 0;
  border-radius: calc(var(--a3-radius) * .75); background: transparent; color: var(--a3-text); cursor: pointer; font: 600 12px var(--a3-font); }
#views button img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: rgba(255, 255, 255, .08);
  border-radius: calc(var(--a3-radius) * .6); }
#views button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
#views button:hover { background: rgba(255, 255, 255, .12); }
#views button.active { background: var(--a3-accent); color: var(--a3-accent-text); }

/* minimap: current storey from above, a dot per point, the current one with its viewing direction */
#minimap { left: 16px; bottom: 16px; width: min(var(--mm-w, 220px), 38vw); padding: 5px; z-index: 4; }
.mm-inner { position: relative; }
#mm-img { display: block; width: 100%; height: 100%; border-radius: calc(var(--a3-radius) * .6); }
#mm-dots { position: absolute; inset: 0; }
.mm-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; padding: 0; border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, .55); background: #fff; cursor: pointer; transition: transform .12s; }
.mm-dot:hover { transform: scale(1.45); }
.mm-dot.off { background: rgba(255, 255, 255, .25); border-style: dashed; border-color: rgba(255, 255, 255, .7); }
.mm-dot.cur { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; background: var(--a3-accent); border: 2px solid #fff; z-index: 2; }
#mm-cone { position: absolute; width: 34px; height: 30px; transform-origin: 50% 100%; pointer-events: none; z-index: 1;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: linear-gradient(to top, color-mix(in srgb, var(--a3-accent) 75%, transparent), transparent); }
@media (max-width: 700px) {
  .bar-btn span { display: none; }
  .bar-btn { padding: 0 9px; }
  #step-count { min-width: 52px; }
  #minimap { bottom: 66px; left: 12px; width: min(var(--mm-w, 220px), 42vw); }
  #views { bottom: 66px; }
}
/* logo, bottom right: plain mark over the tour (no panel), clearer under the pointer */
#brand { position: fixed; right: 20px; bottom: 15px;   /* the wordmark's bottom edge on the bar's (#bar bottom 16px; the PNG has ~1px clear below) */
   z-index: 4; display: flex; align-items: center; opacity: .85;
  /* soft dark halo: stays readable on white walls and light floors without a panel behind it */
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, .5)) drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); transition: opacity .2s; }
#brand[href]:hover { opacity: 1; }
#brand img { width: auto; }
#brand .brand-word { display: block; height: 18px; }
#brand .brand-mark { display: none; height: 22px; }   /* phones: the mark only */
#brand.own .brand-mark { filter: brightness(0) invert(1); }   /* Aero3D's mark file is grey */
/* a client skin's own logo (skin.json "logo"): top left unless the skin places it elsewhere */
#skin-logo { position: fixed; top: 16px; left: 16px; z-index: 4; display: block; }
#skin-logo img { display: block; height: 56px; width: auto; }
body.trimming #skin-logo { display: none; }
@media (max-width: 700px) {
  #brand { bottom: 74px; right: 14px; }
  #brand .brand-word { display: none; }
  #brand .brand-mark { display: block; }
}
body.editing #brand { right: 76px; }
body.editing.panel-open #brand { right: 364px; }
body.trimming #brand { display: none; }
#toast { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 30; background: var(--a3-panel);
  border: 1px solid var(--a3-line); border-radius: var(--a3-radius); padding: 8px 14px; }
@media (max-width: 600px) {
  #top { top: 12px; left: 12px; }
  #tools { top: 12px; right: 12px; }
}

/* ---------- Studio editor (?edit): fixed Studio look, independent of the tour's skin ---------- */
#editor { display: none; }
body.editing #editor { display: flex; position: fixed; top: 0; right: 0; bottom: 0; z-index: 20;
  font: 13px/1.4 Manrope, system-ui, sans-serif; color: #fff; }
body.editing #tools { right: 72px; }
body.editing.panel-open #tools { right: 360px; }
body.editing #views, body.editing #bar { left: calc(50% - 28px); }   /* centred in the area left of the rail (56) */
body.editing.panel-open #views, body.editing.panel-open #bar { left: calc(50% - 172px); }   /* rail + panel (288) */
#ed-rail { width: 56px; background: #262626; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; order: 2; }
.ed-tool, .ed-icon { display: grid; place-items: center; border: 0; background: transparent; color: #D4D4D8; cursor: pointer; border-radius: 6px; }
.ed-tool { width: 44px; height: 44px; }
.ed-tool:hover { background: #3A3A3A; color: #fff; }
.ed-tool.on { background: #EF644C; color: #121212; }
.ed-tool svg, .ed-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ed-icon { width: 30px; height: 30px; flex: none; }
.ed-icon svg { width: 16px; height: 16px; }
.ed-icon:hover { color: #fff; background: #3A3A3A; }
#ed-panel { width: 288px; background: #232323; border-left: 1px solid #333; display: flex; flex-direction: column; min-height: 0; order: 1; }
#ed-panel[hidden] { display: none; }
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 10px 14px; border-bottom: 1px solid #333; }
.ed-head b { font: 700 15px 'Plus Jakarta Sans', Manrope, sans-serif; }
.ed-head span { font-size: 12px; color: #9A9A9A; margin-left: 4px; }
.ed-tools { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid #333; }
.ed-hint { margin: 0; font-size: 11.5px; color: #9A9A9A; text-align: center; }
.ed-search { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid #3A3A3A; border-radius: 6px; background: #1B1B1B; color: #9A9A9A; }
.ed-search svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.ed-search input { border: 0; outline: 0; background: transparent; color: #fff; font: inherit; width: 100%; }
.ed-seg { display: flex; border: 1px solid #3A3A3A; border-radius: 6px; overflow: hidden; }
.ed-seg button { flex: 1; height: 28px; border: 0; background: transparent; color: #D4D4D4; font: 500 11px Manrope, sans-serif; cursor: pointer; }
.ed-seg button + button { border-left: 1px solid #3A3A3A; }
.ed-seg button.on { background: #fff; color: #121212; font-weight: 700; }
.ed-list { list-style: none; margin: 0; padding: 6px 8px 8px; flex: 1; min-height: 0; overflow-y: auto; }
.ed-list li { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 2px 0 8px; border-radius: 6px; cursor: pointer; color: #fff; }
.ed-list li.tall { height: auto; min-height: 34px; padding-top: 4px; padding-bottom: 4px; }
.ed-list li:hover { background: #2C2C2C; }
.ed-list li.cur { background: #333; font-weight: 700; }
.ed-list li.off { color: #8A8A8A; }
.ed-list li > i { width: 6px; height: 6px; border-radius: 50%; background: #C8C8C8; flex: none; }
.ed-list li.off > i { background: #4A4A4A; }
.ed-list li.cur > i { background: #EF644C; }
.ed-list li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ed-list li small { font-size: 10px; color: #9A9A9A; }
.ed-list li.empty { color: #8A8A8A; cursor: default; }
.ed-list li[aria-checked="true"] { outline: 2px solid #EF644C; outline-offset: -2px; }
.ed-list s { opacity: .55; }
.ed-list li.busy { cursor: progress; opacity: .7; }
.ed-bar { height: 6px; border-radius: 3px; background: #333; overflow: hidden; }
.ed-bar > i { display: block; height: 100%; background: #EF644C; transition: width .3s; }
.ed-foot { padding: 8px 14px; border-top: 1px solid #333; font-size: 11.5px; color: #9A9A9A; }
.ed-foot .warn, .warn { color: #FDBA74; }
.ed-text { margin: 12px 14px; color: #B5B5B5; font-size: 12px; line-height: 1.45; }   /* directly in the panel */
.ed-tools .ed-text { margin: 0; }   /* inside a padded section */
.ed-text b { color: #fff; }
.ed-text.muted { color: #8A8A8A; font-size: 11.5px; }
.ed-label { font-size: 12px; font-weight: 600; }
.ed-input { flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid #3A3A3A; border-radius: 6px; background: #1B1B1B; color: #fff; font: inherit; }
.ed-input:focus { border-color: #EF644C; outline: none; }
.ed-btn { min-height: 34px; padding: 6px 12px; border: 1px solid #4A4A4A; border-radius: 6px; background: transparent; color: #fff; font: 600 12px/1.3 Manrope, sans-serif; cursor: pointer; text-align: center; white-space: normal; }
.ed-btn.primary { background: #EF644C; border-color: #EF644C; color: #121212; font-weight: 700; }
.ed-btn:not(:disabled):hover { border-color: #7A7A7A; }
.ed-btn.primary:not(:disabled):hover { background: #F27A64; border-color: #F27A64; }
.ed-btn.sm { min-height: 26px; padding: 3px 8px; font-size: 11.5px; white-space: nowrap; flex: none; }
.ed-btn:disabled { opacity: .45; cursor: default; }
/* on/off options: text on the left, a switch on the right */
.ed-check { display: flex; align-items: center; gap: 12px; padding: 5px 0; font-size: 12.5px; line-height: 1.35; cursor: pointer; }
.ed-check input { order: 2; flex: none; margin: 0 0 0 auto; appearance: none; -webkit-appearance: none; position: relative;
  width: 34px; height: 20px; border-radius: 999px; background: #4A4A4A; cursor: pointer; transition: background .2s; }
.ed-check input::before { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: transform .2s cubic-bezier(.16, 1, .3, 1); }
.ed-check input:checked { background: #EF644C; }
.ed-check input:checked::before { transform: translateX(14px); }
.ed-check input:focus-visible { outline: 2px solid #EF644C; outline-offset: 2px; }
.ed-check:has(input:disabled) { opacity: .45; cursor: default; }
.ed-check input:disabled { cursor: default; }
.start-shot { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #1B1B1B; cursor: pointer; }
.ed-row { display: flex; align-items: flex-end; gap: 6px; }
.ed-row > .ed-btn { flex: 1; }
.ed-field { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; font-size: 11px; color: #9A9A9A; }
.ed-field .ed-input { flex: none; width: 100%; }
select.ed-input { cursor: pointer; }
/* 360 photos: the whole photo (2:1) with its name and buttons under it */
.ed-list li.v360 { flex-direction: column; align-items: stretch; gap: 8px; height: auto; padding: 8px; margin-bottom: 8px;
  background: #2A2A2A; border-radius: 8px; cursor: pointer; }
.ed-list li.v360:hover { background: #303030; }
.ed-list li.v360 .eq { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 5px; background: #1B1B1B; cursor: grab; }
.ed-list li.v360 .eq:active { cursor: grabbing; }
.ed-list li.v360.off .eq { opacity: .45; }
.ed-list li.v360.cur { box-shadow: inset 0 0 0 1px #6B6B6B; }
.ed-list li.v360.sel { box-shadow: inset 0 0 0 2px #EF644C; background: #2E2522; cursor: default; }
.v360-name { display: flex; align-items: center; gap: 2px; }
.v360-name .ed-input { margin-right: 4px; }
.v360-props { display: grid; grid-template-columns: 50px 1fr; gap: 8px 8px; align-items: center; margin: 2px 0 0; padding-top: 10px; border-top: 1px solid #3D3330; }
.v360-props dt { font-size: 11.5px; color: #9A9A9A; }
.v360-props dd { margin: 0; display: flex; align-items: center; gap: 4px; min-width: 0; }
.v360-props dd > span { flex: 1; min-width: 0; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v360-props dd > span.muted { color: #8A8A8A; }
.v360-props em { font-style: normal; font-size: 10.5px; color: #9A9A9A; margin-left: 2px; }
.ed-spots { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 2px; }
.ed-spots li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 4px 3px 8px; border-radius: 4px; background: #2b2b2b; font-size: 12.5px; }
.ed-spots li.empty { background: none; padding-left: 0; color: #B5B5B5; font-size: 12px; }
.ed-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px dashed #EF644C; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 600; cursor: grab; user-select: none; }
.ed-chip:active { cursor: grabbing; }

/* trim editor: views and tools over the 3D view */
#trim-bar { position: fixed; top: 16px; left: calc(50% - 28px); transform: translateX(-50%); z-index: 21; display: flex; align-items: center;
  gap: 6px; padding: 4px; background: #232323; border: 1px solid #3A3A3A; border-radius: 2px; color: #fff;
  font: 600 12px Manrope, system-ui, sans-serif; white-space: nowrap; }
body.editing.panel-open #trim-bar { left: calc(50% - 172px); }
.tb-seg { display: flex; border: 1px solid #3A3A3A; border-radius: 2px; overflow: hidden; }
.tb-seg button, .tb-btn { height: 28px; padding: 0 11px; border: 0; background: transparent; color: #D4D4D4; font: inherit; cursor: pointer; }
.tb-seg button + button { border-left: 1px solid #3A3A3A; }
.tb-seg button.on { background: #fff; color: #121212; }
.tb-btn { border-radius: 2px; }
.tb-btn:hover, .tb-seg button:not(.on):hover { background: #3A3A3A; color: #fff; }
.tb-btn.primary { background: #EF644C; color: #121212; }
.tb-btn.primary:hover { background: #F27A64; color: #121212; }
.tb-sep { width: 1px; align-self: stretch; margin: 4px 0; background: #3A3A3A; }
body.trimming #bar, body.trimming #views, body.trimming #minimap { display: none !important; }
body.trimming #top { display: none; }

/* storey picker (overview modes, tours with several floors) */
.bar-floors { display: flex; gap: 2px; }
.bar-floors .bar-btn { padding: 0 11px; }
.bar-floors .bar-btn b { display: none; font-weight: 700; }
@media (max-width: 700px) {
  .bar-floors .bar-btn b { display: inline; }
}

/* 360 photos no visitor can reach (editor) */
.ed-tool.warn { position: relative; }
.ed-tool.warn::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #FDBA74; box-shadow: 0 0 0 2px #262626; }
.ed-list li.v360.lost { box-shadow: inset 0 0 0 1px #FDBA74; }
.ed-list li.v360.lost.sel { box-shadow: inset 0 0 0 2px #EF644C; }
.v360-warn { margin: 0; font-size: 11.5px; color: #FDBA74; }
.v360-warn::before { content: "⚠ "; }
.v360-fix { font-size: 12px; line-height: 1.45; color: #E5E5E5; background: #3A2A1C; border: 1px solid #6B4A2A; border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.v360-fix b { color: #FDBA74; }
.v360-fix .ed-row { flex-wrap: wrap; gap: 4px; }

/* measuring ("Mõõda"): lines and labels over the view, a magnifier beside the pointer, a hint above the bar */
#view.measuring, #view.measuring.hot { cursor: crosshair; }
#view.measuring.dragging { cursor: grabbing; }
#measure { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
#m-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#m-svg .halo { fill: none; stroke: rgba(0, 0, 0, .5); stroke-width: 5; stroke-linecap: round; }
#m-svg .ln { stroke: #fff; stroke-width: 2.2; stroke-linecap: round; }
#m-svg .end { fill: var(--a3-accent); stroke: #fff; stroke-width: 2; }
#m-svg .behind { opacity: .4; }
#m-svg .behind .ln { stroke-dasharray: 6 5; }
#m-svg .m-ret .ring { fill: rgba(255, 255, 255, .12); stroke: #fff; stroke-width: 2; }
#m-svg .m-ret .halo { stroke-width: 4.5; }
.m-label { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 2px; padding: 3px 3px 3px 10px;
  border-radius: 999px; background: rgba(18, 18, 18, .84); color: #fff; font: 700 13px/1 var(--a3-font);
  font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: auto; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.m-label button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .8);
  font: 400 17px/1 system-ui, sans-serif; cursor: pointer; padding: 0; }
.m-label button:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.m-label.live { padding: 6px 10px; pointer-events: none; }
.m-label.behind { opacity: .55; }
#m-loupe { position: fixed; left: 0; top: 0; z-index: 6; width: 132px; height: 132px; border-radius: 50%; overflow: hidden;
  border: 2px solid #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, .45); background: var(--a3-scene-bg, #161616); pointer-events: none; }
#m-loupe canvas { width: 100%; height: 100%; display: block; }
#m-loupe::before, #m-loupe::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--a3-accent);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
#m-loupe::before { width: 18px; height: 2px; margin: -1px 0 0 -9px; }
#m-loupe::after { width: 2px; height: 18px; margin: -9px 0 0 -1px; }
#m-hint { left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 8px;
  padding: 4px 4px 4px 14px; max-width: calc(100% - 24px); color: var(--a3-text); font: 500 13px/1.35 var(--a3-font); }
#m-hint .m-done { background: var(--a3-accent); color: var(--a3-accent-text); }
body.editing #m-hint { left: calc(50% - 28px); }
body.editing.panel-open #m-hint { left: calc(50% - 172px); }
@media (max-width: 700px) {
  #m-hint { bottom: 66px; font-size: 12px; }
}

/* name of the 360 photo under the pointer, above its bubble */
#bubble-tip { position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; padding: 5px 10px; border-radius: 999px;
  background: rgba(18, 18, 18, .82); color: #fff; font: 600 12.5px/1.2 var(--a3-font); white-space: nowrap;
  max-width: 260px; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
