/* Manultas demo: the account in the header, sign-in, plan locks, publishing (site/account.js) */
[data-account] { display: flex; align-items: center; gap: 10px; }
.mn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 4px; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 500 13px/1 "IBM Plex Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.03em; color: #e7edf7; background: transparent; border: 1px solid rgba(140, 170, 220, 0.3); }
.mn-btn:hover { border-color: #ffb547; }
.mn-btn.primary { background: #e7edf7; color: #04060b; border-color: #e7edf7; }
.mn-btn.primary:hover { background: #fff; }
.mn-btn.signal { background: #ffb547; color: #04060b; border-color: #ffb547; }
.mn-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.mn-demo { position: relative; }
.mn-demo-b { font: 500 11px/1 "IBM Plex Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.1em; text-transform: uppercase; color: #ffb547; background: transparent;
  border: 1px solid rgba(255, 181, 71, 0.45); padding: 6px 10px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.mn-demo-b span { opacity: 0.7; margin-right: 2px; }
.mn-demo-b i { font-style: normal; opacity: 0.8; }
.mn-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 210px; padding: 6px; background: #0a0f1b; border: 1px solid rgba(140, 170, 220, 0.24); border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); display: grid; font: 13px/1.4 "IBM Plex Sans", system-ui, sans-serif; }
.mn-menu[hidden] { display: none; }
.mn-menu p { margin: 0; padding: 8px 10px 6px; color: #7f8ba3; font-size: 12px; }
.mn-menu p b { color: #e7edf7; font-weight: 600; }
.mn-menu a, .mn-menu button { display: block; text-align: left; padding: 8px 10px; border-radius: 4px; color: #e7edf7; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.mn-menu a:hover, .mn-menu button:hover { background: rgba(140, 170, 220, 0.1); }
.mn-me { position: relative; }
.mn-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(140, 170, 220, 0.35); background: #16213a; color: #e7edf7; font: 600 14px/1 "IBM Plex Sans", system-ui, sans-serif; cursor: pointer; }
.mn-credits { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(140, 170, 220, 0.24); color: #e7edf7; text-decoration: none;
  font: 500 12px/1 "IBM Plex Mono", ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mn-credits i { width: 7px; height: 7px; transform: rotate(45deg); background: #ffb547; box-shadow: 0 0 6px #ffb547; }
.mn-credits span { color: #7f8ba3; }
@media (max-width: 720px) { .mn-credits span { display: none; } [data-account] .mn-btn:not(.primary) { display: none; } }

.mn-dlg { width: min(440px, calc(100vw - 32px)); box-sizing: border-box; padding: 26px; background: #0a0f1b; color: #c9d3e4; border: 1px solid rgba(140, 170, 220, 0.24); border-radius: 10px;
  font: 14px/1.55 "IBM Plex Sans", system-ui, sans-serif; }
.mn-dlg::backdrop { background: rgba(0, 0, 0, 0.65); }
.mn-dlg form { display: grid; gap: 10px; position: relative; }
.mn-dlg h3 { margin: 0; color: #e7edf7; font: 600 22px/1.2 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: -0.01em; }
.mn-dlg .mn-lead { margin: 0 0 8px; color: #7f8ba3; }
.mn-x { position: absolute; right: -10px; top: -14px; width: 32px; height: 32px; border: 0; background: none; color: #7f8ba3; font-size: 22px; cursor: pointer; }
.mn-x:hover { color: #e7edf7; }
.mn-google { display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; border-radius: 4px; border: 1px solid #dadce0; background: #fff; color: #1f1f1f; cursor: pointer;
  font: 500 14px/1 "IBM Plex Sans", system-ui, sans-serif; }
.mn-google svg { width: 18px; height: 18px; }
.mn-google:hover { background: #f5f7fb; }
.mn-or { display: flex; align-items: center; gap: 12px; color: #7f8ba3; font-size: 12px; margin: 4px 0; }
.mn-or::before, .mn-or::after { content: ""; flex: 1; height: 1px; background: rgba(140, 170, 220, 0.18); }
.mn-l { color: #7f8ba3; font: 500 11px/1 "IBM Plex Mono", ui-monospace, Menlo, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.mn-dlg input, .mn-dlg textarea { box-sizing: border-box; width: 100%; background: #04060b; color: #e7edf7; border: 1px solid rgba(140, 170, 220, 0.24); border-radius: 4px; padding: 10px 12px;
  font: 14px/1.4 "IBM Plex Sans", system-ui, sans-serif; resize: vertical; }
.mn-dlg input:focus, .mn-dlg textarea:focus { outline: 1px solid #ffb547; border-color: #ffb547; }
.mn-wide { width: 100%; height: 42px; }
.mn-small { margin: 0; color: #7f8ba3; font-size: 12px; line-height: 1.5; }
.mn-small a { color: #c9d3e4; }
.mn-note:empty { display: none; }
.mn-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }

.mn-toast { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 6px; background: #e7edf7; color: #04060b; font: 500 13px/1.4 "IBM Plex Sans", system-ui, sans-serif;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); transition: opacity 0.2s, transform 0.2s; }
.mn-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* the trace page's start card, by plan */
.mn-lock { display: grid; gap: 8px; justify-items: center; text-align: center; margin: 12px 0 4px; padding: 18px; border: 1px dashed rgba(255, 181, 71, 0.4); border-radius: 8px;
  background: rgba(255, 181, 71, 0.04); font: 14px/1.5 "IBM Plex Sans", system-ui, sans-serif; }
.mn-lock b { color: #e7edf7; font-weight: 600; }
.mn-lock p { margin: 0; color: #9fb0cc; max-width: 46ch; }
.mn-lock div { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.mn-rows-note { margin: 6px 0 0; color: #7f8ba3; font: 12px/1.4 "IBM Plex Sans", system-ui, sans-serif; text-align: center; }
.mn-rows-note a { color: #ffb547; }
/* by plan: reading a panorama again is Pro and Max (hidden); replay shows for everyone and asks for Pro or Max (account.js) */
html:is([data-mn-plan="visitor"], [data-mn-plan="free"]) .ng-pano-again { display: none !important; }
/* the maps: saving to the gallery, choosing the cover, the reader's own labels */
.mn-save[hidden] { display: none !important; }
.mn-save svg { width: 16px; height: 16px; }
.mn-pickbar { position: fixed; z-index: 40; left: 50%; top: 70px; transform: translateX(-50%); width: min(760px, calc(100vw - 32px)); box-sizing: border-box;
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px 12px 18px; border-radius: 8px;
  background: rgba(10, 15, 27, 0.96); border: 1px solid rgba(255, 181, 71, 0.55); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); color: #c9d3e4; font: 13px/1.5 "IBM Plex Sans", system-ui, sans-serif; }
.mn-pickbar[hidden] { display: none; }
.mn-pickbar p { margin: 0; flex: 1 1 300px; }
.mn-pickbar b { color: #e7edf7; }
.mn-pickbar .mn-pickn { color: #ffb547; }
.mn-pickbar div { display: flex; gap: 8px; }
body.mn-picking :is(.ng-pn, .ng-node) { cursor: crosshair; }
.mn-picked > :is(circle, rect, path, polygon):first-of-type { stroke: #ffb547 !important; stroke-width: 3px !important; filter: drop-shadow(0 0 6px #ffb547); }
.mn-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 8px; padding: 7px 10px; border-radius: 6px; background: rgba(255, 181, 71, 0.08);
  border: 1px solid rgba(255, 181, 71, 0.3); font: 13px/1.4 "IBM Plex Sans", system-ui, sans-serif; }
.mn-label-k { color: #b99a6a; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.mn-label b { color: #ffb547; font-weight: 600; }
.mn-label button { margin-left: auto; padding: 3px 8px; border-radius: 4px; border: 1px solid rgba(255, 181, 71, 0.4); background: none; color: #ffb547; cursor: pointer; font: 500 12px/1.3 "IBM Plex Sans", system-ui, sans-serif; }
.mn-label button + button { margin-left: 0; }
.mn-label input { flex: 1 1 140px; min-width: 0; padding: 5px 8px; border-radius: 4px; border: 1px solid rgba(255, 181, 71, 0.4); background: #04060b; color: #e7edf7; font: 13px/1.3 "IBM Plex Sans", system-ui, sans-serif; }
.mn-vis { margin: 4px 0 0; padding: 0; border: 0; display: grid; gap: 8px; }
.mn-vis legend { margin-bottom: 8px; padding: 0; }
.mn-vis label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(140, 170, 220, 0.2); cursor: pointer; }
.mn-vis label:has(input:checked) { border-color: #ffb547; background: rgba(255, 181, 71, 0.05); }
.mn-vis input { margin-top: 3px; accent-color: #ffb547; width: auto; }
.mn-vis span { display: grid; gap: 2px; }
.mn-vis b { color: #e7edf7; font-weight: 600; }
.mn-vis small { color: #7f8ba3; font-size: 12px; }
.mn-tips { display: grid; gap: 8px; }
.mn-tips[hidden] { display: none; }
.mn-tips div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mn-pub .mn-cover-n { margin-top: -4px; }
.mn-pub { width: min(620px, calc(100vw - 32px)); }
.mn-cover { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; border: 1px solid rgba(140, 170, 220, 0.2); background: #060a14 radial-gradient(circle, rgba(140, 170, 220, 0.12), transparent 60%); }
.mn-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mn-cover img:not([src]) { visibility: hidden; }
.ng-start-add:disabled { opacity: 0.35; cursor: not-allowed; }
.mn-share { width: 100%; accent-color: #ffb547; padding: 0 !important; border: 0 !important; background: none !important; }
.mn-share-v { color: #ffb547; }
.mn-pub .mn-cover { width: min(100%, calc(32vh * 16 / 9)); justify-self: center; }
.mn-pub { max-height: calc(100vh - 32px); overflow: auto; }
.mn-sel { box-sizing: border-box; width: 100%; background: #04060b; color: #e7edf7; border: 1px solid rgba(140, 170, 220, 0.24); border-radius: 4px; padding: 10px 12px; font: 14px/1.4 "IBM Plex Sans", system-ui, sans-serif; }
.mn-ts:empty { display: none; }
.mn-ts { min-height: 65px; }
