/* Still We Rise — tokens e componentes (paleta: replica/design/tokens.json) */
:root {
  --bg: #F5F5F2; --surface: #FFFFFF; --surface-2: #ECECE8; --border: #DEDED8; --border-strong: #8A8F96;
  --text: #121316; --muted: #4C5159; --faint: #6B7078;
  --primary: #C8102E; --primary-hover: #9E0B23; --on-primary: #FFFFFF; --primary-soft: #FBE9EC;
  --accent: #00756D; --accent-soft: #E3F3F1; --danger: #B4141E; --danger-soft: #FCEBEC; --warn: #8A6100; --warn-soft: #FFF6D1;
  --yellow: #FFD100; --on-yellow: #121316; --carbon: #121316;
  --ig: #A3245E; --wa: #0D7A4E;
  --canvas: #EDEDEA; --canvas-dot: #CFCFCA;
  --radius: 10px; --radius-sm: 7px; --shadow: 0 1px 2px rgba(18,19,22,.06), 0 4px 14px rgba(18,19,22,.06);
  --shadow-lg: 0 10px 40px rgba(18,19,22,.2);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0E10; --surface: #17181B; --surface-2: #202227; --border: #2C2F35; --border-strong: #6E737A;
    --text: #F2F2EF; --muted: #A2A7AE; --faint: #80858D;
    --primary: #FF4D5E; --primary-hover: #FF7381; --on-primary: #0D0E10; --primary-soft: #3A1418;
    --accent: #2BD4C4; --accent-soft: #10302D; --danger: #FF6B72; --danger-soft: #3A1A1C; --warn: #FFD100; --warn-soft: #332B0A;
    --yellow: #FFD100; --on-yellow: #121316; --carbon: #0D0E10;
    --ig: #F472B6; --wa: #4ADE80; --canvas: #121316; --canvas-dot: #2C2F35;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0E10; --surface: #17181B; --surface-2: #202227; --border: #2C2F35; --border-strong: #6E737A;
  --text: #F2F2EF; --muted: #A2A7AE; --faint: #80858D;
  --primary: #FF4D5E; --primary-hover: #FF7381; --on-primary: #0D0E10; --primary-soft: #3A1418;
  --accent: #2BD4C4; --accent-soft: #10302D; --danger: #FF6B72; --danger-soft: #3A1A1C; --warn: #FFD100; --warn-soft: #332B0A;
  --yellow: #FFD100; --on-yellow: #121316; --carbon: #0D0E10;
  --ig: #F472B6; --wa: #4ADE80; --canvas: #121316; --canvas-dot: #2C2F35;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 8px; } .col { display: flex; flex-direction: column; gap: 8px; }
.grow { flex: 1; min-width: 0; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 13px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .focusable:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.danger { color: var(--danger); } .btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 28px; padding: 0 9px; font-size: 13px; } .btn.icon { width: 34px; padding: 0; } .btn.sm.icon { width: 28px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* formulários */
label.field { display: flex; flex-direction: column; gap: 5px; font-weight: 550; font-size: 13px; }
label.field .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 7px 10px; min-height: 34px; width: 100%; }
textarea { resize: vertical; min-height: 70px; line-height: 1.4; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--primary); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 450; cursor: pointer; }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 6px 11px; font: inherit; font-size: 13px; cursor: pointer; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* superfícies */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.card.flat { box-shadow: none; } .card.pad-0 { padding: 0; overflow-x: auto; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 21px; padding: 0 7px; border-radius: 999px; font-size: 11.5px;
  font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); white-space: nowrap; }
.badge.ig { color: var(--ig); } .badge.wa { color: var(--wa); }
.badge.live { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.badge.draft { background: var(--surface-2); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.err { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.primary { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; background: var(--primary-soft);
  color: var(--primary); font-size: 12px; font-weight: 600; }
.tag button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0; font-size: 14px; line-height: 1; }

/* layout do app */
.app { display: grid; grid-template-columns: 220px 1fr; height: 100%; }
.side { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 10px; gap: 2px; }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 14px; font-weight: 750; font-size: 17px; letter-spacing: -0.02em; }
.brand svg { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--muted);
  text-decoration: none; font-weight: 550; }
.nav:hover { background: var(--surface-2); color: var(--text); }
.nav.on { background: var(--primary-soft); color: var(--primary); }
.nav .count { margin-left: auto; font-size: 11.5px; background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: 0 7px; }
.side .spacer { flex: 1; }
.ws-select { margin: 0 4px 10px; font-weight: 600; }
.main { overflow: auto; min-width: 0; }
.page { max-width: 1120px; margin: 0 auto; padding: 28px 28px 60px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi .v { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: 12.5px; }

table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--border); }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--surface-2); }

.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty h3 { color: var(--text); }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--surface-2); color: var(--muted); }
.step.done .n { background: var(--accent); color: #fff; }

/* modal, drawer, toast */
.overlay { position: fixed; inset: 0; background: rgba(13,14,16,.55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: 90vh; overflow: auto;
  padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); box-shadow: var(--shadow-lg);
  z-index: 40; display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.drawer-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.drawer-body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 9px; box-shadow: var(--shadow-lg); font-weight: 550; max-width: 90vw; }
.toast.err { background: var(--danger); color: #fff; }
.callout { border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface-2); font-size: 13px; }
.callout.warn { background: var(--warn-soft); } .callout.err { background: var(--danger-soft); color: var(--danger); }
.callout.info { background: var(--accent-soft); }
.code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px;
  padding: 6px 8px; word-break: break-all; }

/* auth */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px; }
.auth .card { width: min(400px, 100%); padding: 28px; display: flex; flex-direction: column; gap: 14px; }

/* flow builder */
.builder { display: grid; grid-template-rows: 54px 1fr; height: 100%; }
.builder-top { display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.builder-top input.title { border-color: transparent; font-weight: 650; font-size: 15px; width: 300px; background: transparent; }
.builder-top input.title:hover { border-color: var(--border); }
.builder-body { display: grid; grid-template-columns: 1fr 380px; min-height: 0; }
.builder-body.nopanel { grid-template-columns: 1fr; }
.canvas { position: relative; overflow: hidden; background-color: var(--canvas);
  background-image: radial-gradient(var(--canvas-dot) 1.2px, transparent 1.2px); cursor: grab; touch-action: none; user-select: none; }
.canvas.panning { cursor: grabbing; }
.canvas-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.edges { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.edges path { fill: none; stroke: var(--border-strong); stroke-width: 2.2; pointer-events: stroke; cursor: pointer; }
.edges path:hover, .edges path.sel { stroke: var(--primary); }
.edges path.temp { stroke: var(--primary); stroke-dasharray: 5 5; pointer-events: none; }
.node { position: absolute; width: 270px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); cursor: default; }
.node.sel { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft), var(--shadow); }
.node.issue { border-color: var(--warn); }
.node.err { border-color: var(--danger); }
.node.drop { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.node-head { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid var(--border); cursor: grab; border-radius: 12px 12px 0 0; }
.node-head .ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; flex: none; }
.node-head .ttl { font-weight: 650; font-size: 13px; flex: 1; min-width: 0; }
.node-body { padding: 9px 11px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.bubble { background: var(--surface-2); border-radius: 10px; padding: 7px 9px; white-space: pre-wrap; word-break: break-word;
  max-height: 110px; overflow: hidden; }
.node-outs { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.out { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 6px 22px 6px 11px; font-size: 12px;
  color: var(--muted); min-height: 30px; }
.out + .out { border-top: 1px dashed var(--border); }
.out .lbl { flex: 1; text-align: left; } .out.btn-out .lbl { color: var(--text); font-weight: 550; }
.handle { position: absolute; right: -8px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--border-strong); cursor: crosshair; }
.handle:hover, .handle.on { border-color: var(--primary); background: var(--primary-soft); }
.handle.linked { background: var(--primary); border-color: var(--primary); }
.stat { display: inline-flex; gap: 3px; align-items: center; font-size: 11px; font-weight: 600; color: var(--accent); }
.trigger-chip { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 9px; background: var(--primary-soft);
  color: var(--text); font-size: 12.5px; cursor: pointer; border: 1px solid transparent; }
.trigger-chip:hover { border-color: var(--primary); }
.trigger-chip.off { opacity: .55; }
.zoom-ctl { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 9px; box-shadow: var(--shadow); }
.add-menu { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px); }
.panel { background: var(--surface); border-left: 1px solid var(--border); overflow: auto; display: flex; flex-direction: column; }
.panel-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.panel-body { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.sub { border: 1px solid var(--border); border-radius: 9px; padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.issues { position: absolute; right: 12px; top: 12px; width: 320px; max-height: 60%; overflow: auto; background: var(--surface);
  border-radius: 10px; box-shadow: var(--shadow-lg); padding: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.issue-row { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; padding: 6px 8px; border-radius: 7px; cursor: pointer; }
.issue-row:hover { background: var(--surface-2); }

/* chat / inbox */
.inbox { display: grid; grid-template-columns: 200px 320px 1fr 290px; height: 100%; min-height: 0; }
.inbox > * { min-height: 0; }
.folders { border-right: 1px solid var(--border); padding: 14px 8px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); }
.convs { border-right: 1px solid var(--border); display: flex; flex-direction: column; background: var(--surface); }
.convs-list { overflow: auto; flex: 1; }
.conv { display: flex; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.conv:hover { background: var(--surface-2); } .conv.on { background: var(--primary-soft); }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--surface-2); color: var(--muted); }
.unread { background: var(--primary); color: var(--on-primary); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 0 6px; height: 18px; display: inline-grid; place-items: center; }
.chat { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.chat-empty { display: grid; place-items: center; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.msgs { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 72%; display: flex; flex-direction: column; gap: 3px; }
.msg.in { align-self: flex-start; } .msg.out { align-self: flex-end; align-items: flex-end; }
.msg .b { padding: 8px 11px; border-radius: 13px; white-space: pre-wrap; word-break: break-word; }
.msg.in .b { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.out .b { background: var(--primary-soft); border-bottom-right-radius: 4px; }
.msg.out.agent .b { background: var(--accent-soft); }
.msg.failed .b { border: 1px dashed var(--danger); }
.msg .meta { font-size: 11px; color: var(--faint); display: flex; gap: 6px; align-items: center; }
.msg .btns { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; min-width: 180px; }
.msg .btns button, .msg .btns a { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 9px; padding: 6px 10px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; text-align: center; text-decoration: none; }
.msg .btns button:disabled { color: var(--faint); cursor: default; }
.sysline { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 3px 10px; border-radius: 999px; }
.note { align-self: stretch; background: var(--warn-soft); border-radius: 9px; padding: 8px 11px; font-size: 13px; }
.composer { border-top: 1px solid var(--border); background: var(--surface); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.composer textarea { min-height: 44px; max-height: 160px; }
.composer.note-mode textarea { background: var(--warn-soft); }
.suggest { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.suggest div { padding: 6px 10px; cursor: pointer; font-size: 13px; } .suggest div:hover, .suggest div.on { background: var(--surface-2); }
.contact-panel { border-left: 1px solid var(--border); background: var(--surface); overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-word; }

/* simulador */
.sim { display: flex; flex-direction: column; height: 100%; }
.sim .msgs { background: var(--bg); }
.phone-top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }

@media (max-width: 1100px) {
  .inbox { grid-template-columns: 64px 280px 1fr; } .contact-panel { display: none; }
  .folders .lbl { display: none; }
  .builder-body { grid-template-columns: 1fr 340px; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { flex-direction: row; align-items: center; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--border); }
  .side .brand, .side .spacer, .ws-select { display: none; }
  .nav { flex: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .page { padding: 18px 16px 50px; }
  .inbox { grid-template-columns: 1fr; } .inbox .folders, .inbox .convs.hide-m, .inbox .chat.hide-m { display: none; }
  .builder-body { grid-template-columns: 1fr; } .panel { position: fixed; inset: 54px 0 0 0; z-index: 30; }
}

/* ===================== redação 3D ===================== */
.hq { position: relative; overflow: hidden; height: 100%; min-height: 420px; perspective: 2200px; perspective-origin: 50% 35%;
  background: radial-gradient(ellipse at 50% 30%, var(--surface) 0%, var(--canvas) 70%); cursor: grab; user-select: none; touch-action: none; }
.hq:active { cursor: grabbing; }
.hq-world { position: absolute; left: 50%; top: 54%; transform-style: preserve-3d; transition: transform .35s ease-out; }
.hq-world * { transform-style: preserve-3d; }
.hq-floor { position: absolute; left: 0; top: 0; border-radius: 14px; background-color: #E4E4E0;
  background-image: linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 50px 50px; box-shadow: 0 0 0 10px #C9C9C4; }
:root[data-theme="dark"] .hq-floor { background-color: #1B1D21; box-shadow: 0 0 0 10px #2C2F35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hq-floor { background-color: #1B1D21; box-shadow: 0 0 0 10px #2C2F35; } }
.zone { position: absolute; border-radius: 12px; background: rgba(0,117,109,.06); border: 2px dashed rgba(18,19,22,.12); transition: background .6s; }
.zone span { position: absolute; left: 10px; top: 8px; font-size: 13px; font-weight: 700; color: rgba(18,19,22,.38); letter-spacing: .04em; text-transform: uppercase; }
.hq-wall { position: absolute; left: 0; top: -200px; transform-origin: bottom; transform: rotateX(-90deg); background: linear-gradient(#F2F2EF, #E2E2DE);
  border-radius: 10px 10px 0 0; box-shadow: inset 0 -6px 0 #C8102E; }
.hq-wall-side { position: absolute; left: -200px; top: 0; transform-origin: right; transform: rotateY(90deg) rotateZ(0deg); background: linear-gradient(90deg, #E6E6E2, #F0F0EC); display: none; }
.board { position: absolute; left: 60px; top: 22px; width: 520px; height: 150px; background: #17181B; border: 6px solid #4C5159; border-radius: 6px; padding: 8px 10px; }
.board-title { color: #FFD100; font: 800 13px/1 var(--font); letter-spacing: .12em; margin-bottom: 7px; }
.board-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.board-card { background: #F2F2EF; color: #121316; font-size: 11px; line-height: 1.25; padding: 4px 6px; border-radius: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 1px 2px 0 rgba(0,0,0,.25); cursor: pointer; }
.board-card.st-awaiting_approval { background: #FFD100; } .board-card.st-approved { background: #CDEFEA; } .board-card.st-published { background: #BBF7D0; } .board-card.st-failed { background: #FECACA; }
.board-empty { color: #A2A7AE; font-size: 12px; }
.b3 { position: absolute; left: 0; top: 0; }
.f3 { position: absolute; left: 0; top: 0; backface-visibility: visible; }
.top3 { box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.screen-on .f3 { box-shadow: 0 0 18px 4px rgba(56,189,248,.55); }
.lamp-on .top3 { box-shadow: 0 0 36px 14px rgba(255,209,0,.9); animation: lamp 1.6s ease-in-out infinite; }
@keyframes lamp { 50% { box-shadow: 0 0 14px 4px rgba(255,209,0,.6); } }
.tower-on .top3 { box-shadow: 0 0 0 0 rgba(34,211,238,.8); animation: tower 1.2s ease-out infinite; background: #22D3EE !important; }
@keyframes tower { to { box-shadow: 0 0 0 40px rgba(34,211,238,0); } }
.bb3 { position: absolute; left: 0; top: 0; pointer-events: none; }
.bb3-in { width: 100%; height: 100%; transform-origin: 50% 100%; pointer-events: auto; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bb3-in:focus-visible { outline: 2px solid var(--primary); border-radius: 10px; }
.agent3 { display: flex; flex-direction: column; align-items: center; gap: 2px; transform-style: flat; }
.agent3 * { transform-style: flat; }
.nametag { background: var(--surface); border: 2px solid; border-radius: 999px; padding: 1px 9px; font-size: 11.5px; white-space: nowrap; color: var(--text); box-shadow: var(--shadow); }
.bb3.sel .nametag { background: var(--primary); color: var(--on-primary); }
.bubble3 { max-width: 210px; background: var(--surface); color: var(--text); border-radius: 12px; padding: 6px 9px; font-size: 11.5px; line-height: 1.3; box-shadow: var(--shadow-lg);
  position: relative; margin-bottom: 4px; animation: pop .25s ease-out; display: flex; gap: 6px; align-items: flex-start; }
.bubble3::after { content: ''; position: absolute; bottom: -6px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--surface); }
.bubble3.err { background: var(--danger-soft); color: var(--danger); } .bubble3.err::after { border-top-color: var(--danger-soft); }
.bubble3.live { outline: 2px solid var(--accent); }
.bubble3 .txt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.dots { display: inline-flex; gap: 2px; padding-top: 5px; } .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-3px); opacity: .4; } }
.person .head { transform-origin: 27px 30px; }
.person.m-work .head { animation: nod 1.6s ease-in-out infinite; }
.person.m-work .arm-l { animation: type .28s ease-in-out infinite alternate; transform-origin: 9px 44px; }
.person.m-work .arm-r { animation: type .28s ease-in-out infinite alternate-reverse; transform-origin: 45px 44px; }
.person .antenna { animation: none; } .person.m-work .antenna { animation: blink .8s infinite; }
/* rotina do escritório */
.person .arm-l { transform-origin: 9px 44px; } .person .arm-r { transform-origin: 45px 44px; }
.person .prop > * { display: none; }
.person.m-idle .body { animation: breathe 3.2s ease-in-out infinite; transform-origin: 27px 70px; }
.person.m-walk .leg-l { animation: step .42s ease-in-out infinite alternate; transform-origin: 20px 66px; }
.person.m-walk .leg-r { animation: step .42s ease-in-out infinite alternate-reverse; transform-origin: 33px 66px; }
.person.m-walk .body { animation: bob .42s ease-in-out infinite alternate; }
.person.m-walk .arm-l { animation: swing .42s ease-in-out infinite alternate-reverse; } .person.m-walk .arm-r { animation: swing .42s ease-in-out infinite alternate; }
.person.m-sit .legs { transform: translateY(-8px) scaleY(.45); transform-origin: 27px 70px; } .person.m-sit .body { transform: translateY(6px); }
.person.m-sit .arm-r { transform: rotate(-35deg); } .person.m-sit .phone { display: block; transform: translate(4px, 30px); }
.person.m-sip .cup, .person.m-chat .cup { display: block; } .person.m-sip .arm-r { animation: sip 3.4s ease-in-out infinite; }
.person.m-phone .phone { display: block; } .person.m-phone .arm-r { transform: rotate(-150deg) translate(-2px, -4px); }
.person.m-phone .mouth, .person.m-chat .mouth { animation: talk .5s steps(2) infinite; transform-origin: 27px 30px; }
.person.m-stretch .arm-l { animation: stretch-l 2.6s ease-in-out infinite; } .person.m-stretch .arm-r { animation: stretch-r 2.6s ease-in-out infinite; }
.person.m-read .paper { display: block; } .person.m-read .arm-r { transform: rotate(-60deg); } .person.m-read .head { transform: rotate(6deg); }
.person.m-play .arm-l, .person.m-play .arm-r { animation: type .18s ease-in-out infinite alternate; }
.person.m-chat .head { animation: nod 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scaleY(1.02); } }
@keyframes step { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
@keyframes swing { from { transform: rotate(20deg); } to { transform: rotate(-20deg); } }
@keyframes bob { to { transform: translateY(-2px); } }
@keyframes sip { 0%, 60%, 100% { transform: rotate(0); } 70%, 90% { transform: rotate(-115deg); } }
@keyframes talk { 50% { transform: scaleY(1.8); } }
@keyframes stretch-l { 0%, 100% { transform: rotate(0); } 40%, 70% { transform: rotate(160deg); } }
@keyframes stretch-r { 0%, 100% { transform: rotate(0); } 40%, 70% { transform: rotate(-160deg); } }
.bb3.walker { transition: transform 3.2s ease-in-out; }
.mood { font-size: 11px; font-weight: 600; background: rgba(255,255,255,.92); color: #121316; border-radius: 999px; padding: 2px 8px; box-shadow: 0 1px 4px rgba(0,0,0,.15); white-space: nowrap; }
.rug { position: absolute; border-radius: 16px; background: repeating-linear-gradient(45deg, rgba(200,16,46,.10) 0 10px, rgba(200,16,46,.04) 10px 20px); }
.rug.alt { background: repeating-linear-gradient(-45deg, rgba(0,117,109,.10) 0 10px, rgba(0,117,109,.04) 10px 20px); }
.hq-wall .window { position: absolute; top: 30px; width: 90px; height: 120px; border: 6px solid #4C5159; border-radius: 6px;
  background: linear-gradient(#9CC9E8, #DCEFFA 70%, #B7D9A8 70%); box-shadow: inset 0 0 0 3px rgba(255,255,255,.4); }
.zone.z-compliance { background: rgba(77,124,15,.09); } .zone.z-copa { background: rgba(184,134,11,.07); } .zone.z-descanso { background: rgba(0,117,109,.07); }
.zone.z-convivencia { background: rgba(122,75,42,.06); }
.meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; } .meter i { display: block; height: 100%; border-radius: 999px; }
@keyframes nod { 50% { transform: rotate(5deg) translateY(1px); } }
@keyframes type { to { transform: rotate(-22deg); } }
@keyframes blink { 50% { opacity: .2; } }
.folder3 { position: absolute; left: 0; top: 0; transition: transform 1.2s cubic-bezier(.4,1.4,.5,1); }
.folder-tag { background: #121316; color: #FFD100; font: 700 11px/18px var(--font); padding: 0 6px; border-radius: 5px; box-shadow: var(--shadow); cursor: pointer; }
.folder-tag.st-awaiting_approval { background: #FFD100; color: #121316; animation: lamp 1.6s infinite; }
.folder-tag.st-published { background: #0D7A4E; color: #fff; } .folder-tag.st-failed { background: #B4141E; color: #fff; }
.floor-label { position: absolute; left: 0; top: 0; font-size: 12px; font-weight: 700; color: rgba(18,19,22,.55); white-space: nowrap; pointer-events: none; }
.floor-label.strong { color: #C8102E; }
.plant { width: 46px; height: 56px; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 35% 35%, #4ADE80, #15803D); }
.hq-hint { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: var(--muted); background: var(--surface); padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow); }
.hq-ctl { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 4px; }
@media (prefers-reduced-motion: reduce) { .bb3.walker { transition: none !important; } .person *, .folder3, .bubble3, .lamp-on .top3, .tower-on .top3, .dots i, .folder-tag { animation: none !important; transition: none !important; } }

.agency { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.agency-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surface); flex-wrap: wrap; }
.agency-body { display: grid; grid-template-columns: 1fr 360px; min-height: 0; }
.feed { border-left: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.feed-list { overflow: auto; flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.ev { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.35; }
.ev .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 4px; }
.ev.human { background: var(--accent-soft); border-radius: 8px; padding: 4px 6px; }
.ev.error { color: var(--danger); }
.chip { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.chip b { color: var(--text); }

/* pautas e aprovação */
.case-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.case-card:hover { background: var(--surface-2); }
.thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--surface-2); flex: none; }
.progress { display: flex; gap: 4px; flex-wrap: wrap; }
.progress .st { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--faint); }
.progress .st.done { background: var(--accent-soft); color: var(--accent); } .progress .st.now { background: var(--primary); color: var(--on-primary); }
.approval { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; }
.phone { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); position: sticky; top: 12px; }
.phone .ig-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 650; font-size: 13px; }
.phone .ig-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(45deg, #F59E0B, #DB2777, #7C3AED); padding: 2px; }
.phone .ig-avatar div { width: 100%; height: 100%; border-radius: 50%; background: var(--surface); }
.ig-media { position: relative; aspect-ratio: 4/5; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.ig-media img { width: 100%; height: 100%; object-fit: cover; }
.ig-media .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); cursor: pointer; }
.ig-dots { display: flex; gap: 4px; justify-content: center; padding: 8px 0 2px; } .ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); } .ig-dots i.on { background: #3B82F6; }
.ig-caption { padding: 6px 12px 14px; font-size: 13px; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow: auto; }
.ig-caption .tags { color: #2563EB; }
.media-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.media-item { position: relative; width: 92px; } .media-item img { width: 92px; height: 115px; object-fit: cover; border-radius: 8px; display: block; }
.media-item .acts { display: flex; justify-content: space-between; margin-top: 3px; }
.media-item .n { position: absolute; left: 4px; top: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; border-radius: 4px; padding: 0 5px; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.tl-item { display: grid; grid-template-columns: 34px 1fr; gap: 8px; }
.tl-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
details.out summary { cursor: pointer; font-size: 12px; color: var(--primary); }
details.out pre { white-space: pre-wrap; font-size: 11.5px; background: var(--surface-2); padding: 8px; border-radius: 6px; max-height: 300px; overflow: auto; }
@media (max-width: 1100px) { .agency-body { grid-template-columns: 1fr; grid-template-rows: 1fr 260px; } .feed { border-left: 0; border-top: 1px solid var(--border); } .approval { grid-template-columns: 1fr; } .phone { position: static; } }

/* Still We Rise: fila de postagem, motor viral, validação */
.folder-tag.st-approved { background: #00756D; color: #fff; }
.folder-tag.st-validating { background: #E3F3F1; color: #00514B; } .folder-tag.st-viral { background: #FFD100; color: #121316; }
.zone.z-validacao { background: rgba(0,117,109,.08); } .zone.z-viral { background: rgba(255,209,0,.12); }
.zone.z-gestao { background: rgba(200,16,46,.06); } .zone.z-postagem { background: rgba(76,81,89,.08); }
.board.queue-board { left: 620px; width: 360px; }
.board-row { display: flex; gap: 8px; align-items: center; color: #F2F2EF; font-size: 11.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; cursor: pointer; }
.board-row b { color: #FFD100; font-family: var(--mono); font-weight: 700; min-width: 74px; }
.board-row span { overflow: hidden; text-overflow: ellipsis; }
.brand-word { font-weight: 850; font-style: italic; letter-spacing: .02em; text-transform: uppercase; font-size: 14px; }
.chip-yellow { background: var(--yellow); color: var(--on-yellow); border-color: transparent; }
.score { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 10px; font: 800 18px/1 var(--font);
  background: var(--carbon); color: var(--yellow); }
.score.lo { color: #FF8A94; } .score.mid { color: #FFD100; } .score.hi { color: #2BD4C4; }
.hook { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; display: flex; gap: 10px; align-items: flex-start; }
.hook.chosen { border-color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
.hook .nota { font: 700 12px/20px var(--mono); color: var(--muted); }
.queue-item { display: grid; grid-template-columns: 104px 56px minmax(0, 1fr); gap: 6px 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.queue-item:last-child { border-bottom: 0; }
.queue-item > .row:last-child { grid-column: 3; justify-content: flex-start !important; }
.queue-item .when { font-weight: 700; line-height: 1.2; } .queue-item .when small { display: block; font-weight: 500; color: var(--muted); }
.queue-item img, .queue-item .thumb { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.day-chips { display: inline-flex; gap: 3px; } .day-chips button { width: 30px; height: 28px; border-radius: 6px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--muted); font: 600 12px/1 var(--font); cursor: pointer; }
.day-chips button.on { background: var(--carbon); color: var(--yellow); border-color: var(--carbon); }
@media (max-width: 720px) { .queue-item { grid-template-columns: 80px minmax(0, 1fr); } .queue-item .thumb, .queue-item img { display: none; } .queue-item > .row:last-child { grid-column: 1 / -1; } }
.queue-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .queue-layout { grid-template-columns: 1fr; } }
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pipeline a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); text-decoration: none; border-top: 3px solid var(--dept, var(--primary)); }
.pipeline a b { font-size: 22px; line-height: 1.1; } .pipeline a span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 820px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

:root[data-theme="dark"] .floor-label, :root[data-theme="dark"] .zone span { color: rgba(242,242,239,.62); }
:root[data-theme="dark"] .zone { border-color: rgba(242,242,239,.14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .floor-label, :root:not([data-theme="light"]) .zone span { color: rgba(242,242,239,.62); }
  :root:not([data-theme="light"]) .zone { border-color: rgba(242,242,239,.14); } }
:root[data-theme="dark"] .floor-label.strong { color: #FF4D5E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .floor-label.strong { color: #FF4D5E; } }

/* ---------- tela de entrada: grid de largada (sempre carbono, independente do tema) ---------- */
.grid-login { --cb: #0D0E10; --cb2: #17181B; --cb3: #202227; --paper: #F2F2EF; --silver: #A2A7AE; --red: #C8102E; --red-hi: #FF3347; --helmet: #FFD100;
  --timing: "Bahnschrift", "DIN Alternate", "DIN 2014", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
  min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); background: var(--cb); color: var(--paper); font-family: var(--timing); }
.grid-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 44px; padding: 56px clamp(24px, 6vw, 88px);
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(200,16,46,.10) 62% 63%, transparent 63%),
    repeating-linear-gradient(90deg, rgba(242,242,239,.035) 0 1px, transparent 1px 64px), var(--cb); }
.grid-brand { display: flex; align-items: center; gap: 14px; }
.grid-word { font-size: clamp(30px, 4.2vw, 54px); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: .01em; line-height: .95;
  transform: skewX(-6deg); }
.grid-lede { max-width: 46ch; font-size: 17px; line-height: 1.5; color: var(--silver); font-family: system-ui, sans-serif; }
.gantry { display: grid; grid-template-columns: repeat(5, minmax(0, 76px)); gap: 14px; padding: 18px 18px 14px; width: max-content; max-width: 100%;
  background: linear-gradient(#1b1c20, #111215); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(242,242,239,.07), 0 18px 40px rgba(0,0,0,.45); }
.gantry-col { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.gantry-col span { font-size: 12px; color: var(--silver); text-align: center; line-height: 1.15; letter-spacing: .02em; }
.lamp { display: grid; gap: 8px; padding: 9px; background: #0a0a0c; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(242,242,239,.06); }
.lamp i { display: block; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #3a1016, #1a0a0c 70%);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.6); transition: background .08s, box-shadow .08s; }
.lamp.on i { background: radial-gradient(circle at 38% 34%, #ff8a96, var(--red-hi) 38%, var(--red) 70%); box-shadow: 0 0 22px 4px rgba(255,51,71,.55), inset 0 -3px 6px rgba(0,0,0,.25); }
.gantry.out .lamp i { transition: background .05s, box-shadow .05s; }
.speed { position: absolute; right: -40px; bottom: -30px; width: 360px; height: 260px; pointer-events: none; opacity: .9; }
.speed b { position: absolute; display: block; width: 100%; height: 14px; border-radius: 7px; transform: rotate(-32deg); transform-origin: left; }
.speed b:nth-child(1) { background: var(--red); bottom: 40px; left: 60px; width: 300px; }
.speed b:nth-child(2) { background: var(--red); opacity: .55; bottom: 10px; left: 100px; width: 260px; }
.speed b:nth-child(3) { background: var(--helmet); bottom: -20px; left: 140px; width: 220px; height: 9px; }
.grid-panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--cb2); border-left: 4px solid var(--red); }
.pit { width: min(380px, 100%); display: flex; flex-direction: column; gap: 16px; }
.pit h1 { font-size: 28px; font-weight: 800; letter-spacing: 0; }
.pit-sub { color: var(--silver); font: 15px/1.5 system-ui, sans-serif; margin-top: -6px; }
.pit-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--paper); }
.pit-field input { font: 17px/1.2 system-ui, sans-serif; color: var(--paper); background: var(--cb); border: 1px solid #4C5159; border-radius: 8px; padding: 12px 14px; min-height: 48px; }
.pit-field input:focus-visible { outline: 2px solid var(--helmet); outline-offset: 1px; border-color: transparent; }
.pit-field input::placeholder { color: #6E737A; }
.pit-err { background: rgba(255,51,71,.12); color: #FF8A94; border-left: 3px solid var(--red-hi); padding: 10px 12px; border-radius: 6px; font: 14px/1.4 system-ui, sans-serif; }
.pit-go { margin-top: 6px; min-height: 52px; border: 0; border-radius: 8px; background: var(--red); color: #fff; font: 800 18px/1 var(--timing); letter-spacing: .03em;
  font-style: italic; cursor: pointer; }
.pit-go:hover { background: #A60D26; }
.pit-go:focus-visible, .pit-link:focus-visible { outline: 2px solid var(--helmet); outline-offset: 2px; }
.pit-go:disabled { background: #5a1420; cursor: progress; }
.pit-link { align-self: flex-start; background: none; border: 0; color: var(--silver); font: 14px system-ui, sans-serif; text-decoration: underline; cursor: pointer; padding: 4px 0; }
@media (max-width: 860px) {
  .grid-login { grid-template-columns: 1fr; }
  .grid-hero { gap: 22px; padding: 28px 16px 26px; }
  .grid-lede { font-size: 15px; }
  .gantry { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 10px; width: 100%; }
  .gantry-col { align-items: stretch; } .lamp { padding: 5px; gap: 5px; width: 100%; justify-items: center; } .lamp i { width: min(100%, 40px); height: auto; aspect-ratio: 1; }
  .gantry-col span { font-size: 10.5px; }
  .speed { width: 200px; height: 150px; right: -60px; bottom: -40px; opacity: .5; }
  .grid-panel { border-left: 0; border-top: 4px solid var(--red); padding: 28px 16px 40px; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .lamp i { transition: none; } }
.bb3.walker .agent3 { pointer-events: none; }
.bb3.walker .nametag, .bb3.walker .person, .bb3.walker .bubble3, .bb3.walker .mood { pointer-events: auto; }
/* aprovação em lote e lotes de produtos */
.bulkbar { position: sticky; top: 0; z-index: 5; align-items: center; padding: 10px 14px; }
.case-card .pick { width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.case-card.sel { background: var(--primary-soft, rgba(200,16,46,.06)); }
.batch-thumb { display: grid; place-items: center; font: 800 20px/1 var(--font); color: var(--primary); }
@media (max-width: 760px) { .hide-sm { display: none; } }
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; } .progress i { display: block; height: 100%; background: var(--primary); transition: width .4s; }
/* escritório de verdade: piso de madeira, carpetes, paredes com janelas, vidro e mobília */
.hq.office { background: radial-gradient(ellipse at 50% 30%, #F4F1EC, #DCD6CC); }
.hq.office.is-full { background: radial-gradient(ellipse at 50% 30%, #F4F1EC, #CFC8BC); }
.hq-floor.wood { background-color: #C9A27A; box-shadow: 0 0 0 10px #8A6A4C, 0 30px 80px rgba(0,0,0,.25);
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, #C9A27A 0 22px, #C29A70 22px 23px, #CDA780 23px 45px, #BF966C 45px 46px); }
.hq.office .zone { border: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.hq.office .zone span { font-size: 12px; color: rgba(18,19,22,.45); letter-spacing: .12em; }
.hq.office .zone.z-redacao { background: repeating-linear-gradient(45deg, #9AA5B1 0 6px, #95A0AC 6px 12px); }
.hq.office .zone.z-validacao { background: repeating-linear-gradient(45deg, #9FB8B3 0 6px, #9AB3AE 6px 12px); }
.hq.office .zone.z-viral { background: repeating-linear-gradient(45deg, #C9B98F 0 6px, #C4B48A 6px 12px); }
.hq.office .zone.z-compliance { background: repeating-linear-gradient(45deg, #AAB89A 0 6px, #A5B395 6px 12px); }
.hq.office .zone.z-gestao { background: repeating-linear-gradient(45deg, #7E7A86 0 6px, #79757F 6px 12px); }
.hq.office .zone.z-postagem { background: repeating-linear-gradient(45deg, #8E949B 0 6px, #899097 6px 12px); }
.hq.office .zone.z-copa { background-color: #EDEAE4; background-image: linear-gradient(45deg, #DCD7CE 25%, transparent 25%, transparent 75%, #DCD7CE 75%), linear-gradient(45deg, #DCD7CE 25%, transparent 25%, transparent 75%, #DCD7CE 75%);
  background-size: 40px 40px; background-position: 0 0, 20px 20px; }
.hq.office .zone.z-descanso { background: transparent; box-shadow: none; }
.hq.office .zone.z-convivencia { background: transparent; box-shadow: none; }
.hq.office .zone.z-gestao span, .hq.office .zone.z-postagem span { color: rgba(255,255,255,.7); }
.office-wall { background: linear-gradient(#F7F5F1, #EAE6DF) !important; box-shadow: inset 0 -14px 0 #D9D3C9; display: block !important; }
.hq-wall-side.office-wall { background: linear-gradient(90deg, #EAE6DF, #F7F5F1) !important; box-shadow: inset -14px 0 0 #D9D3C9; }
.hq-wall.office-wall { position: absolute; left: 0; transform-origin: bottom; transform: rotateX(-90deg); }
.hq-wall-side.office-wall { position: absolute; top: 0; transform-origin: right; transform: rotateY(90deg); }
.office-wall .window { position: absolute; top: 34px; width: 86px; height: 120px; border: 6px solid #4C5159; border-radius: 4px;
  background: linear-gradient(180deg, #8EC5E8 0%, #CDE7F7 60%, #A7C99A 60%, #8DB37F 100%); box-shadow: inset 0 0 0 3px rgba(255,255,255,.45); }
.office-wall .window.side { width: 130px; height: 120px; background: linear-gradient(90deg, #8DB37F 0%, #A7C99A 40%, #CDE7F7 40%, #8EC5E8 100%); }
.wall-sign { position: absolute; left: 600px; top: 176px; font: 900 18px/1 var(--font); letter-spacing: .3em; color: #C8102E; }
.wall-sign small { font-size: 10px; letter-spacing: .2em; color: #4C5159; margin-left: 6px; }
.office-wall .clock { position: absolute; top: 40px; width: 0; font: 700 12px/1 var(--mono); color: #121316; }
.glass3 { position: absolute; background: linear-gradient(180deg, rgba(219,234,254,.35), rgba(191,219,254,.18)); border: 3px solid rgba(76,81,89,.75); border-bottom-width: 6px;
  box-shadow: inset 0 0 18px rgba(255,255,255,.35); pointer-events: none; }
.plant.big { width: 60px; height: 88px; border-radius: 45% 45% 35% 35%; background: radial-gradient(circle at 35% 30%, #4ADE80, #166534); }
.hq-cams { position: absolute; left: 12px; top: 10px; display: flex; gap: 4px; flex-wrap: wrap; }
.hq-ctl { flex-wrap: wrap; justify-content: flex-end; max-width: 70%; }
.agency-body.wide { grid-template-columns: 1fr !important; } .agency-body.wide .feed { display: none; }
