/* =========================================================
   Escritório Virtual — estilos
   Cores e tamanhos principais ficam nas variáveis abaixo.
   ========================================================= */
:root {
  --bg: #15161f;
  --panel: #1f2030;
  --panel-2: #282a3d;
  --line: #34374f;
  --text: #eef0ff;
  --muted: #9da2c4;
  --accent: #6c5ce7;
  --accent-2: #8b7cff;
  --ok: #3ddc84;
  --danger: #ff5c6c;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --pixel: 'Pixelify Sans', 'Inter', monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; }
body { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--danger); min-height: 1.2em; margin: 4px 0; font-size: 13px; }

/* ---------- componentes base ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.btn { border: 0; border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; background: var(--panel-2); display: inline-flex; gap: 8px; align-items: center; justify-content: center; transition: filter .15s, transform .05s; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.big { padding: 14px 20px; font-size: 15px; width: 100%; }
.btn.small { padding: 6px 10px; font-size: 12px; }
.btn.danger { background: rgba(255, 92, 108, .15); color: var(--danger); }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.link:hover { color: var(--text); }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn.primary { background: var(--accent); color: #fff; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
input, select { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none; min-width: 0; }
input:focus, select:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(108, 92, 231, .25); }

/* ---------- login / lobby ---------- */
.screen { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; overflow: auto;
  background: radial-gradient(ellipse at top, #2a2455 0%, var(--bg) 60%); }
.login-card { width: min(380px, 100%); padding: 28px; display: grid; gap: 14px; text-align: center; }
.login-card label { text-align: left; }
#login-avatar, #join-avatar { margin: 0 auto; image-rendering: pixelated; }
.brand { font-family: var(--pixel); font-size: 28px; margin: 0; letter-spacing: .5px; }
.login-card p { margin: 0; }
.join-have { font-size: 13px; text-decoration: underline; }
.login-card label small { font-weight: 400; }
/* convite por link no painel de contas (js/ui/admin.js) */
.invite-box { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; margin: 4px 0 12px; }
.invite-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.invite-row .muted { font-size: 12px; }
.invite-row select, .invite-row input { flex: 1; min-width: 0; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
.invite-row input { font-size: 12px; }
.lobby-card { width: min(720px, 100%); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.lobby-preview { aspect-ratio: 4 / 3; background: #caa06c; border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; position: relative; }
.lobby-preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.lobby-preview canvas { image-rendering: pixelated; }
.lobby-side h2 { margin: 0 0 4px; font-size: 22px; }
.lobby-toggles { display: flex; gap: 10px; margin: 18px 0; }
.toggle { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 600; }
.toggle.on { background: rgba(61, 220, 132, .12); border-color: rgba(61, 220, 132, .5); color: var(--ok); }
.toggle.off { color: var(--danger); }
.lobby-links { display: flex; justify-content: space-between; margin-top: 12px; }
@media (max-width: 640px) { .lobby-card { grid-template-columns: 1fr; } }

/* ---------- escritório ---------- */
#app { position: fixed; inset: 0; }
#world { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; cursor: pointer; touch-action: none; }
#zone-badge { position: absolute; top: 14px; right: 14px; background: rgba(21, 22, 31, .82); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; display: flex; gap: 8px; align-items: center; backdrop-filter: blur(6px); }
/* relógio + pomodoro (ui/pomodoro.js): em cima à esquerda; o painel da esquerda desce pra caber */
#clock { position: absolute; top: 12px; left: 12px; z-index: 6; display: flex; align-items: stretch; gap: 6px; background: rgba(21, 22, 31, .86); border: 1px solid var(--line); border-radius: 14px; padding: 5px 5px 5px 12px; backdrop-filter: blur(6px); box-shadow: var(--shadow); }
#clock .ck-time { display: grid; align-content: center; line-height: 1.05; min-width: 64px; }
#clock .ck-time b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
#clock .ck-time b i { font-style: normal; transition: opacity .2s; } #clock .ck-time b i.off { opacity: .25; }
#clock .ck-time small { color: var(--muted); font-size: 10.5px; }
#clock .ck-pomo { position: relative; overflow: hidden; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 10px; padding: 4px 10px; cursor: pointer; font: inherit; font-weight: 700; }
#clock .ck-pomo:hover { border-color: #e5383b; }
#clock .ck-tomato { font-size: 18px; line-height: 1; }
#clock .ck-pomo em { font-style: normal; font-size: 11px; background: #e5383b; color: #fff; border-radius: 999px; padding: 0 6px; }
#clock .ck-left { font-variant-numeric: tabular-nums; font-size: 15px; }
#clock .ck-paused { font-size: 10px; color: var(--muted); font-weight: 600; }
#clock .ck-pomo > i { position: absolute; left: 0; bottom: 0; height: 3px; background: #e5383b; transition: width 1s linear; }
#clock.on .ck-pomo { border-color: rgba(229, 56, 59, .7); background: rgba(229, 56, 59, .14); }
#clock.pausa .ck-pomo { border-color: rgba(61, 220, 132, .6); background: rgba(61, 220, 132, .12); }
#clock.pausa .ck-pomo > i { background: var(--ok); }
.pomo-pop { min-width: 270px; }
#clock .ck-lunch { display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 106, 61, .7); background: rgba(255, 106, 61, .16); color: var(--text); border-radius: 10px; padding: 4px 10px; cursor: pointer; font: inherit; font-weight: 700; }
#clock .ck-lunch[hidden] { display: none; }
#clock .ck-lunch.late { border-color: #e5383b; background: rgba(229, 56, 59, .25); animation: ck-late 1s steps(2) infinite; }
@keyframes ck-late { 50% { background: rgba(229, 56, 59, .5); } }
/* tutorial (ui/tutorial.js) */
.modal-card.tut-card { width: min(880px, 100%); }
.tut { display: grid; grid-template-columns: 220px 1fr; gap: 16px; min-height: 420px; }
.tut-nav { display: grid; align-content: start; gap: 2px; max-height: 62vh; overflow: auto; padding-right: 4px; border-right: 1px solid var(--line); }
.tut-nav button { display: flex; gap: 8px; align-items: center; text-align: left; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.tut-nav button span { width: 20px; text-align: center; }
.tut-nav button:hover { background: var(--panel-2); color: var(--text); }
.tut-nav button.done { color: var(--text); opacity: .75; }
.tut-nav button.on { background: rgba(108, 92, 231, .2); color: var(--text); font-weight: 700; opacity: 1; }
.tut-page { display: flex; flex-direction: column; min-width: 0; }
.tut-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.tut-icon { font-size: 40px; line-height: 1; width: 56px; height: 56px; display: grid; place-items: center; background: var(--panel-2); border-radius: 16px; flex: none; }
.tut-head small { color: var(--muted); font-size: 12px; } .tut-head h3 { margin: 2px 0 0; font-size: 21px; }
.tut-body { flex: 1; font-size: 14.5px; line-height: 1.55; }
.tut-body p { margin: 0 0 10px; } .tut-body ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.tut-body kbd, .tut-keys kbd { display: inline-block; min-width: 20px; text-align: center; padding: 1px 6px; margin: 0 1px; border-radius: 6px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--panel-2); font: 600 12px/1.5 Inter, system-ui, sans-serif; color: var(--text); }
.tut-keys { border-collapse: collapse; width: 100%; margin-bottom: 12px; } .tut-keys td { padding: 6px 8px; border-bottom: 1px solid var(--line); } .tut-keys td:first-child { white-space: nowrap; width: 1%; }
.tut-where { color: #f5c542; font-size: 12.5px; margin: 10px 0 0; }
.tut-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.tut-dots { flex: 1; display: flex; gap: 4px; flex-wrap: wrap; } .tut-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); } .tut-dots i.on { background: var(--accent); width: 18px; border-radius: 4px; }
@media (max-width: 700px) { .tut { grid-template-columns: 1fr; min-height: 0; } .tut-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 6px; } .tut-dots { display: none; } }
/* tutorial interativo (ui/onboarding.js): cartãozinho no canto de baixo à direita, em cima da barra */
#onboard { position: absolute; bottom: 92px; right: 14px; z-index: 30; width: 310px; max-width: calc(100vw - 28px); background: rgba(31, 32, 48, .97); border: 1px solid var(--accent); border-radius: 16px; padding: 14px; box-shadow: var(--shadow), 0 0 0 4px rgba(108, 92, 231, .18); display: grid; gap: 10px; animation: aa-in .3s ease; }
#onboard[hidden] { display: none; }
#onboard.ok { border-color: var(--ok); box-shadow: var(--shadow), 0 0 0 4px rgba(61, 220, 132, .2); }
#onboard .ob-head { display: flex; gap: 10px; align-items: center; }
#onboard .ob-icon { font-size: 26px; width: 42px; height: 42px; display: grid; place-items: center; background: var(--panel-2); border-radius: 12px; flex: none; }
#onboard .ob-head small { color: var(--muted); font-size: 11.5px; display: block; } #onboard .ob-head b { font-size: 15.5px; }
#onboard p { margin: 0; font-size: 13.5px; line-height: 1.5; }
#onboard kbd { display: inline-block; min-width: 18px; text-align: center; padding: 0 5px; margin: 0 1px; border-radius: 5px; border: 1px solid var(--line); border-bottom-width: 3px; background: var(--panel-2); font: 600 11.5px/1.5 Inter, system-ui, sans-serif; }
#onboard .ob-bar { height: 5px; background: var(--panel-2); border-radius: 3px; overflow: hidden; } #onboard .ob-bar i { display: block; height: 100%; background: var(--accent); transition: width .5s; }
#onboard.ok .ob-bar i { background: var(--ok); }
#onboard .ob-actions { display: flex; gap: 6px; justify-content: flex-end; }
#onboard.anch { position: fixed; bottom: auto; right: auto; transition: left .35s ease, top .35s ease; z-index: 125; }
#onboard.anch::after { content: ''; position: absolute; width: 14px; height: 14px; background: #1f2030; border: 1px solid var(--accent); }
#onboard.ok.anch::after { border-color: var(--ok); }
#onboard.tail-down::after { bottom: -8px; left: var(--tx); transform: translateX(-50%) rotate(45deg); border-top: 0; border-left: 0; }
#onboard.tail-up::after { top: -8px; left: var(--tx); transform: translateX(-50%) rotate(45deg); border-bottom: 0; border-right: 0; }
#onboard.tail-left::after { left: -8px; top: var(--ty); transform: translateY(-50%) rotate(45deg); border-top: 0; border-right: 0; }
body.narrow #onboard { top: 8px; right: 8px; left: 8px; width: auto; }
#app.editing #onboard { display: none !important; }
#tutorial-modal.spot { background: rgba(10, 10, 20, .28); backdrop-filter: none; -webkit-backdrop-filter: none; }
.tut-glow { outline: 3px solid #f5c542 !important; outline-offset: 3px; border-radius: 12px; animation: tut-pulse 1.1s ease-in-out infinite; }
@keyframes tut-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 197, 66, .7); } 50% { box-shadow: 0 0 0 12px rgba(245, 197, 66, 0); } }
#alert-all-pop { z-index: 200; }
.aa-pop { max-width: 440px; text-align: center; padding: 26px 26px 20px; display: grid; gap: 10px; justify-items: center; border: 1px solid var(--accent); box-shadow: var(--shadow), 0 0 0 6px rgba(108, 92, 231, .2); animation: aa-in .35s cubic-bezier(.2, 1.4, .4, 1); }
.aa-icon { font-size: 44px; line-height: 1; animation: aa-wiggle 1.2s ease-in-out 2; }
.aa-text { font-size: 18px; font-weight: 700; line-height: 1.35; margin: 0; white-space: pre-wrap; }
.aa-from { color: var(--muted); }
.aa-actions { display: flex; gap: 8px; margin-top: 6px; justify-content: center; width: 100%; }
.aa-actions .btn { min-width: 120px; justify-content: center; }
@keyframes aa-in { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes aa-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.pomo-menu { display: grid; gap: 8px; padding: 8px; }
.pomo-menu > b { font-size: 15px; } .pomo-menu small { color: var(--muted); font-size: 12px; line-height: 1.35; } .pomo-menu small b { color: var(--text); font-size: inherit; }
.pomo-menu .pm-big { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; }
.pomo-menu .pm-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pomo-menu .pm-count { text-align: center; }
#app #sidebar { top: 66px; }
body.narrow #app #sidebar { top: 0; }
body.mini #clock, #app.editing #clock { display: none !important; }
#zone-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
#zone-badge.room .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }
#zone-badge.quiet .dot { background: #8a7dff; box-shadow: 0 0 0 4px rgba(138, 125, 255, .2); }
.zoom-ctrl { position: absolute; top: 60px; right: 14px; display: grid; gap: 6px; }
.zoom-ctrl .icon-btn { background: rgba(21, 22, 31, .82); border: 1px solid var(--line); }
#help { position: absolute; bottom: 86px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); background: rgba(21, 22, 31, .7); padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none; transition: opacity 1s; }
#help.gone { opacity: 0; }

/* barra de vídeos */
#videobar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; max-width: calc(100vw - 600px); overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.vtile { position: relative; width: 176px; aspect-ratio: 16 / 10; background: #0f1018; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); flex: none; cursor: pointer; transition: border-color .15s; }
.vtile.talking { border-color: var(--ok); }
.vtile video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.vtile.self video { transform: scaleX(-1); }
.vtile.self.screen video { transform: none; }
.vtile .face { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, #2a2c44, #17182a); }
.vtile .face canvas { width: 64px; height: 64px; image-rendering: pixelated; }
.vtile .label { position: absolute; left: 6px; bottom: 6px; right: 6px; display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.vtile .label span { background: rgba(0, 0, 0, .6); padding: 2px 8px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtile .label svg { color: var(--danger); background: rgba(0, 0, 0, .6); border-radius: 999px; padding: 3px; }
.vtile .expand { position: absolute; top: 6px; right: 6px; opacity: 0; background: rgba(0, 0, 0, .5); color: #fff; width: 28px; height: 28px; }
.vtile:hover .expand { opacity: 1; }

#stage { position: fixed; inset: 0; background: rgba(8, 8, 14, .55); z-index: 50; display: grid; place-items: center; padding: 24px; }
#stage[hidden] { display: none; }
#stage-box { width: min(1200px, 86vw); height: min(780px, 82vh); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
#stage-box:fullscreen { width: 100vw; height: 100vh; border-radius: 0; border: 0; }
#stage-box header { display: flex; gap: 8px; align-items: center; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
#stage-box header b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#stage-inner { min-height: 0; display: grid; place-items: center; background: #000; }
#stage-inner video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* barra de baixo */
#toolbar { position: absolute; z-index: 25; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; background: rgba(31, 32, 48, .94); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: var(--shadow); backdrop-filter: blur(8px); max-width: calc(100vw - 16px); }
.tb-group { display: flex; gap: 6px; }
.tb-group + .tb-group { border-left: 1px solid var(--line); padding-left: 10px; }
.tb-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--panel-2); cursor: pointer; display: grid; place-items: center; transition: background .15s; position: relative; }
.tb-btn:hover { background: #34374f; }
.tb-btn.on { background: var(--accent); color: #fff; }
.tb-btn.off { background: rgba(255, 92, 108, .16); color: var(--danger); }
.tb-btn.danger:hover { background: rgba(255, 92, 108, .2); color: var(--danger); }
.tb-btn .badge { position: absolute; top: -4px; right: -4px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.me-chip { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 4px; font-weight: 600; max-width: 160px; }
.me-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-chip canvas { width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); image-rendering: pixelated; flex: none; }

/* painel lateral */
#sidebar { position: absolute; top: 12px; left: 12px; bottom: 12px; width: 320px; background: rgba(31, 32, 48, .96); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; box-shadow: var(--shadow); overflow: hidden; }
#sidebar.closed { display: none; }
.tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); align-items: center; }
.tab { flex: 1; display: flex; gap: 6px; align-items: center; justify-content: center; border: 0; background: transparent; padding: 8px; border-radius: 10px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tab.active { background: var(--panel-2); color: var(--text); }
.tab-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#chat-list, #people-list { list-style: none; margin: 0; padding: 12px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.msg { display: grid; grid-template-columns: 32px 1fr; gap: 8px; }
.msg canvas { width: 32px; height: 32px; border-radius: 8px; background: var(--panel-2); image-rendering: pixelated; }
.msg .head { display: flex; gap: 6px; align-items: baseline; }
.msg .head b { font-size: 13px; }
.msg .head time { font-size: 11px; color: var(--muted); }
.msg .text { font-size: 13.5px; line-height: 1.4; word-wrap: break-word; overflow-wrap: anywhere; color: #d9dcf5; }
.msg.cont { margin-top: -6px; }
.msg.cont canvas, .msg.cont .head { visibility: hidden; height: 0; }
.chat-empty { color: var(--muted); text-align: center; margin: auto; font-size: 13px; }
#chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
#chat-form input { flex: 1; }
#chat-form .icon-btn { width: 42px; height: 42px; }
.person { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; }
.person:hover { background: var(--panel-2); }
.person canvas { width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); image-rendering: pixelated; flex: none; }
.person .info { flex: 1; min-width: 0; }
.person .info b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .info small { color: var(--muted); }
.person .status { color: var(--muted); display: flex; gap: 2px; }
.person .status .off { color: var(--danger); }
.person .status .on { color: var(--ok); }
.person .go { opacity: 0; }
.person:hover .go { opacity: 1; }

/* modais */
.modal { position: fixed; inset: 0; background: rgba(8, 8, 14, .7); display: grid; place-items: center; padding: 16px; z-index: 40; backdrop-filter: blur(3px); }
.modal-card { width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; padding: 20px; gap: 14px; overflow: hidden; }
.modal-card.small { width: min(380px, 100%); }
.modal-card header { display: flex; align-items: center; justify-content: space-between; }
.modal-card header h2 { margin: 0; font-size: 18px; }
.modal-card footer { display: flex; gap: 12px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 14px; }
.name-field { flex: 1; }

.custom-body { display: grid; grid-template-columns: 200px 1fr; gap: 20px; min-height: 0; overflow: hidden; }
.custom-preview { display: flex; flex-direction: column; gap: 10px; align-items: center; background: #caa06c; border-radius: var(--radius); padding: 16px; align-self: start;
  background-image: linear-gradient(45deg, #c29764 25%, transparent 25%, transparent 75%, #c29764 75%), linear-gradient(45deg, #c29764 25%, transparent 25%, transparent 75%, #c29764 75%);
  background-size: 24px 24px; background-position: 0 0, 12px 12px; }
.custom-preview canvas { image-rendering: pixelated; }
.dir-btns { display: flex; gap: 4px; }
.dir-btns button { width: 32px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; font-size: 12px; }
.dir-btns button.active { background: var(--accent); border-color: var(--accent); }
.custom-options { overflow-y: auto; padding-right: 6px; display: grid; gap: 16px; align-content: start; }
.opt h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.cz-tabs { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 0 0 10px; background: var(--panel); }
.cz-tabs button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cz-tabs button:hover { color: var(--text); }
.cz-tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.cz-page { display: grid; gap: 18px; }
.cz-page .opt { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.cz-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.cz-tile { display: grid; justify-items: center; gap: 4px; padding: 6px 4px 7px; border-radius: 12px; border: 2px solid transparent; background: rgba(255, 255, 255, .04); color: var(--muted); font: inherit; font-size: 11.5px; line-height: 1.15; cursor: pointer; }
.cz-tile canvas { image-rendering: pixelated; background: #caa06c; border-radius: 9px; }
.cz-tile:hover { background: rgba(255, 255, 255, .09); color: var(--text); }
.cz-tile.active { border-color: var(--accent); background: rgba(108, 92, 231, .16); color: var(--text); font-weight: 700; }
.cz-color { display: flex; gap: 10px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.cz-color small { color: var(--muted); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: 13px; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sw { width: 28px; height: 28px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .08); cursor: pointer; padding: 0; }
.sw.active { outline: 2px solid #fff; outline-offset: 2px; }
.sw-custom { position: relative; width: 28px; height: 28px; border-radius: 8px; overflow: hidden; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; padding: 0; border: 0; }
@media (max-width: 640px) { .custom-body { grid-template-columns: 1fr; overflow-y: auto; } .custom-options { overflow: visible; } }

.admin-card { width: min(820px, 100%); }
.admin-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto auto; gap: 8px; }
@media (max-width: 720px) { .admin-form { grid-template-columns: 1fr 1fr; } }
#admin-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: grid; gap: 6px; }
.urow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--bg); border-radius: 12px; border: 1px solid var(--line); }
.urow b { display: block; }
.urow small { color: var(--muted); }
.urow .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
/* painel da plataforma: empresas (ui/platform.js) */
.pf-new { display: grid; gap: 8px; padding: 12px; border: 1px solid rgba(124,92,255,.45); border-radius: 12px; background: rgba(124,92,255,.08); }
.pf-row, .pf-link-row { display: flex; gap: 8px; flex-wrap: wrap; } .pf-row input { flex: 1; min-width: 160px; } .pf-link-row input { flex: 1; min-width: 200px; }
.pf-ok { margin: 4px 0 0; } .pf-link { display: grid; gap: 4px; margin-top: 6px; }
.pf-h { margin: 16px 0 8px; font-size: 14px; }
.pf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-item { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); }
.pf-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .pf-count { font-weight: 700; white-space: nowrap; }
.pf-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.role-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; background: rgba(108, 92, 231, .25); color: var(--accent-2); margin-left: 6px; }

/* avisos */
#toasts { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); justify-items: center; display: grid; gap: 8px; z-index: 60; pointer-events: none; }
.toast { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); max-width: 320px; animation: tin .2s ease; transition: opacity .4s, transform .4s; }
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }
.toast.out { opacity: 0; transform: translateY(10px); }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* telas pequenas */
@media (max-width: 820px) {
  #sidebar { top: 8px; left: 8px; bottom: 84px; width: min(320px, calc(100vw - 16px)); }
  #chat-mini { left: 8px; bottom: 84px; }
  #videobar { max-width: calc(100vw - 16px); top: 60px; }
  .vtile { width: 128px; }
  #me-name { display: none; }
  #toolbar { overflow-x: auto; justify-content: flex-start; bottom: 8px; }
  .tb-group + .tb-group { padding-left: 6px; }
  .zoom-ctrl { top: auto; bottom: 84px; right: 8px; }
  #help { display: none; }
  .tb-btn { width: 40px; height: 40px; }
}

/* ===================== Status, aceno, menus, mini modo ===================== */
.sdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--panel); }

button.me-chip { background: transparent; border: 0; color: inherit; font: inherit; font-weight: 600; cursor: pointer; border-radius: 12px; padding: 4px 10px 4px 4px; }
button.me-chip:hover { background: var(--panel-2); }
.me-chip .me-face-wrap { position: relative; flex: none; display: block; overflow: visible; } /* a bolinha sai um pouco pra fora do rosto: sem cortar (o corte com … é só do nome) */
.me-face-wrap .sdot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; z-index: 1; }

.person .face { position: relative; flex: none; }
.person .face .sdot { position: absolute; right: -2px; bottom: -2px; }
.person .wave, .person .go { opacity: 0; }
.person:hover .wave, .person:hover .go { opacity: 1; }
.person .wave:hover { color: #f5b83d; }

/* aviso com botões (aceno) */
.toast.action { pointer-events: auto; display: grid; gap: 8px; border-left-color: #f5b83d; min-width: 260px; }
.toast-msg { font-weight: 600; }
.toast-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

/* menu flutuante (status, clicar em pessoa) */
.popmenu { position: fixed; z-index: 80; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); display: grid; gap: 2px; min-width: 200px; animation: tin .12s ease; }
.popmenu button { display: flex; align-items: center; gap: 10px; text-align: left; background: transparent; border: 0; color: var(--text); font: inherit; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.popmenu button:hover { background: var(--panel-2); }
.pv-ctl { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; min-width: 250px; }
.pv-head { display: flex; align-items: center; gap: 10px; }
.pv-head span { flex: 1; } .pv-head b { display: block; font-weight: 600; } .pv-head small { color: var(--muted); font-size: 11.5px; }
.pv-head em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-2); }
.pv-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pv-row input { flex: 1; accent-color: var(--accent); }
.popmenu > .pv-ctl:only-child { border-bottom: 0; margin-bottom: 0; }
.person .vol { opacity: 0; }
.person:hover .vol, .person .vol.low { opacity: 1; }
.person .icon-btn.vol.low { color: var(--danger); }
.popmenu button.active { background: rgba(108, 92, 231, .18); }
.popmenu button b { display: block; font-weight: 600; }
.popmenu button small { display: block; color: var(--muted); font-size: 12px; }
.popmenu .menu-title { padding: 6px 10px 4px; color: var(--muted); font-size: 12px; font-weight: 600; }

/* mini modo (janela Picture-in-Picture) */
body.mini { display: flex; flex-direction: column; height: 100vh; margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); overflow: hidden; }
.mini-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 6px; }
.mini-face { width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); image-rendering: pixelated; flex: none; }
.mini-who { flex: 1; min-width: 0; display: grid; }
.mini-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-status { background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 12px; padding: 0; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.mini-status:hover { color: var(--text); }
.mini-statuses { display: none; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.mini-statuses.open { display: flex; }
.mini-statuses button { display: flex; align-items: center; gap: 6px; background: var(--panel-2); border: 1px solid transparent; color: var(--text); font: inherit; font-size: 12px; padding: 5px 9px; border-radius: 999px; cursor: pointer; }
.mini-statuses button.active { border-color: var(--accent); }
.mini-videos { flex: 1; overflow-y: auto; padding: 4px 12px; }
body.mini #videobar { position: static; transform: none; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; overflow: visible; }
body.mini .vtile { width: auto; cursor: default; }
body.mini .vtile .expand { display: none; }
.mini-empty { color: var(--muted); text-align: center; font-size: 13px; margin: 40px 10px; line-height: 1.5; }
.mini-controls { display: flex; justify-content: center; gap: 10px; padding: 10px; border-top: 1px solid var(--line); background: var(--panel); }

/* ===================== Chat minimizado ===================== */
#chat-mini { position: absolute; left: 12px; bottom: 14px; width: 300px; max-width: calc(100vw - 16px); background: rgba(31, 32, 48, .96); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; z-index: 5; }
#chat-mini[hidden] { display: none; }
#chat-mini-head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
#chat-mini-head:hover { background: var(--panel-2); }
#chat-mini-head .title { display: flex; align-items: center; gap: 6px; font-weight: 600; flex: 1; }
#chat-mini-head .badge { background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
#chat-mini-list { list-style: none; margin: 0; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; max-height: 120px; overflow-y: auto; font-size: 13px; line-height: 1.35; }
#chat-mini-list li { color: #d9dcf5; overflow-wrap: anywhere; }
#chat-mini-list li b { color: var(--text); margin-right: 4px; }
#chat-mini-list li.fresh { animation: fresh 2.5s ease; }
#chat-mini-list .chat-empty { margin: 4px 0; }
@keyframes fresh { from { background: rgba(108, 92, 231, .35); } to { background: transparent; } }
#chat-mini-form { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
#chat-mini-form input { flex: 1; min-width: 0; padding: 8px 10px; }
#chat-mini-form .icon-btn { width: 36px; height: 36px; }
/* chat minimizado no canto: a barra (e a dica) ficam centralizadas no espaço livre à direita dele */
@media (min-width: 821px) { #app:not(.side-open) #toolbar, #app:not(.side-open) #help, #app:not(.side-open) #rec-bar { left: calc(50vw + 162px); } }
/* painel aberto (esquerda): vídeos e barra centralizados no espaço livre à direita dele */
#app.side-open #videobar { left: 356px; transform: none; max-width: calc(100vw - 356px - 300px); }
@media (max-width: 820px) { #app.side-open #videobar { left: calc(min(320px, calc(100vw - 16px)) + 16px); transform: none; max-width: calc(100vw - min(320px, calc(100vw - 16px)) - 24px); } }
@media (min-width: 821px) { #app.side-open #toolbar, #app.side-open #help, #app.side-open #rec-bar { left: calc(50vw + 172px); } }

/* ===================== Setores, marcações e emojis ===================== */
#channel-bar { display: flex; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; flex: none; }
.chan { position: relative; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer; flex: none; }
.chan:hover { color: var(--text); background: var(--panel-2); }
.chan.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chan i, .popmenu i.n, .popmenu i.at { font-style: normal; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--danger); color: #fff; margin-left: auto; }
.chan i.at, .popmenu i.at { background: #f5b83d; color: #1b1b1b; }
.chan.mention { border-color: #f5b83d; animation: blinkborder 1s ease-in-out infinite; }
.chan .del { display: none; margin-left: 2px; font-size: 14px; line-height: 1; opacity: .7; }
.chan:hover .del { display: inline; }
.chan .del:hover { opacity: 1; color: var(--danger); }
.chan.active .del:hover { color: #fff; }
.chan.add { border-style: dashed; }
.chan-new { flex: none; width: 150px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; }

.mention { background: rgba(108, 92, 231, .22); color: #c9c2ff; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.mention.me { background: rgba(245, 184, 61, .25); color: #ffd98a; }
.msg.to-me { background: rgba(245, 184, 61, .08); border-left: 3px solid #f5b83d; margin-left: -12px; padding-left: 9px; border-radius: 0 8px 8px 0; }
#chat-mini-list li.to-me { background: rgba(245, 184, 61, .12); border-radius: 6px; padding: 0 4px; }

/* caixinha minimizada: seletor de setor e piscar quando te marcam */
#chat-mini-head .title { min-width: 0; }
#chat-mini-icon { display: grid; place-items: center; color: var(--muted); }
#chat-mini-channel { background: transparent; border: 0; color: var(--text); font: inherit; font-weight: 600; padding: 2px 6px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
#chat-mini-channel:hover { background: var(--panel-2); }
#chat-mini-channel .caret { color: var(--muted); font-size: 10px; }
#chat-mini-channel .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); display: inline-block; }
#chat-mini-head .badge.at { background: #f5b83d; color: #1b1b1b; }
/* marcação não vista: chat amarelo, brilhando e tremendo de tempos em tempos */
#chat-mini.blink, #sidebar.blink {
  border: 2px solid #f5b83d;
  background: linear-gradient(rgba(245, 184, 61, .20), rgba(245, 184, 61, .20)), rgba(31, 32, 48, .97);
  animation: glow 1.2s ease-in-out infinite, shake 4s ease-in-out infinite;
}
#chat-mini.blink #chat-mini-head, #sidebar.blink .tabs { background: #f5b83d; }
#chat-mini.blink #chat-mini-head, #chat-mini.blink #chat-mini-head .icon-btn, #chat-mini.blink #chat-mini-channel,
#chat-mini.blink #chat-mini-icon, #chat-mini.blink #chat-mini-channel .caret,
#sidebar.blink .tab, #sidebar.blink .tabs .icon-btn { color: #1b1b1b; }
#chat-mini.blink #chat-mini-head .badge.at { background: #1b1b1b; color: #f5b83d; }
#sidebar.blink .tab.active { background: rgba(0, 0, 0, .15); }
@keyframes glow { 0%, 100% { box-shadow: var(--shadow), 0 0 0 0 rgba(245, 184, 61, .0); } 50% { box-shadow: var(--shadow), 0 0 22px 6px rgba(245, 184, 61, .55); } }
@keyframes shake {
  0%, 84%, 100% { transform: translate(0, 0) rotate(0); }
  86% { transform: translate(-5px, 0) rotate(-1.5deg); }
  88% { transform: translate(5px, 0) rotate(1.5deg); }
  90% { transform: translate(-5px, 0) rotate(-1deg); }
  92% { transform: translate(4px, 0) rotate(1deg); }
  94% { transform: translate(-3px, 0) rotate(0); }
  96% { transform: translate(2px, 0); }
}
@media (prefers-reduced-motion: reduce) { #chat-mini.blink, #sidebar.blink { animation: glow 1.2s ease-in-out infinite; } }
@keyframes blinkborder { 0%, 100% { box-shadow: none; } 50% { box-shadow: 0 0 0 3px rgba(245, 184, 61, .35); } }

/* emojis e sugestões de @ */
.emoji-btn .emoji-icon { font-size: 18px; line-height: 1; filter: grayscale(.4); }
.emoji-btn:hover .emoji-icon { filter: none; }
#chat-form .emoji-btn, #chat-mini-form .emoji-btn { width: 36px; height: 36px; flex: none; }
.emoji-pop { position: fixed; z-index: 90; width: 300px; max-height: 280px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px 8px 8px; animation: tin .12s ease; }
.emoji-group { font-size: 11px; font-weight: 600; color: var(--muted); padding: 6px 2px 4px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; }
.emoji-grid button { border: 0; background: transparent; font-size: 20px; line-height: 1; padding: 5px 0; border-radius: 6px; cursor: pointer; }
.emoji-grid button:hover { background: var(--panel-2); }
.mention-pop { position: fixed; z-index: 90; min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 4px; display: grid; gap: 1px; }
.mention-pop button { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 6px; cursor: pointer; text-align: left; }
.mention-pop button small { color: var(--muted); margin-left: auto; }
.mention-pop button.active, .mention-pop button:hover { background: var(--panel-2); }
.mention-pop .m-ico { width: 10px; text-align: center; }

/* ---------- editor do escritório (js/editor/) ---------- */
#app.editing #toolbar, #app.editing #sidebar, #app.editing #chat-mini, #app.editing #videobar,
#app.editing #help, #app.editing #zone-badge { display: none !important; }
#app.editing .zoom-ctrl { right: 336px; top: 14px; }
#editor-panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: 312px; display: flex; flex-direction: column;
  background: rgba(31, 32, 48, .96); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); z-index: 30; overflow: hidden; }
#editor-panel header { padding: 14px 16px 10px; }
#editor-panel header b { font-size: 15px; display: block; }
#editor-panel header small { color: var(--muted); font-size: 12px; }
.ed-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); }
.ed-tabs button { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 2px; color: var(--muted); font-weight: 600; font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.ed-tabs button:hover { color: var(--text); border-color: var(--muted); }
.ed-tabs button.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.ed-tools { display: flex; gap: 6px; padding: 10px 12px 0; }
.ed-tool { flex: 1; display: flex; gap: 6px; align-items: center; justify-content: center; padding: 7px; border-radius: 9px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ed-tool.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ed-body { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ed-tip { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.ed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
/* código da cor (copiar/colar) */
.ed-hex { display: flex; gap: 4px; align-items: center; margin-top: 4px; }
.ed-hex input { flex: 1; min-width: 0; font: 600 12px ui-monospace, Menlo, monospace; padding: 5px 7px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); text-transform: lowercase; }
.ed-hex button { display: inline-flex; align-items: center; gap: 3px; padding: 5px 7px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font-size: 11.5px; cursor: pointer; white-space: nowrap; }
.ed-hex button:hover { border-color: var(--accent-2); }
/* categorias na lateral (Móveis, Parede, Jardim): coluna fixa à esquerda, itens em 2 colunas */
.ed-cat { display: flex; gap: 8px; align-items: flex-start; }
.ed-subs { position: sticky; top: 0; flex: none; width: 70px; display: flex; flex-direction: column; gap: 3px; }
.ed-subs button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted); font-size: 10.5px; line-height: 1.15; cursor: pointer; text-align: center; }
.ed-subs button .ic { font-size: 17px; line-height: 1.2; }
.ed-subs button:hover { background: var(--panel-2); color: var(--text); }
.ed-subs button.on { background: var(--panel-2); border-color: var(--accent-2); color: var(--text); }
.ed-grid.two { flex: 1; min-width: 0; grid-template-columns: repeat(2, 1fr); }
.ed-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; }
.ed-item img { width: 100%; height: 54px; object-fit: contain; image-rendering: pixelated; }
.ed-grid.floors img { width: 40px; height: 40px; border-radius: 6px; }
.ed-item span { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }
.ed-item.on { border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(139, 124, 255, .35); }
.ed-item.on span { color: var(--text); }
.ed-brush { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin-top: 4px; }
.ed-brush button { border: 1px solid var(--line); background: transparent; border-radius: 8px; padding: 4px 9px; cursor: pointer; font-size: 12px; }
.ed-brush button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ed-rooms { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ed-rooms li { min-width: 0; display: flex; gap: 6px; align-items: center; padding: 5px 6px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.ed-rooms li.on { border-color: var(--accent-2); background: rgba(139, 124, 255, .12); }
.ed-rooms .sw { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.ed-rooms input { flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid transparent; border-radius: 7px; padding: 5px 7px; font-size: 12.5px; }
.ed-rooms select { background: var(--panel-2); border: 0; border-radius: 7px; padding: 5px 2px; font-size: 11.5px; width: 86px; flex: none; }
.ed-rooms .icon-btn { width: 28px; height: 28px; }
.ed-types { border-top: 1px solid var(--line); padding-top: 6px; }
.ed-types p { margin: 3px 0; font-size: 11.5px; color: var(--muted); }
.ed-body .btn.on { background: var(--accent); color: #fff; }
.ed-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ed-side { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 3px 3px 3px 9px; font-size: 12px; }
.ed-side span { flex: 1; }
.ed-side .icon-btn { width: 28px; height: 28px; }
.ed-props { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ed-colors { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ed-colors button { width: 22px; height: 22px; border-radius: 6px; border: 2px solid transparent; cursor: pointer; }
.ed-colors button.on { border-color: #fff; }
.ed-wall { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.ed-wall-head { display: flex; align-items: center; gap: 8px; }
.ed-wall-head > span:first-child { flex: 1; }
.ed-wall-cur { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #fff; }
.ed-wall-head input[type=color] { width: 28px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: transparent; cursor: pointer; }
.ed-wall-reset { padding: 3px 8px; font-size: 11px; background: transparent; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); cursor: pointer; }
.ed-wall-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.ed-wall-grid button { aspect-ratio: 1; border-radius: 4px; border: 2px solid transparent; cursor: pointer; padding: 0; }
.ed-wall-grid button:hover { transform: scale(1.15); }
.ed-wall-grid button.on { border-color: #fff; box-shadow: 0 0 0 1px #000; }
.ed-owner { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.ed-colors input { width: 30px; height: 24px; border: 0; background: none; padding: 0; cursor: pointer; }
.ed-size { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.ed-size input { width: 52px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 4px 6px; }
#editor-panel footer { display: flex; gap: 6px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
#editor-panel footer .grow { flex: 1; }
#editor-panel .icon-btn:disabled { opacity: .35; cursor: default; }
#editor-hint { position: absolute; left: 14px; right: 340px; bottom: 14px; text-align: center; font-size: 12px; color: var(--muted);
  background: rgba(21, 22, 31, .82); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; pointer-events: none; }
#editor-hint b { color: var(--text); font-weight: 600; }
.ed-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ed-tpl { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; }
.ed-tpl .ic { grid-row: span 2; font-size: 20px; }
.ed-tpl b { font-size: 12.5px; }
.ed-tpl small { font-size: 10.5px; color: var(--muted); line-height: 1.25; }
.ed-tpl.on { border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(139, 124, 255, .35); }
.ed-sub { margin: 6px 0 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ed-slist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ed-slist li { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line); cursor: pointer; font-size: 12.5px; }
.ed-slist li small { margin-left: auto; color: var(--muted); }
.ed-slist li.on { border-color: var(--accent-2); background: rgba(139, 124, 255, .12); }
.ed-slist .sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.ed-field { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ed-field input, .ed-field select { background: var(--panel-2); border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; font-size: 12.5px; color: var(--text); min-width: 0; }
/* vídeo: conexão ainda subindo / instável */
.vtile.net-wait { opacity: .75; }
.vtile .label .net { font-style: normal; font-size: 11px; color: #ffd166; margin-left: 6px; }

/* ---------- janela Áudio e vídeo (js/ui/av-settings.js) ---------- */
.av-card { width: min(460px, 100%); overflow-y: auto; }
.av-sec { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.av-voz-t { font-weight: 600; font-size: 13px; }
.av-voz-t svg { vertical-align: -3px; margin-right: 4px; }
.av-voz-row { display: flex; flex-direction: column; gap: 2px; font-size: 13px; padding: 6px 8px; background: var(--panel-2); border-radius: 8px; }
.av-voz-row .ok { color: #2ecc71; font-weight: 600; }
.av-voz-row .bad { color: #ff6b6b; font-weight: 600; }
.av-sec:last-of-type { border-bottom: 0; padding-bottom: 0; }
.av-preview { max-height: 200px; }
.av-sec label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 13px; }
.av-sec label svg { vertical-align: -3px; margin-right: 4px; }
.av-sec select { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-weight: 400; }
.av-sec .av-check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; color: var(--muted); }
.av-meter { position: relative; height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.av-gate-line { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #ffd166; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.av-gate { display: grid; gap: 4px; margin-top: 6px; }
.av-gate input[type=range] { width: 100%; accent-color: #ffd166; }
.av-gate.off input[type=range], .av-gate.off .av-gate-scale, .av-gate.off .av-gate-hint { opacity: .45; }
.av-gate-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: -4px; }
.av-gate-hint { font-size: 11.5px; }
.av-meter span { display: block; height: 100%; width: 0; background: var(--muted); transition: width .08s; border-radius: 99px; }
.av-meter span.hot { background: var(--ok); }
.av-meter-hint { font-size: 11.5px; }
.av-private { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: #ffd166; }
.av-sec .btn { align-self: flex-start; }
.av-preview { position: relative; aspect-ratio: 16 / 9; background: #0e0f17; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.av-preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.av-preview video:not([hidden]) + span { display: none; }
.av-perm { margin: 0; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.ed-check { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }

/* ---------- Decorar minha mesa (ui/desk-editor.js) ---------- */
.de-card { width: min(860px, 100%); }
.de-tip { margin: 0; font-size: 13px; }
.de-body { display: flex; gap: 16px; min-height: 0; overflow: auto; }
.de-stage-wrap { flex: 1; display: grid; place-items: center; background: #14131f; border-radius: 12px; padding: 12px; min-width: 0; }
.de-stage { max-width: 100%; height: auto; image-rendering: pixelated; touch-action: none; border-radius: 6px; }
.de-side { width: 240px; display: flex; flex-direction: column; gap: 12px; }
.de-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 340px; overflow: auto; }
.de-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: inherit; cursor: pointer; font-size: 10.5px; line-height: 1.15; }
.de-item:hover { background: rgba(255,255,255,.1); }
.de-tabs { margin: 0; } .de-tabs button { padding: 7px 4px; font-size: 12px; }
.de-styles { display: grid; gap: 8px; align-content: start; max-height: 420px; overflow: auto; }
.de-models { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.de-model { cursor: pointer; } .de-model canvas { image-rendering: pixelated; }
.de-model.on { border-color: var(--accent); background: rgba(124,92,255,.18); box-shadow: 0 0 0 1px var(--accent) inset; }
.de-item { cursor: grab; touch-action: none; user-select: none; }
.de-ghost { position: fixed; z-index: 9999; pointer-events: none; transform: translate(-50%, -50%) scale(1.6); image-rendering: pixelated; opacity: .6; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.de-ghost.ok { opacity: 1; }
.de-item canvas { max-width: 64px; max-height: 44px; object-fit: contain; image-rendering: pixelated; }
.de-item { min-height: 72px; justify-content: flex-end; }
.de-selected { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.05); }
.de-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.de-color { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); cursor: pointer; }
.de-color.on { border-color: #fff; box-shadow: 0 0 0 2px #4f8cff; }
@media (max-width: 720px) { .de-body { flex-direction: column; } .de-side { width: auto; } }

/* ---------- setores: seletor + favoritos (ui/channels.js) ---------- */
#channel-bar { overflow: visible; flex-wrap: wrap; align-items: center; }
.chan-pick { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px 6px 12px; border-radius: 10px; cursor: pointer; }
.chan-pick .caret { opacity: .8; font-size: 11px; }
.chan-pick i { font-style: normal; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--danger); color: #fff; }
.chan-pick.mention { animation: blinkborder 1s ease-in-out infinite; border-color: #f5b83d; }
.chan-favs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.chan.add { padding: 5px 7px; }
.chan.wipe { padding: 5px 7px; margin-left: auto; color: var(--muted); }
.chan.wipe:hover { color: var(--danger); border-color: var(--danger); }
.chan-menu { min-width: 240px; max-height: 60vh; overflow: auto; }
.chan-menu .chan-name { flex: 1; text-align: left; }
.chan-menu .star { font-size: 16px; line-height: 1; padding: 2px 4px; color: var(--muted); border-radius: 6px; }
.chan-menu .star.on { color: #f5c542; }
.chan-menu .star:hover, .chan-menu .trash:hover { background: rgba(255,255,255,.1); }
.chan-menu .trash { display: inline-grid; place-items: center; padding: 3px; border-radius: 6px; color: var(--muted); }
.chan-menu .trash:hover { color: var(--danger); }

/* ---------- procurar pessoa (ui/people.js) ---------- */
.people-search { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--muted); }
.people-search input { flex: 1; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; min-width: 0; }
.people-search:focus-within { border-color: var(--accent); }
.people-sep { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 2px 0; }
.person.offline { opacity: .7; }

/* ---------- janelas das funções da empresa (avisos, reuniões, arquivos, cinema) ---------- */
.mm-body { overflow: auto; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.mm-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); }
.mm-form input, .mm-form textarea, .mm-form select { width: 100%; box-sizing: border-box; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
.mm-form textarea { min-height: 70px; resize: vertical; }
.mm-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mm-row > * { flex: 1; min-width: 120px; }
.mm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mm-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.mm-item .grow { flex: 1; min-width: 0; }
.mm-item b { display: block; }
.mm-item small, .mm-muted { color: var(--muted); font-size: 12px; }
.mm-item p { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; }
/* avisos com imagem + aviso pipocando no meio da tela (ui/notices.js) */
.nf-img { display: flex; gap: 8px; align-items: center; }
.nf-img input[name=imgUrl] { flex: 1; min-width: 0; }
.nf-img label.btn { cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.nf-preview { position: relative; align-self: flex-start; }
.nf-preview img { max-width: 220px; max-height: 140px; border-radius: 8px; display: block; border: 1px solid var(--line); }
.nf-preview .icon-btn { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); }
/* janela do quadro de avisos: cortiça com papeizinhos colados */
.modal-card.board-wide { width: min(780px, 100%); }
.nb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.nb-top .btn { display: inline-flex; gap: 6px; align-items: center; }
#notices-modal .mm-form { margin-bottom: 12px; }
.nb-cork { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 14px; padding: 20px 16px; border-radius: 12px;
  background: #c99a62 radial-gradient(rgba(120,72,30,.35) 1px, transparent 1.5px) 0 0 / 7px 7px; border: 8px solid #8a5a34; box-shadow: inset 0 0 0 1px #3b2617, inset 0 2px 8px rgba(0,0,0,.25); min-height: 160px; flex-shrink: 0; }
#notices-modal .mm-form, .nb-top { flex-shrink: 0; }
.nb-note { position: relative; background: var(--paper, #fff3a8); color: #2a2233; padding: 16px 12px 10px; min-height: 190px; overflow: hidden; display: flex; flex-direction: column; gap: 6px;
  transform: rotate(var(--tilt, 0deg)); box-shadow: 2px 4px 8px rgba(40,20,5,.35); cursor: pointer; transition: transform .15s; }
.nb-note:hover { transform: rotate(0deg) scale(1.04); z-index: 1; }
.nb-note b { font-size: 15px; line-height: 1.25; word-break: break-word; }
.nb-note p { margin: 0; font-size: 13px; line-height: 1.35; white-space: pre-wrap; word-break: break-word; flex: 1; overflow: hidden; color: #4a4255; }
.nb-note small { font-size: 11px; color: #6b6275; margin-top: auto; }
.nb-img { width: 100%; max-height: 70px; object-fit: cover; border-radius: 3px; }
.nb-pin { position: absolute; top: 5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a8a, #c02626 60%); box-shadow: 0 2px 2px rgba(0,0,0,.35); }
.nb-x { position: absolute; top: 4px; right: 4px; border: 0; background: rgba(0,0,0,.08); color: #2a2233; border-radius: 6px; width: 24px; height: 24px; display: grid; place-items: center; cursor: pointer; }
.nb-x:hover { background: #e85d5d; color: #fff; }
.nb-empty { grid-column: 1 / -1; text-align: center; color: #3b2617; font-weight: 600; padding: 30px 0; }
/* urgência dos avisos (1 a 3 ⚠️): borda da cor do nível, vermelho pisca */
.nb-note.urg1 { box-shadow: 2px 4px 8px rgba(40,20,5,.35), inset 0 0 0 3px #f5c542; }
.nb-note.urg2 { box-shadow: 2px 4px 8px rgba(40,20,5,.35), inset 0 0 0 3px #ff8c2e; }
.nb-note.urg3 { box-shadow: 2px 4px 8px rgba(40,20,5,.35), inset 0 0 0 4px #e5383b; animation: nburg 1.2s ease-in-out infinite; }
@keyframes nburg { 50% { box-shadow: 2px 4px 14px rgba(229,56,59,.7), inset 0 0 0 4px #e5383b; } }
/* hierarquia / organograma (ui/org-chart.js) */
.admin-tabs { margin-bottom: 12px; }
.org-hint { margin: 0 0 10px; }
.org-scroll { overflow: auto; max-height: 62vh; padding: 6px 2px 10px; }
.org-tree, .org-tree ul { list-style: none; margin: 0; padding: 0; }
.org-tree ul { margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--line); }
.org-tree li { position: relative; padding: 5px 0; }
.org-tree ul > li::before { content: ''; position: absolute; left: -14px; top: 26px; width: 12px; border-top: 2px solid var(--line); }
.org-card { display: inline-flex; align-items: center; gap: 10px; min-width: 220px; max-width: 100%; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.org-card:hover { border-color: #7c5cff; background: rgba(124,92,255,.08); }
.org-card.on { border-color: #7c5cff; background: rgba(124,92,255,.18); }
.org-card span { display: grid; min-width: 0; } .org-card small { color: var(--muted); font-size: 12px; }
.org-card em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--panel-2); border-radius: 99px; padding: 2px 8px; }
.org-av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font: 800 12px Inter, system-ui, sans-serif; font-style: normal; flex: none; }
.org-form { margin-bottom: 12px; }
.org-form-head { display: flex; align-items: center; gap: 10px; } .org-form-head b { flex: 1; }
.org-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.org-fields label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
/* bebedouro: copos e ranking (ui/water.js) */
.wt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px; border-radius: 12px; background: rgba(79,179,255,.1); border: 1px solid rgba(79,179,255,.35); }
.wt-me { display: grid; gap: 2px; } .wt-glasses { font-size: 20px; letter-spacing: 2px; } .wt-me small { color: var(--muted); }
.wt-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wt-rank li { display: grid; grid-template-columns: 34px minmax(80px, 160px) 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.wt-rank li.me { border-color: #4fb3ff; background: rgba(79,179,255,.12); }
.wt-rank li.mm-empty { display: block; }
.wt-pos { font-size: 18px; text-align: center; } .wt-n { font-weight: 700; white-space: nowrap; }
.wt-bar { height: 8px; border-radius: 99px; background: var(--panel-2); overflow: hidden; } .wt-bar i { display: block; height: 100%; background: linear-gradient(90deg, #4fb3ff, #8fd3ff); border-radius: 99px; }
.wt-rank b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-rank li:has(.wt-adm) { grid-template-columns: 34px minmax(80px, 140px) 1fr auto auto; }
.wt-adm { display: flex; gap: 4px; }
.wt-n small { color: var(--muted); font-weight: 400; margin-left: 4px; }
.wt-record { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,209,102,.18), rgba(255,209,102,.04)); border: 1px solid rgba(255,209,102,.5); }
.wt-record > span { font-size: 26px; }
.wt-record div { flex: 1; display: grid; } .wt-record div small { color: #ffd166; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.wt-record b { font-size: 16px; }
.wt-record strong { font-size: 20px; color: #8fd3ff; display: grid; text-align: right; } .wt-record strong small { font-size: 11px; color: var(--muted); font-weight: 400; }
.wt-hold { position: relative; overflow: hidden; user-select: none; touch-action: none; }
.wt-hold i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(79,179,255,.7); }
.wt-hold span { position: relative; }
/* fliperama (ui/arcade.js) */
.modal-card.arcade-card { width: min(820px, 100%); }
.arc-hint { margin: 0 0 12px; }
.arc-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.arc-game { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 14px; border-radius: 14px; cursor: pointer; color: var(--text); font: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(255,255,255,.03)); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); transition: transform .12s, box-shadow .12s; }
.arc-game:hover { transform: translateY(-2px); box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 30%, transparent); }
.arc-ic { font-size: 34px; line-height: 1.1; } .arc-game > b { font-size: 16px; } .arc-game small { color: var(--muted); }
.arc-rec, .arc-mine { font-size: 12px; color: var(--muted); } .arc-rec b { color: #ffd166; } .arc-mine b { color: var(--text); }
.arc-rec { margin-top: 6px; }
.arc-play { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.arc-left { display: grid; gap: 8px; justify-items: center; flex: none; margin: 0 auto; }
.arc-screen { padding: 10px; border-radius: 14px; background: #140c33; box-shadow: inset 0 0 0 2px #3a2a8c, 0 0 24px rgba(124,92,255,.35); }
.arc-screen canvas { display: block; height: min(58vh, 480px); aspect-ratio: 3 / 4; image-rendering: pixelated; border-radius: 6px; touch-action: none; cursor: pointer; }
.arc-pad { display: flex; gap: 6px; }
.arc-pad button { min-width: 42px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 700 15px Inter, system-ui, sans-serif; cursor: pointer; user-select: none; touch-action: none; }
.arc-pad button:active { background: rgba(124,92,255,.35); }
.arc-pad .arc-mute { min-width: 38px; font-size: 16px; }
.arc-pad .arc-a { min-width: 70px; background: #ff3d7f; border-color: #ff3d7f; color: #fff; font-size: 13px; }
.arc-keys { color: var(--muted); font-size: 11px; text-align: center; }
.arc-side { flex: 1; min-width: 240px; display: grid; gap: 10px; align-content: start; }
.arc-side .arc-back { justify-self: start; }
.arc-side .wt-record, .arc-side .fb-tabs { margin: 0; }
.arc-rank li { grid-template-columns: 34px 1fr auto; }
.arc-rank li:has(.wt-adm) { grid-template-columns: 34px 1fr auto auto; }
/* bilhetes na mesa (ui/desk-notes.js) */
.dn-colors { display: flex; gap: 8px; }
.dn-color { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.dn-color.on { border-color: #7c5cff; transform: scale(1.12); }
#desk-notes-modal textarea { min-height: 110px; font-size: 15px; }
.dn-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding: 4px; }
.dn-note { position: relative; background: var(--paper); color: #2a2233; padding: 14px 12px 10px; border-radius: 3px; box-shadow: 2px 4px 10px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 8px; transform: rotate(-1deg); }
.dn-note:nth-child(2n) { transform: rotate(1.2deg); }
.dn-note p { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.4; }
.dn-note small { color: #6b6275; }
.dn-note .btn { align-self: flex-end; }
.dn-note.read { opacity: .6; }
.dn-ok { align-self: flex-end; color: #1f7a45; font-weight: 700; font-size: 12px; }
/* feedback (ui/feedback.js) */
.fb-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.fb-tabs button { flex: 1; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 10px; padding: 8px 10px; font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }
.fb-tabs button.on { background: rgba(124,92,255,.18); color: var(--text); border-color: #7c5cff; }
.fb-types { display: flex; gap: 6px; flex-wrap: wrap; }
.fb-types .btn.on { outline: 2px solid #7c5cff; background: rgba(124,92,255,.18); }
#feedback-modal textarea { min-height: 110px; }
.fb-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.fb-item.done { opacity: .6; }
.fb-item .grow { flex: 1; min-width: 0; }
.fb-item p { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; }
.fb-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.fb-head small { color: var(--muted); }
.fb-type { font-weight: 700; }
.fb-ok { color: #3ddc84; font-weight: 700; font-size: 12px; }
.fb-actions { display: flex; gap: 6px; align-items: center; }
/* lido: botão no papel, contagem e papel clarinho quando todo mundo leu */
.nb-readrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.nb-read { border: 1px solid rgba(42,34,51,.35); background: rgba(255,255,255,.55); color: #2a2233; font: 600 11px Inter, system-ui, sans-serif; border-radius: 6px; padding: 3px 7px; cursor: pointer; white-space: nowrap; }
.nb-read:hover { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.nb-read.on { border: 0; background: none; color: #1f7a45; padding: 0; cursor: default; }
.nb-readrow { flex-wrap: wrap; }
.nb-who { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; border: 0; background: none; padding: 2px; border-radius: 6px; cursor: pointer; font: 600 11px Inter, system-ui, sans-serif; color: #6b6275; white-space: nowrap; max-width: 100%; }
.nb-who:hover { background: rgba(0,0,0,.07); }
.nb-who.done { color: #1f7a45; }
.nb-avs { display: inline-flex; flex-wrap: wrap; gap: 2px; justify-content: flex-end; }
.nb-av { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 9px Inter, system-ui, sans-serif; font-style: normal; background: #c9c3cf; color: #5d5566; }
.nb-av.ok { background: #1f9d55; color: #fff; }
.nb-who-menu { max-height: 320px; overflow: auto; z-index: 1000; }
.nb-who-menu b { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.nb-who-ok { color: #3ddc84; font-weight: 700; } .nb-who-no { color: #8a8aa0; font-weight: 700; }
.nb-note.allread { opacity: .55; filter: saturate(.6); }
.nb-note.allread:hover { opacity: .9; }
.nb-warn { font-size: 14px; letter-spacing: 1px; line-height: 1; }
.nf-urg { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nf-urg .mm-muted { margin-right: 4px; }
.nf-urg .btn.on { outline: 2px solid var(--accent, #7c5cff); background: rgba(124,92,255,.18); }
.nf-urg .btn.u1.on { outline-color: #f5c542; background: rgba(245,197,66,.18); }
.nf-urg .btn.u2.on { outline-color: #ff8c2e; background: rgba(255,140,46,.18); }
.nf-urg .btn.u3.on { outline-color: #e5383b; background: rgba(229,56,59,.2); }
.np-card.urg1 { border-top-color: #f5c542; }
.np-card.urg2 { border-top-color: #ff8c2e; }
.np-card.urg3 { border-top-color: #e5383b; box-shadow: 0 0 0 2px rgba(229,56,59,.5), 0 24px 60px rgba(0,0,0,.5); }
.np-card.urg2 .np-head { color: #ff8c2e; } .np-card.urg3 .np-head { color: #ff5a5d; }
.notice-pop { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; background: rgba(10, 9, 20, .45); animation: npfade .2s ease; }
.notice-pop.out { opacity: 0; transition: opacity .25s; }
.np-card { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid #f5c542; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.5); padding: 16px 18px; animation: nppop .45s cubic-bezier(.2, 1.6, .4, 1); }
.np-head { display: flex; align-items: center; gap: 6px; color: #f5c542; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.np-head small { margin-left: auto; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.np-img { display: block; width: 100%; max-height: 300px; object-fit: contain; border-radius: 10px; margin-top: 12px; background: rgba(0,0,0,.25); }
.np-card h3 { margin: 12px 0 0; font-size: 20px; line-height: 1.25; word-break: break-word; }
.np-card p { margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; line-height: 1.5; color: var(--text); }
.np-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
@keyframes nppop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes npfade { from { opacity: 0; } }
/* megafone ligado (ui/megaphone.js) */
.tb-btn.mega-on { background: #f5a623; color: #1b1405; animation: megapulse 1.2s ease-in-out infinite; }
@keyframes megapulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, .55); } 50% { box-shadow: 0 0 0 7px rgba(245, 166, 35, 0); } }
.mm-empty { color: var(--muted); text-align: center; padding: 18px; }
.mm-checks { display: flex; flex-wrap: wrap; gap: 6px; max-height: 140px; overflow: auto; }
.mm-checks label { display: inline-flex; gap: 6px; align-items: center; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; cursor: pointer; }
.mm-checks label:has(input:checked) { border-color: var(--accent); background: rgba(91,108,255,.15); }
.mm-checks input { width: auto; }
.tb-btn .tb-dot { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.tb-btn { position: relative; }
.modal-card.small-wide { width: min(600px, 100%); }
/* botão que aparece quando você entra numa sala especial (arquivos) */
.room-chip { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); z-index: 20; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: rgba(24,22,38,.92); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.room-chip:hover { background: var(--accent); }

/* ---------- cinema / jukebox (ui/room-media.js) ---------- */
#media-panel { position: fixed; right: 16px; bottom: 92px; z-index: 22; width: min(460px, calc(100vw - 32px)); background: rgba(20,19,31,.96); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); overflow: hidden; }
#media-panel header { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 14px; }
#media-panel header b { white-space: nowrap; }
#media-panel .mp-title { flex: 1; min-width: 0; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#media-panel .mp-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
#media-panel .mp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#media-panel .mp-hint { color: #cfd6ea; font-size: 13px; text-align: center; padding: 0 24px; }
#media-panel.mode-music .mp-video { position: fixed; left: -10000px; top: 0; width: 240px; height: 135px; aspect-ratio: auto; } /* jukebox: só o som */
#media-panel .mp-body.collapsed .mp-video:not(:empty) { position: fixed; left: -10000px; width: 240px; height: 135px; }
#media-panel .mp-body.collapsed > :not(.mp-video) { display: none; }
#media-panel .mp-hint-wrap .mp-hint { padding: 22px 24px; background: linear-gradient(#1d2a4a, #0c1222); }
#media-panel.mode-cinema .mp-video:empty { display: none; }
#media-panel .mp-controls { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
#media-panel .mp-row { display: flex; gap: 4px; align-items: center; }
#media-panel .mp-row .grow { flex: 1; }
#media-panel .mp-row .icon-btn { font-size: 18px; line-height: 1; }
#media-panel .mp-vol { width: 90px; accent-color: var(--accent); }
#media-panel .mp-seekrow { display: flex; gap: 10px; align-items: center; }
#media-panel .mp-seek { flex: 1; accent-color: #ff4d5e; }
#media-panel .mp-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
#media-panel .mp-qhead { list-style: none; margin-left: -18px; font-weight: 700; color: var(--text); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding-bottom: 2px; }
/* cinema grandão no meio da tela */
#media-panel.big { right: auto; bottom: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(1400px, 90vw, calc((90vh - 150px) * 16 / 9)); max-height: 94vh; overflow: auto; z-index: 45; border: 3px solid rgba(255,255,255,.18); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(5,5,12,.78), 0 20px 60px rgba(0,0,0,.6); }
#media-panel.big .mp-video { max-height: calc(90vh - 150px); }
#media-panel.big header b { font-size: 16px; }
#media-panel .mp-video:fullscreen { max-height: none; }
#media-panel .mp-add { flex: 1; display: flex; gap: 6px; min-width: 0; }
#media-panel .mp-add input { flex: 1; min-width: 0; background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px; }
#media-panel .mp-queue { margin: 0; padding: 0 14px 12px 32px; max-height: 140px; overflow: auto; font-size: 12.5px; color: var(--muted); }
#media-panel .mp-queue small { opacity: .7; }
#media-panel .mp-queue li:not(.mp-qhead) { display: flex; align-items: center; gap: 6px; }
#media-panel .mp-queue li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#media-panel .mp-queue .icon-btn { width: 22px; height: 22px; }
#media-panel [data-remove] { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
/* pastas da sala de arquivos */
.modal-card.files-wide { width: min(860px, 100%); }
.files-layout { display: flex; gap: 14px; min-height: 0; }
.fd-list { width: 190px; flex: none; display: flex; flex-direction: column; gap: 4px; }
.fd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fd { display: flex; align-items: center; gap: 6px; text-align: left; padding: 8px 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }
.fd:hover { background: rgba(255,255,255,.06); }
.fd.on { background: rgba(108,92,231,.18); border-color: var(--accent); }
.fd i { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.fd.new { color: var(--muted); border: 1px dashed var(--line); margin-top: 6px; }
@media (max-width: 720px) { .files-layout { flex-direction: column; } .fd-list { width: auto; flex-direction: row; flex-wrap: wrap; } }

/* =====================================================================
   celular (ui/mobile.js): body.narrow = tela estreita, body.touch = dedo
   ===================================================================== */
#tb-more, #chat-fab, #joystick, #m-action, #m-sheet { display: none; }
#tb-more .dots { font-size: 13px; letter-spacing: 1px; color: var(--text); }
body.touch #world { touch-action: none; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
body.touch { overscroll-behavior: none; }
body.touch .m-never { display: none !important; }

body.narrow #toolbar { left: 8px; right: 8px; transform: none; bottom: calc(8px + env(safe-area-inset-bottom)); justify-content: space-between; overflow: visible; gap: 6px; padding: 6px; border-radius: 16px; }
body.narrow #toolbar .tb-group { gap: 6px; }
body.narrow #toolbar .tb-group + .tb-group { border: 0; padding: 0; }
body.narrow .tb-btn.m-extra { display: none; }
body.narrow #tb-more { display: grid; }
body.narrow .tb-btn { width: 46px; height: 46px; }
body.narrow #me-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.narrow #help { display: none; }
body.narrow #chat-mini { display: none !important; }
body.narrow #sidebar { background: var(--panel); position: fixed; inset: 0; width: auto; top: 0; left: 0; right: 0; bottom: 0; border-radius: 0; border: 0; z-index: 40; padding-bottom: env(safe-area-inset-bottom); }
body.narrow #sidebar.closed { display: none; }
body.narrow #videobar { top: 8px; left: 8px; right: 8px; transform: none; max-width: none; }
body.narrow #clock { top: auto; left: 8px; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 3px 3px 3px 9px; }
body.narrow #clock .ck-time b { font-size: 15px; }
body.narrow #clock .ck-time small { display: none; }
body.narrow #zone-badge { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); right: 8px; font-size: 12px; }
body.narrow .zoom-ctrl { top: 70px; bottom: auto; right: 8px; }
body.narrow .room-chip { bottom: calc(150px + env(safe-area-inset-bottom)); }
body.narrow #media-panel { right: 8px; left: 8px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
body.narrow #media-panel.big { left: 50%; right: auto; width: 100vw; border-radius: 0; }
body.narrow .modal { padding: 0; place-items: end center; }
body.narrow .modal-card { width: 100% !important; max-height: 92dvh; border-radius: 18px 18px 0 0; padding: 16px; }
body.narrow .people-search { margin-top: 8px; }

/* chat flutuante */
body.narrow #chat-fab { display: grid; place-items: center; position: absolute; right: 12px; bottom: calc(150px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 6; }
body.narrow #chat-fab[hidden] { display: none; }
body.narrow #chat-fab .badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
body.narrow #chat-fab .badge[hidden] { display: none; }
body.narrow #chat-fab.at { animation: glow 1.2s ease-in-out infinite; }

/* joystick */
body.touch #joystick { display: block; position: absolute; left: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 120px; height: 120px; border-radius: 50%; background: rgba(21,22,31,.38); border: 2px solid rgba(255,255,255,.18); touch-action: none; z-index: 6; backdrop-filter: blur(4px); }
body.touch #joystick .knob { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 4px 12px rgba(0,0,0,.35); transition: transform .08s; }
body.touch #joystick.on { background: rgba(108,92,231,.35); border-color: rgba(139,124,255,.8); }
body.touch #joystick.on .knob { transition: none; }
#app.editing #joystick, #app.editing #m-action, #app.editing #chat-fab { display: none !important; }

/* botão de ação ("aperte E" no celular) */
body.touch #m-action { display: block; position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(226px + env(safe-area-inset-bottom)); max-width: calc(100vw - 40px); padding: 12px 18px; border-radius: 999px; border: 0; background: #fff; color: #1d1a2b; font: inherit; font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.touch #m-action[hidden] { display: none; }

/* gaveta "Mais" */
body.narrow #m-sheet:not([hidden]) { display: grid; place-items: end stretch; position: fixed; inset: 0; background: rgba(8,8,14,.55); z-index: 45; }
.m-sheet-card { background: var(--panel); border-radius: 20px 20px 0 0; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); }
.m-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
.m-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.m-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; border: 0; background: var(--panel-2); color: var(--text); font: inherit; }
.m-item small { font-size: 11px; color: var(--muted); text-align: center; line-height: 1.2; }
.m-item.danger { color: var(--danger); }

/* post-its na tela (ui/postits.js) */
#postits { position: fixed; inset: 0; pointer-events: none; z-index: 30; } /* acima do escritório e das barras, abaixo das janelas */
.postit { position: absolute; pointer-events: auto; display: flex; flex-direction: column; min-width: 140px; min-height: 100px; max-width: min(600px, 90vw); max-height: 80vh;
  background: var(--pc); color: #2b2620; border-radius: 3px 3px 14px 3px; box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.2); resize: both; overflow: hidden; }
.postit.dragging { box-shadow: 0 18px 36px rgba(0,0,0,.45); transform: rotate(-1.5deg); }
.postit .pi-bar { display: flex; align-items: center; gap: 4px; padding: 4px 6px; background: rgba(0,0,0,.08); cursor: grab; touch-action: none; user-select: none; flex: none; }
.postit.dragging .pi-bar { cursor: grabbing; }
.pi-colors { display: flex; gap: 3px; }
.pi-colors button { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); padding: 0; cursor: pointer; }
.pi-peek { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi-btn { border: 0; background: transparent; color: #2b2620; font-size: 16px; line-height: 1; width: 22px; height: 22px; border-radius: 6px; cursor: pointer; padding: 0; }
.pi-btn:hover { background: rgba(0,0,0,.12); }
.postit textarea { flex: 1; border: 0; outline: 0; resize: none; background: transparent; color: inherit; padding: 8px 10px 14px; font: 500 14px/1.45 Inter, system-ui, sans-serif; }
.postit textarea::placeholder { color: rgba(43,38,32,.5); }
.postit.min { resize: none; min-height: 0; width: 190px; }
.postit.min .pi-colors, .postit.min textarea { display: none; }

/* conversa à distância (ui/calls.js): selo embaixo do nome da sala */
#pills { position: absolute; top: 60px; right: 64px; display: grid; gap: 8px; justify-items: end; z-index: 5; }
#app.editing #pills { display: none !important; }
#call-pill, #door-pill { max-width: 320px; background: rgba(21, 22, 31, .88); border: 1px solid var(--accent); padding: 6px 6px 6px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; display: flex; gap: 10px; align-items: center; backdrop-filter: blur(6px); box-shadow: 0 0 0 4px rgba(108, 92, 231, .18); }
#call-pill[hidden], #door-pill[hidden] { display: none; }
#call-pill span, #door-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#call-pill .btn, #door-pill .btn { border-radius: 999px; flex: none; }
#door-pill { background: rgba(21, 22, 31, .88); border: 1px solid #a06a35; padding: 6px 6px 6px 12px; border-radius: 999px; font-weight: 600; font-size: 13px; display: flex; gap: 10px; align-items: center; backdrop-filter: blur(6px); }
#app.editing #call-pill { display: none !important; }

/* cartões no canto de cima à direita (UI.card: aceno, porta, mensagem) */
body.mini #corner-cards { top: auto; bottom: 66px; right: 8px; left: 8px; width: auto; }
#corner-cards { position: fixed; top: 156px; right: 14px; display: grid; gap: 10px; z-index: 61; width: min(330px, calc(100vw - 28px)); }
.ccard { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid #f5c542; border-radius: 14px; padding: 10px 12px 12px; box-shadow: var(--shadow); animation: ccIn .25s ease-out; }
.ccard.out { opacity: 0; transform: translateX(20px); transition: .25s; }
@keyframes ccIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.cc-head { display: flex; align-items: center; gap: 8px; }
.cc-icon { font-size: 20px; }
.cc-title { flex: 1; font-size: 14px; }
.cc-x { width: 28px; height: 28px; }
.cc-text { margin: 6px 0 0 30px; color: var(--muted); font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.cc-actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0 30px; }
.cc-actions[hidden] { display: none; }
.cc-reply { display: flex; gap: 6px; margin: 10px 0 0 30px; }
.cc-reply[hidden] { display: none; }
.cc-reply input { flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: 7px 9px; font: inherit; }

/* modo focado (ui/focus.js): cartão no topo, no meio */
#focus-card { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 20; background: rgba(31, 32, 48, .96); border: 1px solid var(--danger); border-radius: 16px; padding: 12px 16px; display: grid; justify-items: center; gap: 10px; box-shadow: var(--shadow), 0 0 0 4px rgba(255, 92, 108, .15); }
#focus-card[hidden] { display: none; }
#focus-card .fc-title { font-weight: 700; font-size: 15px; }
#focus-card .fc-items { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 13px; }
#focus-card .fc-items span { display: inline-flex; gap: 6px; align-items: center; }
#focus-card .fc-items svg { color: var(--danger); }
#app.editing #focus-card { display: none !important; }

/* barra de baixo: grupos com leque (ui/toolbar.js) */
.tb-cat { position: relative; }
.tb-cat-btn { height: 44px; padding: 0 10px 0 12px; border-radius: 12px; border: 0; background: var(--panel-2); color: var(--text); display: flex; gap: 8px; align-items: center; font: 600 13px var(--font); cursor: pointer; position: relative; transition: background .15s; }
.tb-cat-btn:hover { background: #34374f; }
.tb-cat-btn .chev { display: grid; opacity: .55; transition: transform .2s; font-style: normal; }
.tb-cat.open .tb-cat-btn { background: var(--accent); color: #fff; }
.tb-cat.open .tb-cat-btn .chev { transform: rotate(180deg); opacity: 1; }
.tb-cat-btn.has-news::after { content: ''; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--panel-2); }
.tb-fan { position: absolute; bottom: calc(100% + 16px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 4px; padding: 8px; min-width: 210px; background: rgba(31, 32, 48, .98); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); z-index: 30; }
.tb-fan[hidden] { display: none; }
.tb-fan::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: rgba(31, 32, 48, .98); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.tb-fan .tb-btn { width: 100%; height: 42px; display: flex; justify-content: flex-start; align-items: center; gap: 12px; padding: 0 12px; background: transparent; color: var(--text); }
.tb-fan .tb-btn:hover { background: var(--panel-2); }
.tb-fan .tb-btn::after { content: attr(data-label); font: 600 13px var(--font); white-space: nowrap; }
.tb-fan .tb-btn[hidden] { display: none; }
.tb-fan .tb-btn.danger { color: var(--danger); }
.tb-fan .tb-btn .tb-dot { top: 50%; right: 12px; transform: translateY(-50%); }
/* leque abrindo: os itens sobem um atrás do outro */
.tb-cat.open .tb-fan { animation: fanBox .16s ease-out; }
.tb-cat.open .tb-fan .tb-btn { animation: fanItem .22s ease-out both; }
.tb-cat.open .tb-fan .tb-btn:nth-last-child(1) { animation-delay: 0s; }
.tb-cat.open .tb-fan .tb-btn:nth-last-child(2) { animation-delay: .03s; }
.tb-cat.open .tb-fan .tb-btn:nth-last-child(3) { animation-delay: .06s; }
.tb-cat.open .tb-fan .tb-btn:nth-last-child(4) { animation-delay: .09s; }
.tb-cat.open .tb-fan .tb-btn:nth-last-child(5) { animation-delay: .12s; }
@keyframes fanBox { from { opacity: 0; transform: translate(-50%, 8px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fanItem { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tb-cat.open .tb-fan, .tb-cat.open .tb-fan .tb-btn { animation: none; } }
/* tela mais estreita: grupos só com ícone (o nome aparece no leque e ao passar o mouse) */
@media (max-width: 1299px) { .tb-cat-btn > span { display: none; } }
body.narrow .tb-cats { display: none !important; }

/* reações e danças (ui/emotes.js) */
.emo-pop { min-width: 0; width: 280px; padding: 10px; }
.emo-box { display: grid; gap: 8px; }
.emo-t { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.emo-t small { font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.emo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.popmenu .emo-grid button { justify-content: center; padding: 6px 0; font-size: 22px; line-height: 1; transition: transform .1s; }
.popmenu .emo-grid button:hover { transform: scale(1.25); }
.popmenu .emo-grid button:active { transform: scale(.9); }
.emo-dances { display: flex; flex-wrap: wrap; gap: 6px; }
.popmenu .emo-dances button { gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; }
.popmenu .emo-dances button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.popmenu .emo-dances button.stop { border-color: var(--danger); color: var(--danger); }
.emo-ic { font-size: 18px; width: 18px; text-align: center; }

/* imagens e links no chat (ui/chat-images.js, ui/chat.js) */
.chat-link { color: #8fb8ff; text-decoration: underline; word-break: break-all; }
.chat-link:hover { color: #b9d2ff; }
.chat-img { display: block; margin-top: 4px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel-2); cursor: zoom-in; max-width: 100%; }
.chat-img img { display: block; max-width: 100%; max-height: 220px; object-fit: contain; }
.chat-img.err { padding: 8px 10px; color: var(--muted); cursor: default; font-size: 12px; }
.chat-cap { margin-top: 4px; }
.chat-pend { display: flex; align-items: center; gap: 8px; margin: 0 10px 6px; padding: 6px 8px; background: var(--panel-2); border: 1px solid var(--accent); border-radius: 10px; font-size: 12px; color: var(--muted); }
.chat-pend img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.chat-pend span { flex: 1; } .chat-pend b { color: var(--text); }
.chat-pend.sending { opacity: .6; pointer-events: none; } .chat-pend.sending span::after { content: ' — enviando…'; }
.img-btn { flex: none; }
.img-view { position: fixed; inset: 0; z-index: 150; background: rgba(8, 8, 14, .78); display: grid; place-items: center; padding: 24px; backdrop-filter: blur(3px); animation: tin .15s ease; }
.img-view-box { width: min(1100px, 92vw); max-height: 90vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.img-view-box header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.img-view-box header span { flex: 1; color: var(--muted); font-size: 13px; } .img-view-box header b { color: var(--text); }
.img-view-pic { flex: 1; min-height: 0; display: grid; place-items: center; background: #0e0f16; padding: 12px; }
.img-view-pic img { max-width: 100%; max-height: calc(90vh - 120px); object-fit: contain; border-radius: 8px; }
.img-view-cap { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); }
.img-view-box header a.btn { color: var(--text); text-decoration: none; }

/* editor → Mapa → logo da empresa (editor/palette.js) */
.ed-logo { display: grid; gap: 6px; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; margin-top: 8px; }
.ed-logo img { max-width: 100%; max-height: 90px; object-fit: contain; justify-self: start; background: repeating-conic-gradient(#3a3d52 0 25%, #2c2e40 0 50%) 0 0 / 12px 12px; border-radius: 6px; padding: 4px; }
.ed-logo-ph { color: var(--muted); font-size: 12px; } .ed-logo-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ed-check { display: flex; align-items: center; gap: 6px; font-size: 13px; }

/* quadro branco (ui/whiteboard.js) */
.wb-open { position: fixed; z-index: 30; transform: translate(-50%, -100%); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: #6c5ce7; color: #fff; font: 700 13px Inter, system-ui, sans-serif; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); white-space: nowrap; animation: wb-bob 1.6s ease-in-out infinite; }
.wb-open:hover { background: #7d6ff0; }
@keyframes wb-bob { 50% { margin-top: -3px; } }
.modal-card.wb-card { width: min(1500px, 100%); }
.wb-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.wb-group { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.wb-group button { min-width: 34px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--text); cursor: pointer; font-size: 16px; display: grid; place-items: center; }
.wb-group button.on { background: rgba(124,92,255,.35); box-shadow: 0 0 0 1px var(--accent) inset; }
.wb-group button i { display: block; border-radius: 50%; background: var(--text); }
.wb-color::after { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.wb-grow { flex: 1; }
.wb-wrap { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #fbfbfd; height: max(340px, calc(100vh - 250px)); }
.wb-wrap canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.wb-text { position: absolute; transform: translateY(-2px); min-width: 180px; border: 1px dashed #6c5ce7; background: rgba(255,255,255,.95); font-weight: 600; padding: 2px 4px; outline: none; border-radius: 4px; }
.wb-tip { display: block; margin-top: 8px; }

.wb-tools button { font-size: 15px; font-weight: 700; }
.wb-custom { width: 30px; height: 32px; display: grid; place-items: center; cursor: pointer; border-radius: 8px; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); background-clip: content-box; padding: 7px; }
.wb-custom input { opacity: 0; width: 0; height: 0; position: absolute; }
.wb-zoom { min-width: 54px !important; font-size: 12px !important; font-weight: 700; }
.wb-note-edit { position: absolute; border: 2px solid #6c5ce7; outline: none; resize: none; color: #2b2a33; font-family: Inter, system-ui, sans-serif; line-height: 1.3; box-sizing: border-box; box-shadow: 0 6px 14px rgba(0,0,0,.18); }

/* gravar reunião: barrinha acima da barra principal (ui/recorder.js) */
#rec-bar { position: absolute; z-index: 24; left: 50%; bottom: 86px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; background: rgba(31, 32, 48, .94); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.rb-btn { height: 38px; padding: 0 14px; border-radius: 11px; border: 0; background: var(--panel-2); color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 8px; font: 600 13px Inter, system-ui, sans-serif; transition: background .15s; white-space: nowrap; }
.rb-btn:hover { background: #34374f; }
.rb-ic { font-size: 16px; }
.rb-btn.rec { background: rgba(229, 56, 59, .92); color: #fff; }
.rb-btn.rec:hover { background: #e5383b; }
.rb-btn.other, .rb-btn.other:hover { background: rgba(229, 56, 59, .18); color: #ffb3b5; cursor: default; }
.rb-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: rec-pulse 1.4s infinite; flex: none; }
.rb-btn.other .rb-dot { background: #e5383b; }
@keyframes rec-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.rb-time { font-variant-numeric: tabular-nums; opacity: .85; }
#app:has(#rec-bar:not([hidden])) #help { display: none; } /* na sala de reunião a barrinha de gravar fica no lugar da dica */
@media (max-width: 760px) { #rec-bar { bottom: 70px; } .rb-btn { height: 34px; padding: 0 10px; font-size: 12px; } }

.pf-visit { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border-radius: 999px; background: rgba(108,92,231,.9); color: #fff; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.pf-visit .btn { background: rgba(255,255,255,.2); color: #fff; }

/* elevador (ui/elevator.js) */
.elevator-card { width: min(380px, 94vw); }
.elev-list { display: grid; gap: 8px; margin-top: 10px; }
.elev-floor { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.elev-floor:hover:not(:disabled) { border-color: var(--accent, #4f8cff); }
.elev-floor.cur { opacity: .7; cursor: default; border-color: #2ecc71; }
.elev-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: #1d222c; color: #ff6b5b; border: 2px solid #7a8394; flex: none; }
.elev-floor.cur .elev-n { color: #2ecc71; }
.elev-name { display: grid; flex: 1; min-width: 0; }
.elev-name small { color: var(--muted); }
.elev-count { font-size: 13px; color: var(--muted); }
.ed-andar-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: #1d222c; color: #ff6b5b; border: 2px solid #7a8394; flex: none; }
.ed-rooms li.on .ed-andar-n { color: #2ecc71; }
.ed-andar-cur { color: var(--muted); font-size: 11px; flex: none; }

/* viagem de elevador (ui/elevator-ride.js) */
.elev-ride { position: fixed; inset: 0; z-index: 900; pointer-events: all; overflow: hidden; }
.elev-ride-leaf { position: absolute; top: 0; bottom: 0; width: 50.5%; transition: transform .52s cubic-bezier(.6,.05,.3,1);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 7px), linear-gradient(90deg, #6f7784, #b9c0ca 35%, #8a929e 60%, #5d6470); }
.elev-ride-leaf.l { left: 0; transform: translateX(-101%); box-shadow: inset -3px 0 0 #3d434d; }
.elev-ride-leaf.r { right: 0; transform: translateX(101%); box-shadow: inset 3px 0 0 #3d434d; }
.elev-ride.closed .elev-ride-leaf { transform: none; }
.elev-ride.moving .elev-ride-leaf { animation: elev-shake .42s ease-in-out infinite; }
@keyframes elev-shake { 0%, 100% { translate: 0 0; } 50% { translate: 0 1.5px; } }
.elev-ride-panel { position: absolute; top: 9%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  padding: 10px 22px; border-radius: 10px; background: #14161c; border: 3px solid #59606b; box-shadow: 0 6px 24px rgba(0,0,0,.5);
  font-family: var(--pixel); font-size: 42px; color: #ff4d3a; text-shadow: 0 0 10px rgba(255,77,58,.7); opacity: 0; transition: opacity .3s .25s; }
.elev-ride-arrow { color: #3ddc84; font-size: 26px; text-shadow: 0 0 8px rgba(61,220,132,.7); }
.elev-ride.closed .elev-ride-panel { opacity: 1; }
.elev-ride-name { position: absolute; top: calc(9% + 90px); left: 0; right: 0; text-align: center; font-weight: 700; font-size: 18px; color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.6); }

/* login com Google (main.js googleButton) */
.google-box { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 4px 0 2px; }
.google-box .google-btn { min-height: 44px; display: flex; justify-content: center; }
.google-box .or { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.google-box .or::before, .google-box .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* sinuca (ui/sinuca.js): mesa grande à esquerda, placar e botões à direita */
.sinuca-card { width: min(1180px, 96vw); max-width: none; }
.sn-wrap { display: flex; gap: 16px; align-items: flex-start; }
.sn-stage { flex: 1; min-width: 0; }
.sn-stage canvas { display: block; border-radius: 18px; touch-action: none; cursor: crosshair; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.sn-side { width: 240px; flex: none; display: flex; flex-direction: column; gap: 10px; }
.sn-mode { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sn-players { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sn-players li { padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.sn-players li small { margin-left: auto; }
.sn-players li.on { border-color: #3ddc84; box-shadow: 0 0 0 2px rgba(61,220,132,.25); }
.sn-players li.wait { color: var(--muted); font-style: italic; }
.sn-players small { color: var(--muted); }
.sn-msg { margin: 0; font-weight: 600; }
.sn-you { margin: 0; color: #3ddc84; font-weight: 700; }
.sn-small, .sn-help { margin: 0; font-size: 12px; color: var(--muted); }
.sn-btns { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { .sn-wrap { flex-direction: column; } .sn-side { width: 100%; } }

/* reivindicar sala do chefe: botão flutuando em cima da sala (ui/boss-room.js) */
.boss-claim { background: #e08a1e; }
.boss-claim:hover { background: #f09a2e; }

/* fundo da câmera (ui/av-settings.js + media/cam-background.js) */
.av-bg-t { font-weight: 600; font-size: 13px; }
.av-bg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.av-bg-o { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; border-radius: 8px; border: 2px solid transparent; background: var(--panel-2); cursor: pointer; color: inherit; }
.av-bg-o canvas { width: 64px; height: 36px; border-radius: 5px; display: block; }
.av-bg-o small { font-size: 11px; color: var(--muted); }
.av-bg-o.on { border-color: var(--accent, #6c5ce7); }
.av-bg-o.on small { color: inherit; font-weight: 600; }
