/* sede.css — vidro fosco quente sobre o escritório 3D. Um acento (âmbar = o que depende do Rian), verde = vivo/positivo. */
:root {
  --ink: #f4eee7;
  --ink-2: rgba(244, 238, 231, 0.7);
  --ink-3: rgba(244, 238, 231, 0.5);
  --ink-4: rgba(244, 238, 231, 0.32);
  --line: rgba(255, 240, 222, 0.09);
  --line-2: rgba(255, 240, 222, 0.15);
  --amber: #f2a65a;
  --amber-2: #e58c42;
  --amber-ink: #2a1708;
  --amber-t: #f7bc80;
  --amber-soft: rgba(242, 166, 90, 0.15);
  --green: #6fd39a;
  --green-t: #93e3b6;
  --green-soft: rgba(111, 211, 154, 0.13);
  --red: #f0725c;
  --red-t: #f7a291;
  --red-soft: rgba(240, 114, 92, 0.15);
  --tile: rgba(255, 246, 236, 0.045);
  --tile-line: rgba(255, 240, 222, 0.065);
  --blur: 34px;
  --rail: 64px;
  --gx: 24px;
  --top: 92px;
  --sans: Poppins, 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: #14100d; color: var(--ink); overflow: hidden;
  font: 400 13px/1.45 var(--sans); letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
::selection { background: rgba(242, 166, 90, 0.35); color: #fff; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
h1, h2, h3, p { text-wrap: pretty; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.muted { color: var(--ink-3); }
.small { font-size: 11.5px; }
.amber-t { color: var(--amber-t); font-weight: 500; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid rgba(246, 176, 102, 0.95); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ── cena e camadas ───────────────────────────────────────────────────────────────────────────── */
#cena { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; z-index: 0; outline: none; touch-action: none; }
.scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(15, 11, 8, 0.6) 0, rgba(15, 11, 8, 0.2) 150px, rgba(15, 11, 8, 0) 280px),
    linear-gradient(0deg, rgba(15, 11, 8, 0.5) 0, rgba(15, 11, 8, 0) 230px),
    linear-gradient(90deg, rgba(15, 11, 8, 0.38) 0, rgba(15, 11, 8, 0) 200px);
  transition: background-color 0.8s var(--ease);
}
body[data-mode='painel'] .scrim { background-color: rgba(15, 11, 8, 0.2); }
.office-fallback { position: fixed; inset: 0; z-index: 0; display: grid; place-items: center; padding: 140px 60px 120px 140px; background: radial-gradient(ellipse at 58% 42%, #2b231c 0%, #17120e 62%, #120e0b 100%); }
.office-fallback svg { width: 100%; height: 100%; max-width: 1180px; }
.office-fallback .fb-agent { transition: fill 0.6s; cursor: pointer; }
.office-fallback .fb-zone { cursor: pointer; }

/* ── vidro ────────────────────────────────────────────────────────────────────────────────────── */
.glass {
  background:
    linear-gradient(180deg, rgba(255, 247, 238, 0.078) 0%, rgba(255, 247, 238, 0.02) 40%, rgba(255, 247, 238, 0) 100%),
    rgba(31, 25, 20, 0.44);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%) brightness(0.84);
  backdrop-filter: blur(var(--blur)) saturate(150%) brightness(0.84);
  border: 1px solid rgba(255, 238, 220, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 246, 236, 0.14), 0 26px 50px -22px rgba(9, 5, 2, 0.62), 0 2px 10px rgba(9, 5, 2, 0.14);
}
.glass-lite {
  background: rgba(30, 24, 19, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 246, 236, 0.1);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-lite { background: rgba(31, 25, 20, 0.92); }
}
.panel { border-radius: 22px; padding: 18px 20px 20px; min-width: 0; }
.tile { background: var(--tile); border: 1px solid var(--tile-line); border-radius: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.card-head h2 { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.card-head p { margin: 3px 0 0; font-size: 11.5px; color: var(--ink-3); }
.label { display: block; font: 500 9.5px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.13em; color: var(--ink-3); margin-bottom: 10px; }
.empty { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px 16px; color: var(--ink-3); font-size: 12.5px; }
.empty .ico { width: 16px; height: 16px; opacity: 0.7; }
.row { display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 16px; min-width: 0; }

/* ── botões, pílulas, barras ──────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 999px;
  font: 500 12.5px/1 var(--sans); white-space: nowrap; transition: transform 0.15s, background 0.2s, box-shadow 0.2s, opacity 0.2s, filter 0.2s;
}
.btn .ico { width: 16px; height: 16px; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn.sm .ico { width: 14px; height: 14px; }
.btn.amber {
  background: linear-gradient(180deg, #f7b26a 0%, #ea9246 100%); color: var(--amber-ink); font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), inset 0 -1px 0 rgba(120, 60, 10, 0.2), 0 8px 22px -8px rgba(234, 146, 70, 0.75);
}
.btn.amber:hover { filter: brightness(1.05) saturate(1.05); }
.btn.white { background: #f4eee7; color: #1b140f; font-weight: 600; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5); }
.btn.white:hover { background: #fffaf4; }
.btn.ghost { background: rgba(255, 246, 236, 0.07); border: 1px solid rgba(255, 240, 222, 0.12); color: var(--ink); }
.btn.ghost:hover { background: rgba(255, 246, 236, 0.12); }
.btn.danger.armed { background: var(--red-soft); color: var(--red-t); border-color: rgba(240, 114, 92, 0.45); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.38; cursor: default; filter: saturate(0.5); }
.btn.busy { opacity: 0.7; pointer-events: none; }
.icon-btn { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: rgba(255, 246, 236, 0.06); transition: background 0.2s, color 0.2s; }
.icon-btn:hover { background: rgba(255, 246, 236, 0.13); color: var(--ink); }
.icon-btn .ico { width: 16px; height: 16px; }
.link-btn { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); font-size: 12px; font-weight: 500; }
.link-btn:hover { color: var(--ink); }
.link-btn .ico { width: 14px; height: 14px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font: 500 11px/1 var(--sans); white-space: nowrap; background: rgba(255, 246, 236, 0.07); color: var(--ink-2); flex: none; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.pill.green { background: var(--green-soft); color: var(--green-t); }
.pill.amber { background: var(--amber-soft); color: var(--amber-t); }
.pill.red { background: var(--red-soft); color: var(--red-t); }
.pill.dim { background: rgba(255, 246, 236, 0.04); color: var(--ink-4); }

.bar { display: block; position: relative; height: 4px; border-radius: 4px; background: rgba(255, 246, 236, 0.09); overflow: hidden; flex: 1; min-width: 36px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e58c42, #f7b26a); transition: width 0.9s var(--ease); }
.bar.green i { background: linear-gradient(90deg, #4cbd80, #85dfab); }
.bar.red i { background: linear-gradient(90deg, #d85a45, #f0725c); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.green { background: var(--green); }
.dot.red { background: var(--red); }
.dot.pulse, .live { animation: pulse 2.4s ease-out infinite; }
.live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111, 211, 154, 0.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(111, 211, 154, 0); } }

/* robô em miniatura (sem emoji): cabeça de cerâmica, tela escura, olhos pela cor do estado, orelhas âmbar */
.bot {
  --u: 1px; --eye: #ffe7cf;
  position: relative; display: inline-block; flex: none; width: calc(30 * var(--u)); height: calc(26 * var(--u)); border-radius: calc(9 * var(--u));
  background: linear-gradient(180deg, #f6f2ec, #d6cfc6); box-shadow: inset 0 calc(-2 * var(--u)) 0 rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.28);
}
.bot::before { content: ''; position: absolute; left: calc(4 * var(--u)); right: calc(4 * var(--u)); top: calc(5 * var(--u)); bottom: calc(6 * var(--u)); border-radius: calc(6 * var(--u)); background: #15120f; }
.bot::after { content: ''; position: absolute; top: 50%; right: calc(-2.5 * var(--u)); width: calc(4 * var(--u)); height: calc(8 * var(--u)); margin-top: calc(-4 * var(--u)); border-radius: calc(2 * var(--u)); background: #d98b4c; box-shadow: calc(-31 * var(--u)) 0 0 #d98b4c; }
.bot i { position: absolute; z-index: 1; top: 50%; left: 50%; width: calc(3.6 * var(--u)); height: calc(5.2 * var(--u)); margin: calc(-3.6 * var(--u)) 0 0 calc(-6.1 * var(--u)); border-radius: calc(2 * var(--u)); background: var(--eye); box-shadow: calc(8.6 * var(--u)) 0 0 var(--eye); }
.bot[data-s='working'] i { animation: blink 4.2s infinite; }
.bot[data-s='waiting'] { --eye: #f7a552; }
.bot[data-s='error'] { --eye: #ff6b57; }
.bot[data-s='done'] i { height: calc(3 * var(--u)); border-radius: calc(3 * var(--u)) calc(3 * var(--u)) 0 0; }
.bot[data-s='offline'] { --eye: transparent; filter: saturate(0.3) brightness(0.62); }
.bot.xs { --u: 0.7px; }
.bot.sm { --u: 0.84px; }
.bot.lg { --u: 1.55px; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.15); } }

/* ── trilho ───────────────────────────────────────────────────────────────────────────────────── */
.rail {
  position: fixed; z-index: 5; left: 20px; top: 20px; bottom: 20px; width: var(--rail); border-radius: 32px;
  display: flex; flex-direction: column; align-items: center; padding: 12px 0 14px;
  background: linear-gradient(180deg, rgba(255, 247, 238, 0.06), rgba(255, 247, 238, 0.015)), rgba(22, 18, 15, 0.56);
}
.rail-logo { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; flex: none; background: linear-gradient(180deg, #f7b26a, #e58c42); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 18px -8px rgba(229, 140, 66, 0.7); }
.mark, .ws-mark::after, .login-mark::after { -webkit-mask: url('../img/simbolo.svg') center / contain no-repeat; mask: url('../img/simbolo.svg') center / contain no-repeat; background: var(--amber-ink); }
.rail-logo .mark { width: 28px; height: 28px; }
.rail-nav { display: flex; flex-direction: column; align-items: center; gap: 7px; flex: 1; }
.rail-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); text-decoration: none; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.rail-btn:hover { background: rgba(255, 246, 236, 0.09); color: var(--ink); }
.rail-btn.on { background: #f4eee7; color: #1b140f; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.5); }
.rail-btn:focus-visible { outline-offset: 3px; border-radius: 50%; }
.rail-btn .ico { width: 19px; height: 19px; }
.badge { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; display: grid; place-items: center; background: var(--amber); color: var(--amber-ink); font-size: 9.5px; font-weight: 600; box-shadow: 0 0 0 2px rgba(24, 19, 15, 0.95); }
.tip { position: absolute; left: calc(100% + 14px); top: 50%; transform: translate(-4px, -50%); background: rgba(20, 16, 13, 0.94); color: var(--ink); font-size: 11.5px; font-weight: 500; padding: 5px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35); }
.rail-btn:hover .tip, .rail-btn:focus-visible .tip { opacity: 1; transform: translate(0, -50%); }
.rail-foot { flex: none; }
.lab-tag { display: block; font-size: 9px; letter-spacing: 0.14em; color: var(--amber-t); border: 1px solid rgba(242, 166, 90, 0.4); border-radius: 6px; padding: 3px 5px; }

/* ── barra do topo ────────────────────────────────────────────────────────────────────────────── */
.topbar { position: fixed; z-index: 5; top: 20px; left: calc(20px + var(--rail) + 20px); right: var(--gx); height: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 400px) minmax(0, 1fr); align-items: center; gap: 16px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.tb-left { display: flex; align-items: center; gap: 12px; min-width: 0; pointer-events: none; }
.tb-left > * { pointer-events: auto; }
.ws { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 6px; border-radius: 999px; flex: none; }
.ws-mark { position: relative; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(180deg, #f7b26a, #e58c42); flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.ws-mark::after { content: ''; position: absolute; inset: 7px; }
.ws-txt { display: flex; flex-direction: column; line-height: 1.15; }
.ws-txt b { font-weight: 600; font-size: 12.5px; }
.ws-txt span { font-size: 10.5px; color: var(--ink-3); }
.crumb { display: flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.crumb .ico { width: 14px; height: 14px; opacity: 0.6; }
.conn-warn { font-size: 10.5px; color: var(--amber-t); background: var(--amber-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.search { justify-self: center; width: 100%; height: 40px; border-radius: 999px; display: flex; align-items: center; gap: 10px; padding: 0 7px 0 15px; color: var(--ink-3); font-size: 12.5px; cursor: text; transition: border-color 0.2s; }
.search:hover { border-color: var(--line-2); color: var(--ink-2); }
.search .ico { width: 16px; height: 16px; }
.search-ph { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search kbd { margin-left: auto; font-size: 10px; padding: 4px 8px; border-radius: 7px; background: rgba(255, 246, 236, 0.08); color: var(--ink-3); border: 1px solid var(--line); white-space: nowrap; }
.tb-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-width: 0; }
.new-task { height: 40px !important; padding: 0 18px 0 14px !important; }
.clock { height: 40px; padding: 0 14px; border-radius: 999px; display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.1; flex: none; }
.clock b { font-size: 12.5px; font-weight: 600; }
.clock span { font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.round { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); position: relative; flex: none; transition: color 0.2s; }
.round:hover { color: var(--ink); }
.round .ico { width: 18px; height: 18px; }
.bell .dot { position: absolute; top: 9px; right: 10px; width: 7px; height: 7px; background: var(--red); box-shadow: 0 0 0 2px rgba(30, 24, 19, 0.95); display: none; }
.bell.has .dot { display: block; }
.owner { position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; background: linear-gradient(180deg, #f7b26a, #e58c42); color: var(--amber-ink); font-weight: 600; font-size: 12.5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 16px -8px rgba(229, 140, 66, 0.7); }
.owner .online { position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px #1d1713; }

/* ── área principal ───────────────────────────────────────────────────────────────────────────── */
.main { position: fixed; inset: 0; z-index: 3; overflow-y: auto; overflow-x: hidden; padding: var(--top) var(--gx) 28px calc(20px + var(--rail) + 20px); display: flex; flex-direction: column; outline: none; scrollbar-width: thin; scrollbar-color: rgba(255, 240, 222, 0.2) transparent; }
body[data-mode='escritorio'] .main { pointer-events: none; overflow: hidden; }
.view { flex: 1 0 auto; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
body[data-mode='escritorio'] .view { flex: 1 1 auto; }
/* a entrada anima o próprio vidro: um pai com animação vira "backdrop root" e o vidro perde o desfoque */
.view.enter .page-head, .view.enter .glass, .view.enter .dept-head { animation: rise 0.6s var(--ease) backwards; }
.view.enter > :nth-child(2) .glass, .view.enter > .glass:nth-child(2) { animation-delay: 0.05s; }
.view.enter > :nth-child(3) .glass, .view.enter > .glass:nth-child(3) { animation-delay: 0.1s; }
.view.enter > :nth-child(4) .glass, .view.enter > .glass:nth-child(4) { animation-delay: 0.15s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 20px; flex-wrap: wrap; margin-bottom: 2px; }
.page-title h1 { margin: 0; font-weight: 600; font-size: 30px; line-height: 1.12; letter-spacing: -0.025em; }
.page-title p { margin: 6px 0 0; color: var(--ink-2); font-size: 12.5px; }
.page-title p b { font-weight: 500; }
body[data-mode='escritorio'] .page-title { text-shadow: 0 2px 18px rgba(10, 7, 5, 0.6); }
.page-actions { display: flex; gap: 8px; align-items: center; pointer-events: auto; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; }
.seg button { height: 30px; padding: 0 13px; border-radius: 999px; color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.seg button:hover { color: var(--ink); background: rgba(255, 246, 236, 0.07); }
.seg button.on { background: #f4eee7; color: #1b140f; }

/* ── Escritório ───────────────────────────────────────────────────────────────────────────────── */
.v-office { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 0; }
.office-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.strip { pointer-events: auto; display: flex; align-items: center; gap: 2px; min-height: 56px; padding: 7px 9px; border-radius: 999px; min-width: 0; }
.strip-item { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; border-radius: 999px; white-space: nowrap; font-size: 12px; color: var(--ink-2); transition: background 0.2s; }
button.strip-item:hover { background: rgba(255, 246, 236, 0.08); }
.strip-item b { color: var(--ink); font-weight: 600; }
.strip-item .num { font-size: 15.5px; }
.strip-item .bar { width: 54px; flex: none; }
.strip-item .lbl { color: var(--ink-2); }
.strip-sep { width: 1px; height: 22px; background: var(--line-2); flex: none; }
.feed { pointer-events: auto; width: 368px; flex: none; border-radius: 22px; padding: 16px 10px 10px 16px; max-height: min(44vh, 420px); display: flex; flex-direction: column; transition: opacity 0.25s, transform 0.3s var(--ease); }
.feed.is-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
.feed .card-head { margin-bottom: 8px; padding-right: 6px; }
.feed-list { list-style: none; margin: 0; padding: 0 4px 0 0; overflow: auto; scrollbar-width: thin; }
.feed-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: start; width: 100%; padding: 8px; border-radius: 12px; transition: background 0.2s; }
.feed-row:hover { background: rgba(255, 246, 236, 0.07); }
.feed-text { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.feed-text b { color: var(--ink); font-weight: 500; }
.feed-row time { font-size: 10px; color: var(--ink-4); padding-top: 3px; white-space: nowrap; }

/* rótulos dos agentes na cena */
.labels { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 0.35s; overflow: hidden; }
body.labels-on .labels { opacity: 1; }
body:not(.labels-on) .agent-label { pointer-events: none !important; }
.agent-label {
  position: absolute; left: 0; top: 0; margin-top: -6px; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 7px;
  border-radius: 999px; background: rgba(24, 19, 15, 0.8); border: 1px solid rgba(255, 240, 222, 0.13); color: var(--ink); font: 500 10.5px/1 var(--sans); white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28); transition: opacity 0.25s, background 0.2s, border-color 0.2s; will-change: transform;
}
.agent-label:hover { background: rgba(244, 238, 231, 0.95); color: #1b140f; border-color: transparent; }
.agent-label.sel { opacity: 0 !important; pointer-events: none; }
.agent-label .d { width: 6px; height: 6px; border-radius: 50%; background: rgba(244, 238, 231, 0.45); flex: none; }
.agent-label b { font-weight: 500; }
.agent-label .mono { font-size: 9.5px; color: var(--ink-3); }
.agent-label:hover .mono, .agent-label.sel .mono { color: rgba(27, 20, 15, 0.6); }
.agent-label[data-s='working'] .d { background: var(--green); box-shadow: 0 0 0 3px rgba(111, 211, 154, 0.2); }
.agent-label[data-s='waiting'] { border-color: rgba(242, 166, 90, 0.6); }
.agent-label[data-s='waiting'] .d { background: var(--amber); box-shadow: 0 0 0 3px rgba(242, 166, 90, 0.25); }
.agent-label[data-s='waiting'] .mono { color: var(--amber-t); }
.agent-label[data-s='error'] .d { background: var(--red); }
.agent-label[data-s='done'] .d { background: var(--green); }
.agent-label[data-s='offline'] { opacity: 0.55; }

/* cartão do agente */
.agent-card { position: fixed; z-index: 6; top: var(--top); right: var(--gx); width: 376px; max-height: calc(100vh - var(--top) - 24px); overflow: auto; border-radius: 24px; padding: 20px; opacity: 0; transform: translateX(16px) scale(0.985); transition: opacity 0.25s, transform 0.35s var(--ease); background-color: rgba(31, 25, 20, 0.52); scrollbar-width: thin; }
.agent-card.open { opacity: 1; transform: none; }
.ac-head { display: flex; align-items: center; gap: 14px; }
.ac-id { flex: 1; min-width: 0; }
.ac-id h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.ac-id p { margin: 2px 0 0; color: var(--ink-3); font-size: 12px; }
.ac-state { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.ac-state .mono { font-size: 10.5px; }
.ac-role { margin: 0 0 16px; color: var(--ink-2); font-size: 12.5px; }
.ac-block { padding: 14px; border-radius: 16px; background: var(--tile); border: 1px solid var(--tile-line); margin-bottom: 10px; }
.ac-task { font-size: 14px; font-weight: 500; margin-bottom: 10px; line-height: 1.35; }
.ac-prog { display: flex; align-items: center; gap: 10px; }
.ac-prog .mono { font-size: 11px; color: var(--ink-2); }
.ac-step { margin-top: 10px; font-size: 11px; color: var(--ink-3); line-height: 1.45; }
.ac-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ac-feed li { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-2); }
.ac-feed time { font-size: 10px; color: var(--ink-4); white-space: nowrap; padding-top: 2px; }
.ac-foot { display: flex; gap: 8px; margin-top: 14px; }
.ac-foot .btn { flex: 1; }

/* ── Esteira ──────────────────────────────────────────────────────────────────────────────────── */
.kanban { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(228px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.col { border-radius: 22px; padding: 14px 10px 10px; display: flex; flex-direction: column; min-height: 340px; max-height: calc(100vh - 214px); min-width: 0; }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 12px; }
.col-title { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.you-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(242, 166, 90, 0.2); }
.count { font-size: 10.5px; color: var(--ink-3); background: rgba(255, 246, 236, 0.07); padding: 3px 8px; border-radius: 999px; }
.col-body { display: flex; flex-direction: column; gap: 8px; overflow: auto; padding: 2px; margin: -2px; scrollbar-width: thin; }
.col-empty { border: 1px dashed rgba(255, 240, 222, 0.13); border-radius: 14px; padding: 20px 12px; text-align: center; color: var(--ink-4); font-size: 12px; }
.job { display: flex; flex-direction: column; gap: 7px; width: 100%; padding: 12px; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.job:hover { background: rgba(255, 246, 236, 0.08); border-color: rgba(255, 240, 222, 0.13); }
.job-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.job-top .pill { height: 18px; font-size: 10px; padding: 0 7px; }
.job-top time { margin-left: auto; font-size: 10px; color: var(--ink-4); white-space: nowrap; }
.type { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--ink-3); }
.job-title { font-weight: 500; font-size: 13px; line-height: 1.32; }
.job-client { font-size: 11.5px; color: var(--ink-3); }
.job-client .sep { margin: 0 5px; opacity: 0.6; }
.job-agent { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ink-2); }
.job-prog { display: flex; align-items: center; gap: 8px; }
.job-prog .mono { font-size: 10px; color: var(--ink-2); min-width: 28px; text-align: right; }
.job-step { font-size: 10.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.45; }
.is-muted { opacity: 0.55; }

/* gaveta */
.drawer-scrim { position: fixed; inset: 0; z-index: 6; background: rgba(12, 9, 7, 0.32); }
.drawer { position: fixed; z-index: 7; top: 16px; right: 16px; bottom: 16px; width: 448px; max-width: calc(100vw - 32px); border-radius: 26px; padding: 22px 22px 0; overflow: auto; transform: translateX(26px); opacity: 0; transition: transform 0.35s var(--ease), opacity 0.25s; background-color: rgba(31, 25, 20, 0.62); scrollbar-width: thin; display: flex; flex-direction: column; }
.drawer.open { transform: none; opacity: 1; }
.dr-head { display: flex; justify-content: space-between; align-items: center; }
.dr-head > div { display: flex; gap: 10px; align-items: center; }
.dr-title { margin: 16px 0 4px; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.dr-sub { margin: 0 0 18px; color: var(--ink-3); font-size: 12.5px; }
.dr-agent { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 16px; }
.dr-agent > div { flex: 1; min-width: 0; }
.dr-agent b { display: block; font-weight: 500; }
.dr-agent span { display: block; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-prog { margin-bottom: 16px; }
.dr-prog .row { justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.dr-prog .num { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.dr-prog .label { margin: 0; }
.dr-prog .step { margin: 9px 0 0; font-size: 11px; color: var(--ink-3); }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: 12.5px; margin-bottom: 16px; line-height: 1.45; }
.note.amber { background: var(--amber-soft); color: var(--amber-t); }
.note .ico { width: 16px; height: 16px; margin-top: 1px; }
.dr-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.dr-meta > div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 246, 236, 0.04); min-width: 0; }
dt { font: 400 11px/1.25 var(--sans); color: var(--ink-3); margin-bottom: 4px; }
dd { margin: 0; font-size: 12px; }
.dr-meta dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-brief, .dr-outputs { margin-bottom: 16px; }
.dr-brief p { margin: 0; font-size: 12.5px; color: var(--ink-2); white-space: pre-wrap; }
.dr-outputs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dr-outputs a { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 246, 236, 0.05); text-decoration: none; font-size: 12.5px; transition: background 0.2s; }
.dr-outputs a:hover { background: rgba(255, 246, 236, 0.1); }
.dr-outputs .ico { width: 15px; height: 15px; color: var(--ink-3); }
.dr-actions { position: sticky; bottom: 0; margin: auto -22px 0; padding: 18px 22px 22px; display: flex; flex-wrap: wrap; gap: 8px; background: linear-gradient(180deg, rgba(31, 25, 20, 0), rgba(31, 25, 20, 0.92) 34%); }
.dr-actions:empty { display: none; }
.dr-adjust { margin: auto 0 0; padding: 4px 0 22px; display: grid; gap: 10px; }
.dr-adjust label { font-size: 12.5px; font-weight: 500; }
.dr-adjust .row { justify-content: flex-end; }
.drawer-empty { display: grid; gap: 12px; justify-items: center; padding: 40px 0; }

/* ── Drive ────────────────────────────────────────────────────────────────────────────────────── */
.drive-grid { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
.sel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sel-actions .mono { font-size: 10.5px; margin-right: 4px; }
.table-wrap { overflow-x: auto; margin: 0 -6px; scrollbar-width: thin; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.table th { text-align: left; font: 500 9px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); padding: 0 10px 11px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 10px; border-bottom: 1px solid rgba(255, 240, 222, 0.05); white-space: nowrap; vertical-align: middle; transition: background 0.2s; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: rgba(255, 246, 236, 0.035); }
.table tr.on td { background: rgba(242, 166, 90, 0.08); }
.table .num { text-align: right; }
.table th.cb, .table td.cb { width: 36px; padding-right: 0; }
.table td.name a { text-decoration: none; font-weight: 500; margin-left: 10px; vertical-align: middle; }
.table td.name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.table td.folder { color: var(--ink-2); }
.table td.folder .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; opacity: 0.6; }
.file-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 246, 236, 0.07); vertical-align: middle; color: var(--ink-2); flex: none; }
.file-ico .ico { width: 16px; height: 16px; }
.who { display: inline-flex; align-items: center; gap: 7px; }
.who i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 246, 236, 0.1); font-style: normal; font-size: 10px; font-weight: 600; }
.check { position: relative; display: inline-grid; cursor: pointer; }
.check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.check i { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid rgba(255, 240, 222, 0.3); display: grid; place-items: center; transition: background 0.15s, border-color 0.15s; }
.check input:checked + i { background: var(--amber); border-color: var(--amber); }
.check input:checked + i::after { content: ''; width: 8px; height: 4.5px; border: 2px solid var(--amber-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible + i { outline: 2px solid rgba(246, 176, 102, 0.95); outline-offset: 2px; }
.watch { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.watch li { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 14px; background: var(--tile); }
.watch li > div { flex: 1; min-width: 0; }
.watch b { display: block; font-weight: 500; }
.watch .mono { font-size: 10px; }
.howto ol { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 12px; }
.howto li::marker { color: var(--ink-4); font-family: var(--mono); font-size: 10.5px; }

/* ── Agentes ──────────────────────────────────────────────────────────────────────────────────── */
.depts { display: grid; gap: 24px; }
.dept-head { display: flex; align-items: baseline; gap: 12px; margin: 0 4px 12px; }
.dept-head h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.dept-head .mono { font-size: 10.5px; }
.dept-head .link-btn { margin-left: auto; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 12px; }
.agent { text-align: left; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 11px; transition: transform 0.3s var(--ease), border-color 0.2s; min-width: 0; }
.agent:hover { transform: translateY(-3px); border-color: rgba(255, 240, 222, 0.17); }
.ag-top { display: flex; align-items: center; gap: 11px; }
.ag-name { flex: 1; min-width: 0; }
.ag-name b { display: block; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-name span { font-size: 10px; color: var(--ink-3); }
.ag-role { font-size: 12px; color: var(--ink-2); min-height: 34px; line-height: 1.42; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-task { display: grid; gap: 7px; padding: 10px 12px; border-radius: 12px; background: var(--tile); font-size: 12px; min-height: 41px; align-content: center; }
.ag-task .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-foot { display: flex; justify-content: space-between; align-items: baseline; }
.ag-foot .mono { font-size: 10px; }
.ag-foot .num { font-size: 18px; font-weight: 600; }

/* ── War Room ─────────────────────────────────────────────────────────────────────────────────── */
.kpis4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kpi-lab { font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.kpi-num { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.kpi-hint { font-size: 11px; color: var(--ink-3); }
.kpi.is-amber .kpi-num { color: var(--amber-t); }
.kpi.is-amber { border-color: rgba(242, 166, 90, 0.3); }
.war-grid { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); align-items: start; }
.war-side { display: grid; gap: 16px; min-width: 0; }
.war-plate { display: flex; flex-direction: column; }
.war-map { width: 100%; max-width: 330px; display: block; margin: 4px auto 0; overflow: visible; }
.war-map .ring.act { fill: rgba(242, 166, 90, 0.36); }
.war-map .ring.next { fill: rgba(242, 166, 90, 0.08); }
.war-map .ring.lock { fill: rgba(255, 246, 236, 0.02); }
.war-map .edge { fill: none; stroke-width: 0.8; }
.war-map .edge.act { stroke: rgba(247, 188, 128, 0.95); stroke-width: 1.2; }
.war-map .edge.next { stroke: rgba(242, 166, 90, 0.5); }
.war-map .edge.lock { stroke: rgba(255, 240, 222, 0.18); stroke-dasharray: 2.5 3.5; }
.war-map .pin { fill: #fff1df; }
.war-map .grid path { stroke: rgba(255, 240, 222, 0.07); stroke-width: 0.6; }
.war-map .lbl { font: 600 6.4px var(--mono); letter-spacing: 0.1em; fill: rgba(255, 240, 222, 0.42); text-anchor: middle; }
.war-map .lbl.sm { font-size: 5.2px; letter-spacing: 0.06em; fill: rgba(255, 240, 222, 0.3); }
.war-map .lbl.act.sm { fill: rgba(255, 236, 214, 0.8); }
.war-map .lbl.act { fill: #fff3e3; }
.legend { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 16px; font-size: 11px; color: var(--ink-3); }
.sq { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sq.act { background: rgba(242, 166, 90, 0.6); }
.sq.next { border: 1px solid rgba(242, 166, 90, 0.55); }
.sq.lock { border: 1px dashed rgba(255, 240, 222, 0.35); }
.sq.pin { width: 7px; height: 7px; border-radius: 50%; background: #fff1df; vertical-align: 0; }
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.phase { position: relative; padding: 16px; border-radius: 18px; background: var(--tile); border: 1px solid var(--tile-line); min-width: 0; }
.phase.is-active { background: linear-gradient(180deg, rgba(242, 166, 90, 0.17), rgba(242, 166, 90, 0.04)); border-color: rgba(242, 166, 90, 0.42); box-shadow: inset 0 1px 0 rgba(255, 214, 170, 0.25); }
.phase.is-locked { opacity: 0.55; }
.ph-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ph-n { font-size: 11px; color: var(--ink-3); }
.phase h3 { margin: 14px 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.phase p { margin: 0 0 14px; font-size: 11.5px; color: var(--ink-3); min-height: 50px; line-height: 1.45; }
.ph-stats { display: grid; gap: 7px; margin: 0; padding-top: 12px; border-top: 1px solid rgba(255, 240, 222, 0.07); }
.ph-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ph-stats dt { margin: 0; }
.ph-stats dd { font-size: 15px; font-weight: 600; }
.ph-link { position: absolute; right: -12px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: #2a221c; display: grid; place-items: center; z-index: 1; border: 1px solid var(--line-2); color: var(--ink-3); }
.ph-link .ico { width: 12px; height: 12px; }
.radar { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.radar li { display: grid; grid-template-columns: auto minmax(120px, 180px) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--tile); }
.radar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 166, 90, 0.16); }
.c-id b { display: block; font-weight: 500; }
.c-id span { font-size: 10.5px; }
.radar p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.radar time { font-size: 10px; white-space: nowrap; }

/* ── Campanhas ────────────────────────────────────────────────────────────────────────────────── */
.camp-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.camps { display: grid; gap: 14px; min-width: 0; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rules li { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: var(--tile); font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.rules li .ico { width: 17px; height: 17px; color: var(--ink-3); margin-top: 1px; }
.rules b { color: var(--ink); font-weight: 500; display: block; }
.camp { border-radius: 22px; padding: 18px 20px; min-width: 0; }
.camp.is-waiting { border-color: rgba(242, 166, 90, 0.34); }
.camp-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.camp-head .mono { font-size: 10px; text-transform: uppercase; letter-spacing: 0.11em; }
.camp h3 { margin: 6px 0 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.camp-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; }
.camp-stats > div { padding: 10px 12px; border-radius: 12px; background: var(--tile); min-width: 0; }
.camp-stats dd b { font-size: 15px; font-weight: 600; }
.camp-stats dd span { font-size: 11px; color: var(--ink-3); margin-left: 3px; }
.camp-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.camp-foot p { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--ink-2); }
.camp-foot p .ico { width: 15px; height: 15px; color: var(--amber-t); }

/* ── Uso do Claude ────────────────────────────────────────────────────────────────────────────── */
.uso-top { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.gauge-card { display: flex; flex-direction: column; }
.gauge-wrap { position: relative; width: 100%; max-width: 290px; margin: 0 auto; }
.gauge { width: 100%; display: block; overflow: visible; }
.gauge .track { fill: none; stroke: rgba(255, 246, 236, 0.11); stroke-width: 13; stroke-linecap: round; }
.gauge .val { fill: none; stroke-width: 13; stroke-linecap: round; transition: d 0.9s var(--ease); }
.gauge.green .val { stroke: var(--green); filter: drop-shadow(0 0 8px rgba(111, 211, 154, 0.35)); }
.gauge.amber .val { stroke: var(--amber); filter: drop-shadow(0 0 8px rgba(242, 166, 90, 0.35)); }
.gauge.red .val { stroke: var(--red); }
.gauge .ticks path { stroke: rgba(255, 246, 236, 0.18); stroke-width: 1.2; }
.gauge .knob { fill: #f6f1ea; stroke: rgba(20, 14, 10, 0.35); stroke-width: 2; }
.gauge-val { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; }
.gauge-val b { display: block; font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.gauge-val span { font-size: 11px; color: var(--ink-3); }
.kpi-stack { display: grid; gap: 14px; min-width: 0; }
.uso-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.vbars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; height: 232px; align-items: end; padding-top: 6px; }
.vbar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 9px; min-width: 0; }
.vbar-col { width: 100%; max-width: 44px; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 246, 236, 0.4), rgba(255, 246, 236, 0.06)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32); transition: height 0.9s var(--ease); }
.vbar.hi .vbar-col { background: linear-gradient(180deg, #f7b26a, rgba(234, 146, 70, 0.3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 28px -10px rgba(234, 146, 70, 0.75); }
.vbar.none .vbar-col { background: rgba(255, 246, 236, 0.05); box-shadow: none; }
.vbar-lab { font-size: 10px; color: var(--ink-3); }
.vbar.hi .vbar-lab { color: var(--ink); }
.vbar-tip { font-size: 10.5px; font-weight: 600; background: #f4eee7; color: #1b140f; padding: 4px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.hbars .row { justify-content: space-between; font-size: 12.5px; margin-bottom: 7px; }
.hbars .row span { display: flex; align-items: center; }
.hbar { display: block; height: 5px; border-radius: 5px; background: rgba(255, 246, 236, 0.07); overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: inherit; transition: width 0.9s var(--ease); }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 9px; }
.s0 i, .sw.s0 { background: var(--amber); }
.s1 i, .sw.s1 { background: #d8c2a4; }
.s2 i, .sw.s2 { background: #a89683; }
.s3 i, .sw.s3 { background: #7f7266; }
.s4 i, .sw.s4 { background: #5f564e; }

/* ── Operação Solo ────────────────────────────────────────────────────────────────────────────── */
.solo-hero { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.5fr); gap: 36px; padding: 24px 26px; align-items: center; }
.solo-big { display: block; font-size: 64px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-top: 6px; }
.solo-big span { font-size: 26px; color: var(--ink-3); font-weight: 500; letter-spacing: -0.02em; }
.days { display: grid; grid-template-columns: repeat(15, 1fr); gap: 6px; margin: 16px 0 10px; max-width: 290px; }
.days i { aspect-ratio: 1; border-radius: 50%; background: rgba(255, 246, 236, 0.09); }
.days i.past { background: rgba(255, 246, 236, 0.42); }
.days i.today { background: var(--amber); box-shadow: 0 0 0 3px rgba(242, 166, 90, 0.25); }
.solo-money .row { justify-content: space-between; align-items: flex-end; }
.solo-money .row .t { color: var(--ink); font-weight: 600; }
.solo-cash { display: block; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
.solo-money .right { text-align: right; }
.solo-money .right b { display: block; font-size: 18px; font-weight: 600; margin-top: 4px; }
.meter { position: relative; height: 12px; border-radius: 999px; background: rgba(255, 246, 236, 0.08); margin: 20px 0 34px; }
.meter .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: linear-gradient(90deg, #e58c42, #f7b26a); min-width: 12px; box-shadow: 0 0 18px -4px rgba(234, 146, 70, 0.7); transition: width 0.9s var(--ease); }
.meter .piso { position: absolute; top: -6px; bottom: -6px; width: 0; }
.piso i { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: rgba(255, 246, 236, 0.7); border-radius: 2px; }
.piso em { position: absolute; top: 28px; left: 0; transform: translateX(-50%); font-style: normal; font-size: 10px; color: var(--ink-3); white-space: nowrap; }
.solo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.solo-grid .kpi-num { display: block; }
.of { font-size: 18px; color: var(--ink-3); font-weight: 500; }
.segs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 16px; }
.segs i { height: 8px; border-radius: 999px; background: rgba(255, 246, 236, 0.09); }
.segs i.on { background: var(--amber); }

/* ── Ajustes ──────────────────────────────────────────────────────────────────────────────────── */
.conns { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.conn-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.conn-head > div { flex: 1; min-width: 0; }
.conn-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.conn-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 246, 236, 0.07); color: var(--ink-2); flex: none; }
.conn dl { display: grid; gap: 10px; margin: 0; }
.conn dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12.5px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 240, 222, 0.06); }
.conn dl > div:last-child { border: 0; padding: 0; }
.conn dt { margin: 0; }
.conn dd { text-align: right; color: var(--ink); }
.about-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.about-grid > div { padding: 12px; border-radius: 12px; background: var(--tile); }

/* ── sino, modal, busca, avisos ───────────────────────────────────────────────────────────────── */
.pop { position: fixed; z-index: 7; top: 76px; right: 74px; width: 368px; border-radius: 20px; padding: 10px; max-height: 70vh; overflow: auto; opacity: 0; transform: translateY(-6px); transition: opacity 0.18s, transform 0.22s var(--ease); background-color: rgba(31, 25, 20, 0.64); scrollbar-width: thin; }
.pop.open { opacity: 1; transform: none; }
.pop-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 12.5px; }
.pop-head b { font-weight: 600; }
.pop-head.sub { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.pop-head.sub b { font-weight: 500; color: var(--ink-3); font-size: 11.5px; }
.pop-list { list-style: none; margin: 0; padding: 0; }
.pop-list button { width: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; transition: background 0.2s; }
.pop-list button:hover { background: rgba(255, 246, 236, 0.08); }
.pop-list button > span:not(.bot) { flex: 1; min-width: 0; }
.pop-list b { display: block; font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pop-list em { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); }
.pop-list time { font-size: 10px; color: var(--ink-4); white-space: nowrap; padding-top: 2px; }
.pd { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--amber); }
.pd.pd-file { background: rgba(255, 246, 236, 0.5); }
.pop-empty { margin: 4px 10px 8px; color: var(--ink-3); font-size: 12px; }

.layer { position: fixed; inset: 0; z-index: 8; display: grid; place-items: center; padding: 24px; }
.modal-back { position: absolute; inset: 0; background: rgba(12, 9, 7, 0.45); opacity: 0; transition: opacity 0.2s; }
.layer.open .modal-back { opacity: 1; }
.modal { position: relative; width: min(640px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 26px; padding: 22px 24px; background-color: rgba(31, 25, 20, 0.66); opacity: 0; transform: translateY(12px) scale(0.985); transition: transform 0.32s var(--ease), opacity 0.2s; scrollbar-width: thin; }
.layer.open .modal { transform: none; opacity: 1; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.modal-head p { margin: 4px 0 0; color: var(--ink-3); font-size: 12.5px; }
.field { display: block; border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.field .label { margin-bottom: 8px; }
.field-row { display: flex; gap: 12px; }
.field-row .field:first-child { width: 170px; flex: none; }
.grow { flex: 1; }
.pick-group { margin-bottom: 10px; }
.pick-group .label { font-size: 9px; color: var(--ink-4); margin-bottom: 6px; }
.pick-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pick { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 8px; border-radius: 999px; background: rgba(255, 246, 236, 0.06); border: 1px solid rgba(255, 240, 222, 0.08); cursor: pointer; font-size: 12px; transition: background 0.15s; }
.pick:hover { background: rgba(255, 246, 236, 0.11); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick:has(input:checked) { background: #f4eee7; color: #1b140f; border-color: transparent; }
.pick:has(input:focus-visible) { outline: 2px solid rgba(246, 176, 102, 0.95); outline-offset: 2px; }
.pick.off { opacity: 0.5; }
input:not([type='checkbox']):not([type='radio']), select, textarea { width: 100%; background: rgba(255, 246, 236, 0.06); border: 1px solid rgba(255, 240, 222, 0.11); border-radius: 12px; color: var(--ink); font: 400 13px/1.4 var(--sans); padding: 10px 12px; outline: none; transition: border-color 0.2s, background 0.2s; }
input::placeholder, textarea::placeholder { color: var(--ink-4); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: rgba(242, 166, 90, 0.7); background: rgba(255, 246, 236, 0.08); outline: none; box-shadow: 0 0 0 3px rgba(242, 166, 90, 0.18); }
select { appearance: none; height: 41px; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4eee7' stroke-opacity='.6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
select option { background: #241d18; color: var(--ink); }
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.modal-foot .mono { font-size: 10px; }
.form-err { color: var(--red-t); font-size: 12px; margin: 0 0 10px; }

#palette { place-items: start center; padding-top: 12vh; }
.palette { position: relative; width: min(600px, 100%); border-radius: 22px; overflow: hidden; background-color: rgba(31, 25, 20, 0.72); opacity: 0; transform: translateY(-6px); transition: transform 0.25s var(--ease), opacity 0.18s; }
.layer.open .palette { transform: none; opacity: 1; }
.pal-in { display: flex; align-items: center; gap: 11px; padding: 15px 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.pal-in input { flex: 1; background: none !important; border: 0 !important; box-shadow: none !important; outline: none; color: var(--ink); font: 400 15px var(--sans); padding: 0 !important; }
.pal-in input::-webkit-search-cancel-button { display: none; }
.pal-in kbd { font-size: 10px; padding: 3px 7px; border-radius: 6px; background: rgba(255, 246, 236, 0.08); border: 1px solid var(--line); }
.pal-list { list-style: none; margin: 0; padding: 6px 8px 10px; max-height: 52vh; overflow: auto; }
.pal-list li[role='option'] { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; cursor: pointer; color: var(--ink-2); }
.pal-list li[role='option'] .ico { width: 17px; height: 17px; }
.pal-list li.on { background: rgba(255, 246, 236, 0.1); color: var(--ink); }
.pal-list b { display: block; font-weight: 500; color: var(--ink); }
.pal-list em { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); }
.pal-g { font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-4); padding: 12px 12px 5px; }
.pal-none { padding: 18px 12px; color: var(--ink-3); font-size: 12.5px; }

.toasts { position: fixed; z-index: 10; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 18px 10px 13px; border-radius: 999px; font-size: 12.5px; opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.35s var(--ease); background-color: rgba(31, 25, 20, 0.74); }
.toast.in { opacity: 1; transform: none; }
.toast .ico { width: 16px; height: 16px; }
.toast.ok .ico { color: var(--green); }
.toast.err .ico { color: var(--red); }
.toast.amber .ico { color: var(--amber); }

/* login (sem sessão) */
.login-layer { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at 50% 45%, rgba(14, 10, 8, 0.2), rgba(14, 10, 8, 0.72)); }
body.locked .rail, body.locked .topbar, body.locked .main, body.locked .labels { display: none; }
.login { width: min(440px, 100%); border-radius: 28px; padding: 34px 32px 28px; text-align: center; background-color: rgba(31, 25, 20, 0.5); }
.login-mark { position: relative; display: block; width: 58px; height: 58px; border-radius: 17px; margin: 0 auto 18px; background: linear-gradient(180deg, #f7b26a, #e58c42); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 14px 30px -12px rgba(229, 140, 66, 0.8); }
.login-mark::after { content: ''; position: absolute; inset: 13px; }
.login h1 { margin: 0 0 12px; font-size: 26px; font-weight: 600; letter-spacing: -0.025em; }
.login-lead { font-size: 15px; margin: 0 0 10px; line-height: 1.55; }
.login-lead code { background: rgba(255, 246, 236, 0.1); padding: 2px 7px; border-radius: 6px; font-size: 13px; }
.login-lead a { color: var(--amber-t); text-decoration: none; border-bottom: 1px solid rgba(247, 188, 128, 0.45); }
.login-sub { font-size: 12.5px; color: var(--ink-3); margin: 0 0 22px; }
.noscript { position: fixed; inset: auto 0 40px; text-align: center; z-index: 20; }

/* ── telas médias ─────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .clock { display: none; }
  .solo-hero { gap: 24px; }
  .camp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .crumb { display: none; }
  .search-ph { display: none; }
  .topbar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .search { width: auto; }
  .drive-grid, .war-grid, .uso-grid, .camp-grid { grid-template-columns: minmax(0, 1fr); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-link { display: none; }
  .kpis4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed { width: 320px; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── celular ──────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --gx: 12px; --top: calc(66px + env(safe-area-inset-top)); --blur: 26px; }
  .rail { left: 10px; right: 10px; top: auto; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; height: 60px; flex-direction: row; padding: 0 6px; border-radius: 30px; }
  .rail-logo, .rail-foot { display: none; }
  .rail-nav { flex-direction: row; justify-content: space-between; width: 100%; gap: 0; }
  .rail-btn { width: 37px; height: 37px; }
  .rail-btn .ico { width: 18px; height: 18px; }
  .tip { display: none; }
  .topbar { left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top)); height: 44px; display: flex; gap: 6px; }
  .tb-left { flex: 1; }
  .search { width: 40px; height: 40px; flex: none; padding: 0; justify-content: center; }
  .search kbd, .search-ph { display: none; }
  .tb-right { gap: 6px; flex: none; }
  .ws { height: 42px; padding-right: 14px; }
  .ws-txt span { display: none; }
  .new-task { width: 40px; padding: 0 !important; }
  .new-task span { display: none; }
  .owner, .round { width: 38px; height: 38px; }
  .main { padding: var(--top) 12px calc(86px + env(safe-area-inset-bottom)); }
  body[data-mode='painel'] .view { padding-top: 24vh; }
  .page-title h1 { font-size: 24px; }
  .page-head { align-items: flex-start; }
  .page-actions { width: 100%; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .v-office { justify-content: flex-start; }
  .office-bottom { position: fixed; left: 10px; right: 10px; bottom: calc(80px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 8px; pointer-events: none; }
  .strip { border-radius: 22px; flex-wrap: wrap; justify-content: space-between; padding: 6px; min-height: 0; }
  .strip-item { height: 36px; padding: 0 9px; font-size: 11.5px; }
  .strip-sep, .hide-sm { display: none; }
  .feed { width: auto; max-height: 27vh; padding: 12px 8px 6px 12px; }
  .feed .card-head p { display: none; }
  .kanban { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .col { max-height: none; min-height: 0; }
  .drive-grid, .war-grid, .uso-grid, .solo-grid, .camp-grid { grid-template-columns: minmax(0, 1fr); }
  .solo-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .phases { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .camp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radar li { grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; }
  .radar p, .radar time { grid-column: 2; }
  .table th:nth-child(4), .table td:nth-child(4), .table th:nth-child(6), .table td:nth-child(6) { display: none; }
  .card-head { flex-wrap: wrap; }
  .sel-actions { justify-content: flex-start; width: 100%; }
  .agent-card { left: 10px; right: 10px; top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); width: auto; max-height: 64vh; transform: translateY(16px); }
  .drawer { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; max-height: 88vh; border-radius: 24px; transform: translateY(26px); }
  .dr-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pop { left: 10px; right: 10px; width: auto; top: calc(62px + env(safe-area-inset-top)); }
  .layer { padding: 12px; }
  #palette { padding-top: 10vh; }
  .modal { padding: 18px; border-radius: 22px; }
  .field-row { flex-direction: column; gap: 0; }
  .field-row .field:first-child { width: auto; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roster { grid-template-columns: minmax(0, 1fr); }
  .office-fallback { padding: 80px 12px 200px; }
}
@media (max-width: 380px) {
  .rail-btn { width: 34px; height: 34px; }
  .kpis4 { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ════════════════════════════════════════════════════════════════════════════════════════════════
   Escritório vivo: balões de fala, lâmpadas de sugestão, reunião, comando, assistente, prévias, modos
   ════════════════════════════════════════════════════════════════════════════════════════════════ */
.office-ov { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; transition: opacity 0.35s; }
.office-ov[data-mode='painel'] { opacity: 0; }
body.locked .office-ov { display: none; }
.ov-bubble {
  position: absolute; left: 0; top: 0; max-width: 236px; padding: 7px 11px 8px; border-radius: 13px 13px 13px 4px;
  background: rgba(30, 24, 19, 0.86); border: 1px solid rgba(255, 240, 222, 0.16); color: var(--ink);
  font: 500 11.5px/1.38 var(--sans); box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.55); opacity: 0;
  transition: opacity 0.35s var(--ease); will-change: transform; white-space: normal; text-wrap: pretty;
}
.ov-bubble.on { opacity: 1; }
.ov-bubble::after { content: ''; position: absolute; left: 12px; bottom: -6px; width: 10px; height: 10px; background: inherit; border-right: 1px solid rgba(255, 240, 222, 0.16); border-bottom: 1px solid rgba(255, 240, 222, 0.16); transform: rotate(45deg) skew(8deg, 8deg); border-radius: 0 0 3px 0; }
.ov-bubble[data-kind='step'] { font: 400 10.5px/1.35 var(--mono); color: var(--ink-2); background: rgba(24, 19, 15, 0.8); border-radius: 10px 10px 10px 3px; }
.ov-bubble[data-kind='dots'] { font-size: 15px; line-height: 1; letter-spacing: 2px; padding: 5px 12px 8px; }
.ov-bulb {
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; pointer-events: auto; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #ffd39c, #f2a65a 60%, #d9873a); color: #2a1708; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(242, 166, 90, 0.18), 0 0 18px 2px rgba(242, 166, 90, 0.45); animation: bulb 2.6s ease-in-out infinite;
}
.ov-bulb svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ov-bulb:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@keyframes bulb { 0%, 100% { box-shadow: 0 0 0 4px rgba(242, 166, 90, 0.16), 0 0 14px 1px rgba(242, 166, 90, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(242, 166, 90, 0.1), 0 0 24px 4px rgba(242, 166, 90, 0.55); } }

/* topo: comando e reunião */
.search { cursor: pointer; }
.search .ico-slot, .meet-btn .ico-slot { display: inline-grid; }
.search .ico-slot .ico { width: 16px; height: 16px; color: var(--amber-t); }
.btn.ghost-glass { height: 40px; padding: 0 16px 0 13px; background: rgba(30, 24, 19, 0.46); border: 1px solid var(--line); color: var(--ink); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 246, 236, 0.12); }
.btn.ghost-glass:hover { background: rgba(48, 39, 31, 0.6); }
.meet-btn .ico { width: 17px; height: 17px; }
.meet-btn.live { border-color: rgba(242, 166, 90, 0.5); color: var(--amber-t); }
.meet-btn.live .ico-slot { position: relative; }
.meet-btn.live .ico-slot::after { content: ''; position: absolute; right: -3px; top: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 2s infinite; }
.rail-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rail-btn.rail-meet.live { color: var(--amber-t); background: var(--amber-soft); }

/* barra de comando */
.layer.top { place-items: start center; padding-top: 11vh; }
.cmd { position: relative; width: min(680px, 100%); border-radius: 24px; padding: 6px 6px 12px; background-color: rgba(31, 25, 20, 0.74); opacity: 0; transform: translateY(-8px); transition: transform 0.28s var(--ease), opacity 0.2s; }
.layer.open .cmd { opacity: 1; transform: none; }
.cmd-in { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); color: var(--amber-t); }
.cmd-in .ico { width: 19px; height: 19px; }
.cmd-in input { flex: 1; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; color: var(--ink); font: 400 16px var(--sans); }
.cmd-in kbd { font-size: 10px; padding: 4px 8px; border-radius: 7px; background: rgba(255, 246, 236, 0.08); border: 1px solid var(--line); color: var(--ink-3); }
.cmd-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 12px 10px; max-height: 34vh; overflow: auto; overscroll-behavior: contain; }
.cmd-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 12px 0; }
.cmd-foot .mono { font-size: 10px; }
.pick.lead .ico { width: 15px; height: 15px; color: var(--amber-t); }
.pick.lead:has(input:checked) .ico { color: #1b140f; }

/* escolher o tipo de tarefa */
.chooser { width: min(720px, 100%); }
.flows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.flow-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--tile); border: 1px solid var(--tile-line); text-align: left; transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.flow-card:hover { background: rgba(255, 246, 236, 0.09); border-color: rgba(242, 166, 90, 0.35); transform: translateY(-1px); }
.fc-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(242, 166, 90, 0.13); color: var(--amber-t); flex: none; }
.fc-txt { flex: 1; min-width: 0; }
.fc-txt b { display: block; font-weight: 600; font-size: 13.5px; }
.fc-txt em { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); line-height: 1.35; }

/* o assistente: uma pergunta por vez */
.wizard { width: min(600px, 100%); min-height: 260px; }
.wz-kicker { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-t); }
.wz-dots { display: flex; gap: 5px; margin: -6px 0 14px; }
.wz-dots i { width: 18px; height: 3px; border-radius: 3px; background: rgba(255, 246, 236, 0.12); }
.wz-dots i.on { background: var(--amber); }
.wz-dots i.cur { background: rgba(242, 166, 90, 0.45); }
.wz-q { margin: 0 0 18px; font-size: 19px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; text-wrap: pretty; }
.wz-opts { display: grid; gap: 8px; margin-bottom: 14px; }
.wz-opts.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wz-opt { padding: 13px 16px; border-radius: 14px; background: var(--tile); border: 1px solid var(--tile-line); text-align: left; font-size: 13.5px; font-weight: 500; transition: background 0.18s, border-color 0.18s; }
.wz-opt:hover, .wz-opt:focus-visible { background: rgba(242, 166, 90, 0.12); border-color: rgba(242, 166, 90, 0.45); }
.wz-type { display: flex; gap: 8px; margin-bottom: 14px; }
.wz-multi { display: grid; gap: 6px; margin-bottom: 14px; max-height: 44vh; overflow: auto; }
.wz-check { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 13px; background: var(--tile); border: 1px solid var(--tile-line); cursor: pointer; font-size: 13px; }
.wz-check input { position: absolute; opacity: 0; }
.wz-check i { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid rgba(255, 240, 222, 0.3); flex: none; display: grid; place-items: center; }
.wz-check input:checked + i { background: var(--amber); border-color: var(--amber); }
.wz-check input:checked + i::after { content: ''; width: 8px; height: 4.5px; border: 2px solid var(--amber-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.wz-check:has(input:checked) { border-color: rgba(242, 166, 90, 0.4); }
.wz-check:has(input:focus-visible) { outline: 2px solid rgba(246, 176, 102, 0.95); outline-offset: 2px; }
.wizard textarea { margin-bottom: 14px; }
.wz-sum { display: grid; gap: 6px; margin: 0 0 16px; }
.wz-sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 12px; background: var(--tile); }
.wz-sum dt { margin: 0; }
.wz-sum dd { text-align: right; font-size: 13px; }
.wz-load { display: grid; place-items: center; min-height: 180px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 240, 222, 0.15); border-top-color: var(--amber); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* reunião: a ata ao vivo no escritório */
.meet-panel { pointer-events: auto; width: 392px; flex: none; border-radius: 22px; padding: 16px 12px 12px 16px; max-height: min(64vh, 620px); display: flex; flex-direction: column; border-color: rgba(242, 166, 90, 0.3); }
.meet-panel .card-head { margin-bottom: 6px; padding-right: 4px; }
.meet-panel .card-head h2 .ico { width: 16px; height: 16px; color: var(--amber-t); }
.meet-panel .card-head p { font-size: 12.5px; color: var(--ink-2); }
.live.red { background: var(--red); box-shadow: 0 0 0 4px rgba(240, 114, 92, 0.18); animation: none; }
.meet-meta { font-size: 10px; margin: 0 0 10px; }
.meet-scroll { overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.meet-falas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.meet-falas li { display: flex; gap: 10px; align-items: flex-start; animation: rise 0.45s var(--ease) backwards; }
.meet-falas b { font-weight: 600; font-size: 12.5px; }
.meet-falas time { font-size: 10px; color: var(--ink-4); margin-left: 8px; }
.meet-falas p { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.meet-wait { margin: 6px 0; }
.meet-ata { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.ata-resumo { margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.ata-dec, .ata-acoes { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
.ata-dec li { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.ata-dec .ico { width: 15px; height: 15px; color: var(--green); margin-top: 1px; }
.ata-acoes li { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; background: var(--tile); }
.ata-acoes li > div { flex: 1; min-width: 0; }
.ata-acoes b { font-size: 12px; font-weight: 600; }
.ata-acoes p { margin: 2px 0 0; font-size: 12px; color: var(--ink-2); line-height: 1.4; }

/* cartão do agente: sugestão e quadro ao vivo */
.ac-sug { margin: 16px 0 4px; padding: 13px 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(242, 166, 90, 0.16), rgba(242, 166, 90, 0.06)); border: 1px solid rgba(242, 166, 90, 0.32); }
.ac-sug-top { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--amber-t); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.ac-sug-top .ico { width: 15px; height: 15px; }
.ac-sug-top time { margin-left: auto; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-3); font-size: 10px; }
.ac-sug p { margin: 8px 0 11px; font-size: 13px; line-height: 1.45; }
.ac-live { position: relative; margin: 0 0 10px; border-radius: 12px; overflow: hidden; background: #0d0b09; aspect-ratio: 16 / 10; }
.ac-live img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ac-live span { position: absolute; left: 8px; bottom: 8px; font-size: 10px; color: var(--amber-t); background: rgba(14, 10, 8, 0.75); padding: 3px 8px; border-radius: 999px; }

/* esteira: cartão com área de clique e prévias */
.job { position: relative; }
.job-hit { position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.job > :not(.job-hit) { position: relative; z-index: 1; pointer-events: none; }
.job .thumbs, .job .thumbs * { pointer-events: auto; }
.job-main { display: flex; gap: 10px; align-items: flex-start; }
.job-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.job-live { position: relative; width: 46px; height: 58px; flex: none; border-radius: 9px; overflow: hidden; background: #0d0b09; border: 1px solid rgba(242, 166, 90, 0.35); }
.job-live img { width: 100%; height: 100%; object-fit: cover; display: block; }
.job-live i { position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-size: 8px; text-align: center; color: var(--amber-t); background: rgba(14, 10, 8, 0.78); padding: 1px 0; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.th { position: relative; width: 42px; height: 54px; border-radius: 9px; overflow: hidden; background: #0d0b09; border: 1px solid rgba(255, 240, 222, 0.12); cursor: zoom-in; display: grid; place-items: center; }
.th img, .th video { width: 100%; height: 100%; object-fit: cover; display: block; }
.th .play { position: absolute; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 10, 8, 0.65); }
.th .play .ico { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.th.more { font-size: 11px; color: var(--ink-2); }
.th:hover { border-color: rgba(242, 166, 90, 0.5); }
.thumbs.lg .th { width: 76px; height: 98px; border-radius: 12px; }
.dr-live { position: relative; margin: 0 0 16px; border-radius: 16px; overflow: hidden; background: #0d0b09; aspect-ratio: 16 / 9; }
.dr-live img { width: 100%; height: 100%; object-fit: contain; display: block; }
.dr-live figcaption { position: absolute; left: 10px; top: 10px; font-size: 10.5px; color: var(--amber-t); background: rgba(14, 10, 8, 0.75); padding: 4px 10px; border-radius: 999px; display: flex; align-items: center; gap: 6px; }
.dr-live figcaption i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: pulse 2s infinite; }
.dr-prev { margin-bottom: 16px; }
.note.red { background: var(--red-soft); color: var(--red-t); }
.note:not(.amber):not(.red) { background: var(--tile); color: var(--ink-2); }
.dr-outputs li { display: flex; align-items: center; gap: 8px; }
.dr-outputs li > a, .dr-outputs .out-local { flex: 1; min-width: 0; }
.out-local { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 246, 236, 0.05); font-size: 12.5px; }

/* caixa de luz */
.lb { position: relative; margin: 0; width: min(1000px, 100%); max-height: calc(100vh - 48px); border-radius: 24px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background-color: rgba(24, 19, 15, 0.82); opacity: 0; transform: scale(0.98); transition: opacity 0.2s, transform 0.3s var(--ease); }
.layer.open .lb { opacity: 1; transform: none; }
.lb-media { flex: 1; min-height: 0; display: grid; place-items: center; border-radius: 16px; overflow: hidden; background: #0a0807; }
.lb-media img, .lb-media video { max-width: 100%; max-height: calc(100vh - 160px); display: block; object-fit: contain; }
.lb figcaption { display: flex; align-items: center; gap: 14px; padding: 2px 6px; }
.lb figcaption > div:first-child { flex: 1; min-width: 0; }
.lb figcaption b { display: block; font-weight: 600; }
.lb figcaption span { font-size: 12px; color: var(--ink-3); }

/* sugestões */
.sugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 14px; }
.sug { border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.sug-head { display: flex; align-items: center; gap: 12px; }
.sug-head > div { flex: 1; min-width: 0; }
.sug-head b { display: block; font-weight: 600; }
.sug-head .mono { font-size: 10.5px; }
.sug-bulb { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 166, 90, 0.16); color: var(--amber-t); box-shadow: 0 0 16px -2px rgba(242, 166, 90, 0.45); }
.sug-bulb .ico { width: 16px; height: 16px; }
.sug p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.sug footer { flex-wrap: wrap; }
.sug footer .link-btn { margin-left: auto; }
.ag-bulb { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(242, 166, 90, 0.16); color: var(--amber-t); flex: none; }
.ag-bulb .ico { width: 13px; height: 13px; }
.pop-sug { width: calc(100% - 4px); margin: 6px 2px 2px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: rgba(242, 166, 90, 0.1); color: var(--amber-t); font-size: 12.5px; }
.pop-sug span { flex: 1; }
.pop-sug .ico { width: 15px; height: 15px; }

/* war room: fase conquistada */
.war-map .ring.won { fill: rgba(111, 211, 154, 0.16); }
.war-map .edge.won { stroke: rgba(111, 211, 154, 0.55); }
.phase.is-won { border-color: rgba(111, 211, 154, 0.3); }

/* SEO · morae.dev */
.seo .card-head h2 .ico { width: 16px; height: 16px; color: var(--amber-t); }
.seo-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; }
.seo-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.seo-kpi { padding: 10px 12px; border-radius: 12px; background: var(--tile); }
.seo-kpi span { display: block; font-size: 11px; color: var(--ink-3); }
.seo-kpi b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 2px; }
.seo-legend { display: flex; gap: 14px; font-size: 11px; color: var(--ink-3); margin-bottom: 6px; }
.seo-legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: 3px; }
.seo-legend .lc { background: var(--amber); }
.seo-legend .li { background: rgba(244, 238, 231, 0.35); }
.seo-chart { width: 100%; height: 170px; display: block; overflow: visible; }
.seo-chart .grid path { stroke: rgba(255, 240, 222, 0.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.seo-chart .impr { fill: rgba(244, 238, 231, 0.08); stroke: rgba(244, 238, 231, 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.seo-chart .clk { fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.seo-chart .dotl { fill: var(--amber); }
.seo-chart .ax { font: 400 11px var(--mono); fill: rgba(244, 238, 231, 0.4); }
.seo-chart .ax.end { text-anchor: end; }
.seo-tables { display: grid; gap: 14px; align-content: start; min-width: 0; }
.table.mini { font-size: 12px; }
.table.mini td { padding: 8px 8px; }
.table.mini th { padding: 0 8px 9px; }
.table.mini td.q { white-space: normal; max-width: 260px; }

/* campanhas: prévia do anúncio */
.camp-head { align-items: center; }
.camp-title { flex: 1; min-width: 0; }
.camp-thumb { width: 52px; height: 66px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); flex: none; }

/* ── modo parede (aquário no 2º monitor): só o escritório, rótulos, balões e um HUD pequeno ────── */
.hud { display: none; }
body.parede .rail, body.parede .topbar, body.parede .main, body.parede .agent-card, body.parede .drawer, body.parede .pop { display: none !important; }
body.parede .scrim { background: linear-gradient(0deg, rgba(15, 11, 8, 0.45) 0, rgba(15, 11, 8, 0) 160px); }
body.parede .hud { position: fixed; z-index: 6; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 999px; font-size: 12px; color: var(--ink-2); }
.hud-mark { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(180deg, #f7b26a, #e58c42); position: relative; flex: none; }
.hud-mark::after { content: ''; position: absolute; inset: 7px; -webkit-mask: url('../img/simbolo.svg') center / contain no-repeat; mask: url('../img/simbolo.svg') center / contain no-repeat; background: var(--amber-ink); }
.hud #hudClock { font-size: 15px; font-weight: 600; color: var(--ink); }
.hud-info { display: flex; gap: 14px; }
.hud-info b { color: var(--ink); font-weight: 600; margin-right: 4px; }
body.parede .agent-label { font-size: 12px; height: 25px; }

/* ── Sede.exe sem moldura: a faixa de cima arrasta a janela; os 140 px da direita ficam livres ──── */
.app-drag { display: none; }
body.app .app-drag { display: block; position: fixed; z-index: 20; left: 0; top: 0; right: 140px; height: 34px; -webkit-app-region: drag; app-region: drag; }
body.app .topbar { top: 40px; -webkit-app-region: drag; app-region: drag; }
body.app .topbar button, body.app .topbar a, body.app .topbar input, body.app .topbar .owner, body.app .topbar .ws { -webkit-app-region: no-drag; app-region: no-drag; }
body.app .rail { top: 40px; }
body.app { --top: 112px; }
body.app .agent-card { top: 112px; max-height: calc(100vh - 136px); }

/* ── mini app do Telegram: compacto ─────────────────────────────────────────────────────────────── */
body.tg .clock, body.tg .meet-btn .lbl { display: none; }

@media (max-width: 1600px) { .meet-btn .lbl { display: none; } .meet-btn { width: 40px; padding: 0 !important; justify-content: center; } .hide-md { display: none !important; } }
@media (max-width: 1280px) { .flows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .seo-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .meet-btn { display: none; }
  .meet-panel { width: auto; max-height: 40vh; padding: 12px 8px 8px 12px; }
  .flows { grid-template-columns: minmax(0, 1fr); }
  .wz-opts.cols { grid-template-columns: minmax(0, 1fr); }
  .layer.top { padding-top: calc(70px + env(safe-area-inset-top)); }
  /* no celular a lista de agentes rola: a última fileira esmaece para mostrar que tem mais embaixo */
  .cmd-chips { max-height: 28vh; padding-bottom: 24px; -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent); }
  .seo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail-foot { display: none; }
  .lb { padding: 8px; }
  body.app .topbar { top: calc(10px + env(safe-area-inset-top)); }
}

/* nas telas de painel, uma faixa escura atrás da barra do topo: o conteúdo que rola some por baixo dela */
body[data-mode='painel'] .topbar::before { content: ''; position: fixed; left: 0; right: 0; top: 0; height: 104px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 13, 10, 0.94) 0%, rgba(17, 13, 10, 0.78) 52%, rgba(17, 13, 10, 0) 100%); }
body.app[data-mode='painel'] .topbar::before { top: -40px; height: 144px; }
@media (max-width: 760px) { body[data-mode='painel'] .topbar::before { height: calc(76px + env(safe-area-inset-top)); } }
