:root {
  --bg: #111718;
  --bg2: #1b2425;
  --teal: #59d7c8;
  --coral: #ff765f;
  --gold: #f3c75f;
  --text: #f4f6f3;
  --runtime-debug-height: 27px;
}

* { box-sizing: border-box; }

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* The page never zooms (see installZoomGuard in main.js): no pinch or
   double-tap zoom anywhere, while panels can still scroll. The world canvas,
   joystick and touch buttons are touch-action: none; DOM UI is manipulation. */
html, body {
  touch-action: pan-x pan-y;
}
/* If the page got zoomed regardless, pinching back out works (main.js). */
html.umph-page-zoomed, html.umph-page-zoomed body {
  touch-action: auto;
}
button, a, label, select, input, textarea, [role="button"], [tabindex] {
  touch-action: manipulation;
}
/* iOS zooms the page into any text field under 16px when it gets focus. */
html.umph-mobile input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]),
html.umph-mobile textarea,
html.umph-mobile select {
  font-size: max(16px, 1em) !important;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior: none;
  background: #0b0f10;
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

/* The stage fills the whole window. #game-shell is VIEW logical px in size
   (theme.js) and scaled from its top-left corner by fitGame() in main.js. */
#stage-wrap {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  background: #0b0f10;
}

#game-shell {
  position: absolute;
  left: 0;
  top: 0;
  width: 960px;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(160deg, #182122 0%, #0e1415 100%);
  transform-origin: 0 0;
}

#world-canvas,
#game-canvas {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.identity-form {
  position: absolute;
  z-index: 5;
  left: 292px;
  top: 198px;
  width: 376px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  user-select: text;
}

.identity-form label {
  margin-top: 5px;
  color: #f4f6f3;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.identity-form input,
.identity-form select {
  width: 100%;
  height: 39px;
  border: 1px solid rgba(89, 215, 200, .72);
  border-radius: 7px;
  outline: none;
  background: #0c1719;
  color: #f4f6f3;
  padding: 0 12px;
  font: 600 14px Inter, "Segoe UI", system-ui, sans-serif;
}

.identity-form input:focus,
.identity-form select:focus {
  border-color: #f3c75f;
  box-shadow: 0 0 0 3px rgba(243, 199, 95, .14);
}

.identity-form small,
.identity-status {
  color: #9fb2b4;
  font-size: 11px;
}

.identity-status {
  min-height: 18px;
  margin-top: 5px;
  text-align: center;
}

.identity-status.error { color: #ff8b82; }

.identity-form button {
  height: 44px;
  margin-top: 3px;
  border: 0;
  border-radius: 7px;
  background: #59d7c8;
  color: #102021;
  font: 800 15px Inter, "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}

.identity-form button:disabled { opacity: .56; cursor: wait; }

.identity-form button.identity-sound {
  height: 34px;
  margin-top: 0;
  background: #f3c75f;
  font-size: 12px;
}

/* Name builder: approved words only (approvedText.js), no typing. */
.identity-name-preview {
  padding: 10px 12px;
  border: 1px dashed rgba(243, 199, 95, .7);
  border-radius: 9px;
  background: #0c1719;
  color: #fff3c2;
  font: 900 24px Inter, "Segoe UI", system-ui, sans-serif;
  text-align: center;
  letter-spacing: .01em;
  user-select: none;
}

.identity-name-builder {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr .8fr;
  gap: 6px;
}

.identity-name-builder label {
  display: grid;
  gap: 3px;
  margin-top: 0;
  font-size: 11px;
  color: #9fb2b4;
}

.identity-name-builder select { padding: 0 6px; }

.identity-form button.identity-reroll {
  background: #182e2d;
  color: #f4f6f3;
  border: 1px solid rgba(89, 215, 200, .72);
}

/* Notepad: read-only team checklist and private suggestion box. */
.notepad-checklist-intro { margin: 0 0 8px; color: #9fb2b4; font-size: 12px; line-height: 1.35; }
.global-checklist-toggle.is-readonly { cursor: default; }
.notepad-ideas-panel { gap: 8px; }
.notepad-ideas-panel .suggestion-input { flex: 0 0 auto; min-height: 96px; max-height: 170px; resize: vertical; }

.help-search-input {
  position: absolute;
  z-index: 6;
  left: 132px;
  top: 139px;
  width: 696px;
  height: 34px;
  border: 1px solid rgba(89, 215, 200, .72);
  border-radius: 7px;
  outline: none;
  background: #091416;
  color: #f4f6f3;
  padding: 0 12px;
  font: 600 13px Inter, "Segoe UI", system-ui, sans-serif;
  user-select: text;
}

.help-search-input:focus {
  border-color: #f3c75f;
  box-shadow: 0 0 0 3px rgba(243, 199, 95, .14);
}

.notepad-workspace {
  position: absolute;
  z-index: 7;
  left: 128px;
  top: 143px;
  width: 704px;
  height: 365px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border-radius: 8px;
  user-select: text;
  -webkit-user-select: text;
}
.notepad-mobile-close { display: none; }
.notepad-pane {
  min-width: 0;
  min-height: 0;
  padding: 12px;
}
.notepad-private-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid rgba(89, 215, 200, .25);
  background: rgba(8, 20, 20, .68);
}
.notepad-shared-pane {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: rgba(12, 25, 26, .84);
}
.notepad-section-title {
  margin: 0;
  color: #b9e8dd;
  font: 900 11px/1.3 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .08em;
}
.notepad-textarea {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  resize: none;
  border: 1px solid rgba(89, 215, 200, .24);
  border-radius: 6px;
  outline: none;
  background-color: rgba(5, 16, 17, .76);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, rgba(49, 84, 83, .28) 28px, transparent 29px);
  color: #e9f4ed;
  padding: 6px 9px;
  font: 500 14px/29px Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .01em;
  user-select: text;
  -webkit-user-select: text;
  touch-action: pan-y;
  caret-color: #59d7c8;
}
.notepad-textarea:focus {
  border-color: rgba(243, 199, 95, .78);
  box-shadow: 0 0 0 3px rgba(243, 199, 95, .1);
}
.notepad-textarea::placeholder { color: rgba(201, 218, 213, .47); }
.notepad-private-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.notepad-private-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.notepad-status {
  color: #8ee28b;
  font: 800 9px Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.3;
}
.notepad-action {
  min-height: 34px;
  border: 1px solid rgba(89, 215, 200, .64);
  border-radius: 6px;
  background: rgba(28, 77, 71, .82);
  color: #eef8f5;
  padding: 5px 10px;
  font: 800 10px/1.15 Inter, "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.notepad-action:hover,
.notepad-action:focus-visible {
  border-color: #f3c75f;
  filter: brightness(1.16);
  outline: none;
}
.notepad-action:disabled { cursor: wait; opacity: .48; }
.notepad-share-action,
.notepad-checklist-action { min-width: 0; }
.notepad-shared-header {
  min-height: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.notepad-live-badge {
  border-radius: 999px;
  background: rgba(112, 208, 96, .17);
  color: #8ee28b;
  padding: 2px 6px;
  font: 900 8px/1 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .08em;
}
.notepad-feed-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.notepad-feed-tab {
  min-width: 0;
  min-height: 28px;
  border: 1px solid rgba(89, 215, 200, .2);
  border-radius: 5px;
  background: rgba(4, 13, 15, .58);
  color: #819999;
  padding: 4px 6px;
  font: 900 8px/1.15 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .025em;
  cursor: pointer;
  touch-action: manipulation;
}
.notepad-feed-tab:hover,
.notepad-feed-tab:focus-visible {
  border-color: rgba(243, 199, 95, .72);
  color: #eff8f5;
  outline: none;
}
.notepad-feed-tab.is-active {
  border-color: rgba(89, 215, 200, .72);
  background: rgba(32, 84, 78, .64);
  color: #eaf9f4;
  box-shadow: inset 0 -2px 0 #59d7c8;
}
.notepad-feedback {
  min-height: 14px;
  color: #9fb2b4;
  font: 700 9px/1.35 Inter, "Segoe UI", system-ui, sans-serif;
}
.notepad-feedback.is-error { color: #ff8b82; }
.notepad-feedback.is-success { color: #8ee28b; }
.notepad-feed-panel {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.notepad-feed-panel[hidden] { display: none; }
.shared-notes-list {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-color: rgba(89, 215, 200, .65) rgba(255, 255, 255, .06);
  scrollbar-width: thin;
}
.shared-notes-empty {
  margin: auto 10px;
  color: #8da3a3;
  text-align: center;
  font: 600 11px/1.5 Inter, "Segoe UI", system-ui, sans-serif;
}
.shared-note-card {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 3px solid rgba(89, 215, 200, .68);
  border-radius: 6px;
  background: rgba(4, 12, 14, .72);
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.shared-note-card.is-assigned { border-left-color: rgba(243, 199, 95, .82); }
.shared-note-card[aria-busy="true"] { opacity: .72; }
.shared-note-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #f4f6f3;
  font: 700 10px/1.25 Inter, "Segoe UI", system-ui, sans-serif;
}
.shared-note-meta time {
  color: #829595;
  font-size: 8px;
  white-space: nowrap;
}
.shared-note-body {
  margin: 6px 0 8px;
  color: #d9e6e3;
  font: 500 11px/1.4 Inter, "Segoe UI", system-ui, sans-serif;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.shared-note-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.shared-note-promote {
  width: 100%;
  min-height: 29px;
  margin-top: 7px;
  border-color: rgba(142, 226, 139, .56);
  background: rgba(33, 82, 48, .68);
}
.shared-note-assign.is-codex { border-color: rgba(89, 215, 200, .72); }
.shared-note-assign.is-claude { border-color: rgba(243, 199, 95, .72); background: rgba(90, 66, 23, .75); }
.shared-note-assignment {
  color: #f3c75f;
  font: 900 9px/1.3 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .03em;
}
.shared-note-progress {
  height: 7px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.shared-note-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #59d7c8, #f3c75f);
  box-shadow: 0 0 7px rgba(89, 215, 200, .55);
  transition: width 240ms ease;
}
.shared-note-byline {
  margin-top: 4px;
  color: #829595;
  font: 600 8px/1.3 Inter, "Segoe UI", system-ui, sans-serif;
}
.shared-note-output {
  margin: 7px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
  color: #bcd0cc;
  padding-top: 6px;
  font: 500 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.global-checklist-card {
  border-left-color: rgba(142, 226, 139, .86);
  transition: border-color 180ms ease, opacity 180ms ease, background 180ms ease;
}
.global-checklist-card.is-complete {
  border-left-color: rgba(128, 149, 149, .65);
  background: rgba(4, 12, 14, .48);
}
.global-checklist-card.is-complete .global-checklist-body {
  color: #8fa4a0;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.global-checklist-header {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}
.global-checklist-meta { min-width: 0; }
.global-checklist-toggle {
  position: relative;
  display: block;
  width: 27px;
  height: 27px;
  cursor: pointer;
  touch-action: manipulation;
}
.global-checklist-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.global-checklist-toggle span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(142, 226, 139, .65);
  border-radius: 6px;
  background: rgba(17, 55, 35, .7);
  color: #f5fff7;
  font: 900 16px/1 Inter, "Segoe UI", system-ui, sans-serif;
}
.global-checklist-toggle input:focus-visible + span {
  border-color: #f3c75f;
  box-shadow: 0 0 0 3px rgba(243, 199, 95, .16);
}
.global-checklist-toggle input:checked + span {
  border-color: rgba(142, 226, 139, .85);
  background: rgba(55, 116, 65, .82);
}
.global-checklist-toggle input:disabled + span {
  cursor: wait;
  opacity: .45;
}
.global-checklist-body { margin-left: 34px; }
.global-checklist-source {
  margin: -2px 0 7px 34px;
  color: #70cfc2;
  font: 900 7px/1.2 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .08em;
}
.global-checklist-completion {
  margin: -2px 0 7px 34px;
  color: #829595;
  font: 700 8px/1.3 Inter, "Segoe UI", system-ui, sans-serif;
}

/* In-world, always-open operations room for the two shared code robots. */
.bot-control-room {
  --bot-codex: #57d9e8;
  --bot-claude: #e58b5d;
  position: absolute;
  z-index: 20;
  inset: 0;
  overflow: hidden;
  color: #edf8f7;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  user-select: text;
  -webkit-user-select: text;
  background:
    linear-gradient(90deg, rgba(4, 17, 22, .24), transparent 36% 64%, rgba(31, 13, 8, .22)),
    radial-gradient(ellipse at 50% 100%, rgba(87, 217, 232, .08), transparent 54%);
}
.bot-control-room button,
.bot-control-room select {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.bot-room-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  padding: 5px 12px 5px 15px;
  border-bottom: 1px solid rgba(243, 199, 95, .45);
  background: linear-gradient(90deg, rgba(7, 22, 27, .97), rgba(24, 25, 23, .97), rgba(35, 17, 14, .97));
  box-shadow: 0 8px 25px rgba(0, 0, 0, .4);
}
.bot-room-title-wrap { min-width: 0; }
.bot-room-eyebrow {
  color: #9db3b2;
  font: 800 7px/1 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .13em;
}
.bot-room-title {
  margin: 2px 0 1px;
  color: #f7fbf8;
  font: 900 19px/1 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .035em;
}
.bot-room-subtitle {
  overflow: hidden;
  color: #e8c66f;
  font: 800 7px/1.1 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .075em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bot-room-global-status {
  max-width: 275px;
  overflow: hidden;
  border: 1px solid rgba(89, 215, 200, .38);
  border-radius: 999px;
  background: rgba(13, 40, 42, .68);
  color: #9af0e4;
  padding: 6px 10px;
  font: 900 8px/1 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bot-room-global-status.is-error {
  border-color: rgba(255, 118, 95, .66);
  color: #ff9b8e;
}
/* Team Office: Season Control Panel (seasonPanel.js). */
.season-panel-overlay { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); background: rgba(3, 9, 13, 0.62); font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.season-panel { width: min(920px, 100%); max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; border: 2px solid #f3c75f; border-radius: 14px; background: #0e1a20; color: #eef4f2; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55); padding: 16px 18px 14px; box-sizing: border-box; }
.season-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.season-panel-eyebrow { font-size: 11px; font-weight: 900; letter-spacing: .1em; color: #9af0e4; }
.season-panel-title { margin: 2px 0 0; font-size: 26px; font-weight: 900; color: #fff4cf; }
.season-panel-close { min-height: 40px; padding: 6px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; }
.season-panel-status { display: grid; gap: 6px; margin: 12px 0 8px; padding: 10px 12px; border-radius: 10px; background: #15252d; border: 1px solid rgba(89, 215, 200, 0.35); font-size: 15px; }
.season-panel-status-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.season-status-label { color: #9fb3b0; font-weight: 700; min-width: 150px; }
.season-status-note { font-size: 12px; font-weight: 800; color: #9af0e4; }
.season-status-note.is-preview { color: #1d1402; background: #f3c75f; padding: 2px 8px; border-radius: 999px; }
.season-panel-help { font-size: 13px; line-height: 1.45; color: #c9d8d4; }
.season-panel-help p { margin: 4px 0; }
.season-panel-help strong { color: #fff4cf; }
.season-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.season-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: #15232a; border: 2px solid rgba(255, 255, 255, 0.12); border-top: 6px solid var(--season-color); }
.season-card.is-shown { background: #1c2f37; border-color: var(--season-color); }
.season-card-head { display: flex; align-items: center; gap: 8px; }
.season-card-emoji { font-size: 26px; line-height: 1; }
.season-card-name { margin: 0; font-size: 18px; font-weight: 900; color: #fff; }
.season-card-badges { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
.season-badge { font-size: 10px; font-weight: 900; letter-spacing: .05em; padding: 3px 7px; border-radius: 999px; }
.season-badge[hidden] { display: none; }
.season-badge.is-live { background: #7bcf88; color: #0d2410; }
.season-badge.is-preview { background: #f3c75f; color: #2a1c02; }
.season-card-blurb { margin: 0; flex: 1; font-size: 13px; line-height: 1.4; color: #c9d8d4; }
.season-card-actions { display: grid; gap: 6px; }
.season-btn { min-height: 40px; padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.25); font-weight: 800; font-size: 13px; cursor: pointer; color: #fff; background: rgba(255, 255, 255, 0.08); }
.season-btn:disabled { opacity: .45; cursor: default; }
.season-btn.is-preview { border-color: #f3c75f; color: #ffe7a6; }
.season-btn.is-live { background: #2d7d6f; border-color: #59d7c8; }
.season-btn.is-stop { border-color: #ff765f; color: #ffc2b8; }
.season-btn.is-look { border-color: #59d7c8; color: #bff6ee; }
.season-btn:not(:disabled):hover, .season-btn:not(:disabled):focus-visible { filter: brightness(1.2); outline: none; }
.season-panel-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.season-panel-message { flex: 1 1 200px; font-size: 13px; font-weight: 700; color: #9af0e4; }
.season-panel-message.is-error { color: #ff9b8e; }
@media (max-width: 520px) {
  .season-panel { padding: 12px; }
  .season-panel-title { font-size: 21px; }
  .season-status-label { min-width: 0; }
}
/* Team Office: Weather & Events Control Panel (worldControlPanel.js), season panel look. */
.wx-panel { width: min(1040px, 100%); border-color: #6fb6ff; }
.wx-section { margin-top: 14px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.wx-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.wx-section-title { margin: 0; font-size: 20px; font-weight: 900; color: #fff4cf; flex: 1 0 auto; }
.wx-subtitle { margin: 10px 0 4px; font-size: 13px; font-weight: 900; letter-spacing: .06em; color: #9af0e4; text-transform: uppercase; }
.wx-chooser-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wx-chooser-label { font-size: 13px; font-weight: 800; color: #9fb3b0; }
.wx-chooser { display: flex; flex-wrap: wrap; gap: 4px; }
.wx-chip { min-height: 34px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); color: #dfe9e7; font-weight: 800; font-size: 12px; cursor: pointer; }
.wx-chip.is-on { background: #6fb6ff; border-color: #bfe0ff; color: #04121f; }
.wx-input { min-height: 34px; padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.3); background: #15252d; color: #fff; font: inherit; font-size: 14px; color-scheme: dark; }
.wx-grid { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.wx-card .season-card-blurb { flex: 0 0 auto; }
.wx-schedule { margin: 0; flex: 1; font-size: 12px; line-height: 1.4; color: #9af0e4; }
.wx-planned { display: grid; gap: 6px; }
.wx-planned-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #15252d; border: 1px solid rgba(255, 255, 255, 0.14); }
.wx-planned-row.is-on { border-color: #7bcf88; background: #173026; }
.wx-planned-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; }
.wx-empty { margin: 0; font-size: 13px; color: #c9d8d4; }
/* Team Office: dashboard header Season button (opens the Season Control Panel). */
.bot-room-theme { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255, 170, 70, 0.55); background: rgba(40, 20, 6, 0.55); }
.bot-room-theme-label { font-weight: 700; font-size: 13px; color: #ffd9a0; white-space: nowrap; }
.bot-room-theme-toggle { min-width: 58px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.35); color: #e8e1d5; font-weight: 700; cursor: pointer; }
.bot-room-theme-toggle.is-on { background: #e0731d; border-color: #ffb067; color: #1d0d02; }
.bot-room-theme-toggle:disabled { opacity: 0.6; cursor: wait; }
.bot-room-back {
  min-width: 104px;
  min-height: 34px;
  border: 1px solid rgba(243, 199, 95, .75);
  border-radius: 7px;
  background: rgba(87, 65, 20, .75);
  color: #fff4cf;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.bot-room-back:hover,
.bot-room-back:focus-visible { background: #f3c75f; color: #182022; outline: none; }
.bot-room-navigation {
  position: absolute;
  z-index: 6;
  top: 63px;
  left: 50%;
  width: min(620px, calc(100% - 28px));
  height: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  transform: translateX(-50%);
  padding: 4px;
  border: 1px solid rgba(243, 199, 95, .25);
  border-radius: 8px;
  background: rgba(3, 11, 14, .86);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .38), inset 0 0 20px rgba(87, 217, 232, .025);
}
.bot-room-view-button {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  background: rgba(22, 35, 39, .9);
  color: #9eb5b4;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .035em;
  cursor: pointer;
}
.bot-room-view-button[data-viewpoint="codex"] { color: #a4edf4; }
.bot-room-view-button[data-viewpoint="claude"] { color: #f2b08e; }
.bot-room-view-button:hover,
.bot-room-view-button:focus-visible {
  border-color: rgba(243, 199, 95, .75);
  color: #fff6d8;
  outline: none;
}
.bot-room-view-button[aria-pressed="true"] {
  border-color: #f3c75f;
  background: rgba(79, 60, 19, .86);
  color: #fff6d8;
  box-shadow: 0 0 12px rgba(243, 199, 95, .14);
}
.bot-room-movement-hint {
  position: absolute;
  top: 39px;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  color: rgba(207, 229, 227, .66);
  font: 800 6px/1 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .09em;
  pointer-events: none;
}
.bot-room-dashboard {
  position: absolute;
  inset: 112px 14px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(208px, .68fr) minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 0;
  perspective: 1180px;
  perspective-origin: 50% 44%;
  transform-style: preserve-3d;
}
.bot-provider-panel,
.bot-map-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  background: linear-gradient(165deg, rgba(18, 35, 40, .94), rgba(3, 10, 13, .97));
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35), inset 0 0 26px rgba(255, 255, 255, .015);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(.2, .75, .2, 1), opacity 300ms ease, filter 300ms ease;
}
.bot-provider-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.bot-provider-panel.is-codex {
  border-color: rgba(87, 217, 232, .52);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35), inset 0 0 32px rgba(87, 217, 232, .055);
  transform: rotateY(7deg) translateZ(12px);
  transform-origin: right center;
}
.bot-provider-panel.is-claude {
  border-color: rgba(229, 139, 93, .52);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35), inset 0 0 32px rgba(229, 139, 93, .055);
  transform: rotateY(-7deg) translateZ(12px);
  transform-origin: left center;
}
.bot-provider-panel::before,
.bot-provider-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.bot-provider-panel::before {
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 34px,
    rgba(255, 255, 255, .015) 35px 36px
  );
}
.bot-provider-panel::after {
  right: 7%;
  bottom: -15px;
  left: 7%;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: #111c21;
  transform: rotateX(-70deg);
  transform-origin: top center;
  box-shadow: 0 15px 24px rgba(0, 0, 0, .55);
}
.bot-control-room[data-viewpoint="codex"] .bot-provider-panel.is-codex {
  z-index: 4;
  transform: translateX(283px) translateZ(135px) rotateY(0deg) scale(1.055);
  transform-origin: center center;
}
.bot-control-room[data-viewpoint="claude"] .bot-provider-panel.is-claude {
  z-index: 4;
  transform: translateX(-283px) translateZ(135px) rotateY(0deg) scale(1.055);
  transform-origin: center center;
}
.bot-control-room[data-viewpoint="codex"] .bot-provider-panel.is-claude {
  transform: translateX(190px) translateZ(-180px) rotateY(-22deg) scale(.82);
  opacity: .18;
  filter: blur(1px);
  pointer-events: none;
}
.bot-control-room[data-viewpoint="claude"] .bot-provider-panel.is-codex {
  transform: translateX(-190px) translateZ(-180px) rotateY(22deg) scale(.82);
  opacity: .18;
  filter: blur(1px);
  pointer-events: none;
}
.bot-control-room[data-viewpoint="codex"] .bot-map-panel,
.bot-control-room[data-viewpoint="claude"] .bot-map-panel {
  transform: translateZ(-220px) scale(.76);
  opacity: .16;
  filter: blur(1px);
  pointer-events: none;
}
.bot-console-marquee {
  position: relative;
  flex: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(87, 217, 232, .28);
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(87, 217, 232, .04), rgba(87, 217, 232, .16), rgba(87, 217, 232, .04));
  color: #bff8fb;
  text-shadow: 0 0 9px rgba(87, 217, 232, .7);
  font: 900 8px/1 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .17em;
}
.is-claude .bot-console-marquee {
  border-color: rgba(229, 139, 93, .3);
  background: linear-gradient(90deg, rgba(229, 139, 93, .04), rgba(229, 139, 93, .16), rgba(229, 139, 93, .04));
  color: #ffd2bc;
  text-shadow: 0 0 9px rgba(229, 139, 93, .7);
}
.bot-console-live-light {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 5px;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #7bdc8b;
  box-shadow: 0 0 8px rgba(123, 220, 139, .9);
  animation: bot-room-sync 1.5s ease-in-out infinite alternate;
}
.bot-provider-heading {
  flex: 0 0 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}
.bot-provider-identity { min-width: 0; display: flex; align-items: center; gap: 8px; }
.bot-provider-avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50% 50% 44% 44%;
  background: rgba(255, 255, 255, .055);
  color: var(--bot-codex);
  box-shadow: inset 0 -7px 12px rgba(0, 0, 0, .32), 0 0 13px rgba(87, 217, 232, .18);
  font-size: 11px;
  font-weight: 900;
}
.is-claude .bot-provider-avatar { color: var(--bot-claude); box-shadow: inset 0 -7px 12px rgba(0, 0, 0, .32), 0 0 13px rgba(229, 139, 93, .18); }
.bot-provider-heading h2 {
  margin: 0;
  color: #f4fbfa;
  font-size: 17px;
  line-height: 1;
}
.bot-provider-heading p {
  margin: 4px 0 0;
  color: #8fa7a6;
  font-size: 8px;
  font-weight: 700;
}
.bot-provider-availability {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(89, 215, 200, .13);
  color: #83e6d8;
  padding: 4px 6px;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .035em;
}
.is-claude .bot-provider-availability { background: rgba(229, 139, 93, .13); color: #efaa85; }
.bot-provider-availability.is-offline { background: rgba(255, 118, 95, .12); color: #ff9688; }
.bot-room-section-heading {
  flex: 0 0 auto;
  color: #87b2ae;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}
.is-codex .bot-room-section-heading,
.bot-map-panel .bot-room-section-heading { color: var(--bot-codex); }
.is-claude .bot-room-section-heading { color: var(--bot-claude); }
.bot-room-slots {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}
.bot-room-slot {
  position: relative;
  min-width: 0;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 5px;
  outline: none;
  background: rgba(20, 33, 36, .92);
  color: #dfe8e6;
  padding: 4px 6px 5px;
  text-align: left;
  cursor: pointer;
}
.bot-room-slot:hover,
.bot-room-slot:focus-visible { border-color: rgba(255, 255, 255, .45); background: rgba(31, 50, 53, .98); }
.is-codex .bot-room-slot.is-selected { border-color: var(--bot-codex); background: rgba(23, 65, 72, .92); }
.is-claude .bot-room-slot.is-selected { border-color: var(--bot-claude); background: rgba(69, 39, 27, .94); }
.bot-room-slot.is-live { border-color: rgba(243, 199, 95, .65); }
.bot-room-slot.is-healing {
  border-color: rgba(123, 220, 139, .92);
  box-shadow: inset 0 0 15px rgba(123, 220, 139, .1), 0 0 8px rgba(123, 220, 139, .12);
}
.bot-room-slot.is-error { border-color: rgba(255, 118, 95, .8); }
.bot-room-slot-top { display: flex; justify-content: space-between; gap: 7px; font-size: 8px; line-height: 10px; }
.bot-room-slot-top strong { color: #f2f7f5; font-weight: 900; letter-spacing: .03em; }
.bot-room-mode-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
.bot-room-slot-status { overflow: hidden; color: #90aaa7; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.bot-room-slot.is-live .bot-room-slot-status { color: #f6d47c; }
.bot-room-slot-activity {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #879a98;
  font-size: 7px;
  line-height: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bot-room-slot-progress {
  position: absolute;
  right: 5px;
  bottom: 2px;
  left: 5px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}
.bot-room-slot-progress > span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--bot-codex), #f3c75f); }
.is-claude .bot-room-slot-progress > span { background: linear-gradient(90deg, var(--bot-claude), #f3c75f); }
.bot-room-slot-progress.is-running > span { width: 44%; animation: bot-room-progress 1.35s ease-in-out infinite alternate; }
@keyframes bot-room-progress {
  from { transform: translateX(-15%); }
  to { transform: translateX(145%); }
}
.bot-room-editor {
  min-height: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(89, 215, 200, .55) rgba(255, 255, 255, .04);
}
.bot-room-selected-heading { color: #e8f3f1; font-size: 8px; font-weight: 900; letter-spacing: .045em; }
.bot-room-owner {
  min-height: 9px;
  overflow: hidden;
  color: #9eb1af;
  font-size: 7px;
  line-height: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bot-room-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.bot-room-options label,
.bot-room-runtime-label,
.bot-room-prompt-label {
  min-width: 0;
  color: #8ea3a1;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .05em;
}
.bot-room-runtime {
  min-height: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 5px;
  background: rgba(6, 15, 17, .92);
  color: #eef5f3;
  padding: 4px 6px;
  font: 700 9px/1.25 Inter, "Segoe UI", system-ui, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bot-room-mode { color: #f6d47c; font-size: 10px; font-weight: 900; }
.bot-room-runtime-model,
.bot-room-self-heal-label {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bot-room-runtime-detail {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #7f9693;
  font: 700 6px/1.15 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bot-room-self-heal {
  border-color: rgba(123, 220, 139, .28);
  color: #8edc9a;
}
.bot-room-self-heal.is-active,
.bot-room-self-heal.is-queued {
  border-color: rgba(243, 199, 95, .72);
  background: rgba(72, 58, 20, .48);
  color: #f6d47c;
}
.bot-room-self-heal.is-active {
  box-shadow: inset 0 0 14px rgba(123, 220, 139, .1), 0 0 8px rgba(123, 220, 139, .12);
}
.bot-room-self-heal.is-attention {
  border-color: rgba(255, 118, 95, .66);
  color: #ff9b8e;
}
.bot-room-workspace {
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(89, 215, 200, .16);
  border-radius: 4px;
  background: rgba(4, 16, 18, .72);
  color: #90aaa7;
  padding: 3px 5px;
  font: 600 7px/1.25 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.is-claude .bot-room-workspace { border-color: rgba(229, 139, 93, .18); }
.bot-room-model,
.bot-room-prompt {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 5px;
  outline: none;
  background: rgba(6, 15, 17, .92);
  color: #eef5f3;
  font: 600 9px/1.25 Inter, "Segoe UI", system-ui, sans-serif;
}
.bot-room-model { height: 25px; margin-top: 2px; padding: 0 5px; }
.bot-room-prompt {
  display: block;
  height: 43px;
  min-height: 43px;
  margin-top: 2px;
  padding: 5px 6px;
  resize: none;
}
.bot-room-model:focus,
.bot-room-prompt:focus { border-color: #f3c75f; box-shadow: 0 0 0 2px rgba(243, 199, 95, .12); }
.bot-room-prompt:read-only { color: #a9b7b5; background: rgba(24, 31, 32, .9); }
.bot-room-actions { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, 1fr); gap: 4px; }
.bot-room-actions button {
  min-width: 0;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  color: #f4f8f6;
  padding: 0 4px;
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}
.bot-room-run { background: #2a817c; border-color: rgba(89, 215, 200, .7) !important; }
.is-claude .bot-room-run { background: #9c5438; border-color: rgba(229, 139, 93, .7) !important; }
.bot-room-cancel { background: #653a37; border-color: rgba(255, 118, 95, .58) !important; }
.bot-room-console { background: #283537; }
.bot-room-actions button:disabled { opacity: .38; cursor: not-allowed; }
.bot-room-feedback {
  min-height: 18px;
  overflow: hidden;
  color: #91aaa7;
  font-size: 7px;
  line-height: 9px;
}
.bot-room-feedback.is-error { color: #ff9285; }
.bot-room-transcript {
  flex: 1 1 43px;
  min-height: 40px;
  max-height: 72px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: 5px;
  background: rgba(1, 8, 10, .8);
  color: #b8cac7;
  padding: 4px 5px;
  font: 500 7px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.bot-room-transcript-line strong { color: #f0c968; }
.bot-map-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-color: rgba(243, 199, 95, .3);
  background:
    linear-gradient(180deg, rgba(13, 27, 31, .88), rgba(2, 9, 11, .94)),
    radial-gradient(circle at 50% 36%, rgba(87, 217, 232, .18), transparent 50%);
  transform: translateZ(-26px) rotateX(1.5deg);
  box-shadow:
    0 20px 35px rgba(0, 0, 0, .48),
    inset 0 0 30px rgba(87, 217, 232, .05),
    0 0 20px rgba(87, 217, 232, .04);
}
.bot-map-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 14%;
  bottom: -19px;
  left: 14%;
  height: 23px;
  border: 1px solid rgba(87, 217, 232, .18);
  background: #0d181d;
  transform: rotateX(-72deg);
  transform-origin: top center;
}
.bot-map-hologram-label {
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 199, 95, .2);
  border-radius: 4px;
  color: #f3d783;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .12em;
  text-shadow: 0 0 8px rgba(243, 199, 95, .45);
}
.bot-map-heading { color: #f3c75f !important; }
.bot-map-sync {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #90aaa7;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .04em;
}
.bot-map-sync-light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7bdc8b;
  box-shadow: 0 0 8px rgba(123, 220, 139, .8);
  animation: bot-room-sync 1.5s ease-in-out infinite alternate;
}
@keyframes bot-room-sync { to { opacity: .45; } }
.bot-room-map {
  position: relative;
  flex: 0 0 172px;
  overflow: hidden;
  border: 1px solid rgba(89, 215, 200, .2);
  border-radius: 8px;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 20px, rgba(87, 217, 232, .05) 21px 22px),
    radial-gradient(circle at 50% 50%, rgba(31, 107, 111, .26), rgba(3, 12, 15, .96));
  box-shadow: inset 0 0 24px rgba(87, 217, 232, .08), 0 0 15px rgba(87, 217, 232, .05);
}
.bot-room-map-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.bot-room-map-lines .map-frame { fill: transparent; stroke: rgba(122, 178, 180, .15); }
.bot-room-map-lines .map-roads { fill: none; stroke: rgba(91, 126, 130, .2); stroke-width: 13; }
.bot-room-map-lines .map-plaza { fill: rgba(89, 215, 200, .08); stroke: rgba(89, 215, 200, .24); }
.bot-room-map-lines .map-park { fill: rgba(112, 208, 96, .11); stroke: rgba(112, 208, 96, .28); }
.bot-room-map-lines .map-route { fill: none; stroke-width: 2.2; stroke-dasharray: 4 4; opacity: .55; }
.bot-room-map-lines .map-route.is-codex { stroke: var(--bot-codex); }
.bot-room-map-lines .map-route.is-claude { stroke: var(--bot-claude); }
.bot-map-marker {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 2px solid #dffcff;
  border-radius: 50% 50% 44% 44%;
  background: #1d6d78;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(87, 217, 232, .13), 0 0 12px rgba(87, 217, 232, .72);
  font-size: 7px;
  font-weight: 900;
  transition: left 100ms linear, top 100ms linear;
}
.bot-map-marker.is-claude {
  border-color: #ffe5d9;
  background: #945036;
  box-shadow: 0 0 0 3px rgba(229, 139, 93, .13), 0 0 12px rgba(229, 139, 93, .72);
}
.bot-map-landmark {
  position: absolute;
  color: rgba(199, 224, 220, .5);
  font-size: 5px;
  font-weight: 900;
  letter-spacing: .04em;
  pointer-events: none;
}
.bot-map-landmark.is-plaza { left: 43%; top: 43%; }
.bot-map-landmark.is-park { right: 7%; bottom: 16%; color: rgba(142, 226, 139, .65); }
.bot-map-locations { display: grid; gap: 3px; }
.bot-map-location {
  min-width: 0;
  display: grid;
  grid-template-columns: 53px minmax(0, 1fr);
  gap: 5px;
  border-left: 2px solid var(--bot-codex);
  color: #9bb0ad;
  padding-left: 5px;
  font-size: 7px;
  line-height: 10px;
}
.bot-map-location.is-claude { border-color: var(--bot-claude); }
.bot-map-location strong { overflow: hidden; color: #eef5f3; text-overflow: ellipsis; }
.bot-map-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bot-activity-heading { margin-top: 2px; color: #f3c75f !important; }
.bot-room-activity {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  color: #96aaa7;
  font-size: 7px;
  line-height: 9px;
  scrollbar-width: thin;
}
.bot-activity-row {
  display: grid;
  gap: 2px;
  border-left: 2px solid var(--bot-codex);
  margin-bottom: 4px;
  background: rgba(255, 255, 255, .025);
  padding: 3px 4px;
}
.bot-activity-row.is-claude { border-left-color: var(--bot-claude); }
.bot-activity-row strong { color: #dfeae8; font-size: 7px; }
.bot-activity-row span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.bot-room-safety {
  flex: 0 0 auto;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(243, 199, 95, .2);
  border-radius: 5px;
  background: rgba(74, 56, 17, .14);
  color: #9eaaa4;
  padding: 5px;
  font-size: 6px;
  line-height: 8px;
}
.bot-room-safety strong { color: #f0ce78; font-size: 7px; letter-spacing: .035em; }

.bot-control-room.is-mobile-portal {
  position: fixed;
  z-index: 60;
  inset: env(safe-area-inset-top, 0) 0 calc(var(--runtime-debug-height) + env(safe-area-inset-bottom, 0px)) 0;
  width: auto;
  height: auto;
  background: linear-gradient(150deg, #07181d, #15130f 58%, #27120e);
}
.bot-control-room.is-mobile-portal .bot-room-header {
  position: absolute;
  height: 66px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 9px 7px 11px;
}
.bot-control-room.is-mobile-portal .bot-room-eyebrow { font-size: 8px; }
.bot-control-room.is-mobile-portal .bot-room-title { font-size: 19px; }
.bot-control-room.is-mobile-portal .bot-room-subtitle { max-width: 245px; font-size: 7px; }
.bot-control-room.is-mobile-portal .bot-room-global-status {
  position: absolute;
  right: 9px;
  bottom: 5px;
  max-width: 160px;
  padding: 4px 7px;
  font-size: 7px;
}
.bot-control-room.is-mobile-portal .bot-room-back {
  align-self: start;
  min-width: 96px;
  min-height: 42px;
  font-size: 12px;
}
.bot-control-room.is-mobile-portal .bot-room-navigation {
  position: absolute;
  top: 72px;
  width: calc(100% - 14px);
  height: 40px;
  gap: 4px;
}
.bot-control-room.is-mobile-portal .bot-room-view-button {
  min-height: 32px;
  font-size: 9px;
}
.bot-control-room.is-mobile-portal .bot-room-movement-hint { display: none; }
.bot-control-room.is-mobile-portal .bot-room-dashboard {
  inset: 119px 7px 7px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-width: thin;
}
.bot-control-room.is-mobile-portal .bot-provider-panel,
.bot-control-room.is-mobile-portal .bot-map-panel {
  flex: 0 0 auto;
  min-height: 610px;
  overflow: visible;
  padding: 10px;
  transform: none;
  filter: none;
  opacity: 1;
  pointer-events: auto;
}
.bot-control-room.is-mobile-portal[data-viewpoint] .bot-provider-panel,
.bot-control-room.is-mobile-portal[data-viewpoint] .bot-map-panel {
  transform: none;
  filter: none;
  opacity: 1;
  pointer-events: auto;
}
.bot-control-room.is-mobile-portal .bot-map-panel { min-height: 535px; order: 2; }
.bot-control-room.is-mobile-portal .bot-provider-panel.is-codex { order: 1; }
.bot-control-room.is-mobile-portal .bot-provider-panel.is-claude { order: 3; }
.bot-control-room.is-mobile-portal .bot-provider-heading { flex-basis: 48px; }
.bot-control-room.is-mobile-portal .bot-console-marquee {
  flex-basis: 28px;
  font-size: 9px;
}
.bot-control-room.is-mobile-portal .bot-provider-avatar { width: 42px; height: 42px; flex-basis: 42px; font-size: 13px; }
.bot-control-room.is-mobile-portal .bot-provider-heading h2 { font-size: 21px; }
.bot-control-room.is-mobile-portal .bot-provider-heading p { font-size: 11px; }
.bot-control-room.is-mobile-portal .bot-provider-availability,
.bot-control-room.is-mobile-portal .bot-room-section-heading { font-size: 9px; }
.bot-control-room.is-mobile-portal .bot-room-slots { gap: 5px; }
.bot-control-room.is-mobile-portal .bot-room-slot { height: 48px; padding: 6px 8px; }
.bot-control-room.is-mobile-portal .bot-room-slot-top { font-size: 10px; line-height: 13px; }
.bot-control-room.is-mobile-portal .bot-room-slot-activity { font-size: 9px; line-height: 11px; }
.bot-control-room.is-mobile-portal .bot-room-selected-heading { font-size: 10px; }
.bot-control-room.is-mobile-portal .bot-room-owner { min-height: 13px; font-size: 9px; line-height: 12px; }
.bot-control-room.is-mobile-portal .bot-room-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.bot-control-room.is-mobile-portal .bot-room-self-heal-card { grid-column: 1 / -1; }
.bot-control-room.is-mobile-portal .bot-room-options label,
.bot-control-room.is-mobile-portal .bot-room-runtime-label,
.bot-control-room.is-mobile-portal .bot-room-prompt-label { font-size: 9px; }
.bot-control-room.is-mobile-portal .bot-room-runtime,
.bot-control-room.is-mobile-portal .bot-room-model { min-height: 46px; font-size: 12px; }
.bot-control-room.is-mobile-portal .bot-room-runtime-detail { font-size: 8px; line-height: 10px; }
.bot-control-room.is-mobile-portal .bot-room-workspace {
  padding: 6px 7px;
  font-size: 9px;
  line-height: 12px;
}
.bot-control-room.is-mobile-portal .bot-room-prompt { height: 74px; min-height: 74px; font-size: 14px; line-height: 18px; }
.bot-control-room.is-mobile-portal .bot-room-actions button { min-height: 44px; font-size: 10px; }
.bot-control-room.is-mobile-portal .bot-room-feedback { min-height: 27px; font-size: 9px; line-height: 12px; }
.bot-control-room.is-mobile-portal .bot-room-transcript {
  flex-basis: 90px;
  min-height: 76px;
  max-height: 112px;
  font-size: 9px;
}
.bot-control-room.is-mobile-portal .bot-map-sync,
.bot-control-room.is-mobile-portal .bot-map-location,
.bot-control-room.is-mobile-portal .bot-room-activity,
.bot-control-room.is-mobile-portal .bot-activity-row strong { font-size: 9px; line-height: 12px; }
.bot-control-room.is-mobile-portal .bot-room-map { flex-basis: 245px; }
.bot-control-room.is-mobile-portal .bot-map-marker { width: 30px; height: 30px; font-size: 9px; }
.bot-control-room.is-mobile-portal .bot-room-safety { font-size: 9px; line-height: 12px; }
.bot-control-room.is-mobile-portal .bot-room-safety strong { font-size: 9px; }

html.umph-high-contrast #game-shell { filter: contrast(1.16); }
html.umph-reduced-motion *,
html.umph-reduced-motion *::before,
html.umph-reduced-motion *::after {
  animation-duration: .001ms !important;
  transition-duration: .001ms !important;
}

html.umph-color-deuteranopia #game-shell { filter: saturate(.82) hue-rotate(7deg); }
html.umph-color-protanopia #game-shell { filter: saturate(.78) hue-rotate(16deg); }
html.umph-color-tritanopia #game-shell { filter: saturate(.78) hue-rotate(-12deg); }

#world-canvas {
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

#world-canvas.active { opacity: 1; }

#game-canvas {
  z-index: 1;
  touch-action: none;
}

/* The splash (#loading) and its critical CSS live inline in index.html so it
   paints before this stylesheet or any module loads. */

/* Notepad as a full-screen sheet on phones (hud.js decides via is-mobile-portal). */
.notepad-workspace.is-mobile-portal {
  position: fixed;
  z-index: 59;
  inset: max(8px, env(safe-area-inset-top)) 8px calc(var(--runtime-debug-height) + 8px + env(safe-area-inset-bottom, 0px));
  width: auto;
  height: auto;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, .42fr) minmax(0, .58fr);
  border: 1px solid rgba(89, 215, 200, .72);
  border-radius: 12px;
  background: #091516;
  box-shadow: 0 14px 50px rgba(0, 0, 0, .72), 0 0 0 999px rgba(2, 7, 8, .55);
}
.notepad-workspace.is-mobile-portal .notepad-mobile-close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 9px;
  display: block;
  min-width: 64px;
  height: 38px;
  border: 1px solid rgba(243, 199, 95, .72);
  border-radius: 8px;
  background: #473a1c;
  color: #fff4ce;
  font: 900 13px/1 Inter, "Segoe UI", system-ui, sans-serif;
}
.notepad-workspace.is-mobile-portal .notepad-section-title { font-size: 13px; }
.notepad-workspace.is-mobile-portal .notepad-private-pane .notepad-section-title { padding-right: 74px; }
.notepad-workspace.is-mobile-portal .notepad-pane { padding: 12px; }
.notepad-workspace.is-mobile-portal .notepad-private-pane {
  gap: 7px;
  border-right: 0;
  border-bottom: 1px solid rgba(89, 215, 200, .25);
}
.notepad-workspace.is-mobile-portal .notepad-textarea {
  min-height: 74px;
  font-size: 16px;
  line-height: 26px;
}
.notepad-workspace.is-mobile-portal .notepad-status,
.notepad-workspace.is-mobile-portal .notepad-feedback { font-size: 11px; }
.notepad-workspace.is-mobile-portal .notepad-action {
  min-height: 44px;
  padding-inline: 9px;
  font-size: 12px;
}
.notepad-workspace.is-mobile-portal .notepad-private-actions { gap: 8px; }
.notepad-workspace.is-mobile-portal .notepad-feed-tab {
  min-height: 44px;
  font-size: 11px;
}
.notepad-workspace.is-mobile-portal .notepad-shared-pane { gap: 7px; }
.notepad-workspace.is-mobile-portal .shared-note-meta { font-size: 12px; }
.notepad-workspace.is-mobile-portal .shared-note-meta time { font-size: 10px; }
.notepad-workspace.is-mobile-portal .shared-note-body { font-size: 14px; }
.notepad-workspace.is-mobile-portal .shared-note-assignment { font-size: 11px; }
.notepad-workspace.is-mobile-portal .shared-note-byline,
.notepad-workspace.is-mobile-portal .shared-note-output { font-size: 10px; }
.notepad-workspace.is-mobile-portal .global-checklist-toggle,
.notepad-workspace.is-mobile-portal .global-checklist-toggle span {
  width: 44px;
  height: 44px;
}
.notepad-workspace.is-mobile-portal .global-checklist-header {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
}
.notepad-workspace.is-mobile-portal .global-checklist-body,
.notepad-workspace.is-mobile-portal .global-checklist-source,
.notepad-workspace.is-mobile-portal .global-checklist-completion {
  margin-left: 54px;
}
@media (orientation: landscape) {
  .notepad-workspace.is-mobile-portal {
    inset: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
  }
  .notepad-workspace.is-mobile-portal .notepad-private-pane { border-bottom: 0; border-right: 1px solid rgba(89, 215, 200, .25); }
  .notepad-workspace.is-mobile-portal .notepad-private-pane .notepad-section-title { padding-right: 0; }
  .notepad-workspace.is-mobile-portal .notepad-shared-header { padding-right: 78px; }
}
/* Full-screen sheets cover the stage; tuck the stethoscope away meanwhile. */
html.umph-mobile body:has(.notepad-workspace.is-mobile-portal, .sp-backdrop, .bot-control-room.is-mobile-portal) .diag-toggle:not(.is-open) { display: none; }
html.umph-keyboard-open .notepad-workspace.is-mobile-portal {
  top: calc(var(--vvtop, 0px) + 6px);
  bottom: auto;
  height: calc(var(--vvh, 100dvh) - 12px);
}

@media (max-width: 680px) {
  #game-shell { border-radius: 0; }
  .notepad-workspace:not(.is-mobile-portal) {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, .48fr) minmax(0, .52fr);
  }
  .notepad-workspace:not(.is-mobile-portal) .notepad-pane { padding: 8px 10px; }
  .notepad-workspace:not(.is-mobile-portal) .notepad-private-pane {
    gap: 5px;
    border-right: 0;
    border-bottom: 1px solid rgba(89, 215, 200, .25);
  }
  .notepad-workspace:not(.is-mobile-portal) .notepad-textarea { min-height: 62px; font-size: 13px; line-height: 24px; }
  .notepad-workspace:not(.is-mobile-portal) .notepad-action { min-height: 40px; font-size: 11px; }
  .notepad-workspace:not(.is-mobile-portal) .notepad-feed-tab { min-height: 38px; font-size: 9px; }
  .notepad-workspace:not(.is-mobile-portal) .notepad-shared-pane { gap: 4px; }
  .notepad-workspace:not(.is-mobile-portal) .shared-note-body { font-size: 12px; }
}

/* Playback and runtime diagnostics share one compact, non-interactive strip. */
html.umph-performance-debug-visible #stage-wrap {
  bottom: var(--runtime-debug-height);
}

#performance-debug {
  position: fixed;
  z-index: 61;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--runtime-debug-height);
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1fr) minmax(0, 1.2fr) auto auto;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 3px 8px;
  background: rgba(3, 8, 9, .94);
  border-top: 1px solid rgba(89, 215, 200, .32);
  color: #9ec2bd;
  font: 600 8px/11px ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
}
#performance-debug.song-hidden {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto auto;
}
#performance-debug.hidden { display: none; }
.performance-song {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(54px, 94px) 67px;
  align-items: center;
  gap: 6px;
  color: #cfe8e4;
}
.performance-song.hidden { display: none; }
.performance-song[data-kind="track"] { color: #ffe9ad; }
.performance-song[data-kind="muted"],
.performance-song[data-kind="silent"] { opacity: .55; }
.now-playing-copy,
.performance-debug-copy,
.audio-debug-copy,
.build-debug-copy {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.now-playing-time {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.song-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.song-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  box-shadow: 0 0 8px rgba(89,215,200,.7);
  transition: width 90ms linear;
}
.song-progress.paused { opacity: .45; }
.audio-debug-copy { color: #f0ce78; text-align: right; }
.build-debug-copy { color: #8ee28b; text-align: right; }
.global-checklist-delete {
  margin-left: auto;
  flex: none;
  min-width: 30px;
  min-height: 26px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  background: transparent;
  color: #c9d6d4;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.global-checklist-card.is-in-progress { border-color: rgba(243, 199, 95, .75); }
.global-checklist-progress { display: grid; gap: 4px; margin: 6px 0 8px; }
.global-checklist-progress-label { color: #f3c75f; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.global-checklist-progress-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.global-checklist-progress-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #f3c75f, #59d7c8); transition: width .4s ease; }
.global-checklist-progress-note { color: #dfe9e7; font-size: 11px; line-height: 1.35; }
.global-checklist-progress-updated { color: #8fa5a2; font-size: 10px; }
.global-checklist-delete:hover { border-color: rgba(255, 120, 110, .7); }
.global-checklist-delete.armed { border-color: #ff7a6e; background: rgba(255, 122, 110, .18); color: #ffd7d2; font-weight: 700; }
/* The seamless-update cover (#seamless-update-cover) is styled inline in index.html. */
/* The strip itself ignores pointer input; only the copy button is clickable. */
.diagnostics-copy {
  pointer-events: auto;
  cursor: pointer;
  padding: 1px 7px;
  border: 1px solid rgba(89, 215, 200, .55);
  border-radius: 4px;
  background: rgba(89, 215, 200, .12);
  color: #bff5ee;
  font: inherit;
  letter-spacing: .04em;
}
.diagnostics-copy:hover { background: rgba(89, 215, 200, .26); }
.diagnostics-copy:focus-visible { outline: 2px solid #59d7c8; outline-offset: 1px; }

/* Persistent multiplayer signals sit just below the 38px top nav. */
#game-signal-banner {
  position: absolute;
  z-index: 12;
  top: calc(var(--safe-top, 0px) + 44px);
  left: 50%;
  width: min(640px, calc(100% - 16px));
  min-height: 45px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 11px;
  padding: 7px 9px 7px 13px;
  border: 1px solid rgba(89, 215, 200, .72);
  border-radius: 8px;
  background: rgba(10, 24, 26, .96);
  box-shadow: 0 9px 28px rgba(0,0,0,.38);
  color: var(--text);
  font-size: 13px;
}
#game-signal-banner[hidden] { display: none; }
#game-signal-banner.is-update { border-color: rgba(243, 199, 95, .9); }
.game-signal-badge {
  color: var(--teal);
  font-size: 10px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.is-update .game-signal-badge { color: var(--gold); }
/* Alerts wrap onto extra lines instead of being cut off with an ellipsis. */
.game-signal-copy { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.game-signal-refresh,
.game-signal-dismiss {
  min-height: 31px;
  border: 1px solid rgba(243,199,95,.75);
  border-radius: 6px;
  background: #f3c75f;
  color: #162021;
  font: 800 11px Inter, "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}
.game-signal-refresh { padding: 0 14px; }
.game-signal-refresh[hidden] { display: none; }
.game-signal-dismiss { width: 31px; padding: 0; background: transparent; color: #c9d6d4; border-color: rgba(255,255,255,.2); font-size: 18px; }
.game-signal-refresh:disabled { opacity: .75; cursor: progress; }
/* Phones: the shell is scaled down a lot, so give the Refresh / × buttons a
   real finger-sized target (about 40 CSS px) and keep the banner above the
   spelling badge that shares the top-left corner. */
html.umph-mobile #game-signal-banner { z-index: 14; }
html.umph-mobile .game-signal-refresh,
html.umph-mobile .game-signal-dismiss { min-height: min(104px, calc(40px / var(--stage-scale, 1))); font-size: min(30px, calc(13px / var(--stage-scale, 1))); touch-action: manipulation; }
html.umph-mobile .game-signal-dismiss { width: min(104px, calc(40px / var(--stage-scale, 1))); }
html.umph-mobile .game-signal-refresh { padding: 0 min(36px, calc(14px / var(--stage-scale, 1))); }

/* ---------------------------------------------------------------------------
   Touch layout (html.umph-mobile, set by fitGame in main.js).
   The 960x600 shell is positioned by an inline translate+scale; the Three.js
   world canvas is rendered past the shell edges to fill the letterbox, so the
   shell must not clip it. Portrait screens pin the stage to the top and use
   the space below as a control deck.
   --------------------------------------------------------------------------- */
/* Page-level touch controls (outside the scaled stage, real CSS pixels),
   overlaid on the full-screen world: floating joystick bottom-left, USE /
   JUMP / contextual action bottom-right, everything else behind "•••". */
#mobile-controls {
  --mc-edge: 14px;
  --mc-left: calc(env(safe-area-inset-left, 0px) + var(--mc-edge));
  --mc-right: calc(env(safe-area-inset-right, 0px) + var(--mc-edge));
  --mc-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  position: fixed;
  z-index: 45;
  inset: 0;
  display: none;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
html.umph-performance-debug-visible #mobile-controls {
  --mc-bottom: calc(env(safe-area-inset-bottom, 0px) + 14px + var(--runtime-debug-height));
}
#mobile-controls[hidden] { display: none !important; }
html.umph-touch-controls #mobile-controls { display: block; }

/* Joystick: the zone catches the thumb, the ring appears under it. */
.mobile-stick-zone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(48vw, 300px);
  height: min(40vh, 300px);
  padding-left: var(--mc-left);
  touch-action: none;
  pointer-events: auto;
}
.mobile-stick {
  position: absolute;
  left: var(--mc-left);
  bottom: var(--mc-bottom);
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: .5;
  transition: opacity .15s ease;
}
.mobile-stick.active { opacity: 1; transition: none; }
.mobile-stick-ring {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(89, 215, 200, .65);
  background: radial-gradient(circle, rgba(89, 215, 200, .08) 0 34%, rgba(8, 18, 20, .38) 35% 100%);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, .3);
}
.mobile-stick.active .mobile-stick-ring { border-color: #8af0e3; background: radial-gradient(circle, rgba(89, 215, 200, .14) 0 34%, rgba(8, 18, 20, .5) 35% 100%); }
.mobile-stick-knob {
  position: absolute;
  left: calc(50% - 24px);
  top: calc(50% - 24px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(217, 228, 225, .85);
  border: 3px solid rgba(89, 215, 200, .9);
  box-shadow: 0 3px 9px rgba(0, 0, 0, .35);
  will-change: transform;
}

/* Primary actions: a thumb arc in the bottom-right corner. */
.mobile-action-cluster {
  position: absolute;
  right: var(--mc-right);
  bottom: var(--mc-bottom);
  width: 196px;
  height: 150px;
  pointer-events: none;
}
.mobile-action {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 4px;
  border: 2px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(12, 24, 26, .5);
  color: #f4f6f3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
  font: 900 12px/1 Inter, "Segoe UI", system-ui, sans-serif;
  letter-spacing: .03em;
  touch-action: none;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.mobile-action[hidden] { display: none; }
.mobile-action.pressed { transform: scale(.94); filter: brightness(1.3); }
.mobile-use { right: 0; bottom: 0; width: 76px; height: 76px; border-color: rgba(89, 215, 200, .85); background: rgba(29, 90, 82, .58); font-size: 15px; }
.mobile-jump { right: 88px; bottom: 4px; width: 62px; height: 62px; border-color: rgba(243, 199, 95, .85); background: rgba(92, 70, 24, .55); font-size: 13px; }
.mobile-primary-slot { position: absolute; right: 8px; bottom: 88px; pointer-events: none; }
.mobile-primary-slot .mobile-action { position: relative; width: 60px; height: 60px; font-size: 11px; }
.mobile-exit { right: 90px; bottom: 80px; width: 58px; height: 58px; border-color: rgba(255, 118, 95, .8); background: rgba(84, 34, 30, .55); font-size: 11px; }
.mobile-more { right: 160px; bottom: 10px; width: 48px; height: 48px; font-size: 14px; letter-spacing: 0; }
.mobile-more.is-open { border-color: rgba(255, 255, 255, .7); background: rgba(12, 24, 26, .82); }
#mobile-controls.has-exit .mobile-more { bottom: 74px; right: 156px; }

/* The "more" sheet: pills above the cluster. */
.mobile-more-sheet {
  position: absolute;
  right: var(--mc-right);
  bottom: calc(var(--mc-bottom) + 156px);
  max-width: min(300px, calc(100vw - 2 * var(--mc-edge)));
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(8, 16, 18, .72);
  pointer-events: auto;
}
.mobile-more-sheet[hidden] { display: none; }
.mobile-more-sheet, .mobile-badge-slot { touch-action: none; }
.mobile-more-sheet .mobile-context { display: contents; }
.mobile-more-sheet .mobile-action {
  position: relative;
  min-width: 84px;
  height: 48px;
  padding: 0 12px;
  border-radius: 24px;
  background: rgba(15, 29, 31, .8);
}
.mobile-note { border-color: rgba(112, 208, 96, .78) !important; }
.mobile-wave { border-color: rgba(190, 130, 255, .8) !important; }
.mobile-context-action.tone-teal { border-color: rgba(89, 215, 200, .6); }
.mobile-context-action.tone-gold { border-color: rgba(243, 199, 95, .85); }
.mobile-context-action.tone-orange { border-color: rgba(240, 138, 46, .9); }
.mobile-context-action.tone-pink { border-color: rgba(255, 118, 95, .8); }
.mobile-context-action.tone-purple { border-color: rgba(190, 130, 255, .8); }
.mobile-context-action.tone-green { border-color: rgba(112, 208, 96, .8); }
.mobile-primary.tone-gold { background: rgba(80, 62, 22, .6); }
.mobile-primary.tone-orange { background: rgba(92, 50, 16, .62); }
.mobile-primary.tone-pink { background: rgba(84, 34, 30, .6); }
.mobile-primary.tone-purple { background: rgba(70, 42, 94, .6); }
.mobile-primary.tone-green { background: rgba(37, 78, 44, .6); }

/* Spelling badge: small, under the nav, top-left. */
.mobile-badge-slot {
  position: absolute;
  left: var(--mc-left);
  top: calc(var(--nav-bottom, 44px) + 8px);
  display: flex;
  pointer-events: none;
}

/* Short landscape phones: slightly smaller cluster. */
@media (orientation: landscape) and (max-height: 430px) {
  .mobile-stick { width: 116px; height: 116px; }
  .mobile-stick-ring { width: 110px; height: 110px; }
  .mobile-stick-zone { width: min(36vw, 300px); height: min(62vh, 260px); }
  .mobile-use { width: 68px; height: 68px; }
  .mobile-jump { width: 56px; height: 56px; right: 80px; }
  .mobile-more { right: 146px; }
  .mobile-more-sheet { bottom: calc(var(--mc-bottom) + 146px); max-width: min(420px, 50vw); }
}

/* The Pixi arrow pad duplicates the joystick on touch screens. */
html.umph-touch-controls .bball-shoot { display: none !important; }

@media (max-width: 680px) {
  :root {
    --runtime-debug-height: 42px;
  }
  #performance-debug {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 1px 7px;
    padding: 3px 6px 2px;
    font-size: 8px;
    line-height: 10px;
  }
  #performance-debug.song-hidden {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .performance-song {
    grid-column: 1 / -1;
    grid-template-columns: minmax(68px, 1fr) minmax(60px, .75fr) 53px;
    gap: 5px;
  }
  .performance-debug-copy {
    grid-column: 1 / -1;
  }
  .audio-debug-copy { text-align: left; }
  .build-debug-copy { text-align: right; }
}

/* Sleeping: a fade to a starry night and back (web/js/sleep.js). */
.sleep-overlay {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  color: #e9eefc;
  background: radial-gradient(circle at 50% 35%, #1b2654 0%, #070a1c 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s ease, background 1.2s ease;
}
.sleep-overlay.visible { opacity: 1; pointer-events: auto; }
.sleep-overlay.waking { background: radial-gradient(circle at 50% 35%, #ffd99a 0%, #f0a06b 45%, #4a5a8c 100%); }
.sleep-moon { font-size: 64px; line-height: 1; }
.sleep-text { font: 800 26px/1.2 system-ui, sans-serif; letter-spacing: .04em; }
.sleep-logoff { z-index: 120; padding: 24px; }
.sleep-note { max-width: 420px; margin: 0 auto; font: 600 16px/1.4 system-ui, sans-serif; color: #c9d3f5; }
.sleep-wake { justify-self: center; margin-top: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 14px;
  background: #ffd36b; color: #2a1a08; font: 900 18px system-ui, sans-serif; cursor: pointer; }
.sleep-wake[hidden] { display: none; }

/* Heart-rate / pace badge while walking and running (scenes/cityGait.js). */
.gait-hud {
  position: absolute;
  right: 16px;
  bottom: 74px;
  z-index: 11;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 8px;
  min-width: 132px;
  padding: 6px 10px;
  border: 1px solid rgba(89, 215, 200, .55);
  border-radius: 10px;
  background: rgba(10, 24, 26, .86);
  color: #e6f4f1;
  font: 800 13px/1.15 system-ui, sans-serif;
  pointer-events: none;
}
.gait-heart { color: #ff5a6e; font-size: 16px; animation: gait-beat .8s ease-in-out infinite; }
.gait-label { grid-column: 1 / -1; font-size: 10px; letter-spacing: .08em; color: #9fe6dc; }
.gait-bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.gait-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #59d7c8, #f3c75f, #ff5a6e); transition: width .3s ease; }
.gait-hud.hard .gait-label { color: #f3c75f; }
.gait-hud.exhausted { border-color: #ff5a6e; }
.gait-hud.exhausted .gait-label { color: #ff8a8a; }
@keyframes gait-beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } }

/* City minimap (web/js/minimap.js), shown by the nav's map button / M key
   (off → small → big map). Sits top-right, just under the 38px nav. */
.city-minimap-wrap { position: absolute; top: calc(var(--safe-top, 0px) + 44px); right: calc(var(--safe-right, 0px) + 8px); z-index: 11; transition: opacity .12s ease; }
.city-minimap-wrap[hidden] { display: none; }
.city-minimap-wrap.tooltip-dodge { opacity: 0; pointer-events: none; }
.city-minimap-button {
  position: absolute;
  top: 5px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(89, 215, 200, .7);
  border-radius: 6px;
  background: rgba(10, 24, 26, .85);
  color: #e6f4f1;
  font: 800 14px/1 system-ui, sans-serif;
  cursor: pointer;
}
.city-minimap-button:hover { background: rgba(89, 215, 200, .3); }
.city-minimap-expand { right: 31px; font-size: 13px; }
.city-minimap-close { right: 5px; }
.city-minimap {
  display: block;
  width: 132px;
  height: 132px;
  border: 2px solid rgba(89, 215, 200, .7);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  cursor: zoom-in;
}

/* Basketball court HUD (scenes/cityBasketball.js). */
.bball-hud {
  position: absolute;
  top: calc(var(--safe-top, 0px) + 136px);
  left: calc(var(--safe-left, 0px) + 16px);
  z-index: 11;
  min-width: 200px;
  max-width: min(320px, 60%);
  padding: 6px 14px 8px;
  border: 1px solid rgba(240, 138, 46, .75);
  border-radius: 10px;
  background: rgba(13, 20, 24, .88);
  color: #e6f4f1;
  font: 800 12px/1.25 system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
}
.bball-hud-title { font-size: 10px; letter-spacing: .08em; color: #f3c75f; }
.bball-hud-clock { font: 800 24px/1.1 "Courier New", monospace; color: #ff5a4e; }
.bball-hud-scores { white-space: pre-wrap; }
.bball-meter {
  position: absolute;
  left: 50%;
  bottom: 112px;
  z-index: 12;
  width: 260px;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  color: #e6f4f1;
  font: 800 11px/1.3 system-ui, sans-serif;
}
.bball-meter-track {
  position: relative;
  height: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 9px;
  background: rgba(13, 20, 24, .85);
}
.bball-meter-zone { position: absolute; top: 0; bottom: 0; background: rgba(89, 215, 120, .75); }
.bball-meter-fill { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 6px; background: linear-gradient(90deg, #f3c75f, #f08a2e); opacity: .9; }
.bball-meter-label { margin-top: 3px; text-shadow: 0 1px 2px #000; }
.bball-panel {
  position: absolute;
  top: calc(var(--safe-top, 0px) + 120px);
  right: calc(var(--safe-right, 0px) + 160px);
  z-index: 13;
  width: 300px;
  max-width: calc(100% - 32px);
  padding: 12px 14px;
  border: 2px solid #f08a2e;
  border-radius: 12px;
  background: rgba(13, 20, 24, .95);
  color: #e6f4f1;
  font: 600 12px/1.4 system-ui, sans-serif;
}
.bball-panel h3 { margin: 0 24px 6px 0; font-size: 15px; color: #f3c75f; }
.bball-panel p { margin: 6px 0; }
.bball-panel ul { margin: 4px 0; padding-left: 18px; }
.bball-panel .team-A { color: #ff6b5a; }
.bball-panel .team-B { color: #6fb8ff; }
.bball-panel .bball-dim { color: #9fb3b0; font-size: 11px; }
.bball-panel .bball-result { color: #f3c75f; font-weight: 800; }
.bball-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bball-panel button {
  padding: 7px 10px;
  border: 1px solid #f08a2e;
  border-radius: 8px;
  background: #f08a2e;
  color: #111;
  font: 800 12px/1 system-ui, sans-serif;
  cursor: pointer;
}
.bball-panel button.ghost { background: transparent; color: #f3c75f; }
.bball-panel .bball-close { position: absolute; top: 6px; right: 6px; padding: 2px 8px; background: transparent; color: #e6f4f1; border-color: #555; }
.bball-banner {
  position: absolute;
  top: 34%;
  left: 50%;
  z-index: 14;
  transform: translateX(-50%);
  padding: 10px 22px;
  border-radius: 14px;
  background: rgba(13, 20, 24, .9);
  font: 900 26px/1.2 system-ui, sans-serif;
  text-align: center;
  text-shadow: 0 2px 4px #000;
  pointer-events: none;
}
.bball-shoot {
  position: absolute;
  right: 18px;
  bottom: 150px;
  z-index: 12;
  width: 92px;
  height: 92px;
  border: 3px solid #f08a2e;
  border-radius: 50%;
  background: rgba(13, 20, 24, .85);
  color: #f3c75f;
  font: 800 13px/1.2 system-ui, sans-serif;
  touch-action: none;
}
.bball-ui [hidden] { display: none !important; }
/* Touch: clear of the spelling badge (top-left) and above the touch controls
   (196 CSS px tall in portrait, 150 in landscape: converted to stage units). */
html.umph-touch-controls .bball-hud { top: calc(var(--safe-top, 0px) + 176px); }
html.umph-touch-controls .bball-meter { bottom: calc(var(--safe-bottom, 0px) + 160px / var(--stage-scale, 1) + 16px); }
html.umph-touch-controls.umph-portrait .bball-meter { bottom: calc(var(--safe-bottom, 0px) + 206px / var(--stage-scale, 1) + 16px); }
html.umph-compact .bball-panel { right: auto; left: 50%; transform: translateX(-50%); width: min(340px, calc(100% - 24px)); }

.gait-hud[hidden] { display: none; }

/* Stethoscope: opens / hides the diagnostics strip. Lives in the page corner,
   outside the scaled stage, so it never steals game space. */
.diag-toggle {
  position: fixed;
  z-index: 63;
  right: calc(3px + env(safe-area-inset-right, 0px));
  bottom: calc(3px + env(safe-area-inset-bottom, 0px));
  width: 20px;
  height: 20px;
  padding: 3px;
  border: 1px solid rgba(89, 215, 200, .35);
  border-radius: 50%;
  background: rgba(3, 8, 9, .55);
  color: rgba(191, 245, 238, .7);
  cursor: pointer;
  opacity: .7;
  transition: opacity .15s ease, background .15s ease;
}
.diag-toggle:hover,
.diag-toggle:focus-visible { opacity: 1; background: rgba(89, 215, 200, .25); outline: none; }
.diag-toggle.is-open {
  /* Vertically centred in the open strip, at its right end. */
  bottom: calc((var(--runtime-debug-height) - 20px) / 2 + env(safe-area-inset-bottom, 0px));
  opacity: 1;
  color: #bff5ee;
  border-color: rgba(89, 215, 200, .7);
}
html.umph-performance-debug-visible #performance-debug { padding-right: 30px; }
html.umph-mobile .diag-toggle:not(.is-open) { width: 28px; height: 28px; padding: 5px; }
/* The stage fills the screen edge to edge, so while the touch controls own
   the bottom corners, tuck the stethoscope under the nav instead. */
html.umph-touch-controls .diag-toggle:not(.is-open) {
  bottom: auto;
  right: calc(env(safe-area-inset-right, 0px) + 10px);
  top: calc(var(--nav-bottom, 44px) + 8px);
}
/* Narrow (portrait) stages have no free corner at all: the stethoscope hides
   and the nav menu sheet's "Diagnostics" button opens the strip instead (the
   open strip still shows it, to close it again). */
html.umph-compact .diag-toggle:not(.is-open) { display: none; }
/* Touch controls + the corner minimap (top right): under the spelling badge instead. */
html.umph-touch-controls body:has(.city-minimap-wrap:not([hidden])) .diag-toggle:not(.is-open) {
  right: auto;
  left: calc(env(safe-area-inset-left, 0px) + 10px);
  top: calc(var(--nav-bottom, 44px) + 54px);
}
/* Touch: the pace badge moves out of the button corner to the top right. */
html.umph-touch-controls .gait-hud {
  top: calc(var(--safe-top, 0px) + 92px);
  bottom: auto;
  right: calc(var(--safe-right, 0px) + 10px);
  transform-origin: 100% 0;
  transform: scale(var(--touch-ui-scale, 1));
}

/* Woodland animal fact card (scenes/cityWoodsAnimals.js): approved text only. */
.woods-fact-card {
  position: absolute;
  left: 50%;
  bottom: calc(var(--safe-bottom, 0px) + 96px);
  transform: translateX(-50%);
  z-index: 14;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: min(420px, calc(100% - 32px));
  padding: 12px 40px 12px 14px;
  border: 2px solid #67d38f;
  border-radius: 14px;
  background: rgba(13, 24, 18, .94);
  color: #eaf6ee;
  font: 500 13px/1.45 system-ui, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  pointer-events: auto;
}
.woods-fact-card[hidden] { display: none; }
.woods-fact-icon { font-size: 34px; line-height: 1; }
.woods-fact-title { font-weight: 800; color: #b9f0c9; margin-bottom: 3px; }
.woods-fact-log { margin-top: 6px; font-size: 11px; color: #9fc4ab; }
.woods-fact-close {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px;
  border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #eaf6ee; font-size: 15px; cursor: pointer;
}
html.umph-compact .woods-fact-card { bottom: calc(var(--safe-bottom, 0px) + 190px); font-size: 12px; }

/* Notes (development mode): add row, kind/priority tags, per-note tools, details. */
.notes-add-row { display: flex; gap: 6px; margin: 0 0 8px; }
.notes-add-row input { flex: 1; min-width: 0; }
.notes-add-row input, .note-priority-select, .notes-add-row button, .note-tools button {
  font: inherit; font-size: 11px; padding: 4px 8px; border-radius: 6px;
  border: 1px solid rgba(89, 215, 200, .45); background: rgba(10, 22, 24, .85); color: #e8f4f2;
}
.notes-add-row button, .note-tools button { cursor: pointer; font-weight: 800; letter-spacing: .04em; }
.note-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.note-kind, .note-priority { font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 1px 6px; border-radius: 999px; background: rgba(185, 140, 255, .25); color: #d9c6ff; }
.note-priority.is-high { background: rgba(255, 118, 95, .3); color: #ffb3a6; }
.note-priority.is-medium { background: rgba(243, 199, 95, .3); color: #f8dd9c; }
.note-priority.is-low { background: rgba(89, 215, 200, .25); color: #a8ece3; }
.note-details { max-height: 260px; overflow: auto; white-space: pre-wrap; font-size: 11px; margin: 6px 0 0; padding: 8px; border-radius: 6px; background: rgba(0, 0, 0, .35); }
button.global-checklist-toggle { flex: none; padding: 0; border: 2px solid rgba(89, 215, 200, .6); border-radius: 7px; background: rgba(10, 22, 24, .85); color: #59d7c8; font-weight: 900; }
button.global-checklist-toggle span { display: grid; place-items: center; width: 100%; height: 100%; }
.team-chat-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; font-size: 13px; }
.team-chat-line { margin: 0; line-height: 1.35; overflow-wrap: anywhere; }
.team-chat-line strong { color: #59d7c8; margin-right: 6px; }
.team-chat-line time { font-size: 10px; opacity: .6; margin-right: 6px; }

/* Compact team chat dock (bottom-right, above the diagnostics toggle). */
.chat-dock {
  position: fixed; z-index: 62; right: calc(8px + env(safe-area-inset-right, 0px)); bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  width: min(260px, 62vw); font-size: 11px; color: #e8f4f2; border-radius: 10px;
  background: rgba(8, 18, 20, .72); border: 1px solid rgba(89, 215, 200, .35); backdrop-filter: blur(4px);
}
.chat-dock-head { display: block; width: 100%; padding: 3px 8px; font: inherit; font-weight: 800; letter-spacing: .06em; text-align: left; color: #59d7c8; background: none; border: 0; cursor: pointer; }
.chat-dock-lines { max-height: 74px; overflow-y: auto; padding: 0 8px; }
.chat-dock-lines p { margin: 0 0 2px; line-height: 1.3; overflow-wrap: anywhere; }
.chat-dock-lines strong { color: #59d7c8; }
.chat-dock-form { padding: 4px 6px 6px; }
.chat-dock-form input { width: 100%; box-sizing: border-box; font: inherit; padding: 3px 6px; border-radius: 6px; border: 1px solid rgba(89, 215, 200, .4); background: rgba(0, 0, 0, .35); color: inherit; }
.chat-dock.is-collapsed .chat-dock-lines, .chat-dock.is-collapsed .chat-dock-form { display: none; }
.chat-dock.is-collapsed { width: auto; }
.chat-dock-form { display: flex; gap: 4px; }
.chat-dock-form input { flex: 1; min-width: 0; width: auto; }
.chat-dock-form button { flex: none; font: inherit; font-weight: 800; font-size: 10px; padding: 3px 6px; border-radius: 6px; cursor: pointer; border: 1px solid rgba(243, 199, 95, .55); background: rgba(243, 199, 95, .15); color: #f8dd9c; }
.chat-dock-lines p.is-pending { opacity: .55; }
.chat-seen { margin-left: 5px; font-size: 9px; opacity: .65; white-space: nowrap; }
/* New team chat messages: unread count, a bubble over the collapsed dock, a flash on new lines. */
.chat-dock-badge { display: inline-block; min-width: 16px; margin-left: 6px; padding: 0 5px; border-radius: 9px; font-size: 10px; line-height: 16px; text-align: center; color: #10201c; background: #ff6b8b; letter-spacing: 0; }
.chat-dock-badge[hidden] { display: none; }
.chat-dock.has-unread { border-color: #ff6b8b; animation: chat-dock-glow 1.6s ease-in-out 3; }
@keyframes chat-dock-glow { 50% { box-shadow: 0 0 0 4px rgba(255, 107, 139, .35); } }
.chat-dock-peek {
  position: absolute; right: 0; bottom: calc(100% + 6px); width: max-content; max-width: min(300px, calc(100vw - 24px));
  padding: 6px 10px; border-radius: 10px; font: inherit; font-size: 12px; line-height: 1.3; text-align: left; color: #e8f4f2;
  background: rgba(8, 18, 20, .92); border: 1px solid #59d7c8; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); cursor: pointer;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}
.chat-dock-peek[hidden] { display: none; }
.chat-dock-peek strong { color: #59d7c8; }
.chat-dock-peek.is-showing { animation: chat-peek-in .22s ease-out; }
@keyframes chat-peek-in { from { opacity: 0; transform: translateY(6px); } }
.chat-dock-lines p.is-new { animation: chat-line-new 2.2s ease-out; border-radius: 4px; }
@keyframes chat-line-new { from { background: rgba(89, 215, 200, .35); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .chat-dock.has-unread, .chat-dock-peek.is-showing, .chat-dock-lines p.is-new { animation: none; } }
/* Team chat extras (web/js/teamChat.js): note lines, reactions, flying reactions. */
.chat-dock-lines { max-height: 92px; }
.chat-dock-lines p.is-note, .team-chat-line.is-note { color: #f8dd9c; }
.chat-dock-lines p.is-note strong, .team-chat-line.is-note strong { color: #f3c75f; }
.chat-reactions { display: inline-flex; flex-wrap: wrap; gap: 3px; margin-left: 5px; vertical-align: middle; }
.chat-react-chip, .chat-react-add, .chat-react-picker button {
  font: inherit; font-size: 10px; line-height: 1; padding: 2px 5px; border-radius: 9px; cursor: pointer; color: #e8f4f2;
  border: 1px solid rgba(89, 215, 200, .35); background: rgba(89, 215, 200, .12);
}
.chat-react-chip.is-mine { border-color: #ff6b8b; background: rgba(255, 107, 139, .22); }
.chat-react-add { opacity: .6; }
.chat-react-add:hover, .chat-react-add:focus-visible { opacity: 1; }
.chat-react-picker { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0 2px; }
.chat-react-picker button { font-size: 17px; padding: 3px 6px; border-radius: 10px; }
html.umph-mobile .chat-react-add, html.umph-mobile .chat-react-chip { font-size: 12px; padding: 3px 7px; }
.team-reaction-fly {
  position: fixed; z-index: 95; left: 0; top: var(--lane, 40vh); pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  animation: team-reaction-fly 3.2s cubic-bezier(.3, .1, .3, 1) forwards;
}
.team-reaction-emoji { font-size: clamp(72px, 16vmin, 150px); line-height: 1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .45)); }
.team-reaction-name {
  font-size: 15px; font-weight: 800; color: #fff; padding: 2px 10px; border-radius: 10px;
  background: rgba(8, 18, 20, .78); border: 1px solid #59d7c8; white-space: nowrap;
}
@keyframes team-reaction-fly {
  0% { transform: translateX(-30vw) rotate(calc(var(--tilt, 0deg) - 20deg)) scale(.6); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translateX(42vw) translateY(-6vh) rotate(var(--tilt, 0deg)) scale(1.15); }
  88% { opacity: 1; }
  100% { transform: translateX(110vw) rotate(calc(var(--tilt, 0deg) + 20deg)) scale(.9); opacity: 0; }
}
.team-reaction-fly.is-calm { left: 50%; animation: team-reaction-pop 2.4s ease-out forwards; }
@keyframes team-reaction-pop { 0% { transform: translateX(-50%) scale(.8); opacity: 0; } 15%, 80% { transform: translateX(-50%) scale(1); opacity: 1; } 100% { transform: translateX(-50%) scale(1); opacity: 0; } }

/* Stethoscope: red when performance looks bad; one click sends a report. */
.diag-toggle.is-alert { background: #ff5a4f !important; color: #fff !important; border-color: #ff5a4f !important; animation: diag-pulse 1.2s ease-in-out infinite; }
.diag-toggle.is-sending { opacity: .5; }
@keyframes diag-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 90, 79, .35); } }
.diag-alert-label {
  position: fixed; z-index: 63; right: calc(28px + env(safe-area-inset-right, 0px)); bottom: calc(3px + env(safe-area-inset-bottom, 0px));
  padding: 2px 8px; border-radius: 999px; font: 800 11px/16px system-ui, sans-serif; color: #fff; background: #ff5a4f; cursor: pointer;
}
.diag-toast {
  position: fixed; z-index: 70; right: 12px; bottom: 30px; max-width: 70vw; padding: 6px 12px; border-radius: 10px;
  font: 700 12px/1.3 system-ui, sans-serif; color: #0b1416; background: #59d7c8; box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

/* Tasks window (milestone board). */
.chat-dock-headrow { display: flex; align-items: center; }
.chat-dock-headrow .chat-dock-head { flex: 1; }
.chat-dock-tasks { flex: none; margin-right: 6px; font: inherit; font-weight: 800; font-size: 10px; padding: 2px 6px; border-radius: 6px; cursor: pointer; border: 1px solid rgba(185, 140, 255, .6); background: rgba(185, 140, 255, .18); color: #e2d4ff; }
.tasks-window { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(4, 10, 12, .62); font: 13px/1.35 system-ui, sans-serif; color: #e8f4f2; }
.tasks-window[hidden] { display: none; }
.tasks-panel { width: min(1180px, 100%); height: min(760px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: #0d1a1d; border: 1px solid rgba(89, 215, 200, .4); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.tasks-head, .tasks-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tasks-title { margin: 0 auto 0 0; font-size: 16px; letter-spacing: .06em; color: #59d7c8; }
.tasks-search, .tasks-add-text, .tasks-select, .tasks-button, .tasks-mini, .tasks-close {
  font: inherit; font-size: 12px; padding: 5px 8px; border-radius: 7px; border: 1px solid rgba(89, 215, 200, .4); background: rgba(0, 0, 0, .3); color: inherit;
}
.tasks-add-text { flex: 1 1 260px; min-width: 0; }
.tasks-button, .tasks-mini, .tasks-close { cursor: pointer; font-weight: 800; }
.tasks-button { background: rgba(89, 215, 200, .2); }
.tasks-board { flex: 1; min-height: 0; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.tasks-column { flex: 0 0 280px; display: flex; flex-direction: column; min-height: 0; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.tasks-column.is-unsorted { background: rgba(255, 255, 255, .02); }
.tasks-column-head { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tasks-column-head h3 { margin: 0 0 4px; font-size: 14px; }
.tasks-column-meta { font-size: 11px; opacity: .75; }
.tasks-progress { height: 5px; margin: 5px 0; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.tasks-progress-fill { height: 100%; background: #59d7c8; }
.tasks-column-tools, .tasks-card-tools { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.tasks-cards { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.tasks-card { padding: 8px; border-radius: 9px; background: #13262a; border-left: 4px solid rgba(255, 255, 255, .2); }
.tasks-card.is-high { border-left-color: #ff765f; }
.tasks-card.is-medium { border-left-color: #f3c75f; }
.tasks-card.is-low { border-left-color: #59d7c8; }
.tasks-card.is-done { opacity: .5; }
.tasks-card.is-done .tasks-card-body { text-decoration: line-through; }
.tasks-card-top { display: flex; gap: 8px; align-items: flex-start; }
.tasks-check { flex: none; width: 22px; height: 22px; border-radius: 6px; cursor: pointer; border: 2px solid rgba(89, 215, 200, .6); background: none; color: #59d7c8; font-weight: 900; padding: 0; }
.tasks-card-body { margin: 0; cursor: text; overflow-wrap: anywhere; }
.tasks-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; font-size: 10px; opacity: .85; }
.tasks-tag { padding: 1px 6px; border-radius: 999px; font-weight: 800; background: rgba(185, 140, 255, .25); }
.tasks-tag.is-progress { background: rgba(89, 215, 200, .25); }
.tasks-progress-note { margin: 0 0 6px; font-size: 11px; opacity: .7; }
.tasks-empty { margin: 6px; opacity: .5; font-size: 12px; }
@media (max-width: 700px) {
  .tasks-board { flex-direction: column; overflow-x: hidden; overflow-y: auto; }
  .tasks-column { flex: 0 0 auto; }
  .tasks-cards { overflow: visible; }
}
.diag-version { position: fixed; z-index: 63; right: calc(27px + env(safe-area-inset-right, 0px)); bottom: calc(6px + env(safe-area-inset-bottom, 0px)); font: 700 10px/12px system-ui, sans-serif; color: rgba(232, 244, 242, .7); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); padding: 2px 3px; margin: -2px -3px; border: 0; background: none; cursor: pointer; }
.diag-version:hover, .diag-version:focus-visible { color: #59d7c8; text-decoration: underline; }
.diag-version:empty { display: none; }
.changelog-panel { width: min(640px, 100%); height: min(720px, 100%); }
.changelog-body { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
.changelog-version { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.changelog-version h3 { margin: 0 0 6px; font-size: 15px; color: #59d7c8; }
.changelog-date { font-size: 11px; font-weight: 400; color: rgba(232, 244, 242, .65); }
.changelog-version ul { margin: 0; padding-left: 18px; }
.changelog-version li { margin: 3px 0; overflow-wrap: anywhere; }
.diag-alert-label { right: calc(68px + env(safe-area-inset-right, 0px)) !important; }
.chat-dock { bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
.tasks-table-wrap { flex: 1; overflow: auto; width: 100%; }
.tasks-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.tasks-table th { position: sticky; top: 0; z-index: 1; background: #13262a; text-align: left; padding: 7px 8px; cursor: pointer; white-space: nowrap; user-select: none; color: #9fd9d0; }
.tasks-table th.is-sorted { color: #59d7c8; }
.tasks-table td { padding: 5px 8px; border-top: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; white-space: nowrap; }
.tasks-table td.tasks-table-body { white-space: normal; min-width: 260px; cursor: text; }
.tasks-table tr.is-done td { opacity: .5; }
.tasks-table tr:hover td { background: rgba(89, 215, 200, .06); }
/* Shown while the city compiles its shaders (CityScene.precompileShaders):
   the city's own sky colours, so the cross-fade into the first frame is soft. */
.city-loading-cover { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; pointer-events: none; background: linear-gradient(180deg, #4f91aa 0%, #9fc9cf 55%, #d9ebe1 100%); transition: opacity .35s ease; }
.city-loading-cover.is-done { opacity: 0; }
.city-loading-card { padding: 14px 22px; border-radius: 14px; font: 800 15px/1.2 system-ui, sans-serif; color: #e8f4f2; background: rgba(13, 26, 29, .92); border: 1px solid rgba(89, 215, 200, .5); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }

/* Name screen: "Already have a player? Log in with email" (account.js). */
.identity-form button.identity-login {
  height: 36px;
  margin-top: 2px;
  border: 1px solid rgba(89, 215, 200, .72);
  background: transparent;
  color: #9ff0e6;
  font-size: 13px;
}

/* Email login panel (web/js/account.js). */
.acct-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  background: rgba(4, 9, 14, .62);
  backdrop-filter: blur(3px);
  overflow-y: auto;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #f4f6f3;
}
.acct-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  padding: 18px 20px 16px;
  border: 2px solid #59d7c8;
  border-radius: 18px;
  background: linear-gradient(180deg, #1b2c2e, #142123 45%);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55);
}
.acct-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: #f3c75f;
}
.acct-card h2 { margin: 6px 40px 6px 0; font-size: 20px; line-height: 1.25; }
.acct-note, .acct-small { margin: 0 0 12px; color: #b9c9cb; font-size: 14px; line-height: 1.4; }
.acct-small { margin-top: 10px; font-size: 12px; color: #9fb2b4; }
.acct-good { margin: 4px 0 14px; padding: 10px 12px; border-radius: 10px; background: rgba(110, 220, 140, .12); color: #c9f7d4; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.acct-form, .acct-actions, .acct-players { display: grid; gap: 9px; }
.acct-field { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.acct-field input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  border: 1px solid rgba(89, 215, 200, .72);
  border-radius: 8px;
  outline: none;
  background: #0c1719;
  color: #f4f6f3;
  padding: 0 12px;
  font: 600 16px Inter, "Segoe UI", system-ui, sans-serif; /* 16px: no iOS zoom on focus */
}
.acct-field input:focus { border-color: #f3c75f; box-shadow: 0 0 0 3px rgba(243, 199, 95, .14); }
.acct-status { min-height: 18px; margin: 2px 0; font-size: 13px; color: #9fb2b4; text-align: center; }
.acct-status.error { color: #ff8b82; }
.acct-status.good { color: #8ef0a8; }
.acct-btn {
  min-height: 44px;
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(89, 215, 200, .72);
  border-radius: 9px;
  background: transparent;
  color: #dff7f3;
  font: 800 15px Inter, "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}
.acct-btn:hover:not(:disabled) { background: rgba(89, 215, 200, .12); }
.acct-btn.primary { border: 0; background: #59d7c8; color: #102021; }
.acct-btn.primary:hover:not(:disabled) { background: #74e4d7; }
.acct-btn.warn { border-color: #f3c75f; color: #ffe7a6; }
.acct-btn.danger { border-color: rgba(255, 139, 130, .6); color: #ffb3ad; font-size: 13px; }
.acct-btn.player { text-align: left; padding: 0 14px; font-size: 16px; }
.acct-btn:disabled { opacity: .56; cursor: wait; }
.acct-close {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #b9c9cb;
  font-size: 22px;
  cursor: pointer;
}
html.umph-mobile .acct-close { width: 44px; height: 44px; top: 10px; right: 6px; }
/* On-screen keyboard open: keep the panel in the visible area. */
html.umph-keyboard-open .acct-backdrop {
  top: var(--vvtop, 0px);
  bottom: auto;
  height: var(--vvh, 100dvh);
  place-items: start center;
  padding-top: 8px;
  padding-bottom: 8px;
}
html.umph-keyboard-open .acct-card { max-height: calc(var(--vvh, 100dvh) - 16px); }
@media (max-width: 480px) {
  .acct-card { padding: 16px 14px 14px; border-radius: 14px; }
}

/* The character creator is full-screen: no chat dock over its panels. */
body.in-creator .chat-dock { display: none; }
/* Busy buttons (busyButton.js): a small spinner before the label while a
   network request is in flight; the button is disabled meanwhile. */
.umph-busy { cursor: progress !important; }
.umph-busy::before {
  content: "";
  display: inline-block;
  width: .9em;
  height: .9em;
  margin-right: .45em;
  vertical-align: -0.12em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: umph-busy-spin .7s linear infinite;
}
@keyframes umph-busy-spin { to { transform: rotate(360deg); } }
html.umph-reduced-motion .umph-busy::before { animation-duration: 1.6s; }

/* Team chat dock keeps off the game's buttons (js/chatDockLayout.js slides it
   with a transform and folds it to its pill when there's no room). */
.chat-dock { transition: transform .18s ease-out; }
/* Above the corner diagnostics widgets and their toasts; while typing, above
   every HUD layer (it rides above the on-screen keyboard: chatDockLayout.js). */
.chat-dock { z-index: 71; }
.chat-dock.is-typing { z-index: 96; }
.chat-dock.is-left .chat-dock-peek { right: auto; left: 0; }
.chat-dock.peek-below .chat-dock-peek { bottom: auto; top: calc(100% + 6px); }
.chat-dock-peek.is-passthrough { pointer-events: none; opacity: .82; }
@media (prefers-reduced-motion: reduce) { .chat-dock { transition: none; } }
/* Phones: the folded dock is just "💬 ▴ (n)" so it fits beside the touch buttons. */
html.umph-mobile .chat-dock.is-collapsed .chat-dock-word,
html.umph-mobile .chat-dock.is-collapsed .chat-dock-tasks { display: none; }
html.umph-mobile .chat-dock.is-collapsed .chat-dock-head { padding: 4px 9px; font-size: 13px; }

/* Tasks & milestones: a big close button at the top-right, easy to tap on phones. */
.tasks-head .tasks-close { min-width: 44px; min-height: 44px; font-size: 20px; line-height: 1; padding: 0 12px; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
@media (max-width: 720px) {
  .tasks-head .tasks-title { flex: 1 1 auto; font-size: 14px; }
  .tasks-head .tasks-search { flex: 1 1 100%; }
}

/* Stethoscope "Tell the team" card: report slowness or send an idea (suggestion box). */
.diag-menu {
  position: fixed; z-index: 72; display: grid; gap: 8px; padding: 12px; border-radius: 14px;
  background: #0d1a1d; border: 1px solid rgba(89, 215, 200, .45); box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  color: #e8f4f2; font: 13px/1.35 system-ui, sans-serif;
}
.diag-menu[hidden] { display: none; }
.diag-menu-head { display: flex; align-items: center; justify-content: space-between; }
.diag-menu-head strong { color: #59d7c8; letter-spacing: .04em; }
.diag-menu-close { width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .08); color: inherit; font-size: 18px; cursor: pointer; }
.diag-menu-report, .diag-menu-send {
  min-height: 38px; padding: 6px 10px; border-radius: 9px; font: inherit; font-weight: 800; cursor: pointer; color: inherit;
  border: 1px solid rgba(89, 215, 200, .55); background: rgba(89, 215, 200, .16);
}
.diag-menu-report { text-align: left; border-color: rgba(255, 150, 120, .55); background: rgba(255, 120, 95, .14); }
.diag-menu-report:hover, .diag-menu-send:not(:disabled):hover { filter: brightness(1.25); }
.diag-menu-send:disabled { opacity: .5; cursor: default; }
.diag-menu-label { font-weight: 800; margin-top: 4px; }
.diag-menu-idea {
  width: 100%; box-sizing: border-box; resize: none; padding: 7px 8px; border-radius: 9px; font: inherit; font-size: 14px;
  border: 1px solid rgba(89, 215, 200, .4); background: rgba(0, 0, 0, .3); color: inherit;
}
.diag-menu-idea:focus { outline: 2px solid #59d7c8; outline-offset: 0; }
.diag-menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.diag-menu-count { font-size: 11px; opacity: .7; font-variant-numeric: tabular-nums; }
.diag-menu-note { margin: 0; font-size: 11px; opacity: .7; }
.diag-menu-status { margin: 0; font-size: 12px; font-weight: 700; }
.diag-menu-status:empty { display: none; }
.diag-menu-status[data-kind="error"] { color: #ff9f8f; }

/* Images on notes (team note, 2026-10-28). */
.note-images { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.note-image { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .3); }
.note-image img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.note-image-remove { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #ffb0a0; font-size: 12px; line-height: 1; cursor: pointer; }
.note-image-viewer { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: rgba(0, 0, 0, .86); cursor: zoom-out; }
.note-image-viewer img { max-width: 94vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }

/* Team play hours: closed screen (main.js showPlayHoursClosed). */
.play-hours {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: radial-gradient(900px 500px at 50% 0%, #22304a 0%, transparent 70%), #0b0f10;
  color: #f4fbfa;
  font-family: "Arial Rounded MT Bold", "Baloo 2", Nunito, "Trebuchet MS", "Arial Black", system-ui, sans-serif;
}
.play-hours-card {
  max-width: 460px; width: 100%;
  padding: 28px 22px; border-radius: 24px; text-align: center;
  background: linear-gradient(170deg, #1d3a3b, #101b1c 70%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.play-hours-card h1 { margin: 0 0 10px; font-size: 1.6rem; line-height: 1.15; }
.play-hours-card p { margin: 0 0 14px; color: #b6cfcc; line-height: 1.45; }
.play-hours-count { font-size: 1.3rem; color: #f3c75f !important; }
.play-hours-home {
  display: inline-block; margin-top: 4px; padding: 12px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); color: #f4fbfa; text-decoration: none;
}

/* Pictures on tasks (web/js/taskImages.js, Tasks window). */
.task-images { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 6px; }
.task-images.is-compact { flex-wrap: nowrap; gap: 4px; margin: 0; }
.task-images.is-staged { flex: 1 1 100%; margin: 0; }
.task-images.is-staged[hidden] { display: none; }
.task-image { position: relative; width: 72px; height: 72px; flex: none; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .3); }
.task-images.is-compact .task-image { width: 32px; height: 32px; border-radius: 5px; }
.task-image img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.task-image-remove { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; border: 0; padding: 0; background: rgba(0, 0, 0, .7); color: #ffb0a0; font-size: 12px; line-height: 1; cursor: pointer; }
.task-image-add { font-size: 11px; }
.task-image-viewer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.task-image-viewer-bar { display: flex; gap: 8px; }
.task-image-viewer-bar button { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); color: #fff; font-weight: 800; cursor: pointer; }
.task-image-viewer img { max-height: calc(92vh - 64px); }
