/* Lakeside IT Assistant. Palette from the tour itself: lake teal, the brass of the floor plates, slate ink. */
:root {
  --lake: #0e4a55;
  --lake-2: #176473;
  --lake-wash: #e2eeec;
  --shallows: #eef3f2;
  --mist: #d5e1df;
  --paper: #ffffff;
  --ink: #1f2a2e;
  --ink-2: #4b5b60;
  --ink-3: #6f7f83;
  --brass: #b08a3e;
  --brass-hi: #d8bd77;
  --brass-lo: #7f6128;
  --alert: #a83a28;
  --amber: #a86a12;
  --moss: #46703f;
  --font-sign: "Bahnschrift", "DIN Alternate", "Segoe UI", "Microsoft JhengHei", sans-serif;
  --font-body: "Segoe UI", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  --font-code: "Cascadia Mono", "Cascadia Code", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--shallows); color: var(--ink); font: 15px/1.55 var(--font-body); }
button, select, textarea, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lake-2); outline-offset: 2px; }
[lang="zh-Hant"] { font-family: var(--font-body); }

/* 11/21 night: the tour fills the window like iStaging on its own; everything else floats over it */
.layout { position: relative; height: 100vh; height: 100dvh; overflow: hidden; background: var(--lake); }

/* ---------------------------------------------------------------- tour */
.tour { position: absolute; inset: 0; background: var(--lake); }
.tour iframe { width: 100%; height: 100%; border: 0; display: block; }
.tour-toast {
  position: absolute; left: 50%; bottom: 180px; z-index: 6; max-width: min(520px, 80%); translate: -50% 0;
  background: rgba(14, 74, 85, .92); color: #fff; padding: 8px 14px; border-radius: 6px;
  font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none;
}
.tour-toast.show { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- assistant column */
.desk { position: absolute; top: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; flex-direction: column; width: min(456px, calc(100vw - 24px)); min-height: 0;
  border-radius: 16px; background: var(--shallows); overflow: hidden; box-shadow: 0 26px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12); transform-origin: 100% 100%; animation: desk-in .24s cubic-bezier(.2, .9, .3, 1); }
.desk[hidden] { display: none; }
.desk.is-big { width: min(760px, calc(100vw - 24px)); }
@keyframes desk-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.desk-head { background: var(--paper); border-bottom: 1px solid var(--mist); padding: 10px 12px 0 16px; }
.desk-bar { display: flex; align-items: flex-start; gap: 8px; }
.desk-bar .brand { flex: 1; min-width: 0; }
.brand h1 { margin: 0; font: 600 18px/1.2 var(--font-sign); color: var(--lake); letter-spacing: .2px; }
.brand h1 span { font: 600 15px var(--font-body); color: var(--ink-2); margin-left: 4px; }
.status { margin: 2px 0 0; overflow: hidden; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.desk-win { display: flex; gap: 2px; flex: none; }
.win-btn { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--ink-2); cursor: pointer; }
.win-btn svg { width: 18px; height: 18px; }
.win-btn:hover, .win-btn[aria-expanded="true"], .win-btn[aria-pressed="true"] { background: var(--shallows); color: var(--lake); }
.desk-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; padding: 8px 10px; border-radius: 9px; background: var(--shallows); font-size: 12.5px; color: var(--ink-2); }
.desk-settings[hidden] { display: none; }
.set-l span[lang] { margin-left: 3px; color: var(--ink-3); }
.status.ok::before, .status.bad::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.status.ok::before { background: var(--moss); }
.status.bad::before { background: var(--alert); }

.controls { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin: 12px 0 10px; }
.room-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 10px; margin: 9px 0 6px; font-size: 12.5px; color: var(--ink-2); }
.room-pick select { width: 100%; padding: 6px 8px; border: 1px solid var(--mist); border-radius: 5px; background: var(--paper); font-size: 14px; }
.room-pick .hint { font-size: 11.5px; color: var(--ink-3); }
.toggles { display: flex; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--mist); border-radius: 5px; overflow: hidden; }
.seg button { border: 0; background: var(--paper); padding: 5px 10px; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--mist); }
.seg button[aria-pressed="true"] { background: var(--lake); color: #fff; }

.tabs { display: flex; gap: 2px; margin: 0 -4px; }
.tabs button {
  border: 0; background: none; padding: 9px 10px 10px; cursor: pointer; font: 500 14px var(--font-sign);
  color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs button span { font-family: var(--font-body); font-size: 13px; }
.tabs button[aria-selected="true"] { color: var(--lake); border-bottom-color: var(--lake); }
.badge-count { display: inline-block; min-width: 20px; padding: 0 5px; border-radius: 10px; background: var(--lake-wash); color: var(--lake); font: 600 12px/18px var(--font-sign); text-align: center; }

.pane { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.pane[hidden] { display: none; }

/* ---------------------------------------------------------------- thread */
.thread { flex: 1; overflow-y: auto; padding: 16px 18px 8px; scroll-behavior: smooth; }
.empty { color: var(--ink-2); max-width: 64ch; }
.empty h2 { font: 600 17px var(--font-sign); color: var(--lake); margin: 4px 0 6px; }
.empty p { margin: 0 0 10px; }
.starter { display: flex; flex-wrap: wrap; gap: 6px; }

.msg { margin: 0 0 18px; }
.msg.user { display: flex; justify-content: flex-end; }
.msg.user .bubble { background: var(--lake-wash); color: var(--ink); padding: 8px 12px; border-radius: 10px 10px 2px 10px; max-width: 85%; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { max-width: 100%; }
.work { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.work .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lake-2); margin-right: 6px; animation: pulse 1s infinite ease-in-out; }
@keyframes pulse { 50% { opacity: .25; } }
.answer { max-width: 70ch; overflow-wrap: anywhere; }
.answer p { margin: 0 0 8px; }
.answer ol, .answer ul { margin: 0 0 8px; padding-left: 22px; }
.answer strong { color: var(--ink); }
.answer .caret { display: inline-block; width: 7px; height: 15px; background: var(--lake-2); vertical-align: -2px; animation: pulse 1s infinite; }
.err { color: var(--alert); font-size: 13px; }

/* ---------------------------------------------------------------- facts card */
.card { margin-top: 10px; background: var(--paper); border: 1px solid var(--mist); border-radius: 6px; padding: 12px 14px 12px; }
.card-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font: 600 17px/1.3 var(--font-sign); color: var(--lake); }
.card-head .sub { font-size: 13px; color: var(--ink-3); }
.kind { font: 500 11.5px var(--font-sign); color: var(--ink-2); border: 1px solid var(--mist); border-radius: 3px; padding: 0 6px; }
.card .text { margin: 6px 0 0; color: var(--ink); max-width: 70ch; }
.card .note { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; max-width: 70ch; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.badge { font-size: 12.5px; padding: 1px 8px; border-radius: 3px; background: var(--shallows); color: var(--ink-2); }
.badge.high, .sev-High, .sev-Critical { background: #f6e3df; color: var(--alert); }
.badge.medium, .sev-Medium { background: #f6ecd9; color: var(--amber); }
.badge.low, .sev-Low { background: #e4eee2; color: var(--moss); }
.sec { margin-top: 12px; }
.sec h4 { margin: 0 0 5px; font: 600 13px var(--font-sign); color: var(--ink-2); }
.items { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  border: 1px solid var(--mist); background: var(--shallows); border-radius: 999px; padding: 2px 10px;
  font-size: 13px; cursor: pointer; text-align: left;
}
.chip:hover { border-color: var(--lake-2); color: var(--lake); }
.chip .tag { color: var(--ink-3); margin-left: 4px; font-size: 12px; }
.roomlink { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 1px 2px; color: var(--lake); cursor: pointer; font-size: 13.5px; text-decoration: underline; text-decoration-color: var(--mist); text-underline-offset: 3px; }
.roomlink:hover { text-decoration-color: var(--lake); }
.roomlink svg { width: 12px; height: 12px; flex: none; }
.tree li { margin: 0 0 6px; }
.tree { margin: 0; padding-left: 18px; }
.tree .subs { display: block; color: var(--ink-2); font-size: 13px; }
.flows { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.flows li { padding: 2px 0; }
.flows .dir { font-family: var(--font-sign); color: var(--lake); margin-right: 4px; }
.flows .data { color: var(--ink-3); }

table.access { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13.5px; }
table.access th { text-align: left; font: 600 12.5px var(--font-sign); color: var(--ink-2); border-bottom: 1px solid var(--mist); padding: 4px 6px; }
table.access td { border-bottom: 1px solid var(--shallows); padding: 5px 6px; vertical-align: top; }
.lvl { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.lvl i { width: 10px; height: 10px; border: 1.5px solid var(--lake); display: inline-block; }
.lvl.write i { background: var(--lake); }
.lvl.read i { background: linear-gradient(90deg, var(--lake) 50%, transparent 50%); }
.lvl.masked i { background: repeating-linear-gradient(45deg, var(--lake) 0 2px, transparent 2px 4px); }
.lvl.admin i { border-style: dashed; }

ol.steps { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: step; }
ol.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 0 10px; padding: 7px 0; border-top: 1px solid var(--shallows); }
ol.steps li::before { counter-increment: step; content: counter(step); font: 600 20px/1.1 var(--font-sign); color: var(--lake); text-align: right; }
.step-meta { font-size: 12.5px; color: var(--ink-3); }
.step-meta b { font-weight: 600; color: var(--ink-2); }
.dont { margin-top: 10px; padding: 8px 10px; background: #f8ece9; border-radius: 4px; font-size: 13.5px; }
.dont h4 { margin: 0 0 3px; font: 600 13px var(--font-sign); color: var(--alert); }
.dont ul { margin: 0; padding-left: 18px; }
.contacts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 13.5px; }
.contacts span b { font-family: var(--font-sign); color: var(--lake); }
.refs { margin-top: 8px; font-size: 12.5px; color: var(--ink-3); }

.route { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; margin-top: 8px; }
.route .hop { font-size: 13.5px; }
.route .arrow { color: var(--ink-3); padding: 0 3px; }
.route .tele { font-size: 11.5px; color: var(--amber); }

.meter { position: relative; height: 8px; background: var(--shallows); border-radius: 4px; margin: 8px 0 4px; overflow: hidden; }
.meter b { position: absolute; inset: 0 auto 0 0; border-radius: 4px; }
.meter.high b { background: var(--alert); } .meter.medium b { background: var(--amber); } .meter.low b { background: #c9a24a; } .meter.none b { background: var(--moss); }
.signs { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; }
.signs li { margin-bottom: 5px; }
.signs q { font-family: var(--font-code); font-size: 12.5px; background: var(--shallows); padding: 0 4px; border-radius: 3px; quotes: "“" "”"; }
.signs .by { color: var(--ink-3); font-size: 12px; }

.result { font: 600 16px var(--font-sign); }
.result.correct { color: var(--moss); } .result.other_room { color: var(--lake); } .result.already { color: var(--ink-2); } .result.none { color: var(--amber); }
.bar { height: 6px; background: var(--shallows); border-radius: 3px; overflow: hidden; margin: 6px 0 2px; }
.bar b { display: block; height: 100%; background: var(--lake); }

/* ---------------------------------------------------------------- brass plates: go to a place in the tour */
.go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.plate {
  display: grid; text-align: left; gap: 0; cursor: pointer; padding: 6px 12px 6px 30px; position: relative;
  border: 1px solid var(--brass-lo); border-radius: 3px; color: #2b2210;
  background: linear-gradient(180deg, var(--brass-hi) 0%, var(--brass) 55%, #9c7834 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 1px 0 rgba(0, 0, 0, .08);
}
.plate::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: #6d5221; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .4), 0 1px 0 rgba(255, 255, 255, .4); }
.plate .to { font: 600 14px var(--font-sign); }
.plate .why { font-size: 12px; color: #4a3a17; }
.plate:hover { filter: brightness(1.06); }
.plate:active { transform: translateY(1px); }

.follow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.follow .chip { background: var(--paper); }

/* ---------------------------------------------------------------- how I found this */
details.trace { margin-top: 10px; font-size: 13px; }
details.trace summary { cursor: pointer; color: var(--lake); font: 500 13.5px var(--font-sign); width: fit-content; }
details.trace summary span { font-family: var(--font-body); }
.trace-body { margin-top: 8px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--mist); border-radius: 6px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.timeline div { background: var(--shallows); border-radius: 4px; padding: 5px 7px; }
.timeline b { display: block; font: 600 12px var(--font-sign); color: var(--ink-2); }
.timeline span { font: 600 15px var(--font-sign); color: var(--lake); }
.trace h5 { margin: 10px 0 4px; font: 600 12.5px var(--font-sign); color: var(--ink-2); }
.trace table { border-collapse: collapse; width: 100%; font-size: 12px; }
.trace th, .trace td { text-align: left; padding: 2px 5px; border-bottom: 1px solid var(--shallows); }
.trace tr.chosen td { background: var(--lake-wash); }
.trace pre { margin: 0 0 6px; padding: 6px 8px; background: #f3f6f6; border-radius: 4px; font: 11.5px/1.45 var(--font-code); white-space: pre-wrap; overflow-wrap: anywhere; color: #23363b; }
.trace .q-meta { color: var(--ink-3); font-size: 12px; margin-bottom: 2px; }
.graph { width: 100%; height: 260px; display: block; background: #fbfcfc; border: 1px solid var(--shallows); border-radius: 4px; }
.graph text { font: 10.5px var(--font-body); fill: var(--ink); paint-order: stroke; stroke: #fbfcfc; stroke-width: 3px; }
.graph .edge { stroke: #b9c9c7; stroke-width: 1; }
.graph .elabel { font-size: 8.5px; fill: var(--ink-3); }

/* ---------------------------------------------------------------- ask box */
.ask { display: flex; gap: 8px; padding: 10px 18px 14px; border-top: 1px solid var(--mist); background: var(--paper); }
.ask textarea { flex: 1; resize: none; border: 1px solid var(--mist); border-radius: 6px; padding: 8px 10px; line-height: 1.4; background: var(--paper); min-height: 44px; max-height: 200px; }
.ask button { border: 0; border-radius: 6px; background: var(--lake); color: #fff; padding: 0 16px; font: 600 14px var(--font-sign); cursor: pointer; }
.ask button span { font-family: var(--font-body); font-weight: 500; }
.ask button:disabled { background: var(--ink-3); cursor: wait; }

/* ---------------------------------------------------------------- quick tasks, progress, how it works */
.tasks, .progress-view, .how { overflow-y: auto; padding: 16px 18px 24px; }
.task-group { margin-bottom: 18px; }
.task-group h2, .progress-view h2, .how h2 { margin: 0 0 6px; font: 600 16px var(--font-sign); color: var(--lake); }
.task-group p { margin: 0 0 8px; color: var(--ink-2); font-size: 13.5px; }
.task {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; width: 100%; text-align: left;
  border: 0; border-top: 1px solid var(--mist); background: none; padding: 8px 4px; cursor: pointer;
}
.task:last-child { border-bottom: 1px solid var(--mist); }
.task:hover { background: var(--paper); }
.task .en { font-weight: 600; }
.task .zh { color: var(--ink-2); font-size: 13.5px; }
.paste { display: grid; gap: 6px; margin-top: 8px; }
.paste textarea { border: 1px solid var(--mist); border-radius: 6px; padding: 8px; min-height: 110px; resize: vertical; }
.paste button { justify-self: start; border: 0; border-radius: 5px; background: var(--lake); color: #fff; padding: 6px 14px; cursor: pointer; font: 600 13.5px var(--font-sign); }

.stat { font: 600 34px/1 var(--font-sign); color: var(--lake); }
.stat small { font-size: 15px; color: var(--ink-3); }
.found-list { list-style: none; padding: 0; margin: 8px 0 18px; }
.found-list li { padding: 6px 0; border-top: 1px solid var(--mist); display: flex; gap: 8px; align-items: baseline; }
.areas { display: grid; gap: 10px; margin-top: 8px; }
.area h3 { margin: 0 0 4px; font: 600 13px var(--font-sign); color: var(--ink-2); }
.visited { color: var(--moss); }
.unvisited { color: var(--ink-3); }
a.task { color: inherit; text-decoration: none; }
.game-list { list-style: none; padding: 0; margin: 8px 0 18px; }
.game-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 7px 0; border-top: 1px solid var(--mist); }
.game-play { font-weight: 600; color: var(--lake); text-decoration: none; }
.game-play:hover { text-decoration: underline; }
.game-play span { color: var(--ink-2); font-weight: 400; margin-left: 3px; }
.game-res { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.game-res b { color: var(--lake); }
.btn-plain { border: 1px solid var(--mist); background: var(--paper); border-radius: 5px; padding: 5px 12px; cursor: pointer; font-size: 13.5px; }

.how p { max-width: 70ch; color: var(--ink-2); margin: 0 0 10px; }
.arch { width: 100%; height: auto; margin: 6px 0 14px; }
.arch text { font: 12px var(--font-body); fill: var(--ink); }
.arch .t { font: 600 12.5px var(--font-sign); fill: var(--lake); }
.kv { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 14px; }
.kv td, .kv th { text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--mist); }
.kv th { font: 600 12.5px var(--font-sign); color: var(--ink-2); }

@media (max-width: 700px) {
  .desk, .desk.is-big { inset: 0; width: auto; border-radius: 0; }
  .tabs { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ---------------------------------------------------------------- the dock: what opens over the tour (11/21 night)
   In the column at the top left, below the small map (iStaging's row of scene pictures at the bottom folds away and its
   menu drops down at the top right, so nothing of ours sits on either). The window it opens covers the right side of the tour. */
/* 11/21 night: top LEFT. iStaging's own menu (the round grid button at the top right) drops down where the column used
   to be, and our page cannot tell when it is open, so the right-hand corner is left to iStaging. */
.side { position: absolute; top: 16px; left: 16px; z-index: 22; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.dock { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 264px; }
.side:has(.mm[data-state="open"]) .dock { display: none; }
.layout.is-desk .dock { display: none; }
.dock-btn { position: relative; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px 0 13px; border: 0; border-radius: 27px; background: rgba(255, 255, 255, .96); color: var(--lake); cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .38); transition: transform .15s, box-shadow .15s; }
.dock-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, .42); }
.dock-btn svg { width: 27px; height: 27px; flex: none; }
.dock-btn span { display: grid; line-height: 1.12; text-align: left; }
.dock-btn b { font: 600 15px var(--font-sign); }
.dock-btn small { font-size: 12.5px; color: var(--ink-2); }
.dock-btn em { margin-left: 2px; padding: 2px 8px; border-radius: 11px; background: var(--lake-wash); font: 600 13px/1.3 var(--font-sign); font-style: normal; font-variant-numeric: tabular-nums; }
.dock-btn.is-chat { background: var(--lake); color: #fff; }
.dock-btn.is-chat small { color: #cfe3e0; }
.dock-tip { position: absolute; left: 0; top: calc(100% + 12px); width: 264px; padding: 10px 13px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 13.5px; line-height: 1.4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35); animation: desk-in .3s ease-out; }
.dock-tip span { display: block; margin-top: 3px; color: var(--ink-2); font-size: 12.5px; }
.dock-tip::after { content: ""; position: absolute; left: 40px; bottom: 100%; border: 8px solid transparent; border-bottom-color: #fff; }

/* ---------------------------------------------------------------- mini map, second version (11/21 night)
   A small picture map in the top left corner (11/21 night: first top right, then under iStaging's two round buttons, now
   top left because iStaging's menu drops down on the right) shows where you are; click it for the big map. The pictures are top views rendered in Blender, so the markers are drawn to read on any part of a photo: a white
   ring and a dark halo round every place, red for you. */
.mm { position: relative; display: grid; justify-items: start; gap: 8px; }
.mm-mini { position: relative; display: block; width: 264px; height: 176px; padding: 0; border: 3px solid rgba(255, 255, 255, .96); border-radius: 14px; overflow: hidden; background: #24484f; cursor: zoom-in;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .42); transition: transform .15s, box-shadow .15s; }
.mm-mini[hidden], .mm-hide[hidden], .mm-pill[hidden] { display: none; }
.mm-mini:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
.mm-mini-svg { display: block; width: 100%; height: 100%; }
.mm-mini-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 22px 10px 7px; background: linear-gradient(180deg, transparent, rgba(10, 30, 34, .86) 55%); color: #fff; text-align: left; }
.mm-mini-t { display: grid; min-width: 0; line-height: 1.15; }
.mm-mini-t b { overflow: hidden; font: 600 13px var(--font-sign); white-space: nowrap; text-overflow: ellipsis; }
.mm-mini-t small { overflow: hidden; font-size: 11.5px; color: #cfe3e0; white-space: nowrap; text-overflow: ellipsis; }
.mm-mini-open { display: flex; align-items: center; gap: 4px; flex: none; padding: 3px 7px; border-radius: 10px; background: rgba(255, 255, 255, .18); font: 600 11.5px var(--font-sign); }
.mm-mini-open svg { width: 13px; height: 13px; }
.mm-mini-open span[lang] { font: 11px var(--font-body); }
.mm-hide { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(10, 30, 34, .6); color: #fff; cursor: pointer; }
.mm-hide svg { width: 14px; height: 14px; }
.mm-hide:hover { background: rgba(10, 30, 34, .85); }
.mm-pill { display: flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px; border: 0; border-radius: 20px; background: rgba(255, 255, 255, .96); color: var(--lake); font: 600 13px var(--font-sign); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .32); }
.mm-pill svg { width: 20px; height: 20px; }
.mm-pill span[lang] { font: 12px var(--font-body); color: var(--ink-2); }
.mm-panel { width: min(560px, calc(100vw - 32px)); border-radius: 16px; background: #fff; box-shadow: 0 26px 70px rgba(0, 0, 0, .5); overflow: hidden; transform-origin: 0 0; animation: mm-open .22s cubic-bezier(.2, .9, .3, 1); }
.layout.is-desk .mm-panel { width: min(560px, calc(100vw - 512px)); }
.mm-panel[hidden] { display: none; }
@keyframes mm-open { from { opacity: 0; transform: scale(.92); } }
.mm-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px 9px 14px; border-bottom: 1px solid var(--mist); }
.mm-crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; min-width: 0; font-size: 13px; }
.mm-crumbs button { padding: 0; border: 0; background: none; color: var(--lake-2); font: 600 13.5px var(--font-sign); cursor: pointer; text-align: left; }
.mm-crumbs button[aria-current="true"] { color: var(--ink); cursor: default; }
.mm-crumbs button span, .mm-crumb-b span { font: 12.5px var(--font-body); color: var(--ink-3); }
.mm-crumb-b { font: 600 13.5px var(--font-sign); color: var(--ink); }
.mm-sep { color: var(--ink-3); }
.mm-x { flex: none; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); font-size: 22px; line-height: 1; cursor: pointer; }
.mm-x:hover { background: var(--shallows); color: var(--ink); }
.mm-view { position: relative; height: min(560px, calc(100dvh - 200px)); background: #24484f; overflow: hidden; }
.mm-view.is-in .mm-svg { animation: mm-in .34s cubic-bezier(.2, .9, .3, 1); }
.mm-view.is-out .mm-svg { animation: mm-out .34s cubic-bezier(.2, .9, .3, 1); }
@keyframes mm-in { from { opacity: .2; transform: scale(.55); } }
@keyframes mm-out { from { opacity: .2; transform: scale(1.6); } }
.mm-view.is-panning, .mm-view.is-panning .mm-svg { cursor: grabbing; }
.mm-svg { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; user-select: none; }
.mm-void { fill: #24484f; }
.mm-img { image-rendering: auto; }
.mm-area { fill: #fff; font-family: var(--font-sign); font-weight: 600; paint-order: stroke; stroke: rgba(10, 30, 34, .78); stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.mm-area-zh { font-family: var(--font-body); font-weight: 400; }
.mm-bld { cursor: zoom-in; }
.mm-bld-hit { fill: transparent; }
.mm-bld-badge { fill: #fff; stroke: var(--brass-lo); stroke-width: .3; }
.mm-bld-icon { fill: var(--brass); }
.mm-bld:hover .mm-bld-badge, .mm-bld:focus-visible .mm-bld-badge { fill: var(--brass-hi); }
.mm-bld:hover .mm-bld-icon, .mm-bld:focus-visible .mm-bld-icon { fill: #fff; }
.mm-bld.is-here .mm-bld-badge { fill: var(--alert); stroke: #fff; }
.mm-bld.is-here .mm-bld-icon { fill: #fff; }
.mm-bld-t, .mm-spot-t { fill: #fff; font-family: var(--font-sign); font-weight: 600; paint-order: stroke; stroke: rgba(10, 30, 34, .82); stroke-linejoin: round; pointer-events: none; }
.mm-spot { cursor: pointer; }
.mm-hit { fill: transparent; }
.mm-halo { fill: rgba(10, 30, 34, .38); }
.mm-dot { fill: var(--brass-hi); stroke: #fff; }
.mm-spot.is-close .mm-dot { fill: #fff; stroke: var(--brass-lo); }
.mm-spot.is-bad .mm-dot { fill: #e0937f; }
.mm-spot:hover .mm-dot, .mm-spot:focus-visible .mm-dot { fill: #6fd3e0; }
.mm-spot.is-here .mm-dot, .mm-dot.is-here-dot { fill: #e2412a; stroke: #fff; }
.mm-balloon { fill: var(--brass-hi); stroke: #fff; }          /* not red: red is "you" */
.mm-spot.is-here .mm-balloon { fill: #e2412a; }
.mm-here-ring { fill: none; stroke: #ff5a3c; stroke-width: 2.4; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: mm-ping 1.6s ease-out infinite; pointer-events: none; }
@keyframes mm-ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.mm-here-flag { fill: #e2412a; pointer-events: none; }
.mm-here-flag-t { fill: #fff; font-family: var(--font-sign); font-weight: 600; pointer-events: none; }
.mm-here-flag-zh { font-family: var(--font-body); font-weight: 400; }
.mm-room-tab { fill: rgba(10, 30, 34, .72); pointer-events: none; }
.mm-room-tab.is-restricted { fill: rgba(140, 36, 22, .82); }
.mm-room-t { fill: #fff; font-family: var(--font-sign); font-weight: 600; pointer-events: none; }
.mm-room-zh { font-family: var(--font-body); font-weight: 400; fill: #d5e6e3; }
.mm-tip { position: absolute; z-index: 2; max-width: 240px; padding: 7px 10px; border-radius: 8px; background: rgba(20, 32, 36, .95); color: #fff; font-size: 12.5px; line-height: 1.3; pointer-events: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.mm-tip[hidden] { display: none; }
.mm-tip b { display: block; font: 600 13px var(--font-sign); }
.mm-tip span { display: block; color: #cfe3e0; }
.mm-tip em { display: block; margin-top: 3px; font-style: normal; font-size: 11.5px; color: var(--brass-hi); }
.mm-tip em span { display: inline; margin-left: 3px; color: var(--brass-hi); }
.mm-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; overflow: hidden; border-radius: 9px; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.mm-zoom button { width: 34px; height: 32px; border: 0; background: #fff; color: var(--lake); font: 600 19px/1 var(--font-sign); cursor: pointer; }
.mm-zoom button + button { border-top: 1px solid var(--mist); }
.mm-zoom button:disabled { color: #b9c5c3; cursor: default; }
.mm-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 8px 14px 9px; border-top: 1px solid var(--mist); font-size: 12px; color: var(--ink-2); }
.mm-foot span span[lang] { margin-left: 3px; color: var(--ink-3); }
.mm-key { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; background: var(--brass-hi); box-shadow: 0 0 0 1.5px #fff, 0 0 0 3px rgba(10, 30, 34, .4); vertical-align: -1px; }
.mm-key.is-close { background: #fff; box-shadow: 0 0 0 1.5px var(--brass-lo); }
.mm-key.is-bld { border-radius: 3px; background: #fff; box-shadow: 0 0 0 1.5px var(--brass-lo); }
.mm-key.is-here { background: #e2412a; }
.mm-foot-hint { flex-basis: 100%; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .mm-here-ring { animation: none; } .mm-view.is-in .mm-svg, .mm-view.is-out .mm-svg, .mm-panel, .desk { animation: none; } }
@media (max-width: 700px) {
  .side { top: 10px; left: 10px; }
  .mm-mini { width: 180px; height: 120px; }
  .mm-panel, .layout.is-desk .mm-panel { width: calc(100vw - 72px); }
  .mm-view { height: min(380px, calc(100dvh - 170px)); }
  .dock { width: 180px; }
  .dock-btn { height: 48px; padding: 0 14px 0 11px; }
  .dock-btn small { display: none; }
}
/* the window's tabs fit its width */
.desk .tabs { gap: 0; margin: 0 -6px; }
.desk .tabs button { padding: 8px 7px 9px; font-size: 13.5px; }
.desk .tabs button span { font-size: 12.5px; }

/* ---------------------------------------------------------------- inside iStaging's pop-up window (11/21 night)
   Only the assistant fills the frame: no tour inside the tour, no map, nothing to close (iStaging has its own ×). */
.is-embed .tour, .is-embed .side { display: none !important; }
.is-embed .layout { background: var(--shallows); }
.is-embed .desk, .is-embed .desk.is-big { inset: 0; width: auto; border-radius: 0; box-shadow: none; animation: none; }
.is-embed #deskClose, .is-embed #deskBig { display: none; }
/* the whole kit inside iStaging's window: a Map tab with the photo map filling the pane (11/21 night) */
#tab-map { display: none; }
.is-embed #tab-map { display: inline-block; }
.map-host { flex: 1; min-height: 0; display: flex; }
.mm.is-pane { display: flex; flex: 1; min-height: 0; }
.mm.is-pane .mm-mini, .mm.is-pane .mm-hide, .mm.is-pane .mm-pill, .mm.is-pane .mm-x { display: none !important; }
.mm.is-pane .mm-panel { display: flex; flex-direction: column; width: 100%; border-radius: 0; box-shadow: none; animation: none; }
.mm.is-pane .mm-panel[hidden] { display: none; }
.mm.is-pane .mm-view { flex: 1; height: auto; min-height: 260px; }
.handoff { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--lake-wash); color: var(--ink); }
.handoff p { margin: 0 0 6px; }
.handoff p[lang] { color: var(--ink-2); }

