@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jura";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/fonts/jura-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jura";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/fonts/jura-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jura";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/fonts/jura-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Jura";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/fonts/jura-latin-700-normal.woff2") format("woff2");
}

:root {
  --navy: #0a1940;
  --navy-deep: #06102b;
  --navy-soft: #2f3f66;
  --blue: #1e7bff;
  --blue-soft: #78adff;
  --cyan: #12cbe8;
  --paper: #f5f7fb;
  --surface: rgba(255, 255, 255, .82);
  --white: #fff;
  --text: #0a1940;
  --muted: #65718d;
  --line: rgba(10, 25, 64, .13);
  --danger: #d65561;
  --success: #1fa56f;
  --shadow: 0 22px 60px rgba(6, 16, 43, .18);
  --glass: blur(22px) saturate(1.18);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { min-height: 100dvh; overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 9px; color: var(--blue); font-size: 9px; line-height: 1; font-weight: 850; letter-spacing: .2em; }

/* Login — composição preservada, agora na linguagem DunaTech. */
.login-screen {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(440px, 1.18fr) minmax(420px, .82fr);
  background:
    radial-gradient(circle at 19% 21%, rgba(30, 123, 255, .25), transparent 30%),
    radial-gradient(circle at 35% 75%, rgba(18, 203, 232, .11), transparent 26%),
    linear-gradient(118deg, var(--navy-deep) 0 58%, #f5f7fb 58% 100%);
}
.login-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9vh 9vw;
  color: white;
}
.login-brand::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 142px;
  aspect-ratio: 1;
  border: 1px solid rgba(130, 180, 255, .11);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(30,123,255,.035), 0 0 0 78px rgba(18,203,232,.022);
}
.duna-lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--navy);
  text-decoration: none;
}
.login-brand > .duna-lockup { margin-bottom: 54px; }
.duna-wordmark { display: grid; gap: 5px; font-family: "Jura", sans-serif; line-height: 1; }
.duna-wordmark > span { display: flex; align-items: baseline; letter-spacing: .035em; white-space: nowrap; }
.duna-wordmark strong, .duna-wordmark b { font-size: 27px; font-weight: 600; }
.duna-wordmark strong { color: var(--navy); }
.duna-wordmark b {
  color: var(--blue);
  font-weight: 400;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.duna-wordmark small {
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .31em;
}
.duna-lockup-inverse .duna-wordmark strong { color: white; }
.duna-lockup-inverse .duna-wordmark small { color: rgba(255,255,255,.58); }
.duna-lockup-compact { min-width: 238px; gap: 10px; }
.duna-lockup-compact .duna-wordmark { gap: 2px; }
.duna-lockup-compact .duna-wordmark strong,
.duna-lockup-compact .duna-wordmark b { font-size: 13px; }
.duna-lockup-compact .duna-wordmark small { font-size: 6px; letter-spacing: .24em; }
.cardea-mark { width: 45px; height: 45px; display: grid; grid-template-columns: 1fr 5px 1fr; align-items: stretch; gap: 4px; }
.cardea-mark i { display: block; border: 2px solid var(--blue); }
.cardea-mark i:first-child { border-radius: 13px 4px 4px 13px; border-right-color: rgba(18,203,232,.48); }
.cardea-mark i:nth-child(2) { border-radius: 4px 13px 13px 4px; border-left-color: rgba(18,203,232,.48); }
.cardea-mark b { width: 5px; border-radius: 99px; background: var(--cyan); box-shadow: 0 0 18px rgba(30,123,255,.55); }
.cardea-mark.compact { width: 28px; height: 28px; grid-template-columns: 1fr 3px 1fr; gap: 2px; }
.cardea-mark.compact b { width: 3px; }
.login-brand .eyebrow { color: var(--cyan); }
.login-brand h1 {
  max-width: 760px;
  margin: 0 0 24px;
  font: 600 clamp(48px, 5vw, 76px)/.98 "Jura", sans-serif;
  letter-spacing: -.045em;
}
.login-brand > p:last-of-type { max-width: 520px; margin: 0; color: rgba(255,255,255,.67); font-size: 16px; line-height: 1.65; }
.login-card { align-self: center; justify-self: center; width: min(440px, 82%); }
.login-card h2 { margin: 28px 0 8px; font: 650 34px/1.1 "Jura", sans-serif; letter-spacing: -.025em; }
.login-card > p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: var(--navy-soft);
  border: 1px solid rgba(30,123,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  font-size: 11px;
  font-weight: 750;
}
.status-pill i, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(18,203,232,.12); }
.identity-list { display: grid; gap: 8px; }
.microsoft-login {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), #1763d1);
  box-shadow: 0 12px 28px rgba(30,123,255,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.microsoft-login:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(30,123,255,.32); }
.microsoft-login span:nth-child(2) { display: grid; gap: 3px; }
.microsoft-login small { color: rgba(255,255,255,.62); }
.microsoft-login b { margin-left: auto; color: white; }
.microsoft-mark { width: 25px; height: 25px; flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.microsoft-mark i:nth-child(1) { background: #f25022; }
.microsoft-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mark i:nth-child(4) { background: #ffb900; }
.entra-ready { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); }
.entra-shield { width: 32px; height: 32px; display: grid; place-items: center; color: var(--blue); background: rgba(30,123,255,.1); border-radius: 8px; font-weight: 900; }
.entra-ready.auth-unavailable { color: #9b5b22; }
.entra-ready strong, .entra-ready small { display: block; font-size: 11px; }
.entra-ready small { margin-top: 3px; opacity: .8; }

/* Casca do produto — Projudi ocupa toda a área útil; painéis flutuam acima. */
.app-shell { height: 100dvh; display: flex; flex-direction: column; background: #e9eef7; }
.topbar {
  height: 56px;
  flex: 0 0 56px;
  z-index: 20;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(10,25,64,.1);
  background: rgba(250,252,255,.91);
  backdrop-filter: var(--glass);
}
.capacity { display: flex; gap: 9px; align-items: center; padding: 7px 12px; color: var(--muted); background: rgba(30,123,255,.07); border: 1px solid rgba(30,123,255,.08); border-radius: 999px; font-size: 11px; }
.capacity span { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 13px; }
.admin-link { padding: 8px 10px; color: var(--blue); border-radius: 8px; text-decoration: none; font-size: 11px; font-weight: 800; }
.admin-link:hover { background: rgba(30,123,255,.08); }
.account-menu { position: relative; }
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 5px 3px 14px;
  color: var(--text);
  text-align: left;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0 10px 10px 0;
  background: transparent;
}
.profile:hover, .profile[aria-expanded="true"] { background: rgba(30,123,255,.07); }
.avatar { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--blue), var(--navy)); border-radius: 50%; font-size: 10px; font-weight: 900; letter-spacing: .03em; }
.profile strong, .profile small, .profile-copy { display: block; }
.profile strong { font-size: 11px; }
.profile small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.profile-chevron { margin: 0 3px; color: var(--muted); font-size: 14px; transition: transform .18s ease; }
.profile[aria-expanded="true"] .profile-chevron,
.admin-profile-button[aria-expanded="true"] .profile-chevron { transform: rotate(180deg); }
.profile-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 10px);
  right: 0;
  width: min(310px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid rgba(10,25,64,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 70px rgba(4,14,42,.22);
  backdrop-filter: blur(18px);
}
.profile-menu-identity, .profile-menu-provider {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-menu-identity { padding: 10px 9px 12px; border-bottom: 1px solid var(--line); }
.profile-menu-identity > span:last-child,
.profile-menu-provider > span:last-child { min-width: 0; }
.profile-menu-identity strong, .profile-menu-identity small,
.profile-menu-provider strong, .profile-menu-provider small { display: block; }
.profile-menu-identity strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-identity small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-provider { margin: 8px 0; padding: 9px; border-radius: 10px; background: #f2f6ff; }
.profile-menu-provider strong { font-size: 9px; }
.profile-menu-provider small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.microsoft-mini-mark { width: 18px; height: 18px; flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.microsoft-mini-mark i:nth-child(1) { background: #f25022; }
.microsoft-mini-mark i:nth-child(2) { background: #7fba00; }
.microsoft-mini-mark i:nth-child(3) { background: #00a4ef; }
.microsoft-mini-mark i:nth-child(4) { background: #ffb900; }
.profile-menu > a, .profile-menu > button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: 700 10px/1 Inter, sans-serif;
}
.profile-menu > a:hover, .profile-menu > button:hover { color: var(--blue); background: rgba(30,123,255,.07); }
.profile-menu > a span, .profile-menu > button span { color: var(--muted); font-size: 13px; }
.icon-button { width: 34px; height: 34px; color: var(--muted); border: 0; border-radius: 9px; background: transparent; font-size: 18px; transform: rotate(90deg); }
.icon-button:hover { color: var(--blue); background: rgba(30,123,255,.08); }

.workspace { position: relative; min-height: 0; flex: 1; padding: 8px; overflow: hidden; }
.remote-stage {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(10,25,64,.08);
  border-radius: 16px;
  background: #06102b;
  box-shadow: 0 12px 38px rgba(10,25,64,.16);
  outline: none;
  user-select: none;
}
.remote-stage:focus-visible { box-shadow: 0 0 0 3px rgba(30,123,255,.62), 0 12px 38px rgba(10,25,64,.16); }
#remote-frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; display: none; object-fit: contain; object-position: center; image-rendering: auto; background: #06102b; }
#remote-frame.visible { display: block; }
#remote-frame.preview { image-rendering: pixelated; filter: blur(16px) saturate(.45) brightness(.48); transform: scale(1.08); }
.control-status {
  position: absolute;
  /* Também precisa permanecer acessível quando um diálogo remoto chega
     enquanto esta aba ainda está em modo de acompanhamento. */
  z-index: 31;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: calc(100% - 40px);
  padding: 8px 12px;
  color: #f5f8ff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(6,16,43,.82);
  box-shadow: 0 10px 26px rgba(3,11,32,.2);
  backdrop-filter: blur(12px);
  font-size: 10px;
  pointer-events: auto;
}
.control-status > span { display: grid; gap: 1px; color: rgba(245,248,255,.76); }
.control-status strong { color: #fff; white-space: nowrap; }
.control-status small { font-size: 9px; white-space: nowrap; }
.control-status button {
  padding: 7px 10px;
  color: #06102b;
  border: 0;
  border-radius: 999px;
  background: #66e2d1;
  font: inherit;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.control-status button:hover { background: #8aebde; }
.control-status button:disabled { opacity: .55; cursor: wait; }
.remote-stage.view-only { cursor: not-allowed; }
.window-status {
  position: absolute;
  z-index: 13;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: min(420px, calc(100% - 28px));
  padding: 8px 12px;
  color: #f5f8ff;
  border: 1px solid rgba(18,203,232,.28);
  border-radius: 999px;
  background: rgba(6,16,43,.82);
  box-shadow: 0 10px 26px rgba(3,11,32,.2);
  backdrop-filter: blur(12px);
  font-size: 10px;
  pointer-events: none;
}
.window-status strong { color: var(--cyan); white-space: nowrap; }
.window-status span { color: rgba(245,248,255,.76); }
.projudi-dialog {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3,10,30,.5);
  backdrop-filter: blur(4px);
}
.projudi-dialog-card {
  width: min(520px, 100%);
  padding: 28px;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 18px;
  background: rgba(248,250,255,.98);
  box-shadow: 0 28px 80px rgba(3,10,30,.36);
}
.projudi-dialog-card h2 { margin: 7px 0 13px; font: 650 25px/1.12 "Jura", sans-serif; }
.projudi-dialog-card > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.55;
}
.projudi-dialog-card input {
  width: 100%;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}
.projudi-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.projudi-dialog-actions button { min-width: 110px; min-height: 40px; }
.secondary-button {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 11px;
  font-weight: 800;
}
.stage-ambient {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 76% 28%, rgba(30,123,255,.25), transparent 26%),
    radial-gradient(circle at 20% 78%, rgba(18,203,232,.12), transparent 28%),
    linear-gradient(140deg, var(--navy-deep), var(--navy));
}
.ambient-grid { position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.3) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom right, black, transparent 70%); }
.ambient-copy { position: absolute; left: 6%; bottom: 10%; }
.ambient-copy span { display: block; margin-bottom: 12px; color: var(--cyan); font-size: 10px; font-weight: 850; letter-spacing: .25em; }
.ambient-copy strong { font: 550 clamp(34px, 3vw, 48px)/1.02 "Jura", sans-serif; letter-spacing: -.04em; }
.lobby-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 32px; background: radial-gradient(circle at center, transparent, rgba(3,10,30,.2)); }
.glass-card { width: min(520px, 84%); padding: 34px; color: var(--text); text-align: center; border: 1px solid rgba(255,255,255,.56); border-radius: 20px; background: rgba(247,250,255,.88); box-shadow: var(--shadow); backdrop-filter: var(--glass); }
.glass-card h2 { margin: 0 0 12px; font: 650 31px/1.1 "Jura", sans-serif; letter-spacing: -.025em; }
.glass-card > p:not(.eyebrow) { max-width: 410px; margin: 0 auto 22px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.primary-button { min-width: 180px; padding: 13px 22px; color: white; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--blue), #155ed8); box-shadow: 0 10px 24px rgba(30,123,255,.25); font-size: 12px; font-weight: 800; transition: .18s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(30,123,255,.3); }
.trust-row { display: flex; justify-content: center; gap: 18px; margin-top: 24px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.trust-row span::before { content: "✓"; margin-right: 5px; color: var(--success); }
.position-number { margin: 10px 0 16px; color: var(--blue); font: 650 70px/.9 "Jura", sans-serif; }
.queue-pulse { height: 20px; display: flex; gap: 4px; align-items: flex-end; justify-content: center; margin-bottom: 12px; }
.queue-pulse i { width: 4px; border-radius: 5px; background: var(--cyan); animation: pulse 1.2s ease-in-out infinite; }
.queue-pulse i:nth-child(1) { height: 9px; }
.queue-pulse i:nth-child(2) { height: 18px; animation-delay: .15s; }
.queue-pulse i:nth-child(3) { height: 12px; animation-delay: .3s; }
@keyframes pulse { 0%,100% { opacity: .35; transform: scaleY(.8); } 50% { opacity: 1; transform: scaleY(1.12); } }
.queue-people { display: flex; justify-content: center; margin: 10px 0 22px; }
.queue-people .avatar { margin-left: -5px; border: 2px solid white; }
.queue-card.recovery { border-color: rgba(230,145,76,.46); box-shadow: 0 24px 70px rgba(71,37,7,.18); }
.queue-card.recovery .eyebrow, .queue-card.recovery .position-number { color: #bd672f; }
.text-button { color: var(--muted); border: 0; background: transparent; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }

/* Paleta de sessão — pequena, arrastável, minimizável e ocultável. */
.operator-bar {
  position: absolute;
  z-index: 12;
  left: 18px;
  bottom: 18px;
  width: 238px;
  overflow: hidden;
  color: white;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: rgba(6,16,43,.76);
  box-shadow: 0 16px 42px rgba(2,8,28,.3);
  backdrop-filter: blur(18px) saturate(1.22);
  transition: width .2s ease, opacity .2s ease;
}
.dock-header { height: 42px; display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.1); }
.dock-drag, .dock-control { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; color: rgba(255,255,255,.68); border: 0; border-radius: 8px; background: transparent; }
.dock-drag { cursor: grab; font-size: 16px; touch-action: none; }
.dock-drag:active { cursor: grabbing; }
.dock-control:hover, .dock-drag:hover { color: white; background: rgba(255,255,255,.1); }
.session-live { min-width: 0; flex: 1; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.session-live i, .operator-restore i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(18,203,232,.12); }
.session-live span { overflow: hidden; text-overflow: ellipsis; font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.session-live small { margin-left: auto; color: var(--cyan); font: 750 10px/1 ui-monospace, monospace; }
.operator-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 7px; }
.operator-actions button { min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 8px 9px; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(255,255,255,.07); font-size: 10px; font-weight: 750; }
.operator-actions button:hover { color: white; border-color: rgba(130,180,255,.25); background: rgba(30,123,255,.19); }
.action-icon { width: 16px; color: var(--cyan); font-size: 14px; text-align: center; }
.operator-actions .end-button { color: #ffdce0; border-color: rgba(255,128,140,.18); background: rgba(214,85,97,.16); }
.operator-actions .end-button .action-icon { color: #ffb8c0; }
.operator-bar.minimized { width: 152px; }
.operator-bar.minimized .operator-actions { display: none; }
.operator-bar.minimized .dock-header { border-bottom: 0; }
.operator-bar.minimized .session-live span { display: none; }
.operator-restore {
  position: absolute;
  z-index: 12;
  left: 18px;
  bottom: 18px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: white;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(6,16,43,.76);
  box-shadow: 0 10px 28px rgba(2,8,28,.28);
  backdrop-filter: blur(16px);
  font: 750 10px/1 ui-monospace, monospace;
}
.operator-restore b { color: var(--cyan); letter-spacing: 2px; }
.file-tray {
  position: absolute;
  z-index: 11;
  left: 18px;
  bottom: 170px;
  width: min(620px, calc(100% - 36px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  color: white;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;
  background: rgba(6,16,43,.78);
  box-shadow: 0 12px 30px rgba(2,8,28,.25);
  backdrop-filter: blur(18px);
}
.file-tray strong, .file-tray small { display: block; white-space: nowrap; }
.file-tray strong { font-size: 10px; }
.file-tray small { margin-top: 2px; color: rgba(255,255,255,.56); font-size: 8px; }
.file-chips { min-width: 0; display: flex; gap: 6px; overflow: auto; }
.file-chip { max-width: 180px; flex: 0 0 auto; overflow: hidden; padding: 6px 8px; color: #c5f7ff; background: rgba(18,203,232,.1); border-radius: 6px; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.file-chip.attached { color: rgba(255,255,255,.46); text-decoration: line-through; }
.file-tray > button { flex: 0 0 auto; padding: 7px 9px; color: #c5f7ff; border: 1px solid rgba(18,203,232,.3); border-radius: 7px; background: rgba(18,203,232,.1); font-size: 9px; font-weight: 800; }
.connecting-badge { position: absolute; z-index: 14; right: 14px; bottom: 14px; padding: 8px 10px; color: white; border-radius: 8px; background: rgba(6,16,43,.78); font-size: 9px; }

/* Painel de capacidade e fila — vidro flutuante, sem roubar largura do portal. */
.panel-toggle {
  position: absolute;
  z-index: 13;
  top: 22px;
  right: 22px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--navy);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  background: rgba(247,250,255,.77);
  box-shadow: 0 10px 26px rgba(6,16,43,.15);
  backdrop-filter: var(--glass);
  font-size: 10px;
  font-weight: 800;
}
.panel-toggle-icon { color: var(--blue); font-size: 17px; }
.panel-toggle b { min-width: 20px; height: 20px; display: grid; place-items: center; color: white; border-radius: 50%; background: var(--blue); font-size: 8px; }
.side-panel {
  position: absolute;
  z-index: 14;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(326px, calc(100vw - 32px));
  overflow: auto;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 20px;
  background: rgba(247,250,255,.82);
  box-shadow: 0 22px 60px rgba(6,16,43,.2);
  backdrop-filter: var(--glass);
  transform: translateX(0);
  opacity: 1;
  transition: transform .24s ease, opacity .2s ease;
}
.side-panel.collapsed { pointer-events: none; transform: translateX(calc(100% + 28px)); opacity: 0; }
.panel-top { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-top .eyebrow { margin-bottom: 5px; }
.panel-top strong { font: 650 16px/1.1 "Jura", sans-serif; }
.panel-top button { width: 32px; height: 32px; color: var(--muted); border: 0; border-radius: 9px; background: rgba(10,25,64,.05); font-size: 17px; }
.panel-section { padding: 18px 16px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.section-heading h3 { margin: 0; font: 650 18px/1.1 "Jura", sans-serif; }
.slot-list { display: grid; gap: 7px; }
.slot-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 9px; border: 1px solid rgba(10,25,64,.06); border-radius: 11px; background: rgba(255,255,255,.58); }
.slot-row.active { border-color: rgba(30,123,255,.2); background: rgba(30,123,255,.07); }
.slot-number { width: 28px; height: 28px; display: grid; place-items: center; color: var(--navy); border-radius: 8px; background: white; box-shadow: 0 2px 8px rgba(10,25,64,.07); font: 750 10px/1 ui-monospace, monospace; }
.slot-row strong, .slot-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-row strong { font-size: 10px; }
.slot-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.state-chip { padding: 4px 6px; color: var(--muted); border-radius: 999px; background: #e9edf4; font-size: 7px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.state-chip.ready { color: #147a55; background: #dff5ec; }
.state-chip.in_use { color: #155db6; background: #e0edff; }
.state-chip.error, .state-chip.dead, .state-chip.needs_login { color: #a9404a; background: #fae4e7; }
.state-chip.technical_failure, .state-chip.recovering { color: #a85d28; background: #f9e6d6; }
.state-chip.validating, .state-chip.cleaning { color: #756628; background: #f3efd9; }
.count-badge { min-width: 22px; height: 22px; display: grid; place-items: center; color: var(--blue); border-radius: 50%; background: rgba(30,123,255,.09); font-size: 9px; font-weight: 900; }
.side-queue { position: relative; display: grid; gap: 2px; }
.empty-copy { margin: 2px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.queue-person { position: relative; display: grid; grid-template-columns: 24px 34px minmax(0,1fr); gap: 8px; align-items: center; min-height: 50px; padding: 5px 4px; border-radius: 12px; }
.queue-person:not(:last-child)::after { content: ""; position: absolute; left: 44px; bottom: -5px; width: 1px; height: 10px; background: linear-gradient(var(--blue-soft), transparent); }
.queue-person:hover { background: rgba(30,123,255,.055); }
.queue-person b { color: var(--blue); font: 750 9px/1 ui-monospace, monospace; text-align: center; }
.queue-person .avatar { width: 32px; height: 32px; font-size: 8px; box-shadow: 0 0 0 4px rgba(30,123,255,.06); }
.queue-person strong, .queue-person small { display: block; font-size: 9px; }
.queue-person small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.queue-person.priority { color: #8b4f28; background: linear-gradient(90deg, rgba(255,236,220,.78), transparent); }
.queue-person.priority b { color: #bd672f; }
.security-note { margin: 12px; display: flex; gap: 10px; padding: 12px; color: #244875; border: 1px solid rgba(30,123,255,.08); border-radius: 12px; background: rgba(30,123,255,.07); }
.security-note > span { color: var(--blue); }
.security-note strong { display: block; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.security-note p { margin: 4px 0 0; font-size: 8px; line-height: 1.45; }

.toast-stack { position: fixed; z-index: 100; right: 18px; bottom: 18px; width: min(360px, calc(100vw - 36px)); display: grid; gap: 8px; }
.toast { padding: 12px 14px; color: white; border-radius: 10px; background: var(--navy); box-shadow: var(--shadow); font-size: 11px; line-height: 1.45; animation: toast-in .2s ease-out; }
.toast.success { border-left: 3px solid var(--cyan); }
.toast.warning, .toast.error { border-left: 3px solid #ef9f6c; }
.toast a { color: #bceeff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* 1920×1080 é a referência; estes pontos mantêm a composição fluida. */
@media (min-width: 2200px) {
  .workspace { padding: 10px; }
  .remote-stage { border-radius: 18px; }
}
@media (max-width: 1180px) {
  .duna-lockup-compact { min-width: 180px; }
  .capacity { font-size: 10px; }
}
@media (max-width: 900px) {
  body { overflow: auto; }
  .login-screen { grid-template-columns: 1fr; overflow: auto; background: #f2f5f8; }
  .login-brand { min-height: 42vh; padding: 48px 28px; background: var(--navy-deep); }
  .login-brand h1 { font-size: clamp(42px, 11vw, 58px); }
  .login-card { width: min(440px, calc(100% - 40px)); padding: 40px 0 60px; }
  .capacity { display: none; }
  .duna-lockup-compact { min-width: auto; }
  .profile-copy { display: none; }
  .workspace { padding: 5px; }
  .remote-stage { border-radius: 12px; }
  .panel-toggle { top: 14px; right: 14px; }
  .side-panel { top: 8px; right: 8px; bottom: 8px; width: min(326px, calc(100vw - 16px)); }
}
@media (max-width: 620px) {
  .topbar { height: 52px; flex-basis: 52px; padding: 0 10px; }
  .top-actions { gap: 5px; }
  .admin-link { font-size: 0; }
  .admin-link::after { content: "TI"; font-size: 10px; }
  .operator-bar { left: 10px; bottom: 10px; width: min(238px, calc(100% - 20px)); }
  .operator-restore { left: 10px; bottom: 10px; }
  .file-tray { left: 10px; bottom: 164px; width: calc(100% - 20px); flex-wrap: wrap; }
  .file-tray > div:first-child { width: 100%; }
  .trust-row { flex-wrap: wrap; gap: 8px 14px; }
  .glass-card { width: min(94%, 520px); padding: 26px 20px; }
  .glass-card h2 { font-size: 27px; }
}
@media (max-height: 760px) and (min-width: 901px) {
  .topbar { height: 50px; flex-basis: 50px; }
  .workspace { padding: 5px; }
  .operator-bar { bottom: 10px; }
  .panel-toggle { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
