/* Base legada do app (antigo styles.css), parte 40 (#533) · Escritório e experiência de comunicação. Ordem de carga: scripts/helpers/styles-source.js. */

@media (max-width: 820px) {
  .mix-office-toolbar {
    grid-template-columns: 1fr auto;
    padding: 0 14px;
  }

  .mix-office-status {
    display: none;
  }

  .mix-office-layout {
    grid-template-columns: 1fr;
  }

  .mix-office-directory {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 8;
    width: min(220px, calc(100vw - 20px));
    max-height: 42vh;
    border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 10%);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgb(0 0 0 / 35%);
  }

  .mix-office-directory > div,
  .mix-office-directory footer {
    display: none;
  }

  .mix-office-viewport {
    padding: 10px;
  }

  .mix-office-chat {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 9;
    width: min(340px, calc(100vw - 20px));
    height: min(70vh, 620px);
    border: 1px solid rgb(var(--mix-fx-line, 255 255 255) / 10%);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgb(0 0 0 / 35%);
  }

  .mix-office-media-dock {
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }

  .mix-office-media-dock button b {
    display: none;
  }

  .mix-office-media-dock button {
    min-width: 42px;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .mix-office-layout {
    grid-template-columns: 200px minmax(0, 1fr) 300px;
  }
}

/* Communication experience -------------------------------------------------
   The Office and Inbox intentionally share the Mix Suite light visual
   language. These rules live at the end of the cascade to retire the original
   dark prototype without changing the media and spatial runtime. */

#app.mix-office-active .mix-office-app {
  color: rgb(var(--mix-fx-ink, 38 55 77));
  background:
    radial-gradient(circle at 72% -8%, rgb(40 132 190 / 10%), transparent 34%),
    linear-gradient(145deg, rgb(var(--mix-fx-paper, 248 250 252)), rgb(var(--mix-fx-paper, 238 243 248)) 72%);
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
}

#app.mix-office-active .mix-office-toolbar {
  grid-template-columns: 1fr auto 1fr;
  min-height: 72px;
  padding: 0 28px;
  border-bottom: 1px solid rgb(var(--mix-fx-line, 223 231 239));
  background: rgb(var(--mix-fx-paper, 255 255 255) / 92%);
  box-shadow: 0 6px 24px rgb(30 58 82 / 5%);
  backdrop-filter: blur(18px);
}

#app.mix-office-active .mix-office-brand-mark {
  border-color: #152940;
  background: repeating-linear-gradient(90deg, #152940 0 2px, transparent 2px 5px);
}

html[data-mix-theme] #app.mix-office-active .mix-office-brand strong {
  color: rgb(var(--mix-fx-ink, 21 41 64)) !important;
  font-size: 15px;
}

html[data-mix-theme] #app.mix-office-active .mix-office-brand small {
  color: rgb(var(--mix-fx-muted, 111 128 149)) !important;
}

#app.mix-office-active .mix-office-status span,
#app.mix-office-active .mix-office-status b {
  min-height: 32px;
  border-color: rgb(var(--mix-fx-line, 220 229 238));
  color: rgb(var(--mix-fx-ink-blue, 97 116 139)) !important;
  background: rgb(var(--mix-fx-paper, 247 249 252));
}

#app.mix-office-active .mix-office-status b {
  color: rgb(var(--mix-fx-ink-blue, 39 107 153)) !important;
}

#app.mix-office-active .mix-office-exit {
  min-height: 38px;
  border-color: rgb(var(--mix-fx-line, 214 224 234));
  color: rgb(var(--mix-fx-ink, 41 64 88));
  background: rgb(var(--mix-fx-paper, 255 255 255));
  box-shadow: 0 2px 7px rgb(25 55 80 / 6%);
}

#app.mix-office-active .mix-office-exit:hover {
  border-color: #86b8d6;
  color: rgb(var(--mix-fx-ink-blue, 18 108 158));
  background: rgb(var(--mix-fx-paper, 240 248 252));
}

#app.mix-office-active .mix-office-layout {
  grid-template-columns: 248px minmax(0, 1fr) 366px;
}

#app.mix-office-active .mix-office-directory {
  gap: 16px;
  padding: 24px 16px 18px;
  border-right-color: rgb(var(--mix-fx-line, 223 231 239));
  background: rgb(var(--mix-fx-paper, 255 255 255) / 86%);
}

html[data-mix-theme] #app.mix-office-active .mix-office-directory > div span {
  color: rgb(var(--mix-fx-muted, 130 144 162)) !important;
}

html[data-mix-theme] #app.mix-office-active .mix-office-directory > div strong {
  color: rgb(var(--mix-fx-ink, 24 45 68)) !important;
  font-size: 18px;
}

#app.mix-office-active .mix-office-directory nav {
  gap: 7px;
  padding: 2px;
}

html[data-mix-theme] #app.mix-office-active .mix-office-directory nav button {
  min-height: 58px;
  border-color: transparent;
  border-radius: 12px;
  color: rgb(var(--mix-fx-ink-blue, 51 73 95)) !important;
}

#app.mix-office-active .mix-office-directory nav button:hover,
#app.mix-office-active .mix-office-directory nav button.is-current {
  border-color: rgb(var(--mix-fx-line, 207 226 237));
  color: rgb(var(--mix-fx-ink-blue, 23 79 112)) !important;
  background: linear-gradient(135deg, rgb(var(--mix-fx-paper, 242 249 252)), rgb(var(--mix-fx-paper, 233 244 249)));
  box-shadow: inset 0 0 0 1px rgb(var(--mix-fx-paper, 255 255 255) / 60%), 0 5px 14px rgb(36 107 145 / 7%);
}

html[data-mix-theme] #app.mix-office-active .mix-office-directory nav button strong {
  color: inherit !important;
  font-size: 11px;
}

html[data-mix-theme] #app.mix-office-active .mix-office-directory nav button small {
  color: rgb(var(--mix-fx-muted, 130 146 165)) !important;
}

#app.mix-office-active .mix-office-directory nav button em {
  color: rgb(var(--mix-fx-muted, 145 162 179));
}

html[data-mix-theme] #app.mix-office-active .mix-office-directory footer {
  border-color: rgb(var(--mix-fx-line, 223 231 239));
  color: rgb(var(--mix-fx-muted, 123 141 160)) !important;
  background: rgb(var(--mix-fx-paper, 248 250 252));
}

#app.mix-office-active .mix-office-directory kbd {
  border-color: rgb(var(--mix-fx-line, 203 216 228));
  color: rgb(var(--mix-fx-ink-blue, 66 91 115));
  background: rgb(var(--mix-fx-paper, 255 255 255));
  box-shadow: 0 1px 2px rgb(22 45 67 / 8%);
}

#app.mix-office-active .mix-office-viewport {
  padding: 26px;
  background:
    linear-gradient(rgb(46 94 128 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(46 94 128 / 4%) 1px, transparent 1px),
    rgb(var(--mix-fx-paper, 242 246 250));
  background-size: 28px 28px;
}

#app.mix-office-active .mix-office-floor {
  border-color: rgb(var(--mix-fx-line, 207 218 229));
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgb(var(--mix-fx-paper, 255 255 255) / 88%), rgb(var(--mix-fx-paper, 244 248 251) / 78%)),
    rgb(var(--mix-fx-paper, 246 249 252));
  box-shadow: 0 24px 70px rgb(33 61 85 / 13%), 0 2px 8px rgb(33 61 85 / 7%);
}

#app.mix-office-active .mix-office-corridor {
  border-color: rgb(69 104 131 / 11%);
  background: rgb(110 151 177 / 5%);
}

#app.mix-office-active .mix-office-room {
  border-color: rgb(var(--mix-fx-line, 216 226 235));
  border-top-color: #7793aa;
  background: rgb(var(--mix-fx-paper, 255 255 255) / 82%);
  box-shadow: 0 7px 20px rgb(31 65 92 / 6%);
}

#app.mix-office-active .mix-office-room.tone-blue { border-top-color: #3287bc; background: rgb(var(--mix-fx-paper, 230 245 252) / 72%); }
#app.mix-office-active .mix-office-room.tone-green { border-top-color: #2c9b67; background: rgb(var(--mix-fx-paper, 232 248 240) / 76%); }
#app.mix-office-active .mix-office-room.tone-amber { border-top-color: #d69024; background: rgb(var(--mix-fx-paper, 255 247 229) / 78%); }
#app.mix-office-active .mix-office-room.tone-violet { border-top-color: #765ac0; background: rgb(var(--mix-fx-paper, 244 240 253) / 78%); }
#app.mix-office-active .mix-office-room.tone-welcome { border-top-color: #20a28b; background: rgb(var(--mix-fx-paper, 229 249 245) / 80%); }

#app.mix-office-active .mix-office-room.is-current {
  border-color: #74aac7;
  box-shadow: 0 0 0 3px rgb(50 135 188 / 11%), 0 10px 24px rgb(31 93 128 / 9%);
}

html[data-mix-theme] #app.mix-office-active .mix-office-room header strong {
  color: rgb(var(--mix-fx-ink, 32 58 82)) !important;
}

html[data-mix-theme] #app.mix-office-active .mix-office-room header span {
  color: rgb(var(--mix-fx-ink-blue, 113 133 153)) !important;
}

#app.mix-office-active .mix-office-furniture i {
  border-color: rgb(55 90 117 / 12%);
  background: rgb(83 122 151 / 6%);
}

#app.mix-office-active .mix-office-members span {
  border-color: rgb(var(--mix-fx-line, 248 251 253));
  color: #fff;
  background: #4f718c;
  box-shadow: 0 2px 6px rgb(30 65 90 / 16%);
}

#app.mix-office-active .mix-office-player span {
  border-color: rgb(var(--mix-fx-line, 255 255 255));
  background: linear-gradient(135deg, #197db5, #4db9bf);
  box-shadow: 0 8px 22px rgb(37 95 125 / 24%);
}

html[data-mix-theme] #app.mix-office-active .mix-office-player strong {
  color: #fff !important;
  background: rgb(31 65 89 / 86%);
}

#app.mix-office-active .mix-office-chat {
  border-left-color: rgb(var(--mix-fx-line, 223 231 239));
  background: rgb(var(--mix-fx-paper, 255 255 255) / 92%);
}

#app.mix-office-active .mix-office-chat > header,
#app.mix-office-active .mix-office-chat-picker,
#app.mix-office-active .mix-office-message-form {
  border-color: rgb(var(--mix-fx-line, 224 231 238));
}

html[data-mix-theme] #app.mix-office-active .mix-office-chat > header span,
html[data-mix-theme] #app.mix-office-active .mix-office-chat-picker > span {
  color: rgb(var(--mix-fx-muted, 131 145 161)) !important;
}

html[data-mix-theme] #app.mix-office-active .mix-office-chat > header strong {
  color: rgb(var(--mix-fx-ink, 23 46 69)) !important;
}

#app.mix-office-active .mix-office-chat > header button,
#app.mix-office-active .mix-office-media-settings header button {
  border-color: rgb(var(--mix-fx-line, 213 224 233));
  color: rgb(var(--mix-fx-ink-blue, 53 81 105));
  background: rgb(var(--mix-fx-paper, 248 250 252));
}

html[data-mix-theme] #app.mix-office-active .mix-office-chat select,
html[data-mix-theme] #app.mix-office-active .mix-office-chat input,
html[data-mix-theme] #app.mix-office-active .mix-office-chat textarea,
html[data-mix-theme] #app.mix-office-active .mix-office-media-settings select {
  border-color: rgb(var(--mix-fx-line, 206 218 229)) !important;
  color: rgb(var(--mix-fx-ink, 38 60 82)) !important;
  background: rgb(var(--mix-fx-paper, 255 255 255)) !important;
}

#app.mix-office-active .mix-office-conversation-create {
  border-color: rgb(var(--mix-fx-line, 223 231 239));
  background: rgb(var(--mix-fx-paper, 244 248 251));
}

#app.mix-office-active .mix-office-conversation-create label,
#app.mix-office-active .mix-office-media-settings label {
  color: rgb(var(--mix-fx-ink-blue, 99 119 139));
}

#app.mix-office-active .mix-office-conversation-create button {
  border-color: rgb(var(--mix-fx-line, 210 221 231));
  color: rgb(var(--mix-fx-ink-blue, 51 78 101));
  background: rgb(var(--mix-fx-paper, 255 255 255));
}

#app.mix-office-active .mix-office-message-list {
  background: linear-gradient(180deg, rgb(var(--mix-fx-paper, 251 252 253)), rgb(var(--mix-fx-paper, 247 249 251)));
}

html[data-mix-theme] #app.mix-office-active .mix-office-chat-empty {
  color: rgb(var(--mix-fx-muted, 132 147 164));
}

html[data-mix-theme] #app.mix-office-active .mix-office-chat-empty strong {
  color: rgb(var(--mix-fx-ink-blue, 64 86 109)) !important;
}

#app.mix-office-active .mix-office-message {
  border-color: rgb(var(--mix-fx-line, 220 229 237));
  background: rgb(var(--mix-fx-paper, 255 255 255));
  box-shadow: 0 3px 10px rgb(31 62 86 / 5%);
}

#app.mix-office-active .mix-office-message.is-mine {
  border-color: rgb(var(--mix-fx-line, 189 218 234));
  background: rgb(var(--mix-fx-paper, 234 245 251));
}

#app.mix-office-active .mix-office-message header strong { color: rgb(var(--mix-fx-ink-blue, 40 123 170)); }
#app.mix-office-active .mix-office-message header span { color: rgb(var(--mix-fx-muted, 139 153 168)); }
html[data-mix-theme] #app.mix-office-active .mix-office-message p { color: rgb(var(--mix-fx-ink, 41 63 84)) !important; }

#app.mix-office-active .mix-office-message-form button {
  background: linear-gradient(135deg, #1579b2, #2794b8);
  box-shadow: 0 5px 13px rgb(20 112 158 / 20%);
}

#app.mix-office-active .mix-office-media-dock {
  border-color: rgb(var(--mix-fx-line, 210 221 230));
  background: rgb(var(--mix-fx-paper, 255 255 255) / 94%);
  box-shadow: 0 16px 42px rgb(31 61 84 / 18%);
}

#app.mix-office-active .mix-office-media-dock button {
  color: rgb(var(--mix-fx-ink-blue, 101 123 144));
}

#app.mix-office-active .mix-office-media-dock button:hover {
  border-color: rgb(var(--mix-fx-line, 216 228 236));
  color: rgb(var(--mix-fx-ink-blue, 28 95 132));
  background: rgb(var(--mix-fx-paper, 238 247 251));
}

#app.mix-office-active .mix-office-media-dock button.is-active {
  border-color: #b8e4d1;
  color: rgb(var(--mix-fx-ink-green, 19 118 78));
  background: rgb(var(--mix-fx-paper, 233 248 241));
}

#app.mix-office-active .mix-office-media-dock button.danger:hover {
  border-color: #f1c5c5;
  color: rgb(var(--mix-fx-ink-red, 182 53 53));
  background: rgb(var(--mix-fx-paper, 255 241 241));
}

#app.mix-office-active .mix-office-media-settings {
  border-color: rgb(var(--mix-fx-line, 210 222 232));
  background: rgb(var(--mix-fx-paper, 255 255 255) / 98%);
  box-shadow: 0 22px 60px rgb(31 60 83 / 20%);
}

#app.mix-office-active .mix-office-media-settings header strong {
  color: rgb(var(--mix-fx-ink, 36 59 80));
}

#app.mix-office-active .mix-office-video-tile {
  border-color: rgb(var(--mix-fx-line, 205 219 229));
  box-shadow: 0 18px 48px rgb(31 60 83 / 20%);
}

#app.mix-office-active .mix-office-boot,
#app.mix-office-active .mix-office-error,
#app.mix-office-active .office-runtime-state {
  color: rgb(var(--mix-fx-ink, 45 68 89));
  background: rgb(var(--mix-fx-paper, 243 247 250));
}

#app.mix-office-active .mix-office-boot > span,
#app.mix-office-active .office-runtime-spinner {
  border-color: rgb(var(--mix-fx-line, 220 229 236));
  border-top-color: #2586b8;
}
