/* =====================================================================
   Huddle · Eagle Digital — sistema visual
   Paleta "Céu de Altitude" · fonte Plus Jakarta Sans · vidro líquido
   Para mudar cores do app inteiro, altere só os tokens em :root.
   ===================================================================== */

@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  /* Marca */
  --navy: #0E2A47;
  --navy-900: #0A1B2E;
  --navy-700: #163A5E;
  --steel: #3D6E99;
  --steel-300: #8DB0D1;
  --sky: #D3E2EE;
  --sun: #F5B700;
  --sun-600: #D49E00;
  --white: #FFFFFF;

  /* Neutros (levemente azulados) */
  --ink: #0E2A47;
  --ink-2: #33475C;
  --muted: #5E7187;
  --subtle: #8496AA;
  --line: #DDE5EE;
  --line-2: #C9D5E2;
  --surface: #FFFFFF;
  --surface-2: #F3F6FA;
  --surface-3: #E9EFF5;

  /* Status */
  --available: #2FB36B;  --available-bg: #E3F5EB; --available-ink: #1E7A48;
  --busy: #E5484D;       --busy-bg: #FDECEC;      --busy-ink: #B8383B;
  --focus: #8E6CF0;      --focus-bg: #EFEAFD;     --focus-ink: #6A4FD0;
  --warn-ink: #9A6200;   --warn-bg: #FFF4D6;

  /* Forma */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 27, 46, .08);
  --shadow-md: 0 1px 2px rgba(10, 27, 46, .08), 0 8px 24px rgba(10, 27, 46, .14);
  --shadow-lg: 0 2px 6px rgba(10, 27, 46, .10), 0 24px 60px rgba(10, 27, 46, .28);
  --focus-ring: 0 0 0 3px rgba(61, 110, 153, .35);

  /* Vidro líquido */
  --glass-bg:
    radial-gradient(130% 70% at 15% -10%, rgba(255,255,255,.62) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(244,248,252,.80) 100%);
  --glass-border: rgba(255, 255, 255, .7);
  --glass-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 0 rgba(255,255,255,.28),
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 1px 2px rgba(10,27,46,.10),
    0 12px 32px rgba(10,27,46,.24);
  --glass-blur: blur(22px) saturate(185%);

  --font: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--navy-900);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "ss01";
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ico { display: block; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------------
   Vidro
   --------------------------------------------------------------------- */
.glass {
  /* textos secundários mais escuros sobre o vidro (contraste mínimo 4,5:1) */
  --muted: #33475C;
  --subtle: #4A5C70;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--r-lg);
}
.glass-dark {
  background:
    radial-gradient(120% 80% at 20% -20%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 60%),
    rgba(10, 27, 46, .80);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 24px rgba(10,27,46,.35);
  color: var(--white);
}

/* ---------------------------------------------------------------------
   Botões
   --------------------------------------------------------------------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 650; font-size: 14px; letter-spacing: -.005em; white-space: nowrap; text-decoration: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .08s, color .15s;
  user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: var(--white); box-shadow: 0 1px 2px rgba(10,27,46,.2), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-primary:hover:not(:disabled) { background: var(--navy-700); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); border-color: var(--subtle); }
.btn-ghost { background: transparent; color: var(--steel); }
.btn-ghost:hover:not(:disabled) { background: rgba(61,110,153,.08); }
.btn-danger { background: var(--busy-bg); color: var(--busy-ink); }
.btn-danger:hover:not(:disabled) { background: #FAD9D9; }
.btn-sm { --h: 32px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn-lg { --h: 46px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .spinner { display: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading .btn-label { opacity: .7; }

.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: var(--r-sm);
  border: 1px solid transparent; background: transparent; color: var(--muted); transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: rgba(14,42,71,.06); color: var(--ink); }
.icon-btn.bordered { border-color: var(--line-2); background: var(--surface); color: var(--steel); }

.link-btn { background: none; border: 0; padding: 0; color: var(--steel); font-weight: 600; font-size: 13px; }
.link-btn:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

kbd, .kbd {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px;
  font: 700 11px/1 var(--font); background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2); border-bottom-width: 2px;
}
.glass-dark kbd { background: rgba(255,255,255,.14); color: var(--white); border-color: rgba(255,255,255,.18); }

/* ---------------------------------------------------------------------
   Campos
   --------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 650; font-size: 13px; color: var(--ink); }
.field .help { font-size: 12px; color: var(--muted); }
.input-wrap {
  display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px;
  border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--subtle);
  transition: border-color .15s, box-shadow .15s;
}
.input-wrap:hover { border-color: var(--subtle); }
.input-wrap:focus-within { border-color: var(--steel); box-shadow: 0 0 0 4px rgba(61,110,153,.14); color: var(--steel); }
.input-wrap.invalid { border-color: var(--busy); box-shadow: 0 0 0 4px rgba(229,72,77,.12); }
.input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; height: 100%; }
.input-wrap input::placeholder { color: var(--subtle); }
.input-wrap input:focus-visible, .people-search input:focus-visible, .text-input:focus-visible { box-shadow: none; }
.text-input:focus-visible { box-shadow: 0 0 0 4px rgba(61,110,153,.14); }
.input-wrap .icon-btn { margin-right: -6px; width: 30px; height: 30px; }
.text-input {
  height: 40px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%;
}
.text-input:focus { outline: 0; border-color: var(--steel); box-shadow: 0 0 0 4px rgba(61,110,153,.14); }

.otp { display: flex; gap: 8px; }
.otp input {
  width: 100%; max-width: 48px; height: 54px; text-align: center; font-size: 22px; font-weight: 750; color: var(--ink);
  border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--surface); caret-color: var(--steel);
  font-variant-numeric: tabular-nums;
}
.otp input:focus { outline: 0; border-color: var(--steel); box-shadow: 0 0 0 4px rgba(61,110,153,.14); }
.otp.invalid input { border-color: var(--busy); }
.otp .otp-gap { width: 8px; flex: none; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 550; }
.alert .ico { margin-top: 1px; }
.alert-error { background: var(--busy-bg); color: var(--busy-ink); }
.alert-success { background: var(--available-bg); color: var(--available-ink); }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); }
.caps-warn { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; color: var(--warn-ink); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.st-available { --st: var(--available); --st-bg: var(--available-bg); --st-ink: var(--available-ink); }
.st-busy { --st: var(--busy); --st-bg: var(--busy-bg); --st-ink: var(--busy-ink); }
.st-focus { --st: var(--focus); --st-bg: var(--focus-bg); --st-ink: var(--focus-ink); }
.st-away { --st: #9AA8B8; --st-bg: #EEF1F5; --st-ink: #5E6B7A; }
.st-recording { --st: #C2255C; --st-bg: #FCE8EF; --st-ink: #A61E4D; }
.chip.status { background: var(--st-bg); color: var(--st-ink); }
.chip.status .dot, .dot.status { background: var(--st); }

/* Avatar redondo (rosto do personagem em pixel) */
.avatar { position: relative; width: 34px; height: 34px; flex: none; }
.avatar canvas { width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(180deg, #E4EDF5, #CFDDEA); image-rendering: pixelated; display: block; }
.avatar .presence { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--st, var(--available)); border: 2px solid var(--white); }
.avatar.lg { width: 44px; height: 44px; }
.avatar.lg .presence { width: 13px; height: 13px; }
.avatar.xl { width: 72px; height: 72px; }

/* ---------------------------------------------------------------------
   Marca
   --------------------------------------------------------------------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; flex: none; display: block; box-shadow: 0 1px 2px rgba(10,27,46,.25); }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: -.015em; line-height: 1.1; }
.brand-sub { font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1.2; }

/* =====================================================================
   LOGIN
   ===================================================================== */
.auth { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, 1fr); background: var(--surface); }
.auth-art { position: relative; overflow: hidden; background: var(--navy-900); }
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.auth-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,27,46,.10) 0%, rgba(10,27,46,.45) 50%, rgba(10,27,46,.94) 100%);
}
.auth-copy { position: absolute; z-index: 1; left: 48px; right: 48px; bottom: 48px; color: var(--white); display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.auth-copy .brand-sub { color: rgba(255,255,255,.7); letter-spacing: .1em; text-transform: uppercase; }
.auth-copy h2 { margin: 6px 0 0; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
.auth-copy p { margin: 0; color: rgba(255,255,255,.76); font-size: 15px; max-width: 46ch; }
.auth-points { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.auth-points span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,.85); font-weight: 600; }

.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 80px); gap: 28px; }
.auth-panel .brand.mobile { display: none; }
.auth-step { display: flex; flex-direction: column; gap: 18px; max-width: 400px; width: 100%; animation: rise .25s ease-out; }
.auth-step h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
.auth-step .sub { margin: -8px 0 0; color: var(--muted); font-size: 14px; }
.auth-step form { display: flex; flex-direction: column; gap: 16px; }
.auth-foot { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-size: 12px; font-weight: 550; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.back-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.setup-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.setup-steps li { display: flex; gap: 10px; color: var(--ink-2); font-size: 13.5px; counter-increment: s; }
.setup-steps li::before { content: counter(s); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: var(--navy); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.qr-box { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.qr-box img { width: 132px; height: 132px; border-radius: 8px; background: var(--white); padding: 6px; image-rendering: pixelated; flex: none; }
.qr-box .manual { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12px; color: var(--muted); }
.secret { font-family: var(--mono); font-size: 12.5px; color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 6px 8px; border-radius: 6px; word-break: break-all; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.codes span { font-family: var(--mono); font-size: 14px; font-weight: 600; text-align: center; padding: 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); letter-spacing: .04em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--navy); flex: none; }

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { display: none; }
  .auth-panel .brand.mobile { display: flex; }
}

/* =====================================================================
   ESCRITÓRIO
   ===================================================================== */
.office-page { overflow: hidden; }
.stage { position: fixed; inset: 0; background: var(--navy-900); }
.stage canvas { display: block; outline: none; }

.hud { position: fixed; z-index: 10; }
.hud-tl { top: 16px; left: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; max-width: calc(100vw - 340px); }
.hud-sep { width: 1px; height: 28px; background: rgba(14,42,71,.12); flex: none; }
.room { display: flex; flex-direction: column; min-width: 0; }
.room-name { display: flex; align-items: center; gap: 6px; font-weight: 750; font-size: 13.5px; white-space: nowrap; }
.room-kind { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room[data-kind="meeting"] .room-name { color: var(--steel); }
.room[data-kind="focus"] .room-name { color: var(--focus-ink); }
.room[data-kind="office"] .room-name { color: var(--steel); }
.room[data-kind="away"] .room-name { color: var(--muted); }
.room[data-kind="studio"] .room-name { color: #A61E4D; }

/* Painel de pessoas */
.people-panel { top: 16px; right: 16px; width: 288px; max-height: calc(100vh - 220px); display: flex; flex-direction: column; overflow: hidden; }
.people-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 10px 16px; }
.people-head h2 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.01em; flex: 1; }
.count-chip { font-size: 11.5px; font-weight: 700; color: var(--navy-700); background: rgba(61,110,153,.16); padding: 2px 8px; border-radius: var(--r-full); }
.people-search { margin: 0 12px 8px; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 9px; background: rgba(255,255,255,.7); border: 1px solid rgba(14,42,71,.08); color: var(--subtle); }
.people-search input::placeholder, .chat-compose textarea::placeholder, .status-note .text-input::placeholder { color: var(--subtle); opacity: 1; }
.people-search:focus-within { background: var(--white); box-shadow: 0 0 0 3px rgba(61,110,153,.18); color: var(--steel); }
.people-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.people-body { overflow-y: auto; padding: 0 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.people-group { display: flex; align-items: center; gap: 6px; padding: 10px 8px 4px; font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); }
.person { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; border: 0; background: transparent; text-align: left; width: 100%; }
.person:hover, .person:focus-visible { background: rgba(255,255,255,.7); }
.person-info { flex: 1; min-width: 0; }
.person-name { font-weight: 700; font-size: 13.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-name .you { color: var(--subtle); font-weight: 600; }
.person-sub { font-size: 12px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.person:hover .person-actions, .person:focus-within .person-actions { opacity: 1; }
.person-actions .icon-btn { width: 28px; height: 28px; color: var(--steel); }
.person-actions .icon-btn:hover { background: var(--white); }
.people-empty { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.people-panel.collapsed .people-search, .people-panel.collapsed .people-body { display: none; }
.people-panel.collapsed { width: auto; }
.stack { display: none; }
.people-panel.collapsed .stack { display: flex; }
.stack .avatar { width: 26px; height: 26px; margin-left: -8px; }
.stack .avatar:first-child { margin-left: 0; }
.stack .avatar canvas { box-shadow: 0 0 0 2px var(--white); }
.collapse-ico { transition: transform .2s; }
.people-panel.collapsed .collapse-ico { transform: rotate(180deg); }

/* Barra de controles */
.dock { left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 7px; border-radius: 20px; }
.dock-me {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 6px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.42); text-align: left; transition: background-color .15s;
}
.dock-me:hover, .dock-me[aria-expanded="true"] { background: rgba(255,255,255,.75); }
.dock-me .nm { font-weight: 750; font-size: 13.5px; line-height: 1.15; }
.dock-me .st { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; color: var(--st-ink); line-height: 1.2; max-width: 150px; }
.dock-me .st span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Indicador de conexão (latência) */
.net-ind { width: 30px; height: 46px; display: grid; place-items: center; border-radius: 10px; flex: none; cursor: default; }
.net-ind:hover { background: rgba(255,255,255,.5); }
.net-ind rect { fill: rgba(14,42,71,.2); transition: fill .3s; }
.net-ind[data-level="3"] rect { fill: #2FB36B; }
.net-ind[data-level="2"] rect:nth-child(-n+2) { fill: #E8A400; }
.net-ind[data-level="1"] rect:nth-child(1) { fill: #E5484D; }
.dock-sep { width: 1px; height: 30px; background: rgba(14,42,71,.12); margin: 0 4px; flex: none; }
.dock-btn {
  position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.34); color: var(--navy);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  transition: background-color .15s, color .15s, transform .08s;
}
.dock-btn:hover:not(:disabled) { background: rgba(255,255,255,.8); }
.dock-btn:active:not(:disabled) { transform: scale(.96); }
.dock-btn:disabled { color: rgba(14,42,71,.35); cursor: not-allowed; }
.dock-btn.is-on { background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); }
.dock-btn.is-off { background: rgba(253,236,236,.85); color: var(--busy-ink); border-color: rgba(229,72,77,.25); }
.dock-btn.danger:hover { background: rgba(253,236,236,.95); color: var(--busy-ink); }
.badge { position: absolute; top: 5px; right: 5px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--sun); color: var(--navy); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }

/* Dicas (tooltip) */
[data-tip] { position: relative; }
.tip {
  position: fixed; z-index: 100; pointer-events: none; padding: 6px 9px; border-radius: 8px; font-size: 12px; font-weight: 650;
  display: flex; align-items: center; gap: 8px; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s;
}
.tip.show { opacity: 1; transform: none; }
.tip small { font-weight: 500; opacity: .75; }

/* Minimapa */
.minimap { right: 16px; bottom: 18px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.minimap canvas { display: block; border-radius: 9px; cursor: pointer; image-rendering: pixelated; box-shadow: inset 0 0 0 1px rgba(14,42,71,.1); }
.zoom-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.zoom-row .icon-btn { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.6); color: var(--navy); }
.zoom-row .icon-btn:hover { background: rgba(255,255,255,.9); }
.zoom-val { font-size: 12px; font-weight: 750; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Avisos */
.toasts { position: fixed; z-index: 30; left: 16px; bottom: 18px; display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none; max-width: 340px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 9px; border-radius: 14px; font-size: 13px; font-weight: 550; pointer-events: auto; animation: toastIn .22s ease-out; }
.toast.leaving { animation: toastOut .2s ease-in forwards; }
.toast b { font-weight: 750; }
.toast-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: rgba(61,110,153,.12); color: var(--steel); }
.toast-ico.ok { background: var(--available-bg); color: var(--available-ink); }
.toast-ico.focus { background: var(--focus-bg); color: var(--focus-ink); }
.toast-ico.leave { background: var(--surface-3); color: var(--muted); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* Faixa de conexão */
.conn-banner { top: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: var(--r-full); font-size: 13px; font-weight: 650; z-index: 40; }

/* Popovers (cartão da pessoa, menu de status) */
.popover { position: fixed; z-index: 50; width: 268px; padding: 14px; display: flex; flex-direction: column; gap: 12px; animation: pop .14s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: none; } }
.pc-head { display: flex; align-items: center; gap: 12px; }
.pc-name { font-weight: 800; font-size: 15.5px; letter-spacing: -.01em; line-height: 1.2; }
.pc-where { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.pc-note { font-size: 13px; color: var(--ink-2); background: rgba(255,255,255,.65); border: 1px solid rgba(14,42,71,.06); border-radius: 10px; padding: 8px 10px; }
.pc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pc-actions .full { grid-column: 1 / -1; }

.status-menu { width: 300px; padding: 8px; gap: 2px; }
.status-opt { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; text-align: left; width: 100%; }
.status-opt:hover, .status-opt:focus-visible { background: rgba(255,255,255,.75); }
.status-opt .t { font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.status-opt .d { font-size: 12px; color: var(--muted); line-height: 1.3; }
.status-opt .chk { margin-left: auto; color: var(--steel); visibility: hidden; }
.status-opt[aria-checked="true"] .chk { visibility: visible; }
.status-opt .dot { width: 10px; height: 10px; }
.menu-sep { height: 1px; background: rgba(14,42,71,.1); margin: 6px 4px; }
.status-note { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 4px; }
.status-note .row { display: flex; gap: 6px; }
.status-note .text-input { height: 36px; background: rgba(255,255,255,.85); }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; width: 100%; text-align: left; font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.menu-item:hover { background: rgba(255,255,255,.75); color: var(--ink); }
a.menu-item { text-decoration: none; }

/* Diálogos */
.dialog { border: 0; padding: 0; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-lg); color: var(--ink); width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); }
.dialog[open] { animation: dlg .18s ease-out; }
@keyframes dlg { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.dialog::backdrop { background: rgba(10,27,46,.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.dlg-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.015em; }
.dlg-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; align-self: flex-start; }
.tab { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 8px; font-weight: 650; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.look-layout { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 20px; }
.look-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px; border-radius: var(--r-md); background: linear-gradient(180deg, #E4EDF5, #D3E2EE); }
.look-preview canvas { width: 98px; height: 154px; image-rendering: pixelated; }
.look-preview .turn { display: flex; gap: 4px; }
.look-groups { display: flex; flex-direction: column; gap: 14px; }
.look-group { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.look-group legend { font-weight: 700; font-size: 12.5px; margin-bottom: 8px; padding: 0; color: var(--ink-2); }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; box-shadow: inset 0 0 0 1px rgba(14,42,71,.15); transition: transform .1s; }
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(14,42,71,.15), 0 0 0 2px var(--white), 0 0 0 4px var(--navy); }
.seg-btn { height: 30px; padding: 0 12px; border-radius: var(--r-full); border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.seg-btn:hover { border-color: var(--subtle); }
.seg-btn[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pref-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pref-row:last-child { border-bottom: 0; }
.pref-row .t { font-weight: 700; font-size: 13.5px; }
.pref-row .d { font-size: 12.5px; color: var(--muted); }
.switch { appearance: none; width: 40px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; cursor: pointer; flex: none; transition: background-color .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .15s; }
.switch:checked { background: var(--navy); }
.switch:checked::after { transform: translateX(16px); }

.shortcuts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.shortcut { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.shortcut .keys { display: flex; gap: 4px; }

/* Tour de boas-vindas */
.tour-spot { position: fixed; z-index: 60; border-radius: var(--r-lg); box-shadow: 0 0 0 4px rgba(245,183,0,.9), 0 0 0 9999px rgba(10,27,46,.55); pointer-events: none; transition: all .25s ease; }
.tour-card { position: fixed; z-index: 61; width: 320px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 10px; animation: pop .18s ease-out; }
.tour-card .step-n { font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.tour-card h3 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.015em; }
.tour-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.tour-card .row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }

/* Carregamento */
.loading { position: fixed; inset: 0; z-index: 90; background: var(--navy-900); display: grid; place-items: center; color: var(--white); transition: opacity .3s; }
.loading.done { opacity: 0; pointer-events: none; }
.loading-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loading-inner .brand-mark { width: 56px; height: 56px; border-radius: 14px; animation: breathe 1.6s ease-in-out infinite; }
.loading-inner p { margin: 0; color: rgba(255,255,255,.7); font-size: 13.5px; font-weight: 550; }
.loading-bar { width: 140px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.loading-bar::after { content: ""; display: block; width: 40%; height: 100%; background: var(--sun); border-radius: 2px; animation: slide 1.1s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05); } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.blocker { position: fixed; inset: 0; z-index: 80; background: rgba(10,27,46,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.blocker-card { width: min(400px, 100%); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.blocker-card .ico-wrap { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-3); color: var(--steel); display: grid; place-items: center; }
.blocker-card h2 { margin: 0; font-size: 19px; font-weight: 800; }
.blocker-card p { margin: 0; color: var(--muted); }

/* Ajustes finos */
.dock-btn[aria-disabled="true"] { color: rgba(14,42,71,.38); cursor: default; }
.dock-btn[aria-disabled="true"]:hover { background: rgba(255,255,255,.5); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.pc-name .you, .person-name .you { color: var(--subtle); font-weight: 600; }
.preset-row { display: flex; gap: 6px; flex-wrap: wrap; }
.preset-row .seg-btn { height: 26px; padding: 0 10px; font-size: 12px; }
.note-clear { align-self: flex-start; }
.tour-btns { display: flex; gap: 6px; }
.toast .btn { margin-left: 4px; }

/* =====================================================================
   CHAT
   ===================================================================== */
.chat-panel { top: 16px; right: 16px; bottom: 18px; width: 384px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; overflow: hidden; z-index: 12; }
body.chat-open .people-panel, body.chat-open .minimap { display: none; }
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 10px 14px; border-bottom: 1px solid rgba(14,42,71,.08); flex: none; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-title { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-sub { font-size: 12px; color: var(--muted); line-height: 1.3; }
.chat-sub:empty { display: none; }
.chat-list { overflow-y: auto; padding: 4px 8px 12px; }
.chat-section { font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--subtle); padding: 12px 8px 6px; }
.conv { display: flex; gap: 11px; align-items: center; width: 100%; padding: 9px 8px; border: 0; background: transparent; border-radius: 12px; text-align: left; }
.conv:hover, .conv:focus-visible { background: rgba(255,255,255,.72); }
.conv-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.conv-top, .conv-bottom { display: flex; align-items: center; gap: 8px; }
.conv-name { font-weight: 700; font-size: 13.5px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { font-size: 11.5px; color: var(--subtle); flex: none; font-variant-numeric: tabular-nums; }
.conv-prev { font-size: 12.5px; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.unread .conv-name, .conv.unread .conv-prev { color: var(--ink); font-weight: 750; }
.conv.offline .avatar canvas { filter: grayscale(.7); opacity: .75; }
.unread-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--navy); color: var(--white); font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: none; }
.channel-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: var(--white); display: grid; place-items: center; flex: none; }
.st-offline { --st: #A7B4C2; }

.chat-convo { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 10px 4px; display: flex; flex-direction: column; }
.msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; padding: 6px; border-radius: 10px; position: relative; }
.msg:hover { background: rgba(255,255,255,.55); }
.msg .msg-av { grid-row: span 2; width: 34px; height: 34px; margin-top: 2px; }
.msg-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.msg-head b { font-size: 13.5px; font-weight: 750; }
.msg-head time { font-size: 11px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.msg-body { grid-column: 2; font-size: 14px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.msg-body a { color: var(--steel); text-decoration: underline; text-underline-offset: 2px; }
.msg.grouped { padding-top: 1px; padding-bottom: 1px; }
.msg-hover-time { grid-column: 1; font-size: 10px; color: var(--subtle); opacity: 0; align-self: center; text-align: center; font-variant-numeric: tabular-nums; }
.msg.grouped:hover .msg-hover-time { opacity: 1; }
.msg.pending .msg-body { opacity: .5; }
.day-sep { display: flex; align-items: center; gap: 10px; margin: 12px 4px 6px; font-size: 11.5px; font-weight: 700; color: var(--subtle); }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: rgba(14,42,71,.1); }
.load-more { align-self: center; margin: 6px 0; }
.chat-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }
.chat-empty b { color: var(--ink); font-size: 14.5px; }
.chat-typing { display: flex; align-items: center; gap: 8px; padding: 2px 18px 4px; font-size: 12px; color: var(--muted); flex: none; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--subtle); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; margin: 6px 10px 10px; padding: 6px 6px 6px 12px; background: rgba(255,255,255,.9); border: 1px solid rgba(14,42,71,.1); border-radius: 14px; box-shadow: var(--shadow-sm); flex: none; }
.chat-compose:focus-within { border-color: var(--steel); box-shadow: 0 0 0 4px rgba(61,110,153,.14); }
.chat-compose textarea { flex: 1; border: 0; outline: 0; background: transparent; resize: none; font-size: 14px; line-height: 1.45; padding: 7px 0; max-height: 140px; color: var(--ink); }
.chat-compose textarea:focus-visible { box-shadow: none; }
.send-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--navy); color: var(--white); display: grid; place-items: center; flex: none; }
.send-btn:hover { background: var(--navy-700); }

/* =====================================================================
   CONVERSA: vídeos, tela compartilhada
   ===================================================================== */
.av-strip { position: fixed; z-index: 9; top: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; max-width: calc(100vw - 700px); overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.av-strip.empty { display: none; }
body.chat-open .av-strip { max-width: calc(100vw - 800px); transform: translateX(calc(-50% - 120px)); }
.av-tile { position: relative; width: 196px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; flex: none; background: linear-gradient(180deg, #1D3D5F, #0E2A47); box-shadow: 0 8px 24px rgba(10,27,46,.35), inset 0 0 0 1px rgba(255,255,255,.14); transition: box-shadow .15s; animation: pop .2s ease-out; }
.av-tile.screen { width: 300px; }
.av-tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.av-tile.screen video { object-fit: contain; background: #0A1B2E; }
.av-tile.has-video video { display: block; }
.av-tile.mirror video { transform: scaleX(-1); }
.av-ph { position: absolute; inset: 0; display: grid; place-items: center; }
.av-ph .avatar canvas { background: linear-gradient(180deg, #E4EDF5, #CFDDEA); box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.av-tile.has-video .av-ph { display: none; }
.av-label { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 5px; max-width: calc(100% - 16px); padding: 3px 9px 3px 7px; border-radius: var(--r-full); background: rgba(10,27,46,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--white); font-size: 12px; font-weight: 650; }
.av-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-mic { display: inline-flex; gap: 3px; align-items: center; }
.av-tile.muted .av-mic { color: #FF9A9C; }
.av-tile.speaking { box-shadow: 0 0 0 3px var(--available), 0 8px 24px rgba(10,27,46,.35); }
.av-expand { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(10,27,46,.6); color: var(--white); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.av-tile:hover .av-expand, .av-expand:focus-visible { opacity: 1; }
.audio-unlock { bottom: 140px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; padding: 10px 16px; font-weight: 700; color: var(--navy); border-radius: var(--r-full); z-index: 41; }

.viewer { position: fixed; inset: 0; z-index: 70; background: rgba(6,16,28,.94); display: flex; flex-direction: column; padding: 16px; gap: 12px; animation: pop .15s ease-out; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 6px 6px 16px; border-radius: 14px; font-weight: 700; }
.viewer-bar .icon-btn { color: var(--white); }
.viewer-bar .icon-btn:hover { background: rgba(255,255,255,.12); color: var(--white); }
.viewer video { flex: 1; min-height: 0; width: 100%; object-fit: contain; border-radius: 12px; background: #000; }

.dock-btn.is-active { background: rgba(255,255,255,.9); }
.person-name .in-call { color: var(--steel); display: inline-flex; vertical-align: -2px; margin-left: 6px; }
.media-icons { display: inline-flex; gap: 3px; margin-left: 6px; color: var(--subtle); vertical-align: -1px; }

/* Áudio e vídeo nos ajustes */
.av-settings { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.av-preview { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--navy); }
.av-preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.av-preview-off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 600; }
.av-fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
select.text-input { padding-right: 8px; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 2px; }
.meter span { display: block; height: 100%; width: 0; background: var(--available); border-radius: 3px; transition: width .08s; }
.help-text { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Trancar sala */
.room-lock { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(14,42,71,.14); background: rgba(255,255,255,.6); color: var(--navy); font-weight: 700; font-size: 12.5px; flex: none; }
.room-lock:hover { background: rgba(255,255,255,.95); }
.room-lock.is-locked { background: var(--busy-bg); color: var(--busy-ink); border-color: rgba(229,72,77,.3); }
.people-group .lock-ico { color: var(--busy-ink); display: inline-flex; }

/* Tela compartilhada: aviso "ao vivo" */
.share-pill { left: 50%; bottom: 92px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: 16px; z-index: 11; max-width: calc(100vw - 32px); animation: pop .2s ease-out; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--busy); flex: none; box-shadow: 0 0 0 0 rgba(229,72,77,.6); animation: live 1.6s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.55); } 70% { box-shadow: 0 0 0 8px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
.share-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.share-info b { font-size: 13px; font-weight: 750; white-space: nowrap; }
.share-info span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.share-info span:empty { display: none; }

/* =====================================================================
   VIDRO LÍQUIDO (refração + brilho nas bordas)
   ===================================================================== */
:where(.glass) { position: relative; }
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.18) 28%, rgba(255,255,255,0) 50%, rgba(255,255,255,.14) 74%, rgba(255,255,255,.75) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Economia de bateria: vidro mais simples (menos cálculo da placa de vídeo) */
.economy .glass {
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
}
.economy .live-dot, .economy .loading-bar::after { animation-duration: 3s; }
.select-sm { width: auto; height: 34px; flex: none; }
/* Refração (Chrome, Edge, Brave). Nos outros navegadores fica o vidro desfocado. */
.liquid .glass {
  -webkit-backdrop-filter: url(#liquid-glass) blur(12px) saturate(190%) brightness(1.04);
  backdrop-filter: url(#liquid-glass) blur(12px) saturate(190%) brightness(1.04);
}
.dock-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: radial-gradient(70px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.85), rgba(255,255,255,0) 65%);
}
.dock-btn:hover:not([aria-disabled="true"])::before { opacity: 1; }
.dock-btn.is-on::before, .dock-btn.is-off::before { background: radial-gradient(70px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), rgba(255,255,255,0) 65%); }
.dock-btn > svg { position: relative; }

/* Telas menores */
@media (max-width: 1100px) {
  .av-strip { max-width: calc(100vw - 32px); top: 84px; }
  body.chat-open .av-strip { max-width: calc(100vw - 440px); transform: none; left: 16px; }
}
@media (max-width: 900px) {
  .minimap canvas { display: none; }
  .av-settings { grid-template-columns: minmax(0, 1fr); }
  .chat-panel { width: calc(100vw - 32px); }
  .hud-tl { max-width: calc(100vw - 32px); }
  .people-panel { top: 76px; }
}
@media (max-width: 640px) {
  .dock-me .st, .dock-me .nm { display: none; }
  .dock-me { padding: 0 6px; }
  .dock-btn { width: 42px; height: 42px; }
  .minimap { display: none; }
  .toasts { bottom: 86px; }
  .hud-tl .room-kind { display: none; }
}

/* =====================================================================
   RELATÓRIO DE PRESENÇA
   ===================================================================== */
.report-page { background: var(--surface-2); overflow: auto; }
.report-top { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 5; }
.report-top-inner { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.report-top .brand-sub { color: rgba(255,255,255,.65); }
.report { max-width: 1120px; margin: 0 auto; padding: 28px 24px 56px; display: flex; flex-direction: column; gap: 18px; }
.page-tabs { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.report-section { display: flex; flex-direction: column; gap: 18px; }
.access-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat.bad b { color: var(--busy-ink); }
.ev { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); }
.ev-ok { background: var(--available-bg); color: var(--available-ink); }
.ev-warn { background: var(--warn-bg); color: var(--warn-ink); }
.ev-bad { background: var(--busy-bg); color: var(--busy-ink); }
.toast small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
.report-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.report-head h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.report-sub { margin: 4px 0 0; color: var(--muted); }
.report-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.report-filters .tabs { background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.date-range { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.date-range .text-input { width: auto; height: 36px; }
.report-note { align-items: center; }
.report-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-title { display: flex; align-items: center; gap: 8px; color: var(--steel); }
.card-title h2 { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.report-empty { color: var(--muted); font-size: 13px; padding: 4px 0; }

.live-list { display: flex; flex-wrap: wrap; gap: 10px; }
.live-chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.live-chip b { display: block; font-size: 13.5px; }
.live-chip span { font-size: 12px; color: var(--muted); }
.zone-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.person-card .pc-top { display: flex; align-items: center; gap: 12px; }
.person-card .avatar { width: 44px; height: 44px; }
.pc-name { font-weight: 800; font-size: 15.5px; }
.pc-total { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pc-total span { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stack-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.stack-bar span { display: block; height: 100%; min-width: 3px; }
.zone-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.zone-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.zone-list .zn { flex: 1; min-width: 0; color: var(--ink-2); }
.zone-list b { font-variant-numeric: tabular-nums; font-weight: 700; }
.zone-list .pct { width: 40px; text-align: right; color: var(--subtle); font-size: 12px; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.report-table th { text-align: left; font-size: 11.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--subtle); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report-table th .zone-dot { margin-right: 6px; vertical-align: -1px; }
.report-table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--ink-2); }
.report-table tr:last-child td { border-bottom: 0; }
.report-table td.who { font-weight: 700; color: var(--ink); }
.report-table td.total { font-weight: 800; color: var(--ink); }
.report-table tbody tr:hover td { background: var(--surface-2); }

@media (max-width: 640px) {
  .report { padding: 20px 16px 40px; }
  .report-top-inner { padding: 10px 16px; }
}
