/* Complementos do app real. O visual base vem dos CSS do protótipo v7 (copiados sem alteração). */
a.project-station, a.studio-desk { text-decoration: none; color: inherit; display: block; }
a.strategy-station { text-decoration: none; color: white; }
a.strategy-station h2 { color: white; }
a.project-station { display: flex; }
.studio-desk.is-locked { opacity: .55; cursor: not-allowed; }
.tabs a { padding: 8px 14px; font-size: 14px; border-radius: 5px; text-decoration: none; color: inherit; }
.tabs a.active { background: white; box-shadow: 0 2px 3px #26114b09; color: var(--purple); }
a.btn { text-decoration: none; color: inherit; }
button.nav-item { background: none; border: 0; cursor: pointer; font: inherit; }
.boot, .loading { padding: 60px; color: var(--muted); text-align: center; }
.flex.wrap { flex-wrap: wrap; gap: 12px; align-items: center; }
.spacer { height: 24px; }

/* Login */
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, #efe4ff, transparent 45%), var(--bg); padding: 16px; }
.login-card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 36px; width: min(420px, 100%); box-shadow: 0 30px 80px #2a145010; }
.login-card .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-bottom: 26px; }
.login-card .logo img { width: 34px; }
.login-card .logo span { font-family: var(--heading); font-size: 20px; }
.login-card h1 { font-family: var(--heading); font-size: 30px; margin: 0 0 6px; }
.login-card input { width: 100%; }
.login-card .btn { width: 100%; margin-top: 22px; }
.form-error { color: #c65e70; font-size: 15px; margin: 12px 0 0; }
.fine { font-size: 14px; color: var(--muted); margin-top: 20px; }

/* Estado vazio / restrito */
.empty-state { max-width: 560px; margin: 40px auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.empty-state h1 { font-family: var(--heading); }

/* Tráfego */
.weekly-board section.is-today { outline: 2px solid #d9c4fb; outline-offset: -2px; }
.client-work .carry-note { font-size: 13px; color: #8a7ca6; margin: 6px 0 0; }
.client-work .carry-note.warn, .flow-item small.warn { color: #b47922; }
.flow-item { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 16px; letter-spacing: 0; color: var(--ink); }
.flow-item input { width: auto; margin-top: 3px; }
.flow-item small { grid-column: 2; font-size: 13px; color: var(--muted); }
.flow-item.carried { grid-template-columns: 1fr; color: var(--muted); }
.flow-item.carried small { grid-column: 1; }
.inline-form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.inline-form input { flex: 1; min-width: 140px; width: auto; }
.inline-form .btn { margin-top: 0; width: auto; align-self: stretch; }
.source-note { white-space: pre-wrap; }
.history-entry { font-size: 14px; }
.audit-list > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.audit-list label { margin: 0; font-size: 15px; letter-spacing: 0; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.audit-list input { width: auto; }

/* Design */
.quota { margin-left: auto; font-size: 13px; font-weight: 600; color: #7737c5; background: #f1e8ff; padding: 3px 7px; border-radius: 5px; }
.quota.example { color: #b47922; background: #fff2df; }
.compact-client header .quota + .textbtn { margin-left: 6px; }
.post-status.st-aguardando_cliente { background: #fff2df; color: #b47922; }
.post-status.st-alteracoes_solicitadas { background: #fff0f1; color: #c65e70; }
.post-status.st-postado { background: #e4f7ef; color: #198363; }
.status-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; margin: 0; font-size: 15px; letter-spacing: 0; color: var(--ink); cursor: pointer; }
.chip input { width: auto; margin: 0; }
.chip:has(input:checked) { border-color: var(--purple); background: #f6f0ff; color: var(--purple); }
.edit-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.edit-details summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.sector-boxes { border: 0; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sector-boxes legend { font-size: 14px; margin-bottom: 8px; padding: 0; }

/* Clientes */
.client-search { width: min(360px, 100%); }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }
.client-tile { display: flex; gap: 14px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.client-tile h3 { margin: 0 0 4px; font-size: 17px; }
.client-tile small { color: var(--muted); font-size: 14px; }
.client-tile .textbtn { margin-left: auto; white-space: nowrap; }
.client-monogram.big { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 16px; }

/* Administração */
.admin-table { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 14px; margin-top: 18px; }
.admin-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th, .admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.admin-table tr.inactive td { opacity: .55; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 18px; }
.card.narrow { max-width: 520px; }
.card input { width: 100%; }
ul.plain { list-style: none; padding: 0; margin: 10px 0; font-size: 15px; }
ul.plain li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.temp-password code { font-size: 22px; letter-spacing: .08em; background: #f6f0ff; padding: 10px 16px; border-radius: 10px; display: inline-block; user-select: all; }

@media (max-width: 720px) {
  .main { padding-left: 16px; padding-right: 16px; }
  .admin-table table { min-width: 640px; }
}

/* Ajustes de formulário sobre as regras genéricas do protótipo */
.dialog-body label.chip, .status-choices label.chip, .sector-boxes label.chip { display: inline-flex; margin: 0; width: auto; }
.dialog-body .chip input[type=radio], .dialog-body .chip input[type=checkbox], .flow-item input[type=checkbox], .audit-list input[type=checkbox] { width: auto; padding: 0; border: 0; margin: 0; accent-color: var(--purple); }
.main p a, .dialog-body p a { color: var(--purple); font-weight: 600; }

/* Gestão de marketing */
.plan-layout { display: grid; grid-template-columns: 260px 1fr; gap: 18px; margin-top: 18px; align-items: start; }
.plan-clients { display: grid; gap: 6px; max-height: 75vh; overflow: auto; }
.plan-chip { display: grid; gap: 5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; text-decoration: none; color: var(--ink); font-size: 15px; }
.plan-chip .tag { justify-self: start; }
.plan-chip.active { border-color: var(--purple); box-shadow: 0 0 0 2px #f1e8ff; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.plan-grid textarea, .plan-grid input { width: 100%; }
.plan-side .btn { width: 100%; margin-top: 10px; }
.plan-side h3 { margin-top: 22px; }

/* Gestor de projetos */
.briefing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 18px 0; }
.briefing-card { text-align: left; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 6px; cursor: pointer; font: inherit; color: var(--ink); }
.briefing-card:hover { border-color: #c4afe6; }
.briefing-card h3 { margin: 6px 0 0; font-size: 17px; }
.briefing-card p { margin: 0; font-size: 15px; color: var(--muted); }
.briefing-card small { color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .plan-layout, .plan-grid { grid-template-columns: 1fr; }
  .plan-clients { max-height: none; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
.plan-grid label { display: block; font-size: 14px; color: var(--muted); margin: 16px 0 6px; letter-spacing: 0; }
.plan-grid h2 { margin: 0 0 6px; font-size: 22px; }

/* Sininho */
.bell { position: relative; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--muted); }
.bell .icon svg { width: 20px; height: 20px; }
.bell-count { position: absolute; top: 0; right: 0; background: #d23f5a; color: white; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 5px; }
.notif-list { display: grid; gap: 8px; margin: 12px 0; }
.notif { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.notif small { color: var(--muted); font-size: 13px; }
.notif.unread { border-color: #c4afe6; background: #faf6ff; }

/* Financeiro */
.fin-h { font-size: 18px; margin: 22px 0 10px; }
.fin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.fin-tile { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.fin-tile small { color: var(--muted); font-size: 13px; }
.fin-tile b { font-family: var(--heading); font-size: 20px; }
.fin-tile span { font-size: 13px; color: var(--muted); }
.fin-tile.good b { color: #198363; }
.fin-tile.bad b { color: #c65e70; }
.fin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fin-table th, .fin-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.admin-table tfoot td { background: #faf9fc; }
.preview-table input.ov { width: 100%; min-width: 80px; padding: 6px 8px; }
.preview-table input.ov.narrow { min-width: 50px; width: 60px; }
.preview-table input[type=checkbox].ov { width: auto; min-width: 0; accent-color: var(--purple); }
.preview-table tr.has-error td { background: #fff7f8; }
.mbadge { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; padding: 2px 5px; border-radius: 4px; margin: 1px; background: #f0eff5; color: #77718d; }
.mbadge.criar_pago { background: #e4f7ef; color: #198363; }
.mbadge.criar_aberto { background: #fff0f1; color: #c65e70; }
.mbadge.pagar_existente { background: #e7f0ff; color: #2f5fb3; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; }
.warn-line { display: block; color: #b47922; font-size: 13px; margin-top: 3px; }
.tag.red { background: #fff0f1; color: #c65e70; }
.card label:not(.chip) { display: block; margin: 14px 0 6px; font-size: 14px; color: var(--muted); letter-spacing: 0; }
.card select, .card input[type=file], .card input[type=month], .card input[type=number] { width: 100%; }
.card h2 { font-size: 20px; }

/* ---- Refino de legibilidade (v0.9): textos maiores, mais respiro, contraste melhor ---- */
:root { --muted: #6b6980; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
.sidebar { width: 256px; padding: 28px 16px 20px; }
.nav-item { padding: 12px 14px; font-size: 15px; margin: 2px 0; color: #5d5972; }
.nav-item.active, .nav-item:hover { color: var(--purple); }
main { max-width: 1760px; }
@media (min-width: 1151px) { .shell { margin-left: 256px; } main { padding: 36px 44px 64px; } }
h1 { line-height: 1.15; }
.btn { padding: 12px 20px; font-size: 15px; border-radius: 10px; }
.btn.primary:hover { filter: brightness(1.06); }
input, select, textarea { padding: 12px 13px; font-size: 15px; border-radius: 9px; }
label { font-size: 14px; letter-spacing: .02em; color: #5d5972; margin: 18px 0 7px; }
small, .muted { font-size: 13px; }
.tabs a { padding: 10px 18px; font-size: 14px; }
.admin-table table { font-size: 15px; }
.admin-table th { font-size: 12px; }
.briefing-card, .client-tile, .card { padding: 20px; }
.briefing-card h3 { font-size: 18px; margin: 8px 0 6px; }
.briefing-grid { gap: 16px; }
.tag { font-size: 12px; padding: 4px 10px; }
.notice { font-size: 14px; line-height: 1.55; padding: 14px 18px; }
.flow-item { font-size: 15px; padding: 12px 0; }
.chip { font-size: 14px; padding: 9px 14px; }
.modal, .modal-card { font-size: 15px; }
@media (max-width: 1024px) { main { padding: 22px 16px 48px; } }

/* Quadro semanal mais compacto, na proporção do Trello (mais cards visíveis, título + prévia) */
.weekly-board { gap: 10px; }
.weekly-board > section { padding: 8px; border-radius: 12px; }
.client-work { padding: 12px 13px; margin-bottom: 8px; border-radius: 10px; }
.client-work h3 { font-size: 16px; margin: 8px 0 6px; line-height: 1.3; }
.client-work footer { font-size: 13px; padding-top: 8px; margin-top: 8px; }
.client-work .flow-item, .client-work li { font-size: 14px; }

/* Topo enxuto: os cards sobem e a tela é melhor aproveitada */
.topbar { height: 52px; }
@media (min-width: 1151px) { main { padding: 18px 32px 40px; } }
.pagehead { margin-bottom: 10px; align-items: center; }
.pagehead h1 { font-size: 28px; }
.pagehead p { margin: 2px 0 0; font-size: 14px; }
.eyebrow { display: none; }
.toolbar { margin-bottom: 12px; }
.tabs a, .tabs button { padding: 7px 14px; }
.btn { padding: 9px 16px; }
.weekly-board > section { min-height: 0; }
.stats { margin-bottom: 14px; }

/* Financeiro em planilha (linhas × meses) */
.grid-wrap { overflow: auto; background: white; border: 1px solid var(--line); border-radius: 14px; max-height: calc(100vh - 290px); }
.fin-grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; min-width: 1100px; }
.fin-grid th, .fin-grid td { padding: 0; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.fin-grid thead th { position: sticky; top: 0; background: #faf9fc; z-index: 3; font-size: 12px; letter-spacing: .05em; color: var(--muted); padding: 11px 6px; }
.fin-grid .gname { position: sticky; left: 0; background: white; z-index: 2; text-align: left; padding: 8px 14px; min-width: 200px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; font-weight: 500; border-right: 1px solid var(--line); }
.fin-grid thead .gname { background: #faf9fc; z-index: 4; }
.fin-grid .gval, .fin-grid .gday { padding: 8px 10px; color: #5d5972; }
.fin-grid .soft-num { color: var(--muted); font-size: 13px; }
.fin-grid .gm.now, .fin-grid .gnum.now { background: #f4ecff; color: var(--purple); }
.fin-grid tbody tr:hover .gname, .fin-grid tbody tr:hover td { background: #fbf8ff; }
.gc-td { padding: 4px !important; min-width: 52px; }
.fcell { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; border-radius: 8px; font-weight: 700; font-size: 13px; border: 1px solid transparent; cursor: pointer; }
.fcell.pg { background: #e4f7ef; color: #198363; }
.fcell.late { background: #fff0f1; color: #c65e70; border-color: #f6cdd2; }
.fcell.part { background: #fff2df; color: #b47922; }
.fcell.soon { background: #f4f2f8; color: #a39db3; }
.fcell.blank { background: transparent; color: transparent; }
.fin-grid td:hover .fcell.blank { color: #b5a2cf; background: #f7f4fb; }
.fcell:hover { filter: brightness(.96); border-color: #c9b3ee; }
.fin-grid tfoot th, .fin-grid tfoot td { position: sticky; bottom: 0; background: #faf9fc; font-weight: 600; padding: 9px 6px; z-index: 2; }
.fin-grid tfoot tr:nth-child(1) th, .fin-grid tfoot tr:nth-child(1) td { bottom: 82px; }
.fin-grid tfoot tr:nth-child(2) th, .fin-grid tfoot tr:nth-child(2) td { bottom: 41px; }
.fin-grid tfoot tr:nth-child(3) th, .fin-grid tfoot tr:nth-child(3) td { bottom: 0; }
.fin-grid tfoot .gnum { font-size: 13px; }
.fin-grid tfoot .good .gnum { color: #198363; }
.grid-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.grid-legend .fcell { min-width: 30px; height: 24px; cursor: default; }
.gcell-entry { padding: 4px 0; }
@media (max-width: 800px) { .grid-wrap { max-height: none; } .fin-grid .gname { min-width: 150px; } }
.fin-grid { min-width: 0; table-layout: auto; }
.fin-grid tbody th.gname, .fin-grid tfoot th.gname { font-size: 14px; letter-spacing: 0; color: var(--ink); text-transform: none; padding: 6px 12px; min-width: 170px; max-width: 220px; background: white; }
.fin-grid tfoot th.gname { background: #faf9fc; font-size: 13px; color: var(--muted); }
.fin-grid tbody tr { height: 44px; }
.fin-grid .gval, .fin-grid .gday { padding: 6px 8px; font-size: 13px; }
.gc-td { min-width: 44px; padding: 3px !important; }
.fcell { min-width: 38px; height: 30px; }
.fin-grid tfoot tr { height: 36px; }
.fin-grid tfoot tr:nth-child(1) th, .fin-grid tfoot tr:nth-child(1) td { bottom: 72px; }
.fin-grid tfoot tr:nth-child(2) th, .fin-grid tfoot tr:nth-child(2) td { bottom: 36px; }
.fin-grid tfoot .gnum { font-size: 12px; padding: 6px 2px; }

/* Atalhos do topo: esconder/mostrar menu e voltar */
.topbar { gap: 8px; justify-content: flex-start; }
.topbar .top-right { margin-left: auto; }
.top-btn { width: 38px; height: 38px; border-radius: 10px; display: inline-grid; place-items: center; color: #5d5972; flex: none; }
.top-btn:hover { background: #f1e9fc; color: var(--purple); }
.top-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar .breadcrumb { margin-left: 8px; }
.mobile-menu { display: none !important; }
.sidebar, .shell { transition: transform .2s, margin-left .2s; }
@media (min-width: 801px) {
  body.side-collapsed .sidebar { transform: translateX(-100%); box-shadow: none; }
  body.side-collapsed .shell { margin-left: 0 !important; }
}

/* Logos dos clientes em círculo (iniciais continuam como reserva) */
.client-logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #fff; border: 1px solid var(--line); flex: none; vertical-align: middle; padding: 0; }
.client-logo.lg { width: 52px; height: 52px; }
.client-logo.sm { width: 26px; height: 26px; margin-right: 8px; }
.client-monogram { border-radius: 50%; }
.client-monogram.big { width: 52px; height: 52px; }
.client-work h3, .briefing-card h3 { display: flex; align-items: center; }

/* Presença da equipe */
.presence-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c9c5d6; border: 2px solid #fff; vertical-align: middle; }
.presence-dot.on { background: #1fb86a; box-shadow: 0 0 0 3px rgba(31,184,106,.18); }
.portrait { position: relative; }
.portrait .presence-dot { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; }
.person-now { font-size: 14px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.person-now b.on { color: #12894c; }
.desk-people { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.desk-person { display: inline-flex; align-items: center; gap: 6px; }
.desk-initial { position: relative; width: 28px; height: 28px; border-radius: 50%; background: #f1eafa; color: #6a0fe0; display: inline-grid; place-items: center; font-weight: 600; font-size: 13px; }
.desk-initial .presence-dot { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; }

/* Busca (Ctrl+K), Meu dia, painel do cliente, carga, arrastar */
.top-search { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; margin-right: 10px; }
.top-search kbd { font: inherit; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: #f8f8fb; }
#pal-q { width: 100%; font-size: 17px; padding: 12px 14px; }
.pal-list { max-height: 52vh; overflow: auto; margin-top: 10px; }
.pal-group { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 12px 4px 4px; }
.pal-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.pal-row span { display: flex; flex-direction: column; min-width: 0; }
.pal-row small { color: var(--muted); font-size: 13px; }
.pal-row.sel, .pal-row:hover { background: #f1eafa; }
.pal-hint { font-size: 13px; margin: 10px 0 0; }
.day-sub { font-size: 17px; margin: 22px 0 10px; }
.myday-card { margin-bottom: 12px; display: block; text-decoration: none; color: inherit; }
.myday-card header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.myday-card.is-overdue { border-left: 4px solid #f59e0b; }
.myday-client { display: inline-flex; align-items: center; gap: 8px; }
.myday-item { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 16px; cursor: pointer; }
.myday-item input { margin-top: 5px; width: 18px; height: 18px; }
.myday-item.is-done span { text-decoration: line-through; color: var(--muted); }
.cpanel-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.cpanel-head h1 { margin: 2px 0; font-size: 28px; }
.cpanel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.cpanel-card h2 { font-size: 16px; margin: 0 0 10px; }
.cpanel-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.cpanel-row:first-of-type { border-top: 0; }
.cpanel-row small { color: var(--muted); text-align: right; flex: none; max-width: 48%; }
.cpanel-row.late span { color: #b45309; }
.client-tile h3 a { color: inherit; text-decoration: none; }
.client-tile h3 a:hover { text-decoration: underline; }
.tile-actions { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.logo-edit { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.workload { margin-top: 34px; }
.load-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.load-table th, .load-table td { text-align: center; padding: 10px 8px; border-top: 1px solid var(--line); }
.load-table th:first-child, .load-table td:first-child { text-align: left; }
.load-cell { display: inline-grid; place-items: center; min-width: 34px; height: 30px; border-radius: 8px; background: #f3f2f7; font-weight: 600; }
.load-cell.l1 { background: #e7f6ef; color: #12894c; } .load-cell.l2 { background: #fdf3d6; color: #8a6100; }
.load-cell.l3 { background: #fde3cc; color: #a24a00; } .load-cell.l4 { background: #fbd5d5; color: #a11; }
.load-table small { display: block; color: var(--muted); font-size: 11px; }
[data-drag] { cursor: grab; }
.dragging { opacity: .45; }
.drop-over { outline: 2px dashed #6a0fe0; outline-offset: -4px; background: #f6f0ff; border-radius: 12px; }
@media (max-width: 800px) { .top-search kbd { display: none; } }

/* Cards compactos do roteiro (estilo Trello): só o nome do cliente e a contagem de tarefas */
.client-work.tile-compact { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 11px; margin-bottom: 6px; text-align: left; }
.tile-compact .tname { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tile-compact .tname b { font-size: 15px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-compact .tmeta { display: flex; align-items: center; gap: 6px; flex: none; }
.tile-compact .tcount { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #ece7f6; color: #5b4a8a; }
.tile-compact .tcount.ok { background: #dcf3e4; color: #1f7a45; }
.tile-compact .tdot { width: 8px; height: 8px; border-radius: 50%; background: #c9c2d8; display: inline-block; }
.tile-compact .tdot.warn { background: #e0a030; }
.tile-compact.is-done .tname b { opacity: .6; }
.plan-week td, .plan-week th { text-align: center; padding: 4px 6px; }
.plan-week td:first-child, .plan-week th:first-child { text-align: left; white-space: nowrap; }
.plan-week input { width: 48px; text-align: center; }
.day-head .textbtn { margin-left: auto; font-size: 18px; }
.post-tile .tname .avatar, .post-tile .tname > :first-child { flex: none; }
.weekly-board .day-head { display: flex; align-items: baseline; gap: 8px; }
.weekly-board .day-head > span { margin-left: auto; }
.weekly-board .day-head .textbtn { margin-left: 4px; }

.client-tile .tile-actions { flex-direction: row; align-items: center; gap: 6px; }
.client-tile .tile-actions .btn { white-space: nowrap; }
.logo-btn { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; flex: none; }
.logo-btn .logo-cam { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; color: #5b4a8a; opacity: 0; transition: opacity .15s; }
.logo-btn:hover .logo-cam, .logo-btn:focus-visible .logo-cam { opacity: 1; }

.client-tile { flex-wrap: wrap; align-items: flex-start; }
.client-tile > div:not(.tile-actions) { flex: 1; min-width: 0; }
.client-tile .tile-actions { flex-basis: 100%; margin-left: 0; justify-content: flex-start; padding-top: 4px; }
.client-tile .tile-actions .btn { flex: 1; }
.client-tile small { display: block; line-height: 1.5; }

.client-work.tile-compact { flex-direction: column; align-items: stretch; gap: 3px; }
.tile-compact .trow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile-compact .tsub { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 34px; }
.tile-compact .tsub.ok { color: #1f7a45; }

/* Design: card concluído fica verde; contador por dia */
.post-tile.is-done { background: #ecfdf3; border-color: #9fdcb9; }
.post-tile.is-done .tcount.ok { color: #157347; font-weight: 600; white-space: normal; }
.day-head .day-count { margin-left: auto; margin-right: 6px; font-size: 11px; color: var(--muted); }

/* Fotos da equipe */
.person-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: #ece6f6; color: var(--purple); font-weight: 700; font-size: 12px; flex: none; box-shadow: 0 0 0 2px white; }
.person-photo.sm { width: 32px; height: 32px; }
.person-photo.lg { width: 56px; height: 56px; font-size: 20px; }
.person-photo.xl { width: 96px; height: 96px; font-size: 34px; }
.person-photo.is-online { box-shadow: 0 0 0 2px white, 0 0 0 4px #22c55e; }
.desk-initial.has-photo { background: none; width: auto; height: auto; position: relative; display: inline-flex; }
.desk-initial.has-photo .person-photo { width: 30px; height: 30px; }
.portrait.photo { background: none; position: relative; display: inline-flex; width: auto; height: auto; overflow: visible; }
.director-photo { position: relative; display: inline-flex; }
.director-photo .presence-dot, .portrait.photo .presence-dot { position: absolute; right: 0; bottom: 0; }
.photo-edit { display: grid; justify-items: center; gap: 10px; text-align: center; }
.account .person-photo { margin-right: 4px; }
.desk-person .desk-initial.has-photo { margin-right: 6px; }

/* Produtividade da equipe (estilo ClickUp) */
.prod-summary { display: grid; grid-template-columns: auto 1fr minmax(260px, 340px); gap: 28px; align-items: center; padding: 22px 26px; margin-bottom: 16px; }
.prod-summary-text h3 { margin: 0 0 8px; font-size: 20px; }
.prod-summary-text p { margin: 6px 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.prod-top { gap: 8px !important; }
.prod-ring { position: relative; flex: none; }
.prod-ring svg circle:last-child { transition: stroke-dashoffset .8s ease; }
.prod-ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.prod-ring-label b { font-family: var(--heading); font-size: 20px; }
.prod-ring-label small { font-size: 11px; color: var(--muted); }
.prod-ring-label small small { font-size: 10px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sw.done { background: #22c55e; } .sw.open { background: #d9ccf5; }
.prod-card { display: grid; gap: 14px; }
.prod-photo { position: relative; display: inline-flex; }
.prod-photo .presence-dot { position: absolute; right: 0; bottom: 2px; }
.prod-row { display: flex; gap: 16px; align-items: center; }
.prod-stats { display: grid; gap: 6px; font-size: 13px; }
.prod-card .person-now { margin: 4px 0 0; font-size: 12px; }
.prod-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; height: 74px; align-items: end; }
.prod-bars.tall { height: 110px; }
.prod-col { display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; gap: 4px; }
.prod-col small { font-size: 10px; color: var(--muted); }
.prod-col.is-today small { color: var(--purple); font-weight: 700; }
.prod-stack { display: flex; flex-direction: column-reverse; justify-content: flex-start; background: #f6f3fb; border-radius: 6px; overflow: hidden; height: 100%; }
.prod-stack i { display: block; width: 100%; transition: height .6s ease; }
.prod-stack i.done { background: linear-gradient(180deg, #4ade80, #16a34a); }
.prod-stack i.open { background: #d9ccf5; }
.prod-col.is-today .prod-stack { box-shadow: inset 0 0 0 2px #c4b5fd; }
@media (max-width: 900px) { .prod-summary { grid-template-columns: 1fr; justify-items: start; } }

/* v0.11.6 — salas compactas, só fotos redondas */
.studio-map > .studio-spine:first-child { display: none; }
.studio-desks.rooms-compact { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rooms-compact .studio-desk { display: flex; flex-direction: column; gap: 12px; padding: 16px; min-height: 0; border-radius: 18px; background: #fff; border: 1px solid #ece6f5; box-shadow: 0 1px 2px rgba(20,10,40,.04); transition: transform .15s, box-shadow .15s; }
.rooms-compact a.studio-desk:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(60,20,120,.10); }
.rooms-compact .studio-desk > .room-ico { order: 0; }
.room-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.room-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.studio-desk.lavender .room-ico { background: #efe7ff; color: #6a2fe0; }
.studio-desk.peach .room-ico { background: #ffeadf; color: #d0581c; }
.studio-desk.mint .room-ico { background: #dff6ec; color: #138a5a; }
.studio-desk.blue .room-ico { background: #e2efff; color: #1f66d1; }
.rooms-compact .studio-desk { position: relative; }
.rooms-compact .room-ico { position: absolute; top: 16px; left: 16px; }
.room-txt { padding-left: 52px; min-height: 40px; display: flex; flex-direction: column; justify-content: center; }
.room-txt h3 { margin: 0; font-size: 15px; }
.room-txt small { color: var(--muted); font-size: 12px; }
.room-faces { display: flex; align-items: center; padding-left: 6px; }
.room-face { position: relative; margin-left: -8px; display: inline-flex; }
.room-face .person-photo { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.room-face .presence-dot { position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border: 2px solid #fff; }
.room-face:hover { z-index: 2; }
@media (max-width: 900px) { .studio-desks.rooms-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .studio-desks.rooms-compact { grid-template-columns: 1fr; } }
.room-face:first-child{margin-left:0}
.room-txt { text-align: left; align-items: flex-start; }
.room-face .person-photo.is-online { box-shadow: none; }
.room-face .person-photo { box-shadow: none !important; }
/* faixa de cima mais baixa, para caber tudo na tela */
.studio-map { padding-top: 20px; padding-bottom: 20px; }
.studio-map .strategy-station { padding-top: 16px; padding-bottom: 16px; }
.studio-map .strategy-station p { margin-bottom: 0; }
.studio-map .project-station { padding-top: 12px; padding-bottom: 12px; }
.studio-map .strategy-symbol, .studio-map .manager-orb { width: 48px; height: 48px; }
.studio-map .studio-spine { height: 18px; }
/* v0.11.7 — sala em miniatura, larga e baixa */
.rooms-compact .studio-desk { padding: 0 0 14px; overflow: hidden; }
.mini-room { display: block; width: 100%; height: 86px; }
.rooms-compact .room-ico { top: 104px; left: 14px; width: 36px; height: 36px; }
.rooms-compact .room-txt { padding: 0 14px 0 62px; }
.rooms-compact .room-faces { position: absolute; top: 58px; left: 16px; padding: 0; }
.rooms-compact .room-face .person-photo { border-width: 3px; width: 40px; height: 40px; }
.rooms-compact .studio-desk > small.muted { position: absolute; top: 66px; left: 16px; background: #fff; padding: 2px 8px; border-radius: 99px; }
.rooms-compact .studio-desk { padding-top: 0; }
.rooms-compact .room-txt { margin-top: 14px; }
/* v0.11.7 (b) — salas neon: cena em cima, nome + fotos embaixo (as fotos não cobrem o desenho) */
.rooms-compact .studio-desk { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 0 10px; padding: 0 0 12px; background: #fff; border-color: #e6def3; }
.rooms-compact .mini-room { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 320 / 128; margin-bottom: 10px; border-bottom: 1px solid #ece6f5; }
.rooms-compact .room-ico { display: none; }
.rooms-compact .room-txt { margin: 0; padding: 0 0 0 14px; min-height: 0; min-width: 0; }
.rooms-compact .room-txt h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rooms-compact .room-faces, .rooms-compact .studio-desk > small.muted { position: static; padding: 0 14px 0 0; background: none; }
.rooms-compact .room-face { margin-left: -10px; }
.rooms-compact .room-face:first-child { margin-left: 0; }
.rooms-compact .room-face .person-photo { width: 32px; height: 32px; border-width: 2px; }
.rooms-compact .room-face .presence-dot { width: 9px; height: 9px; }
.rooms-compact a.studio-desk:hover .mini-room { filter: brightness(1.12) saturate(1.1); }
.rooms-compact .mini-room { transition: filter .2s; }
.rooms-compact .studio-desk.is-locked .mini-room { filter: saturate(.55) brightness(.85); }
/* v0.11.7 — cabeçalhos discretos: o título já aparece na barra de cima; o conteúdo sobe */
.main { padding-top: 18px; }
@media (min-width: 1550px) { .main { padding-top: 22px; } }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pagehead > div:first-child { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; min-width: 0; }
.pagehead h1 { font-size: 20px; letter-spacing: -.3px; margin: 0; line-height: 1.2; }
.pagehead p { margin: 0; font-size: 13px; color: var(--muted); }
.pagehead .date { display: none; }
.office-heading { margin: 0 0 12px; }
.office-heading > div { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.office-heading .eyebrow { display: none; }
.office-heading h1 { font-size: 20px; letter-spacing: -.3px; margin: 0; }
.office-heading p { margin: 0; font-size: 13px; }
/* v0.11.7 — diretoria (marketing + projetos) no estilo neon, lado a lado */
.studio-map { padding: 16px; }
.hq-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.hq-card { position: relative; display: block; height: 128px; border-radius: 18px; overflow: hidden; color: #fff; background: #0d0a24; box-shadow: 0 1px 2px rgba(20,10,40,.06); transition: transform .15s, box-shadow .15s; isolation: isolate; }
.hq-card + .hq-flow + .hq-card { background: #05141c; }
.hq-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,20,80,.22); }
.hq-scene { position: absolute; inset: 0 0 0 auto; height: 100%; width: auto; max-width: 100%; z-index: -1; transition: filter .2s; }
.hq-card:hover .hq-scene { filter: brightness(1.12); }
.hq-txt { position: absolute; left: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 0 20px; max-width: 58%;
  background: linear-gradient(90deg, rgba(5,6,18,.55), rgba(5,6,18,0)); }
.hq-txt small { font-size: 10.5px; letter-spacing: 1.6px; color: rgba(255,255,255,.62); font-weight: 600; }
.hq-txt b { font-family: var(--heading); font-size: 20px; line-height: 1.15; letter-spacing: -.3px; }
.hq-txt > span { font-size: 12.5px; color: rgba(255,255,255,.75); line-height: 1.35; }
.hq-badge { position: absolute; left: 20px; bottom: 12px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(251,191,36,.16); color: #fcd34d; border: 1px solid rgba(251,191,36,.4); }
.hq-go { position: absolute; top: 12px; right: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 13px; }
.hq-flow { display: grid; place-items: center; color: #b9a6d6; }
.hq-flow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.studio-map .team-connector { height: 30px; }
.studio-map .team-connector span { background: #f5f3f8; padding: 0 10px; position: relative; }
.myday-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.myday-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .hq-row { grid-template-columns: 1fr; } .hq-flow { transform: rotate(90deg); height: 18px; } .hq-txt { max-width: 70%; } }
.hq-badge { position: static; display: inline-block; vertical-align: 3px; margin-left: 6px; font-family: var(--body, inherit); letter-spacing: 0; }
.team-progress .section-head .flex { flex-wrap: nowrap; white-space: nowrap; gap: 8px; }
.team-progress { margin-top: 26px; }
.team-progress .section-head h2, .workload .section-head h2 { font-size: 20px; margin: 4px 0; }
.team-progress .section-head .eyebrow { font-size: 10.5px; }
/* v0.11.7 — clientes: remover / reativar */
.btn.danger-text { color: #b42318; }
.gone-clients { margin-top: 18px; }
.gone-clients summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.gone-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 13px; }
/* v0.11.7 — Social media: ideias da semana */
.idea-progress { height: 6px; background: #ece8f3; border-radius: 99px; overflow: hidden; margin: -4px 0 14px; }
.idea-progress i { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #6d7bff); border-radius: inherit; transition: width .4s; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 12px; }
.idea-card { background: #fff; border: 1px solid #e8e2f2; border-radius: 14px; padding: 12px 14px 14px; }
.idea-card.is-complete { border-color: #86efac; box-shadow: inset 3px 0 0 #22c55e; }
.idea-card header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.idea-card header b { font-size: 15px; }
.idea-card header small { color: var(--muted); font-size: 12px; }
.idea-count { margin-left: auto; font-size: 12px; font-weight: 700; color: #6b7280; background: #f3f0f8; padding: 2px 8px; border-radius: 99px; }
.idea-card.is-complete .idea-count { background: #dcfce7; color: #15803d; }
.idea-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.idea-cols h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: #6b7280; }
.idea-cols h4 svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.idea-row { display: grid; grid-template-columns: 20px 1fr; grid-template-rows: auto auto; gap: 4px 6px; align-items: center; padding: 6px; border-radius: 10px; background: #faf9fc; border: 1px solid transparent; margin-bottom: 6px; transition: background .3s, border-color .3s; position: relative; }
.idea-row.is-filled { background: #f4fbf7; }
.idea-row.just-saved { border-color: #86efac; }
.idea-n { grid-row: 1 / 3; align-self: start; margin-top: 7px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #ece8f3; color: #6b5a86; }
.idea-row.is-filled .idea-n { background: #22c55e; color: #fff; }
.idea-row input { width: 100%; margin: 0; padding: 7px 9px; font-size: 13px; border: 1px solid #e5e0ee; border-radius: 8px; background: #fff; min-width: 0; }
.idea-row .idea-ref { font-size: 12px; color: #2563eb; padding-right: 30px; }
.idea-open { position: absolute; right: 12px; bottom: 12px; font-size: 13px; text-decoration: none; color: #2563eb; font-weight: 700; }
@media (max-width: 640px) { .idea-cols { grid-template-columns: 1fr; } }
.design-ideas { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #f6f8ff; border: 1px solid #e0e7ff; }
.design-ideas h3 { margin: 0 0 6px; font-size: 13px; }
.design-ideas p { margin: 4px 0; font-size: 13px; }
/* ideias: uma linha por ideia (ideia + referência lado a lado), um cliente por faixa */
.idea-grid { grid-template-columns: 1fr; gap: 10px; }
.idea-card { padding: 10px 14px 8px; }
.idea-card header { margin-bottom: 4px; }
.idea-cols { gap: 8px 18px; }
.idea-cols h4 { margin: 2px 0 4px; font-size: 11px; }
.idea-row { grid-template-columns: 20px minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: auto; padding: 3px 4px; margin-bottom: 4px; }
.idea-n { grid-row: auto; margin-top: 0; align-self: center; }
.idea-row input { padding: 6px 8px; }
.idea-open { right: 12px; bottom: auto; top: 50%; transform: translateY(-50%); }
.toolbar .muted { white-space: nowrap; }
@media (max-width: 1100px) { .idea-cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .idea-row { grid-template-columns: 20px 1fr; } .idea-row .idea-ref { grid-column: 2; } .idea-open { top: auto; bottom: 10px; transform: none; } }
.client-tile { position: relative; }
.tile-remove { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 8px; border: 0; background: transparent; color: #9ca3af; display: grid; place-items: center; cursor: pointer; opacity: .55; transition: opacity .15s, background .15s, color .15s; }
.client-tile:hover .tile-remove, .tile-remove:focus-visible { opacity: 1; }
.tile-remove:hover { background: #fee2e2; color: #b42318; }
.tile-remove svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* celular: nada passa da largura da tela */
@media (max-width: 700px) {
  .team-progress .section-head .flex { flex-wrap: wrap; white-space: normal; }
  .workload .card { overflow-x: auto; }
  .toolbar .tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .toolbar .tabs a { white-space: nowrap; flex: none; }
}
@media (max-width: 900px) { .hq-txt { max-width: 100%; right: 0; background: linear-gradient(90deg, rgba(5,6,18,.88) 0%, rgba(5,6,18,.7) 55%, rgba(5,6,18,.15) 100%); } }
/* financeiro: planos suspensos embaixo */
.fin-grid tr.gsep th { text-align: left; padding: 14px 10px 6px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #b45309; background: transparent; border-top: 2px dashed #f3d5b5; }
.fin-grid tr.is-suspended { opacity: .62; }
/* v0.11.8 — processo claro: 1 marketing → 2 projetos → 3 salas */
.studio-map { padding: 18px 18px 20px; }
.hq-row { grid-template-columns: 1fr 96px 1fr; gap: 0; }
.hq-step { position: absolute; top: 12px; left: 14px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #fff; color: #1b1f2a; box-shadow: 0 0 0 3px rgba(255,255,255,.18); }
.hq-txt { padding-left: 20px; padding-top: 18px; }
.hq-flow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8b5cf6; }
.hq-flow svg { width: 64px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hq-flow small { font-size: 10.5px; color: #8a7aa3; font-weight: 600; white-space: nowrap; }
.hq-owner { position: absolute; right: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 0; padding: 3px 9px 3px 3px; border-radius: 99px; background: rgba(8,8,24,.62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px); }
.hq-owner .person-photo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.85); font-size: 12px; }
.hq-ai { width: 26px; height: 26px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #8b5cf6, #22d3ee); border: 2px solid rgba(255,255,255,.85); }
.hq-ai svg { width: 14px; height: 14px; fill: #fff; }
.hq-owner small { margin-left: 7px; font-size: 11px; font-weight: 700; color: #fff; }
.studio-map .team-connector { display: none; }
.flow-bus { position: relative; height: 52px; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-lines .fl { fill: none; stroke: #b9a3dc; stroke-width: 2; }
.flow-lines .fa { fill: none; stroke: #b9a3dc; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-lines .fd { fill: #8b5cf6; }
.flow-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 4px; border-radius: 99px; background: #f5f3f8; border: 1px solid #e3d9f0; font-size: 11.5px; font-weight: 600; color: #6b5a86; white-space: nowrap; }
.flow-label i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; background: #1b1f2a; color: #fff; }
@media (max-width: 900px) { .hq-row { grid-template-columns: 1fr; } .hq-flow { padding: 6px 0; } .hq-flow svg { transform: rotate(90deg); width: 40px; } .flow-label { font-size: 10.5px; } }

/* Nossa equipe: título + caixa de quem está online; cards em cima, produtividade embaixo */
.team-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.team-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.team-title h2 { margin: 0; font-size: 20px; }
.online-box { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 12px; background: #fff; border: 1px solid #e6dff0; min-height: 40px; }
.online-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #15803d; margin-right: 4px; }
.online-label .presence-dot { position: static; }
.online-face .person-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid #22c55e; display: block; }
.team-tools { gap: 8px; white-space: nowrap; }
.team-members + .prod-summary { margin-top: 16px; margin-bottom: 0; }
.studio-map .studio-desks.rooms-compact { padding-top: 0; }
.studio-map .studio-desks.rooms-compact::before { display: none; }
.hq-step { position: static; display: inline-grid; width: 18px; height: 18px; margin-right: 7px; font-size: 10.5px; font-style: normal; vertical-align: 1px; box-shadow: none; letter-spacing: 0; color: #1b1f2a; background: #fff; border-radius: 50%; place-items: center; font-weight: 800; }
.hq-txt { padding-top: 0; }
.hq-owner { top: 10px; bottom: auto; right: 46px; }
.workload .section-head p { margin: 2px 0 10px; font-size: 13px; }
.workload { margin-top: 22px; }
.flow-bus { height: 64px; }
/* v0.11.8 — salas: ações e semana na mesma linha do título; quadro sobe */
.head-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.head-tools .flex { gap: 6px; }
.head-tools .flex b { white-space: nowrap; font-size: 14px; }
.head-sep { width: 1px; height: 26px; background: #e2dcec; margin: 0 4px; }
.head-search { width: 200px; padding: 8px 12px; margin: 0; }
.week-progress { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 13px; }
.week-progress b { white-space: nowrap; }
.wp-track { flex: 1; height: 6px; background: #e9e5f0; border-radius: 99px; overflow: hidden; }
.wp-track i { display: block; height: 100%; background: #16a34a; border-radius: inherit; transition: width .4s; }
.week-progress .muted { white-space: nowrap; }
.weekly-board { margin-top: 0; }
#social-body .pagehead { margin-top: 2px; }
.main > .toolbar:first-child, #content > .toolbar:first-child { margin-bottom: 10px; }
@media (max-width: 800px) { .head-tools { justify-content: flex-start; } .head-sep { display: none; } .head-search { width: 100%; } }
@media (max-width: 700px) { .team-tools { flex-wrap: wrap; white-space: normal; } .team-head { align-items: flex-start; } }
@media (max-width: 900px) { .hq-flow { transform: none; height: auto; flex-direction: row; gap: 6px; padding: 8px 0; } .hq-flow svg { transform: rotate(90deg); width: 24px; height: 24px; } }
/* v0.11.9 — cards de marketing e projetos sutis: só uma luz no fundo */
.hq-card { height: 112px; }
.hq-mk { background: radial-gradient(120% 140% at 85% 20%, #3b1d8f 0%, #1a0f40 45%, #0d0a24 100%); }
.hq-card.hq-pj, .hq-card + .hq-flow + .hq-card.hq-pj { background: radial-gradient(120% 140% at 85% 20%, #0e4a5e 0%, #0a2633 45%, #05141c 100%); }
.hq-glow { position: absolute; right: -40px; top: -60px; width: 260px; height: 260px; border-radius: 50%; filter: blur(40px); opacity: .55; z-index: -1; transition: opacity .3s; }
.hq-mk .hq-glow { background: radial-gradient(circle, #8b5cf6 0%, rgba(139,92,246,0) 70%); }
.hq-pj .hq-glow { background: radial-gradient(circle, #22d3ee 0%, rgba(34,211,238,0) 70%); }
.hq-card:hover .hq-glow { opacity: .8; }
.hq-txt { max-width: 70%; background: none; }
/* "Execução em equipe": legenda ao lado da linha, sem cobrir o caminho que sai do gestor de projetos */
.flow-label { left: 14px; top: 4px; transform: none; background: transparent; border: 0; padding: 0; color: #8a7aa3; }
.flow-label i { width: 18px; height: 18px; font-size: 10.5px; }
.pagehead { flex-wrap: nowrap; } .pagehead > div:first-child { flex: 0 1 auto; } .pagehead .head-tools { flex: 1 1 auto; } @media (max-width: 1000px) { .pagehead { flex-wrap: wrap; } }
/* v0.11.9 — arrastar como no Trello */
.day-list { display: flex; flex-direction: column; gap: 0; min-height: 44px; }
[data-drag] { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
body.sorting, body.sorting * { cursor: grabbing !important; user-select: none !important; }
.drag-ghost { transform: rotate(2.5deg); box-shadow: 0 16px 36px rgba(30, 20, 70, .28) !important; opacity: .96; transition: none !important; }
.drop-ph { border-radius: 12px; background: rgba(124, 58, 237, .08); border: 2px dashed rgba(124, 58, 237, .35); margin-bottom: 12px; box-sizing: border-box; }
.weekly-board section.drop-over { box-shadow: inset 0 0 0 2px rgba(124, 58, 237, .25); }
.check-line { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 14px; } .check-line input { width: auto; margin: 0; }
/* v0.11.9 — financeiro: planilha em cima, totais do mês numa barra fixa embaixo */
.fin-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; margin-top: 12px; padding: 10px 16px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border: 1px solid #e6dff0; border-radius: 14px; box-shadow: 0 -6px 18px rgba(30,20,70,.06); font-size: 13px; }
.fin-bar > b { text-transform: capitalize; font-size: 14px; }
.fin-bar .fb { display: inline-flex; gap: 6px; align-items: baseline; color: var(--muted); }
.fin-bar .fb strong { color: var(--ink); font-size: 15px; }
.fin-bar .fb.good strong { color: #15803d; }
.fin-bar .fb.bad strong { color: #b42318; }
.fin-bar .grid-legend { margin-left: auto; font-size: 12px; }
.pagehead .head-tools .tabs { margin: 0; }
.fin-grid th, .fin-grid td { padding-top: 5px; padding-bottom: 5px; }
/* v0.11.9 — Relatórios */
.report-controls { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: #fff; border: 1px solid #e8e2f2; border-radius: 14px; margin-bottom: 14px; }
.report-controls label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0; }
.report-controls select, .report-controls input { margin: 0; min-width: 160px; }
.report-controls select[name=cliente] { min-width: 240px; }
.report-empty { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed #ddd3ea; border-radius: 16px; }
.report-empty p { max-width: 520px; margin: 6px auto 0; }
.report-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.report-actions .muted { margin-right: auto; font-size: 13px; }
.report-sheet { background: #fff; border: 1px solid #e8e2f2; border-radius: 18px; padding: 26px 30px; max-width: 980px; margin: 0 auto; }
.rs-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 2px solid #f0ebf7; }
.rs-head small { text-transform: uppercase; letter-spacing: 1.4px; font-size: 11px; color: #7c3aed; font-weight: 700; }
.rs-head h2 { margin: 2px 0; font-size: 24px; }
.rs-head span { color: var(--muted); font-size: 13px; }
.rs-logo { margin-left: auto; height: 34px; }
.rs-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.rs-kpi { padding: 12px 14px; border-radius: 12px; background: #f7f5fb; }
.rs-kpi small { display: block; font-size: 12px; color: var(--muted); }
.rs-kpi b { display: block; font-family: var(--heading); font-size: 22px; margin: 2px 0; }
.rs-kpi span { font-size: 12px; color: #6b5a86; }
.rs-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 8px; }
.rs-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid #ece6f5; }
.rs-table td { padding: 8px 6px; border-bottom: 1px solid #f3f0f8; }
.report-sheet h3 { font-size: 15px; margin: 18px 0 8px; }
.rs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.rs-list li span { display: inline-block; min-width: 46px; color: #7c3aed; font-weight: 700; font-size: 12px; }
.rs-note, .rs-foot { font-size: 12px; color: var(--muted); }
.rs-foot { margin-top: 20px; padding-top: 12px; border-top: 1px solid #f0ebf7; }
.report-text { width: 100%; font: 14px/1.6 inherit; padding: 16px; border-radius: 14px; border: 1px solid #e6dff0; background: #fff; }
.pick-list { max-height: 50vh; overflow: auto; margin: 8px 0 14px; }
@media print {
  body * { visibility: hidden !important; }
  #report-sheet, #report-sheet * { visibility: visible !important; }
  #report-sheet { position: absolute; left: 0; top: 0; width: 100%; max-width: none; border: 0; padding: 0; }
  .sidebar, .topbar { display: none !important; }
}
.btn.meta-on { border-color: #93c5fd; color: #1d4ed8; }

/* v0.12.0 — gravador estilo WhatsApp + demandas organizadas pela IA */
.rec-panel { --rec-wave: #a3a0b5; border: 1px solid #ebe8f4; background: #faf9fd; border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.rec-panel.is-rec { --rec-wave: var(--purple, #7c3aed); border-color: #ddd3fb; background: #f7f3ff; }
.rec-bar { display: flex; align-items: center; gap: 10px; }
.rec-dot { width: 11px; height: 11px; border-radius: 50%; background: #c9c6d6; flex: none; }
.rec-panel.is-rec .rec-dot { background: #e5484d; animation: recPulse 1.1s ease-in-out infinite; }
@keyframes recPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 38px; color: #4b4760; }
.rec-wave { flex: 1; height: 38px; min-width: 0; display: block; }
.rec-live { margin: 10px 0 0; max-height: 120px; overflow-y: auto; font-size: 15px; line-height: 1.5; }
.rec-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.rec-type summary, .said summary { cursor: pointer; font-size: 13px; color: var(--muted); margin: 6px 0; }
.ai-wait { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 8px; text-align: center; }
.ai-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #e4dcfb; border-top-color: var(--purple, #7c3aed); animation: aiSpin .8s linear infinite; }
@keyframes aiSpin { to { transform: rotate(360deg); } }
.demand-draft { padding: 12px; margin: 10px 0; }
.demand-draft .dd-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.demand-draft .dd-head select, .demand-draft .dd-head input[type=date] { flex: 1 1 140px; width: auto; margin: 0; }
.demand-draft .dd-on { margin: 0; display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.demand-draft .dd-title { font-weight: 600; margin-top: 8px; }
.demand-draft label { margin: 10px 0 4px; }
@media (max-width: 640px) { .rec-actions .btn { flex: 1 1 auto; } }

/* v0.12.1 — pedido do cliente com prazo (design) */
.post-tile.has-due { border: 2px solid #e5484d; background: #fff6f6; box-shadow: 0 2px 10px rgba(229,72,77,.12); }
.post-tile.has-due.due-soon { border-color: #f08c00; background: #fff8ec; }
.post-tile.has-due.due-late { border-color: #c4161c; background: #ffe9ea; animation: dueBlink 1.6s ease-in-out infinite; }
@keyframes dueBlink { 50% { box-shadow: 0 0 0 4px rgba(196,22,28,.18); } }
.post-tile .due-line { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #c4161c; letter-spacing: .01em; }
.post-tile .due-line.soon { color: #b45309; }
.post-tile .req-title { display: block; font-size: 12px; color: #4b4760; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #f5c2c4; background: #fff6f6; border-radius: 12px; }
.req-strip > b { color: #b42318; font-size: 14px; margin-right: 4px; }
.req-chip { border: 1px solid #f1b0b3; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; color: #3b3650; }
.req-chip span { color: #c4161c; font-weight: 700; margin-left: 4px; }
.req-chip.due-soon { border-color: #f5c27a; } .req-chip.due-soon span { color: #b45309; }
.req-chip.due-late { background: #ffe9ea; border-color: #c4161c; }
.req-box { border: 2px solid #e5484d; background: #fff6f6; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.req-box.due-soon { border-color: #f08c00; background: #fff8ec; } .req-box.due-late { border-color: #c4161c; background: #ffe9ea; }
.req-box .inline-form { margin-top: 8px; }
.req-voice { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
/* v0.12.1 — financeiro: totais do mês como rodapé fixo da tela; a planilha usa toda a altura disponível */
.grid-wrap { max-height: none; }
.fin-bar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 0; border-width: 1px 0 0; padding: 10px 24px; z-index: 30; }
@media (min-width: 1151px) { .fin-bar { left: 256px; padding: 10px 44px; } }
.fin-grid tfoot tr:first-child th, .fin-grid tfoot tr:first-child td { border-top: 2px solid #e6dff0; }
.fin-grid tfoot th.gname { z-index: 3; }
main:has(.fin-bar) { padding-bottom: 80px; }
@media (min-width: 1151px) { body.side-collapsed .fin-bar { left: 0; } }
/* v0.13.1 — referências por hashtag */
.idea-find { border: 1px solid #e3dcef; background: #fff; color: #6d28d9; border-radius: 8px; width: 30px; height: 30px; font-weight: 700; cursor: pointer; flex: none; }
.idea-find:hover { background: #f4ecff; }
.ht-form { display: flex; gap: 8px; flex-wrap: wrap; } .ht-form input { flex: 1 1 200px; } .ht-form select { flex: 0 1 170px; width: auto; }
.ht-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 10px; }
.ht-card { border: 1px solid #ebe6f4; border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.ht-card img, .ht-card .ht-ph { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f3f0f8; display: grid; place-items: center; color: #7a7490; font-size: 13px; }
.ht-card .ht-meta { padding: 8px 10px 0; font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .ht-card .ht-meta .tag { margin-left: auto; }
.ht-card p { padding: 4px 10px; margin: 0; font-size: 12px; color: #5d5972; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ht-card .flex { padding: 8px 10px 10px; gap: 6px; margin-top: auto; }
.idea-row { grid-template-columns: 20px minmax(0, 1.7fr) minmax(0, 1fr) 30px; }
.idea-open { right: 46px; }
@media (max-width: 560px) { .idea-row { grid-template-columns: 20px 1fr 30px; } .idea-row .idea-text { grid-column: 2 / 4; } .idea-row .idea-ref { grid-column: 2; } .idea-open { right: 46px; } }
/* v0.13.2 — HQ: cards um pouco mais altos, mesma cor nos dois, avatar da IA sem nome escrito */
.hq-card { height: 136px; }
.hq-txt { gap: 6px; }
.hq-card.hq-pj, .hq-card + .hq-flow + .hq-card.hq-pj { background: radial-gradient(120% 140% at 85% 20%, #3b1d8f 0%, #1a0f40 45%, #0d0a24 100%); }
.hq-pj .hq-glow { background: radial-gradient(circle, #8b5cf6 0%, rgba(139,92,246,0) 70%); }
.hq-owner { padding: 3px; }
.hq-owner .person-photo, .hq-ai { width: 30px; height: 30px; }
.hq-ai { margin-left: -9px; background: linear-gradient(135deg, #7c3aed, #06b6d4); }
.hq-ai svg { width: 22px; height: 22px; fill: none; }
