/* Base legada do app (antigo styles.css), parte 38 (#533) · Escritório: conversa flutuante sobre o mapa. Ordem de carga: scripts/helpers/styles-source.js. */

/* #177: conversa aberta pelo Escritório em tela cheia flutua sobre o mapa, compacta, no canto inferior direito. */
body:has(#app.mix-office-active.mix-office-standalone) #workspace-floating-conversation-portal {
  z-index: 10002;
  right: 16px;
  bottom: 16px;
  width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100dvh - 32px));
}

#app.mix-office-active.mix-office-standalone .template-main,
#app.mix-office-active.mix-office-standalone #viewMount,
#app.mix-office-active.mix-office-standalone .template-page {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

.mix-office-runtime,
.mix-office-app {
  width: 100%;
  min-height: 100vh;
}

.mix-office-app {
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr);
  overflow: hidden;
  color: #e9eef7;
  background:
    radial-gradient(circle at 82% -10%, rgb(73 116 180 / 24%), transparent 32%),
    #101827;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mix-office-toolbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 9%);
  background: rgb(16 24 39 / 92%);
  backdrop-filter: blur(18px);
}

.mix-office-brand,
.mix-office-status {
  display: flex;
  align-items: center;
}

.mix-office-brand {
  gap: 12px;
}

.mix-office-brand-mark {
  width: 30px;
  height: 24px;
  border-left: 3px solid rgb(var(--mix-fx-line, 255 255 255));
  border-right: 3px solid rgb(var(--mix-fx-line, 255 255 255));
  background: repeating-linear-gradient(90deg, rgb(var(--mix-fx-paper, 255 255 255)) 0 2px, transparent 2px 5px);
}

.mix-office-brand div {
  display: grid;
  gap: 2px;
}

.mix-office-brand strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: -.01em;
}

.mix-office-brand small,
.mix-office-status {
  color: #93a3bb;
  font-size: 11px;
}

.mix-office-status {
  gap: 10px;
}

.mix-office-status span,
.mix-office-status b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 9%);
  border-radius: 999px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 4%);
}

.mix-office-status span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42d392;
  box-shadow: 0 0 0 4px rgb(66 211 146 / 12%);
}

.mix-office-status b {
  color: #a9c6f6;
  font-weight: 750;
}

.mix-office-exit {
  justify-self: end;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 14%);
  border-radius: 10px;
  color: #eaf0f8;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 6%);
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.mix-office-exit:hover {
  border-color: rgb(var(--mix-fx-line, 147 197 253) / 46%);
  background: rgb(59 130 246 / 16%);
}

.mix-office-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 340px;
}

.mix-office-directory {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 16px 16px;
  border-right: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 8%);
  background: rgb(10 17 29 / 72%);
}

.mix-office-directory > div {
  display: grid;
  gap: 5px;
  padding: 0 8px;
}

.mix-office-directory > div span {
  color: rgb(var(--mix-fx-ink-blue, 111 130 159));
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mix-office-directory > div strong {
  color: #fff;
  font-size: 17px;
}

.mix-office-directory nav {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 5px;
  overflow-y: auto;
}

.mix-office-directory nav button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #dfe7f3;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.mix-office-directory nav button:hover,
.mix-office-directory nav button.is-current {
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 9%);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 6%);
}

.mix-office-directory nav button > i {
  width: 8px;
  height: 30px;
  border-radius: 999px;
  background: #728197;
}

.mix-office-directory nav button > i.tone-blue { background: #4c8bf5; }
.mix-office-directory nav button > i.tone-green { background: #41b883; }
.mix-office-directory nav button > i.tone-amber { background: #e8a23a; }
.mix-office-directory nav button > i.tone-violet { background: #8b72df; }
.mix-office-directory nav button > i.tone-welcome { background: #4cc9b0; }

.mix-office-directory nav button span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mix-office-directory nav button strong {
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mix-office-directory nav button small {
  color: rgb(var(--mix-fx-ink-blue, 113 131 158));
  font-size: 9px;
}

.mix-office-directory nav button em {
  color: rgb(var(--mix-fx-ink-blue, 96 115 143));
  font-style: normal;
}

.mix-office-directory footer {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 8%);
  border-radius: 11px;
  color: rgb(var(--mix-fx-ink-blue, 113 131 158));
  background: rgb(var(--mix-fx-paper, 255 255 255) / 3%);
  font-size: 9px;
  line-height: 1.4;
}

.mix-office-directory footer div {
  display: flex;
  gap: 5px;
}

.mix-office-directory kbd {
  padding: 3px 6px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 15%);
  border-radius: 5px;
  color: #c8d4e5;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 7%);
  font-family: inherit;
  font-size: 8px;
}

.mix-office-viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(rgb(var(--mix-fx-paper, 255 255 255) / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--mix-fx-paper, 255 255 255) / 2%) 1px, transparent 1px);
  background-size: 24px 24px;
}

.mix-office-stage {
  width: min(100%, 1200px);
  max-height: calc(100vh - 112px);
  display: grid;
  place-items: center;
  outline: none;
}

.mix-office-floor {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 112px);
  overflow: hidden;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 11%);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgb(var(--mix-fx-paper, 255 255 255) / 2%), transparent),
    #182337;
  box-shadow: 0 28px 80px rgb(0 0 0 / 28%);
}

.mix-office-corridor {
  position: absolute;
  border: 1px dashed rgb(var(--mix-fx-line, 255 255 255) / 7%);
  background: rgb(var(--mix-fx-paper, 255 255 255) / 2%);
}

.corridor-horizontal {
  left: 3%;
  right: 3%;
  top: 38%;
  height: 10%;
}

.corridor-vertical {
  left: 48%;
  top: 4%;
  bottom: 4%;
  width: 7%;
}

.mix-office-room {
  position: absolute;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 12%);
  border-top: 3px solid #728197;
  border-radius: 10px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 5%);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.mix-office-room.tone-blue { border-top-color: #4c8bf5; background: rgb(76 139 245 / 8%); }
.mix-office-room.tone-green { border-top-color: #41b883; background: rgb(65 184 131 / 8%); }
.mix-office-room.tone-amber { border-top-color: #e8a23a; background: rgb(232 162 58 / 8%); }
.mix-office-room.tone-violet { border-top-color: #8b72df; background: rgb(139 114 223 / 8%); }
.mix-office-room.tone-welcome { border-top-color: #4cc9b0; background: rgb(76 201 176 / 8%); }

.mix-office-room.is-current {
  border-color: rgb(var(--mix-fx-line, 255 255 255) / 28%);
  box-shadow: 0 0 0 3px rgb(147 197 253 / 8%);
}

.mix-office-room header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mix-office-room header strong {
  color: #f4f7fb;
  font-size: clamp(9px, .9vw, 12px);
}

.mix-office-room header span {
  color: rgb(var(--mix-fx-ink-blue, 127 145 170));
  font-size: clamp(7px, .7vw, 9px);
}

.mix-office-furniture {
  position: absolute;
  inset: 33% 16% 18%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  opacity: .7;
}

.mix-office-furniture i {
  border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 9%);
  border-radius: 5px;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 5%);
}

.mix-office-members {
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: flex;
}

.mix-office-members span {
  width: clamp(18px, 2vw, 27px);
  height: clamp(18px, 2vw, 27px);
  display: grid;
  place-items: center;
  margin-right: -5px;
  border: 2px solid #182337;
  border-radius: 50%;
  color: #dbe7f7;
  background: #33445e;
  font-size: clamp(6px, .65vw, 8px);
  font-weight: 850;
}

.mix-office-player {
  position: absolute;
  z-index: 5;
  display: grid;
  justify-items: center;
  transform: translate(-50%, -50%);
  transition: filter .16s ease;
  pointer-events: none;
}

.mix-office-player span {
  width: clamp(28px, 3vw, 40px);
  height: clamp(28px, 3vw, 40px);
  display: grid;
  place-items: center;
  border: 3px solid rgb(var(--mix-fx-line, 255 255 255));
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #3178dc, #57b7d8);
  box-shadow: 0 8px 22px rgb(0 0 0 / 35%);
  font-size: clamp(8px, .9vw, 11px);
  font-weight: 900;
}

.mix-office-player strong {
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  color: #f2f6fc;
  background: rgb(8 15 26 / 78%);
  font-size: clamp(7px, .75vw, 9px);
  font-weight: 750;
}

.mix-office-remote-player {
  z-index: 4;
  opacity: .92;
  transition: left 220ms linear, top 220ms linear, opacity .16s ease, filter .16s ease;
  will-change: left, top;
}

.mix-office-remote-player span {
  border-color: #8ce1c7;
  background: linear-gradient(135deg, #315b62, #357c68);
}
