/* ============================================================
   HUB ASTRIX — estilos
   Marca: roxo #2D0859 + off-white. Serif editorial + sans.
   ============================================================ */

:root {
  --purple:      #2D0859;
  --purple-700:  #3d1170;
  --purple-500:  #5b2b8f;
  --purple-300:  #9b7bc4;
  --purple-100:  #e7ddf2;
  --cream:       #F6F1E7;
  --cream-2:     #FBF8F1;
  --paper:       #ffffff;
  --ink:         #241b31;
  --ink-soft:    #6a6076;
  --line:        #e7e0d6;
  --green:       #3f7d5f;
  --green-soft:  #e4efe7;
  --amber:       #b5701f;
  --amber-soft:  #f6ecdc;
  --red:         #a8394b;
  --red-soft:    #f4e2e4;
  --shadow:      0 1px 2px rgba(45,8,89,.05), 0 8px 30px rgba(45,8,89,.07);
  --shadow-sm:   0 1px 3px rgba(45,8,89,.08);
  --radius:      18px;
  --radius-sm:   12px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--purple-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--purple); margin: 0; }
.serif { font-family: var(--serif); }

/* ---------- LAYOUT ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex-shrink: 0;
  background: var(--purple);
  color: #efe7f7;
  padding: 26px 18px;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
}
.brand { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; padding: 0 8px; }
.brand .logo { font-family: var(--serif); font-size: 28px; font-weight: 600; color: #fff; letter-spacing: .5px; }
.brand .logo b { color: var(--purple-300); }
.brand .sub { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--purple-300); }
.nav { margin-top: 14px; display: flex; flex-direction: column; gap: 3px; }
.nav-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--purple-300); padding: 14px 12px 6px; }
.nav a {
  color: #e4d8f2; padding: 9px 12px; border-radius: 10px; font-size: 14px;
  display: flex; align-items: center; gap: 10px; transition: background .12s; text-decoration: none;
}
.nav a:hover { background: rgba(255,255,255,.08); }
.nav a.active { background: #fff; color: var(--purple); font-weight: 600; }
.nav a .ic { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; opacity: .95; flex-shrink: 0; }
.nav a .ic svg { display: block; }
.sidebar .foot { margin-top: auto; font-size: 11px; color: var(--purple-300); padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.12); }

.main { flex: 1; min-width: 0; padding: 34px 44px 80px; max-width: 1240px; margin: 0 auto; width: 100%; }

/* ---------- HEADER ---------- */
.page-head { margin-bottom: 26px; }
.page-head .eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--purple-500); margin-bottom: 8px; }
.page-head h1 { font-size: 40px; letter-spacing: -.5px; }
.page-head p { color: var(--ink-soft); margin: 8px 0 0; max-width: 620px; }

/* ---------- CARDS ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- TARÔ DO DIA ---------- */
.tarot-section h2 { margin-bottom: 4px; }
.tarot-intro { color: var(--ink-soft); margin: 0 0 18px; max-width: none; }
.tarot-stage { display: flex; gap: 34px; align-items: center; flex-wrap: wrap; }
.tcard { width: 250px; height: 428px; perspective: 1300px; cursor: pointer; flex-shrink: 0; }
.tcard.is-flipped { cursor: default; }
.tcard-inner { position: relative; width: 100%; height: 100%; transition: transform .75s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.tcard.is-flipped .tcard-inner { transform: rotateY(180deg); }
.tcard:not(.is-flipped):hover .tcard-inner { transform: translateY(-4px) rotate(-1deg); }
.tcard-back, .tcard-front { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 16px; box-shadow: 0 14px 34px rgba(45,8,89,.30); overflow: hidden; }
.tcard-back { background: radial-gradient(130% 130% at 50% 0%, #4a1d86, #2D0859 60%, #1a0538); border: 2px solid #cdb27b; display: grid; place-items: center; }
.tcb-frame { width: 84%; height: 88%; border: 1px solid rgba(205,178,123,.55); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background-image: radial-gradient(circle at 22% 18%, rgba(205,178,123,.16) 0 2px, transparent 3px), radial-gradient(circle at 78% 82%, rgba(205,178,123,.16) 0 2px, transparent 3px); }
.tcb-star { font-size: 56px; color: #cdb27b; }
.tcb-label { font-family: var(--serif); letter-spacing: 5px; text-transform: uppercase; color: #cdb27b; font-size: 13px; }
.tcard-front { transform: rotateY(180deg); background: #f2e6cd; border: 2px solid #cdb27b;
  display: flex; align-items: center; justify-content: center; }
.tcard-front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcf-sym { font-size: 88px; }
.tcf-name { font-family: var(--serif); font-size: 18px; color: var(--purple); text-transform: uppercase; letter-spacing: 1px; }
.tarot-advice { flex: 1; min-width: 220px; }
.tadv-name { font-family: var(--serif); font-size: 28px; color: var(--purple); margin-bottom: 10px; }
.tadv-text { font-size: 17px; line-height: 1.65; font-style: italic; color: var(--ink); max-width: 480px; }
.tadv-conexao { font-size: 15px; line-height: 1.6; color: var(--ink); font-weight: 700; margin-top: 14px; max-width: 480px; }
.tadv-afirm { margin-top: 16px; max-width: 480px; background: linear-gradient(180deg, #fbf6ea, #f4ead2); border: 1px solid #e3d2a6; border-radius: 12px; padding: 12px 16px; }
.tadv-afirm-label { display: block; font-family: var(--sans); font-style: normal; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #b5701f; margin-bottom: 6px; }
.tadv-afirm-text { font-family: var(--serif); font-size: 17px; color: var(--purple); font-style: italic; line-height: 1.5; }
.tadv-foot { font-size: 12px; color: var(--ink-soft); margin-top: 14px; letter-spacing: .3px; }
.tadv-hint { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 620px) { .tcard { width: 210px; height: 360px; } }

/* ---------- STAT TILES ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat .n { font-family: var(--serif); font-size: 32px; color: var(--purple); line-height: 1; }
.stat .l { font-size: 12px; color: var(--ink-soft); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- CLIENT CARDS ---------- */
.client-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s;
  display: flex; flex-direction: column; gap: 10px; cursor: pointer; text-decoration: none; color: inherit;
}
.client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.client-card .avatar {
  width: 46px; height: 46px; border-radius: 12px; background: var(--purple-100); color: var(--purple);
  display: grid; place-items: center; font-family: var(--serif); font-size: 20px; font-weight: 600;
}
.client-card .name { font-family: var(--serif); font-size: 19px; color: var(--purple); }
.client-card .niche { font-size: 13px; color: var(--ink-soft); }
.client-card .idea { font-size: 13px; color: var(--ink); font-style: italic; border-left: 2px solid var(--purple-100); padding-left: 10px; }
.client-card .foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }

/* ---------- BADGES ---------- */
.badge { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600; letter-spacing: .3px; display: inline-flex; align-items: center; gap: 5px; }
.badge.ativo { background: var(--green-soft); color: var(--green); }
.badge.onboarding { background: var(--amber-soft); color: var(--amber); }
.badge.pausado { background: #eee; color: #888; }
.badge.mgmt { background: var(--purple-100); color: var(--purple-700); }
.badge.vol { background: var(--cream); color: var(--ink-soft); border: 1px solid var(--line); }
.badge.tag { background: var(--purple-100); color: var(--purple-700); }

/* ---------- FILTER BAR ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.chip { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.chip.active { background: var(--purple); color: #fff; border-color: var(--purple); }
/* Frentes do Conteúdo (Planejamento x Produção) — toggle de nível acima das sub-abas */
.toolbar.cont-grupos { gap: 10px; margin: 4px 0 16px; padding: 6px; background: var(--card, rgba(90,56,190,.05)); border: 1px solid var(--line); border-radius: 16px; display: inline-flex; }
.chip-grupo { padding: 13px 28px; font-size: 15.5px; font-weight: 800; border: none; border-radius: 12px; letter-spacing: .2px; }
.chip-grupo:not(.active) { background: transparent; color: var(--ink-soft); }
.chip-grupo:not(.active):hover { background: rgba(90,56,190,.08); color: var(--purple); }
.chip-grupo.active { background: var(--purple); color: #fff; box-shadow: 0 4px 14px rgba(90,56,190,.28); }
/* Abas dos quadros de Produção (por pessoa) — maiores */
.toolbar.cont-boards { gap: 12px; margin: 6px 0 20px; }
.chip.chip-board { padding: 13px 22px; font-size: 15px; font-weight: 700; border-radius: 14px; border-width: 1.5px; }
.chip.chip-board:not(.active):hover { border-color: var(--purple); color: var(--purple); }
.chip.chip-board.active { box-shadow: 0 4px 14px rgba(90,56,190,.28); }
/* ---------- GESTÃO (OKRs / KPIs / check-in) ---------- */
.gt-obj { padding: 16px 18px; margin-bottom: 14px; }
.gt-obj-head h3 { margin: 0; font-family: var(--sans); font-size: 15px; color: var(--purple); }
.gt-obj-p { font-weight: 800; margin-left: 6px; }
.gt-obj-head p { margin: 4px 0 12px; font-size: 13px; color: var(--ink-soft); }
.gt-kr { padding: 9px 0; border-top: 1px solid var(--line); }
.gt-kr-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.gt-kr-t { font-size: 13.5px; font-weight: 600; }
.gt-kr-meta { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.gt-kr-bar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.gt-kr-bg { flex: 1; height: 8px; background: rgba(90,56,190,.1); border-radius: 999px; overflow: hidden; }
.gt-kr-fill { height: 100%; border-radius: 999px; transition: width .25s; }
.gt-kr-inp { width: 58px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; text-align: right; }
.gt-block { margin-top: 14px; }
.gt-meta { background: #faf7f1; border-radius: 10px; padding: 6px 12px; margin-top: 8px; }
.gt-metarow { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,.05); font-size: 13.5px; }
.gt-metarow:last-child { border-bottom: none; }
.gt-ci-row { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; background: transparent; border: none; border-bottom: 1px solid var(--line); padding: 12px 8px; cursor: pointer; font-size: 14px; color: inherit; }
.gt-ci-row:last-child { border-bottom: none; }
.gt-ci-row:hover { background: rgba(90,56,190,.05); border-radius: 8px; }
.gt-cmp-head, .gt-cmp-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; padding: 9px 4px; align-items: center; }
.gt-cmp-head { font-size: 12px; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-weight: 700; }
.gt-cmp-head span:not(:first-child), .gt-cmp-row b { text-align: right; }
.gt-cmp-row { border-bottom: 1px solid rgba(0,0,0,.05); font-size: 13.5px; }
.gt-cmp-row:last-child { border-bottom: none; }
.gt-cmp-row span:first-child { color: var(--ink-soft); }
.gt-legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.gt-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.gt-chart-card { padding: 16px 18px 10px; }
/* atingimento por trimestre */
.gt-tri-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.gt-tri-card { padding: 16px 18px; }
.gt-tri-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.gt-tri-big { font-family: var(--serif, Georgia, serif); font-size: 28px; font-weight: 800; }
.gt-tri-kr { display: grid; grid-template-columns: 1fr 70px auto; gap: 8px; align-items: center; padding: 4px 0; font-size: 12.5px; color: var(--ink-soft); }
.gt-tri-bar { height: 7px; background: rgba(90,56,190,.12); border-radius: 999px; overflow: hidden; }
.gt-tri-bar i { display: block; height: 100%; border-radius: 999px; }
.gt-tri-kr b { text-align: right; color: var(--ink); }
.gt-tri-empty { border: 1px dashed var(--line); background: transparent; }
/* faturamento anual + plaquinha Plug */
.gt-anogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gt-anocard { padding: 14px 16px; }
.gt-anohd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.gt-anohd b { font-family: var(--serif, Georgia, serif); font-size: 20px; color: var(--purple); }
.gt-anobadge { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; letter-spacing: .3px; text-transform: uppercase; }
.gt-anobadge-real { background: rgba(178,224,30,.22); color: #4a6a09; }
.gt-anobadge-proj { background: rgba(90,56,190,.14); color: var(--purple); }
.gt-anobadge-mix  { background: rgba(209,135,58,.16); color: #8a501a; }
.gt-mrow { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 5px 2px; font-size: 13px; border-bottom: 1px dashed rgba(0,0,0,.05); }
.gt-mrow:last-child { border-bottom: none; }
.gt-mrow span { color: var(--ink-soft); }
.gt-mrow b { color: var(--ink); }
.gt-mrow-proj { background: rgba(90,56,190,.05); border-radius: 6px; }
.gt-mrow-proj b { color: var(--purple); }
.gt-mtotal { margin-top: 6px; padding-top: 10px; border-top: 2px solid var(--purple); font-weight: 700; }
.gt-mtotal span { color: var(--ink); font-weight: 700; }
.gt-mtotal b { font-family: var(--serif, Georgia, serif); font-size: 16px; color: var(--purple); }
.gt-anosum { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.gt-anosum > div { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; }
.gt-anosum span { color: var(--ink-soft); font-size: 13px; }
.gt-anosum b { font-family: var(--serif, Georgia, serif); font-size: 18px; color: var(--purple); }
.gt-plugcard { padding: 16px 18px; border: 2px solid var(--purple); }
.gt-plug2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; }
/* check-in: histórico e formulário guiado */
.gt-kr-hist { padding: 6px 0; border-top: 1px solid rgba(0,0,0,.05); font-size: 13px; }
.gt-kr-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.gt-ci-obj { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.gt-ci-obj-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.gt-ci-obj-h b { color: var(--purple); font-size: 14px; }
.gci-stat { max-width: 150px; }
.gt-ci-kr { border-top: 1px solid var(--line); padding: 8px 0 4px; }
.gt-ci-kr-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: 13px; font-weight: 600; }
.gci-prog-wrap { white-space: nowrap; font-size: 12px; color: var(--ink-soft); }
.gci-calc { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.gci-calc .gci-val { flex: 1; }
.gci-auto { flex: 0 0 auto; min-width: 52px; text-align: right; font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--purple); }
.gci-hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; }
.search { flex: 1; min-width: 200px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-family: var(--sans); }
.search:focus { outline: 2px solid var(--purple-100); }

/* ---------- CLIENT DETAIL ---------- */
.detail-head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 8px; }
.detail-head .avatar { width: 68px; height: 68px; border-radius: 16px; background: var(--purple); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 30px; flex-shrink: 0; }
.detail-head h1 { font-size: 34px; }
.detail-head .handle { color: var(--ink-soft); font-size: 14px; }
.tabs { display: flex; gap: 6px 2px; border-bottom: 1px solid var(--line); margin: 24px 0 24px; flex-wrap: wrap; }
.tabs button { background: none; border: none; padding: 10px 14px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer; border-radius: 9px 9px 0 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { background: var(--cream); color: var(--purple); }
.tabs button + button { box-shadow: -1px 0 0 var(--line); }
.tabs button.active { color: var(--purple); border-bottom-color: var(--purple); background: var(--purple-100); }
/* guias agrupadas por área — cada grupo num quadradão com cor leve, bem separado */
.tabs-grouped { display: flex; flex-direction: column; gap: 12px; border-bottom: none; margin: 20px 0 24px; flex-wrap: nowrap; }
.tabgroup { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 11px 15px; border-radius: 14px; border: 1px solid var(--line); }
.tabgroup-lbl { flex: 0 0 150px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.tabgroup-row { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.tabs-grouped .tabgroup-row button { border-radius: 9px; margin-bottom: 0; background: rgba(255,255,255,.6); border: 1px solid transparent; }
.tabs-grouped .tabgroup-row button:hover { background: #fff; color: var(--purple); }
.tabs-grouped .tabgroup-row button.active { background: #fff; color: var(--purple); border-color: var(--purple); border-bottom-color: var(--purple); }
.tabs-grouped .tabgroup-row button + button { box-shadow: none; }
/* 3 tons leves pra diferenciar as seções */
.tabgroup.g-gestao   { background: #f4f0fb; border-color: #e3d9f5; }
.tabgroup.g-social   { background: #edf6f1; border-color: #d2e7dc; }
.tabgroup.g-producao { background: #fbf5e9; border-color: #ecdcbf; }
.g-gestao   .tabgroup-lbl { color: #6b4fa0; }
.g-social   .tabgroup-lbl { color: #2f7d5f; }
.g-producao .tabgroup-lbl { color: #a9772a; }
@media (max-width: 720px) {
  .tabgroup { align-items: flex-start; }
  .tabgroup-lbl { flex-basis: 100%; margin-bottom: 2px; }
}

.section { margin-bottom: 26px; }
.section h2 { font-size: 22px; margin-bottom: 14px; }
.info-block { padding: 18px 20px; }
.info-block h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--purple-500); margin-bottom: 8px; font-family: var(--sans); font-weight: 700; }
.info-block p { margin: 0; color: var(--ink); }
.banned-list { display: flex; flex-wrap: wrap; gap: 7px; }
.banned-tag { background: var(--red-soft); color: var(--red); padding: 4px 11px; border-radius: 8px; font-size: 13px; font-weight: 600; }

/* ---------- TABLE / TASKS ---------- */
.task-row { display: grid; grid-template-columns: 26px 1fr 175px 150px 120px 30px; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); }
input[type="date"] { min-width: 140px; }
.task-row:last-child { border-bottom: none; }
.task-row .t-title { font-weight: 600; }
.t-name { outline: none; border-radius: 4px; padding: 1px 3px; cursor: text; }
.t-name:hover { background: var(--cream); }
.t-name:focus { background: #fff; box-shadow: 0 0 0 2px var(--purple-100); }
.task-row .t-title small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.task-phase-sel { display: inline-block; margin-top: 4px; font-size: 11px; padding: 2px 4px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 6px; background: var(--paper); max-width: 150px; }
.t-title .t-type { margin-top: 2px; }
.task-row.done .t-title { text-decoration: line-through; color: var(--ink-soft); }
.task-row.travado { background: #fdf9f0; }
.t-trav { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 600; color: #8a6d3b; background: #fbf1de; border: 1px solid #ead9b5; border-radius: 999px; padding: 1px 8px; }
.t-travar, .t-untravar { margin-left: 8px; font-size: 11px; font-weight: 600; background: none; border: 1px dashed var(--line); border-radius: 999px; padding: 1px 8px; cursor: pointer; color: var(--ink-soft); }
.t-travar:hover, .t-untravar:hover { border-style: solid; color: var(--ink); }
.t-opencard { margin-left: 8px; font-size: 11px; font-weight: 700; background: rgba(90,56,190,.08); border: 1px solid rgba(90,56,190,.28); border-radius: 999px; padding: 1px 9px; cursor: pointer; color: var(--brand); white-space: nowrap; }
.t-opencard:hover { background: rgba(90,56,190,.16); }
.demand-opencard { font-size: 11px; font-weight: 700; background: rgba(90,56,190,.08); border: 1px solid rgba(90,56,190,.28); border-radius: 999px; padding: 2px 9px; cursor: pointer; color: var(--brand); white-space: nowrap; }
.demand-opencard:hover { background: rgba(90,56,190,.16); }
.demand-opencard.has-det { background: rgba(47,125,79,.12); border-color: rgba(47,125,79,.4); color: #2f7d4f; }
.termo-area { margin-bottom: 12px; }
.termo-area-head { font-weight: 700; font-size: 14px; margin: 6px 2px 6px; }
.termo-sub { font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.termo-face { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; vertical-align: middle; }
.termo-face.ok { color: #2f7d54; background: #e6f4ec; }
.termo-face.bad { color: #b4232f; background: #fbe7e7; }
.kcol-outras { background: #fdf6ec; border: 1px dashed #e6c78f; border-radius: 12px; padding: 8px 8px 4px; }
/* Card da "Outras demandas" vive numa coluna estreita do kanban (≈260px): empilha na vertical
   pra não espremer o título (senão quebra palavra a palavra). */
.kcol-outras .demand-card { background: #fff; margin-bottom: 8px; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.kcol-outras .demand-card:last-child { border-bottom: 1px solid var(--line); }
.kcol-outras .demand-ic { display: none; }
.kcol-outras .demand-title { font-size: 13px; line-height: 1.35; word-break: normal; overflow-wrap: anywhere; }
.kcol-outras .demand-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.kcol-outras .demand-actions { justify-content: space-between; gap: 8px; }
.kcol-outras .demand-actions .demand-status { flex: 1; width: auto; min-width: 0; max-width: none; }
.sb-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); }
.sb-legend b { color: var(--ink); font-weight: 600; }
.owner-pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--purple-100); color: var(--purple-700); font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.due { font-size: 13px; color: var(--ink-soft); }
.due.late { color: var(--red); font-weight: 700; }
.due.soon { color: var(--amber); font-weight: 600; }
.due-edit { font-size: 12px; padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--cream-2); color: var(--ink-soft); font-family: var(--sans); width: 100%; }
.due-edit.late { border-color: var(--red); color: var(--red); font-weight: 700; background: var(--red-soft); }
.due-edit.soon { border-color: var(--amber); color: var(--amber); font-weight: 600; background: var(--amber-soft); }
.due-wrap { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.due-hint { font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap; }
.due-hint.late { color: var(--red); }
.due-hint.soon { color: var(--amber); }
select.status-sel, select.mini { padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--cream-2); font-family: var(--sans); font-size: 12px; font-weight: 600; cursor: pointer; }
select.owner-sel { width: 100%; max-width: 100%; background: var(--purple-100); color: var(--purple-700); border-color: transparent; text-overflow: ellipsis; }
.icon-btn { background: none; border: none; cursor: pointer; color: var(--ink-soft); font-size: 15px; padding: 4px; border-radius: 6px; }
.icon-btn:hover { background: var(--cream); color: var(--red); }
.st-todo { color: var(--ink-soft); }
.st-doing { color: var(--amber); }
.st-done { color: var(--green); }
.checkbox { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--purple-300); cursor: pointer; display: grid; place-items: center; background: var(--paper); }
.checkbox.on { background: var(--green); border-color: var(--green); color: #fff; }

.phase-group { margin-bottom: 18px; }
.phase-group .ph-head { font-family: var(--sans); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--purple-500); padding: 6px 4px; }

/* ---------- TAREFAS: linha enxuta + Agenda + Quadro ---------- */
.ph-head.agenda-head { text-transform: none; letter-spacing: .2px; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.ph-head .ph-count { color: var(--ink-soft); font-weight: 400; }
.card.agenda-card { padding: 0; overflow: hidden; }
.tlite { border-left: 3px solid transparent; }
.tlite + .tlite { border-top: 1px solid var(--line); }
.tlite.done .tlite-title { text-decoration: line-through; color: var(--ink-soft); }
.tlite-sum { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; }
.tlite-sum:hover { background: var(--cream); }
.tlite-dot { width: 18px; text-align: center; font-size: 14px; color: var(--ink-soft); flex-shrink: 0; }
.tlite-dot.doing { color: #b5701f; }
.tlite-dot.done { color: var(--green); }
.tlite-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink); }
.tlite-title { font-weight: 500; min-width: 2.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlite-cli { display: inline-block; font-size: 12px; font-weight: 600; color: var(--purple-700); background: var(--purple-100); padding: 1px 8px; border-radius: 999px; }
/* na linha da Agenda: título corta com "…" e a etiqueta do cliente fica sempre visível */
.tlite-main .tlite-cli { flex: 0 0 auto; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlite-tag { font-size: 11px; font-weight: 700; white-space: nowrap; }
.tlite-tag.trav { color: var(--ink-soft); font-weight: 600; }
.tlite-open { font-size: 11px; font-weight: 600; color: var(--purple); background: #fff; border: 1px solid var(--purple-200, #d9cfeb); border-radius: 7px; padding: 2px 7px; cursor: pointer; white-space: nowrap; }
.tlite-open:hover { background: var(--purple-100); }
.tlite-date { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.tlite-date.late { color: var(--red); font-weight: 700; }
.tlite-date.soon { color: #b5701f; font-weight: 600; }
.tlite-when { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tlite-when .post-when { display: inline-flex; gap: 6px; font-size: 12px; }
.tlite-when .pw-d { color: var(--ink); font-weight: 600; }
.tlite-when .pw-h { color: var(--purple-700); font-weight: 600; }
.tlite-lateflag { font-size: 11px; font-weight: 700; color: var(--red); margin-left: 2px; }
.tlite-post { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tlite-post.late { color: var(--red); font-weight: 700; }
.tlite-who { font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; min-width: 54px; text-align: right; }
.tlite-chev { color: var(--ink-soft); font-size: 13px; width: 14px; text-align: center; flex-shrink: 0; }
.tlite-det { padding: 2px 10px 10px; border-top: 1px dashed var(--line); background: var(--cream); }
.tlite.open { background: var(--cream); }
@media (max-width: 640px) {
  .tlite-sum { flex-wrap: wrap; gap: 6px 8px; }
  .tlite-main { flex-basis: 100%; flex-wrap: wrap; }
  .tlite-title { white-space: normal; }
  .tlite-main .tlite-cli { max-width: 100%; }
  .tlite-who { min-width: 0; }
}
/* Observações internas da social (topo, destaque âmbar) */
.cmt-sec.cmt-int-top { background: #fff7e8; border: 1px solid #f0d49a; border-radius: 12px; padding: 11px 14px; margin: 10px 0 16px; }
.cmt-sec.cmt-int-top > .lbl { color: #8a5a12; }
/* Comentários internos da produção (rodapé, caixa neutra) */
.cmt-sec.cmt-int { background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; margin-top: 14px; }
.card-log { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); overflow: hidden; }
.card-log > summary { cursor: pointer; padding: 10px 14px; font-weight: 700; font-size: 13px; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 6px; }
.card-log > summary::-webkit-details-marker { display: none; }
.card-log > summary::after { content: "⌄"; margin-left: auto; color: var(--ink-soft); font-weight: 400; }
.card-log[open] > summary::after { content: "⌃"; }
.clog-list { padding: 4px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.clog-item { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.clog-what { color: var(--ink); font-weight: 600; }
.clog-meta { color: var(--ink-soft); font-size: 12px; white-space: nowrap; text-align: right; }
.clog-empty { font-size: 13px; color: var(--ink-soft); padding: 2px 0; }
.rows-morebtn { display: block; width: 100%; text-align: center; font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--purple); background: transparent; border: 0; border-top: 1px solid var(--line); padding: 10px; cursor: pointer; }
.rows-morebtn:hover { background: var(--cream); }
.rows-morebtn .rm-chev { font-weight: 400; }
.qcol .rows-morebtn { border-top: 0; padding: 8px; }
.qboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: start; }
.qcol { background: var(--cream); border-radius: 12px; padding: 10px; min-width: 0; }
.qcol-head { font-family: var(--sans); font-weight: 800; font-size: 14px; color: var(--ink); margin: 0 0 10px; padding: 7px 11px; border-radius: 9px; display: flex; align-items: center; gap: 6px; letter-spacing: .01em; }
.qcol-head .ph-count { margin-left: auto; font-weight: 600; font-size: 12px; opacity: .8; }
.qcol-atrasado .qcol-head { color: #8f1f2e; background: #fbe7ea; }
.qcol-aberto  .qcol-head { color: var(--purple); background: var(--purple-100); }
.qcol-fazendo .qcol-head { color: #8a5a12; background: #fcf1dc; }
.qcol-travado .qcol-head { color: #4b4558; background: #ebe8f1; }
.qcol-feito   .qcol-head { color: #2f6b4e; background: #e4f1ea; }
/* Mobile: 2 colunas por linha (Atrasado+Em aberto · Fazendo+Travado) */
@media (max-width: 640px) {
  .qboard { grid-template-columns: 1fr 1fr; gap: 10px; }
  .qcol { padding: 8px; }
  .qcard-foot { flex-wrap: wrap; row-gap: 2px; }
  .qcard .tlite-who { min-width: 0; }
  .qcard-cli-row .tlite-cli { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}
.qcol-head .ph-count { color: var(--ink-soft); font-weight: 400; }
.qcol-empty { font-size: 13px; color: var(--ink-soft); text-align: center; padding: 10px 0; }
.qcard { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 9px; margin-bottom: 8px; overflow: hidden; }
.qcard:last-child { margin-bottom: 0; }
.qcard.done .qcard-title { text-decoration: line-through; color: var(--ink-soft); }
.qcard-sum { display: block; padding: 9px 11px; cursor: pointer; }
.qcard-sum:hover { background: var(--cream); }
.qcard-title { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.qcard-cli-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 6px; }
.qcard-dates { display: flex; flex-direction: column; gap: 3px; margin-bottom: 7px; }
.qcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.qcard-right { margin-left: auto; }   /* responsável sempre na lateral direita, tenha data no rodapé ou não */
.qcard .tlite-det { padding: 2px 10px 10px; }
.tlite-cmt { font-size: 12px; color: var(--purple-500); white-space: nowrap; }
.qcard-right { display: inline-flex; align-items: center; gap: 8px; }

/* Controles de topo (segmentado: modo + janela) + calendário */
.toolbar.tasks-view { gap: 10px; align-items: center; }
.toolbar.tasks-filters { margin-top: -4px; }
.segmented { display: inline-flex; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 3px; }
.segmented .seg { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); background: transparent; border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .12s; }
.segmented .seg:hover { background: #fff; }
.segmented .seg.on { background: var(--purple); color: #fff; box-shadow: 0 2px 6px rgba(45,8,89,.22); }
.segmented .seg .pcount { font-weight: 500; opacity: .75; font-size: 12px; }
/* modo (Agenda/Quadro) é o controle principal: um tiquinho maior */
.segmode .seg { font-size: 16px; padding: 11px 22px; }
.segstatus .seg { font-size: 13px; font-weight: 600; padding: 8px 14px; }
.seg.done-seg { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-soft); background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.seg.done-seg.on { background: var(--green); color: #fff; border-color: var(--green); }
.daypick { display: inline-flex; align-items: center; gap: 5px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 5px 9px; cursor: pointer; font-size: 13px; }
.daypick.on { border-color: var(--purple); background: var(--purple-100); }
.daypick input[type=date] { border: 0; background: transparent; font-family: inherit; font-size: 13px; color: var(--ink); cursor: pointer; width: 128px; }
.daypick-x { border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 13px; padding: 0 2px; }

/* Painel de detalhe da tarefa (ações + comentários) */
.tdmodal h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.td-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 4px; }
.td-field .lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); margin-bottom: 4px; }
.td-field select, .td-field input[type=date] { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-family: inherit; font-size: 14px; background: #fff; }
.td-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; margin-top: 12px; border-top: 1px solid var(--line); }
.td-comments { margin-top: 2px; border-top: 1px solid var(--line); padding-top: 14px; }
.td-cmt-h { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.td-cmt-list { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; margin-bottom: 12px; }
.td-cmt-empty { font-size: 13px; color: var(--ink-soft); }
.td-cmt { background: var(--cream); border-radius: 10px; padding: 9px 11px; }
.td-cmt-top { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 3px; }
.td-cmt-top b { color: var(--ink); font-size: 13px; }
.td-cmt-when { color: var(--ink-soft); }
.td-cmt-del { margin-left: auto; border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; }
.td-cmt-txt { font-size: 14px; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.td-cmt-add { display: flex; gap: 8px; align-items: flex-end; }
.td-cmt-add textarea { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-family: inherit; font-size: 14px; resize: vertical; }
@media (max-width: 640px) {
  .toolbar.tasks-view { gap: 8px; }
  .segmented { width: 100%; }
  .segmented .seg { flex: 1; justify-content: center; padding: 8px 6px; font-size: 13px; }
  .daypick { flex: 1; }
}

/* ---------- DOCS ---------- */
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.doc-row:last-child { border-bottom: none; }
.doc-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--cream); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.doc-row .d-name { font-weight: 600; }
.dd-name[contenteditable] { outline: none; cursor: text; border-radius: 6px; padding: 1px 5px; margin: -1px -5px; }
.dd-name[contenteditable]:hover, .dd-name[contenteditable]:focus { background: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.doc-row .d-meta { font-size: 12px; color: var(--ink-soft); }
.doc-cat { font-size: 11px; padding: 2px 9px; border-radius: 999px; background: var(--purple-100); color: var(--purple-700); font-weight: 600; }

/* ---------- BUTTONS / FORMS ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--purple); background: var(--purple); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--purple-700); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--purple); }
.btn.ghost:hover { background: var(--purple-100); }
.btn.sm { padding: 6px 12px; font-size: 12px; }
.btn.danger { color: #a8394b; border-color: #e2b8c0; }
.btn.danger:hover { background: #a8394b; color: #fff; border-color: #a8394b; }
input[type=text], input[type=date], input[type=url], select, textarea {
  padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper);
  font-family: var(--sans); font-size: 14px; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--purple-100); border-color: var(--purple-300); }
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.form-row > div { flex: 1; min-width: 140px; }
label.lbl { font-size: 12px; font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: 5px; }

/* ---------- BANNERS ---------- */
.banner { padding: 12px 18px; border-radius: 12px; font-size: 13px; display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.banner.info { background: var(--amber-soft); color: var(--amber); border: 1px solid #ecd9b8; }
.banner.live { background: var(--green-soft); color: var(--green); border: 1px solid #cfe4d5; }

/* ---------- EMPTY ---------- */
.empty { text-align: center; padding: 42px 20px; color: var(--ink-soft); }
.empty .big { font-size: 34px; margin-bottom: 8px; }

/* ---------- PROCESS ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--purple-100); }
.tl-item { position: relative; padding: 0 0 20px; }
.tl-item::before { content: ""; position: absolute; left: -23px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--purple); border: 2px solid var(--cream); }
.tl-item .when { font-family: var(--serif); font-size: 16px; color: var(--purple); }
.tl-item .who { font-size: 12px; color: var(--purple-500); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.tl-item .what { color: var(--ink); }
.pipeline { display: flex; gap: 8px; flex-wrap: wrap; }
.pipe-step { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 13px; color: var(--purple); position: relative; }
.pipe-step .num { color: var(--purple-300); margin-right: 6px; }
.flow-step { padding: 16px 18px; margin-bottom: 12px; }
.flow-step h4 { font-family: var(--sans); font-size: 14px; color: var(--purple); margin-bottom: 8px; }
.flow-step ul { margin: 0; padding-left: 18px; color: var(--ink); }
.flow-step ul li { margin-bottom: 3px; }

/* ---------- TEAM ---------- */
.team-card { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.team-card .av { width: 44px; height: 44px; border-radius: 11px; background: var(--purple); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; flex-shrink: 0; }
.team-card .nm { font-family: var(--serif); font-size: 18px; color: var(--purple); }
.team-card .rl { font-size: 13px; color: var(--purple-500); font-weight: 600; margin-bottom: 4px; }
.team-card .sc { font-size: 13px; color: var(--ink-soft); }

/* ---------- MODAL ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(36,27,49,.45); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--paper); border-radius: var(--radius); padding: 26px; width: 100%; max-width: 460px; box-shadow: var(--shadow); max-height: calc(100vh - 40px); overflow-y: auto; }
.modal h3 { font-size: 22px; margin-bottom: 16px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ---------- LOGIN ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--purple); padding: 20px; }
.login-box { background: var(--paper); border-radius: 22px; padding: 40px; width: 100%; max-width: 380px; text-align: center; box-shadow: var(--shadow); }
.login-box .logo { font-family: var(--serif); font-size: 40px; color: var(--purple); }
.login-box .logo b { color: var(--purple-300); }
.login-box p { color: var(--ink-soft); margin: 4px 0 22px; }

/* ---------- ONBOARDING BUILDER ---------- */
.onb-row { display: grid; grid-template-columns: 150px 1fr 150px 140px 32px; gap: 8px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.onb-row:last-child { border-bottom: none; }
.onb-row .onb-title { font-weight: 600; }
.onb-row input, .onb-row select { padding: 6px 8px; font-size: 13px; }
@media (max-width: 760px) {
  .onb-row { grid-template-columns: 1fr 1fr; }
  .onb-row .onb-title { grid-column: 1 / -1; }
}

/* ---------- CONTEÚDO ---------- */
.content-row { display: grid; grid-template-columns: 1fr 70px 110px 110px auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.content-row:last-child { border-bottom: none; }
.c-code { font-family: var(--serif); font-size: 15px; color: var(--purple); }
.c-fmt { font-size: 11px; background: var(--purple-100); color: var(--purple-700); padding: 1px 7px; border-radius: 999px; font-family: var(--sans); font-weight: 600; margin-left: 4px; }
.c-tema { font-size: 13px; color: var(--ink); margin-top: 2px; }
.c-date { font-size: 12px; color: var(--ink-soft); }
.c-resp { font-size: 12px; color: var(--purple-700); font-weight: 600; }
.status-badge { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 700; text-align: center; white-space: nowrap; }
.c-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }

.demand-stats { display: flex; gap: 0; overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.dstat { flex: 1 1 0; min-width: 90px; padding: 10px 12px; text-align: center; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dstat:last-child { border-right: none; }
.dstat-n { font-family: var(--serif); font-size: 24px; line-height: 1; }
.dstat-l { font-size: 10.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.dstat-sep { flex: 0 0 auto; width: 0; border-right: 2px dashed var(--line); margin: 6px 2px; }
.dstat-cplx { background: rgba(90,56,190,.04); }
.dstat-cplx .dstat-l { font-weight: 700; }

/* 📊 Resumo do mês (produção por pessoa) */
.res-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.res-table th { padding: 11px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); text-align: center; border-bottom: 2px solid var(--line); white-space: nowrap; }
.res-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.res-table tbody tr:hover { background: rgba(90,56,190,.03); }
.res-table .res-grp td { background: var(--cream-2); font-weight: 700; font-size: 12px; color: var(--ink); text-transform: none; letter-spacing: 0; padding: 8px 12px; }
.res-table .res-grp:hover td { background: var(--cream-2); }
.res-table .res-total td { border-top: 2px solid var(--line); border-bottom: none; font-weight: 800; background: rgba(90,56,190,.05); }
.res-table .res-total td:first-child { color: var(--brand); }
.res-table .res-feito { border-left: 2px solid var(--line); font-weight: 800; background: rgba(63,125,95,.14); color: #2f6b4e; }
.res-table th.res-feito { color: #2f6b4e; }
.res-table .res-fazer { border-left: 2px solid var(--line); font-weight: 800; background: rgba(181,112,31,.16); color: #8a5a1f; }
.res-table th.res-fazer { color: #8a5a1f; }
.res-table .c-feito { background: rgba(63,125,95,.06); }
.res-table .c-fazer { background: rgba(181,112,31,.07); }
.res-table .c-cli { background: rgba(138,109,31,.10); border-left: 2px solid var(--line); }
.res-table .c-int { background: rgba(90,107,140,.12); }
.res-table th.c-cli { color: #8a6d1f; }
.res-table th.c-int { color: #4a5a7c; }
.res-table tbody tr:hover td.c-feito { background: rgba(63,125,95,.11); }
.res-table tbody tr:hover td.c-fazer { background: rgba(181,112,31,.12); }
.res-table tbody tr:hover td.c-cli { background: rgba(138,109,31,.15); }
.res-table tbody tr:hover td.c-int { background: rgba(90,107,140,.17); }
.res-table .c-val { background: rgba(198,154,63,.12); border-left: 2px solid var(--line); white-space: nowrap; }
.res-table th.c-val { color: #8a6d1f; }
.res-table tbody tr:hover td.c-val { background: rgba(198,154,63,.18); }
.res-table .res-sub td { background: rgba(90,56,190,.07); font-weight: 700; border-top: 1px solid var(--line); }
.res-table .res-sub td:first-child { color: var(--brand); }
.res-table .res-sub .c-val { background: rgba(198,154,63,.2); }
.res-table .res-sub:hover td { background: rgba(90,56,190,.07); }
.res-table .res-total .c-val { background: rgba(198,154,63,.22); }
.res-table .c-prev { background: rgba(63,125,95,.09); white-space: nowrap; }
.res-table th.c-prev { color: #2f6b4e; }
.res-table tbody tr:hover td.c-prev { background: rgba(63,125,95,.15); }
.res-table .res-sub .c-prev { background: rgba(63,125,95,.16); }
.res-table .res-total .c-prev { background: rgba(63,125,95,.18); }
.res-table .c-tot { background: rgba(45,8,89,.07); color: var(--ink); }
.res-table th.c-tot { color: var(--brand); }
.res-table tbody tr:hover td.c-tot { background: rgba(45,8,89,.12); }
.res-table .res-sub .c-tot { background: rgba(45,8,89,.12); }
.res-table .res-total .c-tot { background: rgba(45,8,89,.14); }

.kc-cart { font-size: 11px; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.t-origem { display: inline-block; font-size: 10.5px; font-weight: 700; background: rgba(90,56,190,.08); color: var(--brand); border-radius: 999px; padding: 1px 8px; margin-left: 6px; white-space: nowrap; vertical-align: middle; }
.sc-clientes { margin-top: 8px; font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.sc-clientes b { color: var(--ink); }

/* 📊 Gestão (supervisão) — KPIs por área */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.kpi-area { padding: 16px 18px; }
.kpi-h { display: flex; flex-direction: column; gap: 2px; }
.kpi-h b { font-size: 15px; }
.kpi-h span { font-size: 12px; color: var(--ink-soft); }
.kpi-big { font-family: var(--serif); font-size: 40px; line-height: 1; margin: 12px 0 10px; display: flex; align-items: baseline; gap: 8px; }
.kpi-big small { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .4px; }
.kpi-row { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 12.5px; color: var(--ink-soft); }
/* Cockpit de números rápidos */
.sup-cock-grp + .sup-cock-grp { margin-top: 16px; }
.sup-cock-gh { font-size: 12px; font-weight: 800; color: var(--ink); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.sup-cockpit { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.sup-cock { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; box-shadow: var(--shadow-sm); display: block; }
.sup-cock:hover { border-color: var(--brand); }
.sup-cock .n { font-family: var(--serif); font-size: 28px; line-height: 1; }
.sup-cock .l { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .3px; margin-top: 4px; }
/* Visão geral: resumo em palavras + o que precisa de ação */
.vg-hero { border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; border: 1px solid var(--line); }
.vg-hero.green  { background: #eef6f1; border-color: #cfe3d7; }
.vg-hero.yellow { background: #fff8ec; border-color: #ecd9ab; }
.vg-hero.red    { background: #fdeeee; border-color: #f0c9c9; }
.vg-hero-tit { font-family: var(--serif); font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.vg-hero-sub { font-size: 13.5px; color: var(--ink-soft); margin-top: 5px; }
.vg-blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.vg-block { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--paper); }
.vg-block.red { border-color: #e9b7b7; background: #fef7f7; }
.vg-bh { font-size: 13px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.vg-bh span { font-weight: 400; color: var(--ink-soft); font-size: 11.5px; }
.vg-item { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 13px; }
.vg-item:hover { background: var(--cream); }
.vg-item b { font-weight: 700; }
.vg-dot { flex: 0 0 auto; font-size: 11px; }
.vg-code { font-size: 11px; font-weight: 700; color: var(--purple-700); background: var(--purple-100, #ece6f7); border-radius: 6px; padding: 1px 6px; }
.vg-when { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.vg-stat { font-size: 11px; color: var(--ink-soft); }
.vg-reason { font-size: 12.5px; color: var(--ink-soft); }
.vg-more { font-size: 12px; color: var(--ink-soft); padding: 4px 8px; }
/* "Seu dia" do designer/editor — cards agrupados (alteração + entregas de hoje) */
.sd-ghead { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); margin: 12px 2px 8px; }
.sd-ghead:first-child { margin-top: 2px; }
.sd-ghead.alt { color: #a8394b; }
.sd-ghead span { font-weight: 600; }
.sd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.sd-item { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font: inherit; display: block; width: 100%; }
.sd-item:hover { border-color: var(--purple); box-shadow: 0 2px 8px rgba(45,8,89,.08); }
.sd-item.alt { border-left: 3px solid #a8394b; }
.sd-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sd-cli { font-weight: 700; color: var(--ink); font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-badge { flex: 0 0 auto; font-size: 10.5px; font-weight: 800; border-radius: 999px; padding: 2px 8px; background: var(--cream); color: var(--ink-soft); white-space: nowrap; }
.sd-badge.alt { background: #fdeeee; color: #a8394b; }
.sd-badge.outra { background: #fdf3e3; color: #a9772a; }
.sd-item-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Barras (volumetria, funil, carga) */
.sup-vol-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.sup-vol-row + .sup-vol-row { border-top: 1px solid var(--line); }
.sup-vol-l { flex: 0 0 150px; font-size: 13px; font-weight: 600; }
.sup-vol-bar { flex: 1; }
.sup-vol-n { flex: 0 0 90px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.sup-vol-sep { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .4px; margin: 12px 0 2px; padding-top: 10px; border-top: 2px dashed var(--line); }
/* Pendências */
.sup-pend { padding: 8px 0; }
.sup-pend + .sup-pend { border-top: 1px solid var(--line); margin-top: 4px; }
.sup-pend-h { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.sup-pend-h small { font-weight: 400; color: var(--ink-soft); }
.sup-pend-b { display: flex; flex-wrap: wrap; gap: 6px; }
.sup-tag { font-size: 12px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.sup-tag:hover { border-color: var(--brand); }
.attn-row.sev3 { border-left: 3px solid #b23b3b; }
/* Clientes em cards (Gestão) */
.sup-cli-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.sup-cli-card { padding: 14px 16px; border-left: 4px solid var(--line); display: flex; flex-direction: column; }
.sup-cli-card.sev3 { border-left-color: #b23b3b; }
.sup-cli-card.sev2 { border-left-color: #e0a72e; }
.sup-cli-card.sev1 { border-left-color: #3f7d5f; }
.sup-cli-h { display: flex; align-items: center; gap: 7px; font-size: 15px; }
.sup-cli-cart { font-size: 11px; color: var(--ink-soft); font-weight: 600; margin: 2px 0 8px; }
.sup-cli-m { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink); line-height: 1.7; flex: 1; }
.sup-cli-ok { font-size: 13px; color: #2f7d4f; font-weight: 600; flex: 1; }
.sup-cart-block + .sup-cart-block { margin-top: 18px; }
.sup-cart-block .sup-cock-gh { margin-bottom: 10px; }

/* 🏷 Aviso "falta marcar o tipo" no card do quadro (editores) */
.kc-cplxask { margin-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: #fff4d6; border: 1.5px solid #e0a72e; border-radius: 10px; padding: 7px 9px; animation: cplxpulse 2s ease-in-out infinite; }
.kc-cplxask-l { font-size: 12px; font-weight: 800; color: #8a5a00; flex: 1 1 auto; }
.kc-setcplx { border: 1px solid #b5701f; background: #fff; color: #8a5a00; font-weight: 700; font-size: 12px; border-radius: 8px; padding: 4px 10px; cursor: pointer; font-family: inherit; }
.kc-setcplx:hover { background: #8a5a00; color: #fff; }
@keyframes cplxpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(224,167,46,.0); } 50% { box-shadow: 0 0 0 4px rgba(224,167,46,.22); } }

.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
/* grupos de colunas (pares) com um fundinho colorido por etapa */
.kgroup { display: flex; gap: 10px; padding: 9px; border-radius: 16px; align-items: flex-start; flex: 0 0 auto; }
.kgroup .kcol { background: var(--paper); }
.kgroup .kcol-outras { background: var(--paper); border: 1px solid var(--line); }
.kgroup .kcol-trafego { background: var(--paper); border-color: #0f766e; }
.kgroup.g-outras   { background: #f2ecfa; }
.kgroup.g-espera   { background: #e7e9ee; }
.kgroup.g-producao { background: #e9f1fb; }
.kgroup.g-aprov    { background: #fcebee; }
.kgroup.g-done     { background: #eaf5ef; }
.kgroup.g-trafego  { background: #e2f3f0; }
.kcol { flex: 0 0 260px; width: 260px; min-width: 260px; max-width: 260px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.kcol-trafego { background: #e4f4f2; border-color: #0f766e; }
.kc-obs { font-size: 11px; color: var(--amber); background: var(--amber-soft); border-radius: 6px; padding: 4px 7px; margin-top: 6px; overflow-wrap: anywhere; word-break: break-word; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.kcol-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 4px 6px 10px; border-bottom: 2px solid var(--line); display: flex; justify-content: space-between; margin-bottom: 8px; }
.kcount { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; color: var(--ink-soft); }
.kcol-i, .res-i { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 999px; font-size: 10px; font-weight: 700; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); cursor: help; text-transform: none; letter-spacing: 0; flex: none; }
.kcol-i:hover, .res-i:hover { color: var(--brand); border-color: var(--brand); }
.res-i { width: 14px; height: 14px; margin-left: 4px; vertical-align: middle; }
.kcol-body { display: flex; flex-direction: column; gap: 8px; min-height: 30px; max-height: 78vh; overflow-y: auto; padding-right: 4px; }
.kempty { color: var(--ink-soft); font-size: 12px; text-align: center; padding: 8px; }
.kcard { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow-sm); overflow: visible; flex: 0 0 auto; }
.kcard, .kc-client, .kc-tema, .kc-meta { overflow-wrap: anywhere; word-break: break-word; }
.kc-links a { overflow-wrap: anywhere; word-break: break-all; }
.kcard.dragging { opacity: .45; }
.traf-cardbtns { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.traf-cardbtns .btn { font-size: 11px; padding: 3px 8px; }
.traf-cardbtns .badge { align-self: center; }
.traf-etq { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 600; color: #7c4dc4; background: #f1e9fb; border: 1px solid #ddc9f4; border-radius: 999px; padding: 2px 9px; }
.traf-filtro { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 2px 12px; }
.traf-filtro select { padding: 6px 10px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--ink); max-width: 260px; }
.traf-feed-sec { margin-top: 20px; padding: 14px 16px 16px; border: 1px dashed #cbb3ec; background: #faf6ff; border-radius: 16px; }
.traf-feed-head { font-weight: 800; color: #7c4dc4; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.traf-feed-head .kcount { background: #ece0fb; color: #7c4dc4; }
.traf-feed-sub { font-size: 12px; color: var(--ink-soft); margin: 5px 0 12px; max-width: 720px; }
.traf-feed-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.traf-feed-grid .kcard { width: 230px; background: #fff; }
.traf-feed-block { margin-top: 12px; }
.traf-feed-blockhead { font-weight: 700; font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.kcard.drop-target { border-color: var(--purple); box-shadow: 0 -3px 0 -1px var(--purple) inset, var(--shadow-sm); }
.kc-grip { cursor: grab; color: var(--ink-soft); margin-right: 6px; font-size: 13px; letter-spacing: -1px; user-select: none; }
.kc-grip:active { cursor: grabbing; }
.kc-client { font-family: var(--serif); font-size: 14px; color: var(--purple); }
.kc-tema { font-size: 12px; color: var(--ink); margin: 3px 0; }
.kc-meta { font-size: 11px; color: var(--ink-soft); }
.kc-foot { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.kc-demandrow { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--ink-soft); }
.kc-demandrow input { padding: 3px 5px; font-size: 11px; border-radius: 6px; border: 1px solid var(--line); }
.kc-links { margin-top: 6px; font-size: 11px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kc-links a { color: var(--purple-700); font-weight: 600; }
.kc-lnk { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; font-size: 10px; padding: 2px 6px; cursor: pointer; color: var(--ink-soft); }
.kc-lnk:hover { background: var(--purple-100); color: var(--purple-700); }
.load-strip { background: var(--cream-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin-bottom: 12px; font-size: 12px; color: var(--ink); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.load-pill { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-weight: 600; }
.load-pill.full { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.cont-chip { white-space: normal; }

@media (max-width: 760px) {
  .content-row { grid-template-columns: 1fr auto; }
  .content-row .c-date, .content-row .c-resp { grid-column: 1; font-size: 11px; }
  .c-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ---------- CALENDÁRIO ---------- */
.cal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cal-head h2 { font-family: var(--serif); font-size: 24px; color: var(--purple); min-width: 220px; text-transform: capitalize; }
.cal-nav { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; cursor: pointer; font-size: 18px; color: var(--purple); }
.cal-nav:hover { background: var(--purple-100); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 1050px; }
/* calendário + quadro "Em alerta" lado a lado */
.cal-wrap { display: flex; gap: 14px; align-items: flex-start; }
.cal-main { flex: 1; min-width: 0; }
.alerta-board { flex: 0 0 238px; align-self: stretch; background: #fff5f4; border: 1.5px solid #f0b4ac; border-radius: 14px; padding: 12px 12px 14px; box-shadow: 0 10px 30px -22px rgba(160,30,20,.5); }
.alerta-board.ab-dragover { border-color: #e5484d; background: #ffeceb; box-shadow: 0 0 0 2px #e5484d inset; }
.ab-head { font-weight: 800; font-size: 15px; color: #a8201a; display: flex; align-items: center; gap: 8px; }
.ab-head .ab-count { background: #e5484d; color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 9px; }
.ab-sub { font-size: 11.5px; color: #96514b; line-height: 1.4; margin: 6px 0 10px; }
.ab-group { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #f0b4ac; }
.ab-group:first-of-type { margin-top: 4px; padding-top: 0; border-top: none; }
.ab-gtitle { font-weight: 800; font-size: 12.5px; color: #a8201a; display: flex; align-items: center; gap: 7px; }
.ab-gtitle .ab-count { background: #e5484d; color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; }
.ab-gsub { font-size: 11px; color: #96514b; line-height: 1.35; margin: 4px 0 9px; }
/* Abas (guias) do quadro de alerta: Atrasado / Aguardando cliente / Pendente interno */
.ab-tabs { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.ab-tab { display: flex; align-items: center; gap: 7px; width: 100%; text-align: left; border: 1.5px solid #f0b4ac; background: #fff; color: #a8201a; border-radius: 10px; font: inherit; font-weight: 700; font-size: 12.5px; padding: 7px 10px; cursor: pointer; }
.ab-tab:hover { background: #fff0ef; }
.ab-tab.active { background: #e5484d; border-color: #e5484d; color: #fff; }
.ab-tab .ab-count { margin-left: auto; background: #e5484d; color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 8px; }
.ab-tab.active .ab-count { background: #fff; color: #e5484d; }
.ab-panel { margin-top: 0 !important; padding-top: 0 !important; border-top: none !important; }
.ab-list { display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.ab-group .ab-list { min-height: 0; }
.ab-card { background: #fff; border: 1px solid #f0cfca; border-left: 3px solid #e5484d; border-radius: 10px; padding: 8px 10px; cursor: grab; text-align: left; display: block; width: 100%; }
.ab-card:hover { border-color: #e5484d; }
.ab-card.dragging { opacity: .5; }
.ab-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ab-code { font-weight: 800; font-size: 13px; color: var(--purple); }
.ab-x { border: none; background: transparent; color: #a8201a; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0 4px; border-radius: 6px; line-height: 1; }
.ab-x:hover { background: #ffd9d6; }
.ab-tema { font-size: 12.5px; color: var(--ink); margin-top: 3px; line-height: 1.3; }
.ab-date { font-size: 11px; color: #b06a2a; font-weight: 700; margin-top: 4px; }
.ab-card-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 7px; }
.ab-move { border: 1px solid #e3b7c6; background: #fff; color: #9a3b63; border-radius: 999px; font-size: 11px; font-weight: 600; padding: 3px 9px; cursor: grab; font: inherit; line-height: 1.3; }
.ab-move:hover { background: #fdeef3; border-color: #c76f94; }
.ab-arch { border: 1px solid #c9b79a; background: #fff; color: #7a5a2a; border-radius: 999px; font-size: 11px; font-weight: 600; padding: 3px 9px; cursor: pointer; font: inherit; line-height: 1.3; }
.ab-arch:hover { background: #faf3e6; border-color: #b5924f; }
/* 📦 Arquivados (embaixo do calendário) */
.arch-sec h2 { margin-bottom: 10px; }
.arch-wrap { max-width: 720px; display: flex; flex-direction: column; gap: 8px; }
.arch-month { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.arch-month > summary { list-style: none; cursor: pointer; padding: 11px 14px; font-size: 13.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; user-select: none; }
.arch-month > summary::-webkit-details-marker { display: none; }
.arch-month > summary::before { content: "▸"; font-size: 11px; color: var(--ink-soft); }
.arch-month[open] > summary::before { content: "▾"; }
.arch-n { background: rgba(0,0,0,.08); border-radius: 999px; font-size: 11px; font-weight: 800; color: var(--ink-soft); padding: 1px 8px; }
.arch-list { padding: 0 14px 12px; display: flex; flex-direction: column; gap: 7px; }
.arch-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.arch-row .arch-chip { flex: 0 1 auto; }
.arch-un { margin-left: auto; white-space: nowrap; }
.ab-pend { border-left-color: #8a5cc4 !important; }
[data-grp].ab-grp-over { outline: 2px dashed #e5484d; outline-offset: 2px; border-radius: 12px; background: #fff0ef; }
.ab-drop-hint { font-size: 11.5px; color: #b58a86; text-align: center; padding: 12px 6px; border: 1px dashed #f0b4ac; border-radius: 10px; }
/* Enquanto arrasta um card do calendário: mostra as 3 abas como zonas de solta (senão só a aba ativa recebe o card) */
.ab-dz { display: none; }
.alerta-board.ab-dragging .ab-panel { display: block !important; margin-top: 8px; min-height: 58px; padding: 14px 10px; border: 2px dashed #f0b4ac; border-radius: 12px; background: #fff8f7; }
.alerta-board.ab-dragging .ab-gsub, .alerta-board.ab-dragging .ab-list { display: none; }
.alerta-board.ab-dragging .ab-dz { display: flex; align-items: center; justify-content: center; min-height: 34px; font-size: 12.5px; font-weight: 700; text-align: center; color: #a8201a; pointer-events: none; }
.alerta-board.ab-dragging .ab-panel.ab-grp-over { border-color: #e5484d; background: #ffe9e7; outline: none; }
.ab-empty { font-size: 12.5px; color: #96514b; text-align: center; padding: 16px 6px; line-height: 1.5; }
.ab-empty span { font-size: 11.5px; opacity: .85; }
@media (max-width: 760px){ .cal-wrap { flex-direction: column; } .alerta-board { flex: none; width: 100%; } }
/* Cabeçalho do mês no celular: título não cabia nos 220px fixos e ficava por cima das setas/contador. */
@media (max-width: 760px){
  .cal-head { flex-wrap: wrap; gap: 8px 10px; margin-bottom: 12px; }
  .cal-head h2 { min-width: 0; font-size: 20px; flex: 1 1 auto; }
  .cal-head > span { width: 100%; margin-left: 0 !important; order: 9; }
  .cal-head .btn { order: 9; }
}

/* ===== Pesquisa de Tempos ===== */
.pq-why { background: linear-gradient(180deg, var(--purple-100) 0%, #fff 100%); border: 1px solid var(--purple-100); }
.pq-why p { margin: 10px 0 0; line-height: 1.55; color: var(--ink); font-size: 14.5px; }
.pq-why p:first-of-type { margin-top: 8px; }
.pq-tip { background: #fff; border: 1px dashed var(--purple-300); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }
.pq-sub { color: var(--ink-soft); font-size: 13px; margin: 2px 0 0; line-height: 1.45; }
.pq-role { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pq-role select { flex: 0 0 auto; min-width: 200px; }
.pq-role-hint { font-size: 12px; color: var(--ink-soft); }
.pq-avail { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.pq-avail .lbl input { margin-top: 6px; }
.pq-grp { margin-top: 18px; }
.pq-grp:first-child { margin-top: 6px; }
.pq-grp-t { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--purple-500); font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pq-act { padding: 13px 0; border-bottom: 1px solid var(--purple-100); }
.pq-act:last-child { border-bottom: 0; }
.pq-nm { font-weight: 600; font-size: 14.5px; color: var(--ink); line-height: 1.35; }
.pq-unit { font-size: 12px; color: var(--purple-500); margin-top: 2px; }
.pq-row { display: flex; align-items: center; gap: 9px; margin-top: 9px; }
.pq-in { width: 96px; text-align: center; font-variant-numeric: tabular-nums; }
.pq-min { color: var(--ink-soft); font-size: 13px; }
.pq-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.pq-chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; font: inherit; }
.pq-chip:hover { border-color: var(--purple-500); color: var(--purple-500); }
.pq-chip.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.pq-save { position: sticky; bottom: 0; padding: 14px 0; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bg) 72%, transparent); margin-top: 10px; }
.pq-save .btn { width: 100%; font-size: 16px; padding: 15px; }
.pq-toast { text-align: center; font-weight: 600; color: var(--green); font-size: 13.5px; margin-top: 10px; min-height: 1.1em; }
.pq-results { border: 1.5px solid var(--purple-100); }
.pq-count { background: var(--purple); color: #fff; border-radius: 999px; font-size: 13px; padding: 1px 10px; vertical-align: middle; font-family: var(--sans); }
.pq-res-list { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.pq-res-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; background: var(--purple-100); border-radius: 10px; padding: 9px 12px; }
.pq-res-row b { color: var(--purple); min-width: 120px; }
.pq-res-row span { color: var(--ink-soft); font-size: 12.5px; }
.pq-empty { color: var(--ink-soft); font-size: 13px; margin-top: 8px; }
@media (max-width: 560px){ .pq-avail { grid-template-columns: 1fr; } .pq-role select { min-width: 0; width: 100%; } }
.cal-wd { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); padding: 6px 0; }
.cal-cell { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; min-height: 104px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.cal-cell.empty { background: transparent; border: none; }
.cal-cell.today { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.cal-cell.cal-add { cursor: pointer; position: relative; }
.cal-cell.cal-add:hover { border-color: var(--purple); background: var(--purple-100); }
.cal-cell .cal-plus { position: absolute; top: 5px; right: 8px; color: var(--purple); font-size: 15px; font-weight: 700; opacity: 0; line-height: 1; }
.cal-cell.cal-add:hover .cal-plus { opacity: .7; }
.cal-cell .dnum { font-family: var(--serif); font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.cal-cell.today .dnum { color: var(--purple); }
.cal-chip { font-size: 11px; padding: 3px 7px; border-radius: 7px; background: var(--purple-100); color: var(--purple-700); font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: none; text-align: left; width: 100%; }
.cal-chip.cont-chip[draggable="true"] { cursor: grab; }
.cal-chip.dragging { opacity: .45; }
.cal-cell.dragover { border-color: var(--purple); background: var(--purple-100); box-shadow: 0 0 0 2px var(--purple); }
.cal-chip:hover { background: var(--purple); color: #fff; }
.cal-chip.tipo { background: var(--green-soft); color: var(--green); }
.cal-chip.tipo:hover { background: var(--green); color: #fff; }
.cal-chip .cnt { opacity: .7; }
.cal-chip.chip-blocked { border: 1.5px solid #d12e2e !important; background: #fce4e4 !important; color: #b31e1e !important; font-weight: 700; font-style: italic; }
.cal-more { font-size: 10px; color: var(--ink-soft); padding-left: 2px; }

/* ---------- Barra de formatação (negrito/itálico do corpo e legenda) ---------- */
.fmt-bar { display: flex; align-items: center; gap: 4px; margin: 4px 0 6px; flex-wrap: wrap; }
.fmt-btn { min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 14px; cursor: pointer; line-height: 1; }
.fmt-btn:hover { background: var(--purple-100); border-color: var(--purple); }
.fmt-hint { font-size: 11px; color: var(--ink-soft); margin-left: 6px; }

/* ---------- Anotações importantes (mini bloco na Visão geral) ---------- */
.notes-card { background: #fffdf3; border-left: 4px solid #e0b93a; }
.notes-card textarea { width: 100%; margin-top: 8px; background: transparent; border: none; resize: vertical; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--ink); outline: none; min-height: 60px; }

/* ---------- Ícone de informação (ⓘ nos títulos) + tooltips ---------- */
.info-tip { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--purple-100); color: var(--purple); font-family: var(--sans); font-size: 11px; font-weight: 800; font-style: italic; cursor: help; margin-left: 8px; vertical-align: middle; position: relative; }
.info-tip:hover { background: var(--purple); color: #fff; }
.info-tip::after, .tabs button[data-tip]::after, .chip[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 8px);
  background: var(--ink); color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 500; font-style: normal; line-height: 1.45; text-align: left;
  padding: 9px 12px; border-radius: 9px; width: max-content; max-width: 280px; white-space: normal;
  opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 60; box-shadow: 0 8px 24px rgba(20,10,40,.28);
}
.info-tip:hover::after { opacity: 1; }
/* o tooltip do "i" ancora pela ESQUERDA (estende pra direita) pra não estourar/cortar na borda do modal */
.info-tip::after { left: 0; right: auto; transform: none; }
.tabs button { position: relative; }
.tabs button[data-tip]::after { top: calc(100% + 6px); }
.tabs button[data-tip]:hover::after { opacity: 1; }
.chip[data-tip] { position: relative; }
.chip[data-tip]:hover::after { opacity: 1; }

/* ---------- Estratégia mensal (mural por mês) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.strat-subbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; margin: 2px 0 20px; }
.strat-subtab { display: inline-flex; align-items: center; gap: 9px; border: 2px solid #cfe3d7; background: #fff; color: #2f6b4e; border-radius: 12px; font: inherit; font-weight: 800; font-size: 17px; padding: 15px 28px; cursor: pointer; line-height: 1; transition: all .12s; }
.strat-subtab:hover { border-color: #3f7d5f; background: #f1f8f4; }
.strat-subtab.on { background: #3f7d5f; border-color: #3f7d5f; color: #fff; font-size: 18px; padding: 16px 32px; box-shadow: 0 6px 18px rgba(63,125,95,.38); }
.strat-subtab .st-count { background: #e7f4ec; color: #2f6b4e; border-radius: 7px; font-size: 13px; padding: 2px 9px; font-weight: 800; }
.strat-subtab.on .st-count { background: rgba(255,255,255,.3); color: #fff; }
/* sub-guias de Produtos (nível de baixo): Pagos / Grátis — tom roxo, menores que as principais */
.prod-subbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 2px 0 6px; }
.prod-subtab { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--purple-100, #e4dcf3); background: #fff; color: var(--purple-700); border-radius: 10px; font: inherit; font-weight: 700; font-size: 14px; padding: 9px 16px; cursor: pointer; line-height: 1; transition: all .12s; }
.prod-subtab:hover { border-color: var(--purple); background: #faf8ff; }
.prod-subtab.on { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: 0 4px 12px rgba(45,8,89,.28); }
.prod-subtab .st-count { background: var(--purple-100, #ece6f7); color: var(--purple-700); border-radius: 6px; font-size: 12px; padding: 2px 7px; font-weight: 800; }
.prod-subtab.on .st-count { background: rgba(255,255,255,.28); color: #fff; }
/* etiqueta pago/grátis no card de produto (clique alterna; fica antes do título) */
.strat-ptipo { display: inline-block; align-self: flex-start; margin: 0 0 6px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; line-height: 1.5; }
.strat-ptipo.pago { color: #2f6b4e; border-color: #cfe3d7; background: #f1f8f4; }
.strat-ptipo.gratis { color: var(--purple-700); border-color: var(--purple-100, #e4dcf3); background: #faf8ff; }
.strat-ptipo:hover { filter: brightness(.97); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
/* quadrinho de materiais & links de produtos (topo da aba Produtos) */
.prod-hub { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 2px 0 14px; background: var(--paper); }
.prod-hub-h { font-size: 14px; font-weight: 800; color: var(--purple); margin-bottom: 9px; }
.prod-hub-h span { font-weight: 500; color: var(--ink-soft); font-size: 12px; }
.prod-hub-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.prodhub-nome { flex: 1 1 130px; min-width: 110px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; background: var(--paper); }
.prodhub-url { flex: 2 1 160px; min-width: 140px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; background: var(--paper); }
.prodhub-del { border: none; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 12px; border-radius: 6px; line-height: 1; padding: 2px 5px; }
.prodhub-del:hover { background: var(--red-soft); color: var(--red); }
.strat-yearnav { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.strat-months { margin-bottom: 12px; }
.chip.strat-month { cursor: pointer; padding: 6px 13px; font-size: 12.5px; }
.strat-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.strat-card { position: relative; background: #fffdf7; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px 16px; box-shadow: 0 2px 10px rgba(20,10,40,.06); }
.strat-fmt { display: flex; gap: 4px; margin: 0 0 8px; }
.strat-fmt .sfmt { min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 13px; cursor: pointer; line-height: 1; }
.strat-fmt .sfmt:hover { background: var(--purple-100); border-color: var(--purple); }
.strat-card .strat-title { width: 100%; border: none; background: transparent; font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--purple); outline: none; padding: 0 24px 8px 0; }
.strat-card .strat-title::placeholder { color: var(--purple-300); font-weight: 600; }
.strat-card-title { font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--purple); margin-bottom: 6px; }
.strat-card .strat-text { width: 100%; border: none; background: transparent; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--ink); outline: none; min-height: 48px; max-height: 108px; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; }
.strat-card .strat-text:empty:before { content: attr(data-ph); color: var(--ink-soft); }
.strat-card .strat-ro { font-size: 14px; line-height: 1.5; white-space: pre-wrap; min-height: 32px; max-height: 108px; overflow: auto; }

/* Prévia compacta no board (clica pra abrir) */
.strat-card .strat-preview { margin: 2px 0 8px; max-height: 150px; overflow: hidden; cursor: pointer; position: relative; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.strat-card .strat-preview.ro { cursor: default; -webkit-mask-image: none; mask-image: none; max-height: none; }
.strat-prev-sec { border-left: 3px solid var(--purple-200, #d9cbec); padding: 2px 0 2px 10px; margin: 0 0 8px; }
.strat-prev-t { font-weight: 700; font-size: 13px; color: var(--purple); margin-bottom: 1px; }
.strat-prev-b { font-size: 13px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
/* Links clicáveis nos blocos de estratégia (auto-detectados e os colados) */
.auto-link, .strat-prev-b a, .se-sec-body a { color: var(--purple); text-decoration: underline; overflow-wrap: anywhere; cursor: pointer; }
.auto-link:hover, .strat-prev-b a:hover, .se-sec-body a:hover { color: var(--purple-700, #4a2d7a); }
.strat-empty-prev { font-size: 13px; color: var(--ink-soft); font-style: italic; padding: 6px 0; }
.strat-expand { border: 1px dashed var(--purple-300, #9b7bc4); background: var(--purple-50, #f4eefc); color: var(--purple); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 9px; cursor: pointer; width: 100%; }
.strat-expand:hover { background: var(--purple-100, #ece0fa); }

/* Sub-cards dentro do modal */
.se-modal #seSecs { display: flex; flex-direction: column; gap: 12px; }
.se-sec { border: 1px solid var(--line); border-radius: 12px; background: #fffdf7; padding: 10px 12px; box-shadow: 0 1px 6px rgba(20,10,40,.05); }
.se-sec-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.se-sec-title { flex: 1; border: none; border-bottom: 1px solid transparent; background: transparent; font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--purple); outline: none; padding: 2px 0; }
.se-sec-title:focus { border-bottom-color: var(--purple-200, #d9cbec); }
.se-sec-title::placeholder { color: var(--purple-300); font-weight: 600; }
.se-sec-del { border: none; background: transparent; color: var(--ink-soft); font-size: 15px; cursor: pointer; line-height: 1; padding: 2px 4px; border-radius: 6px; }
.se-sec-del:hover { background: #f3d9de; color: #a8394b; }
.se-sec-body { min-height: 70px; max-height: 40vh; overflow: auto; font-size: 15px; line-height: 1.6; color: var(--ink); outline: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.se-sec-body:empty:before { content: attr(data-ph); color: var(--ink-soft); }
.strat-links { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.strat-link-row { display: flex; align-items: center; gap: 6px; }
.strat-link-ic { font-size: 13px; }
.strat-link-open { border: none; background: none; font-size: 14px; cursor: pointer; padding: 2px 4px; border-radius: 6px; line-height: 1; }
.strat-link-open:hover { background: var(--purple-100); }
.strat-link { flex: 1; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 12.5px; color: var(--ink); }
.strat-link-del { border: none; background: none; color: var(--ink-soft); cursor: pointer; font-size: 12px; padding: 2px 5px; border-radius: 6px; }
.strat-link-del:hover { background: var(--purple-100); color: var(--purple); }
.strat-addlink { margin-top: 8px; background: none; border: 1px dashed var(--line); border-radius: 8px; padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--purple); cursor: pointer; }
.strat-addlink:hover { background: var(--purple-100); border-color: var(--purple); }
.strat-links-ro { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.strat-link-chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--purple-100); color: var(--purple-700); font-weight: 600; text-decoration: none; }
.strat-del { position: absolute; top: 8px; right: 8px; border: none; background: none; color: var(--ink-soft); cursor: pointer; font-size: 14px; opacity: 0; border-radius: 6px; padding: 2px 6px; z-index: 2; }
.strat-card:hover .strat-del { opacity: 1; }
.strat-del:hover { background: var(--purple-100); color: var(--purple); }

/* ---------- Demandas / pedidos (cartões) ---------- */
.demand-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.demand-card:last-child { border-bottom: none; }
.demand-card.done { opacity: .55; }
.demand-card.done .demand-title { text-decoration: line-through; }
.demand-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--cream); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.demand-body { flex: 1; min-width: 0; }
.demand-title { font-weight: 600; font-size: 14px; }
.demand-notes { font-size: 13px; color: var(--ink-soft); margin: 4px 0 0; white-space: pre-wrap; }
.demand-meta { font-size: 12px; color: var(--ink-soft); margin-top: 5px; }
.demand-meta .late { color: var(--red); font-weight: 700; }
.demand-meta .soon { color: var(--amber); font-weight: 600; }
.demand-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.demand-actions .demand-status { width: auto; min-width: 130px; max-width: 150px; }

/* Reuniões de equipe · card + resumo legível + checklist */
.meet-row { transition: box-shadow .15s, border-color .15s; }
.meet-row:hover { border-color: var(--purple); box-shadow: 0 6px 20px -12px rgba(45,8,89,.4); }
.meet-hint { color: var(--purple); font-weight: 600; }
.meet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.meet-title { font-family: var(--serif); font-size: 18px; color: var(--purple); line-height: 1.2; }
.meet-acts { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.meet-body { font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.meet-body .mt-h { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--purple); font-weight: 800; margin: 16px 0 6px; }
.meet-body .mt-person { font-weight: 800; color: var(--ink); background: rgba(124,77,196,.10); border-radius: 8px; padding: 6px 10px; margin: 16px 0 6px; }
.meet-body .mt-bullet { position: relative; padding-left: 16px; margin: 4px 0; }
.meet-body .mt-bullet::before { content: "•"; position: absolute; left: 2px; color: var(--purple); font-weight: 700; }
.meet-body .mt-p { margin: 6px 0; }
.meet-body .mt-chk { display: flex; gap: 9px; align-items: flex-start; padding: 5px 6px; border-radius: 8px; cursor: pointer; margin: 1px 0; }
.meet-body .mt-chk:hover { background: rgba(124,77,196,.08); }
.meet-body .mt-box { flex: 0 0 auto; width: 18px; height: 18px; border: 2px solid var(--purple); border-radius: 5px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; line-height: 1; margin-top: 1px; }
.meet-body .mt-chk.done .mt-box { background: var(--purple); }
.meet-body .mt-chk.done .mt-chktext { text-decoration: line-through; color: var(--ink-soft); }
/* Tarefas de gestão editáveis (título/obs contenteditable) */
.gt-title[contenteditable], .gt-obs[contenteditable] { outline: none; cursor: text; border-radius: 6px; padding: 1px 4px; margin: -1px -4px; }
.gt-title[contenteditable]:hover, .gt-obs[contenteditable]:hover, .gt-title:focus, .gt-obs:focus { background: var(--cream); }
.gt-title:empty:before, .gt-obs:empty:before { content: attr(data-ph); color: var(--ink-soft); }

/* ---------- Banco de ideias (tabela) ---------- */
.idea-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.idea-table th { text-align: left; padding: 10px 14px; font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.idea-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.idea-table tr:last-child td { border-bottom: none; }
.idea-table tr.idea-used { background: var(--green-soft); }
.idea-table tr.idea-used b { color: var(--green); }
.idea-ed { outline: none; cursor: text; border-radius: 6px; padding: 3px 6px; margin: -3px -6px; min-width: 60px; font-size: 14px; }
.idea-ed.idea-tema { font-weight: 700; }
.idea-ed.idea-obs { color: var(--ink-soft); }
.idea-ed:hover, .idea-ed:focus { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.idea-ed:empty:before { content: attr(data-ph); color: var(--ink-soft); font-weight: 400; }
.idea-link { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); font-size: 12px; color: var(--ink); }

/* ---------- Resumo do mês por fase (calendário editorial) ---------- */
.content-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin-bottom: 16px; }
.content-stats .cst { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-align: center; }
.content-stats .cst-n { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--purple); line-height: 1; }
.content-stats .cst-l { font-size: 12px; color: var(--ink-soft); margin-top: 6px; font-weight: 600; line-height: 1.2; }
@media (max-width: 640px) { .content-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Entregas do Mês · Onde estamos ---------- */
.emd-weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 4px 0 18px; }
@media (max-width: 760px) { .emd-weeks { grid-template-columns: repeat(2, 1fr); } }
.emd-weeks.dim { opacity: .9; }
.emd-weeks.dim .wkc.active { outline: none; box-shadow: none; border-color: var(--line); }
.emd-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 2px 0 12px; }
.emd-daterange { display: inline-flex; align-items: center; gap: 6px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 5px 9px; font-size: 13px; color: var(--ink-soft); }
.emd-daterange input[type=date] { border: 0; background: transparent; font-family: inherit; font-size: 13px; color: var(--ink); width: 120px; }
.emd-dsep { color: var(--ink-soft); }
.emd-dclear { border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 13px; padding: 0 2px; }
.wkc { position: relative; text-align: left; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 12px 13px 13px; cursor: pointer; transition: .12s; }
.wkc:hover { transform: translateY(-2px); }
.wkc-n { font-family: var(--serif); font-weight: 700; font-size: 16px; color: var(--purple); }
.wkc-d { font-size: 11.5px; color: var(--ink-soft); font-weight: 600; margin-top: 1px; }
.wkc-mil { font-size: 11.5px; color: var(--purple); font-weight: 600; margin-top: 8px; line-height: 1.35; min-height: 30px; }
.wkc-bar { height: 7px; border-radius: 999px; background: color-mix(in srgb, var(--ink-soft) 20%, transparent); overflow: hidden; margin-top: 9px; }
.wkc-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #9bd315, #6fae12); }
.wkc-prog { font-size: 11px; color: var(--ink-soft); font-weight: 700; margin-top: 5px; }
.wkc.active { border-color: var(--lime, #B2E01E); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime, #B2E01E) 25%, transparent); }
.wkc.now::after { content: "VOCÊS ESTÃO AQUI"; position: absolute; top: -9px; left: 11px; background: var(--purple); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; }
.seg2 { display: inline-flex; background: color-mix(in srgb, var(--ink-soft) 10%, transparent); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg2 button { border: none; background: transparent; color: var(--ink-soft); font: inherit; font-weight: 700; font-size: 13.5px; padding: 8px 15px; border-radius: 9px; cursor: pointer; }
.seg2 button.on { background: var(--purple); color: #fff; }
.emd-sub { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin: 0 0 12px; }
.emd-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .emd-cards { grid-template-columns: 1fr; } }
.emd-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 15px; }
.emd-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.emd-av { width: 32px; height: 32px; border-radius: 9px; background: var(--purple); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; flex: 0 0 auto; }
.emd-who { font-weight: 800; font-size: 14.5px; color: var(--ink); }
.emd-spec { font-size: 11px; color: var(--purple); font-weight: 700; }
.emd-mini { margin-left: auto; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.emd-mini.ok { background: #e7f3ec; color: #2f7d4f; } .emd-mini.late { background: #fdecea; color: #c0392b; } .emd-mini.todo { background: #ede7f6; color: #5b2b8f; }
.emd-prog { font-size: 11px; color: var(--ink-soft); font-weight: 700; margin: 2px 0 6px; }
.emd-more { font-size: 11.5px; color: var(--purple); font-weight: 700; padding: 6px 0 2px; }
.emd-hid[hidden] { display: none; }
.emd-toggle { border: none; background: transparent; color: var(--purple); font: inherit; font-weight: 700; font-size: 11.5px; cursor: pointer; padding: 6px 0 2px; }
.emd-team { margin-bottom: 22px; }
.emd-team-h { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--purple); margin: 6px 0 10px; display: flex; align-items: center; gap: 8px; }
.emd-team-late { font-size: 11px; font-weight: 800; color: #c0392b; background: #fdecea; padding: 2px 8px; border-radius: 999px; }
.emd-typef { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.emd-tchip { border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font: inherit; font-weight: 600; font-size: 12px; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.emd-tchip:hover { border-color: var(--purple); }
.emd-tchip.on { background: var(--purple); color: #fff; border-color: var(--purple); }
.emd-tag { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, var(--ink-soft) 12%, transparent); color: var(--ink-soft); }
.emd-tag.t-estrategia { background: #ede7f6; color: #5b2b8f; } .emd-tag.t-copy { background: #e8f0fb; color: #1f5fa5; }
.emd-tag.t-roteiro { background: #fdeef6; color: #9a3b63; } .emd-tag.t-criativo { background: #fbf0dd; color: #b5701f; }
.emd-tag.t-postagem { background: #e7f3ec; color: #2f7d4f; } .emd-tag.t-aprovacao { background: #eef6d8; color: #5f7016; }
.emd-tag.t-metrica { background: #e9f6f5; color: #0f766e; } .emd-tag.t-onboarding { background: #fdeee7; color: #b5551f; }
.emd-task { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.35; }
.emd-task:first-of-type { border-top: none; }
.emd-st { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; margin-top: 1px; }
.emd-st.done { background: #2f7d4f; color: #fff; } .emd-st.doing { background: #fbe6c2; color: #9a6a12; } .emd-st.todo { background: color-mix(in srgb, var(--ink-soft) 25%, transparent); color: var(--ink-soft); } .emd-st.late { background: #c0392b; color: #fff; }
.emd-t { flex: 1; color: var(--ink); } .emd-cli { color: var(--ink-soft); font-weight: 600; }
.emd-due { font-size: 11px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; } .emd-due.late { color: #c0392b; }
.emd-empty { font-size: 12.5px; color: var(--ink-soft); padding: 6px 0 2px; }
/* ---------- Entregas do Mês · Saúde do cliente ---------- */
.saude-head { font-size: 14px; color: var(--ink-soft); margin: 2px 0 14px; } .saude-head b { color: #c0392b; font-size: 16px; }
.saude-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 860px) { .saude-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .saude-grid { grid-template-columns: 1fr; } }
.hcard { display: block; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--ink-soft); border-radius: 14px; padding: 12px 14px; text-decoration: none; }
.hcard:hover { border-color: var(--purple); }
.hcard.r2 { border-left-color: #c0392b; } .hcard.r1 { border-left-color: #b5701f; } .hcard.r0 { border-left-color: #2f7d4f; }
.hcard-top { display: flex; align-items: center; gap: 8px; }
.hcard-name { font-weight: 800; color: var(--ink); font-size: 14.5px; } .hcard-far { margin-left: auto; font-size: 15px; }
.hcard-vol { font-size: 11.5px; color: var(--purple); font-weight: 700; margin-top: 3px; }
.hcard-mot { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin-top: 5px; }

/* ---------- Pendências do cliente (conteúdo travado) ---------- */
.pend-card { border-left: 4px solid #8a6d1f; margin-bottom: 16px; }
.pend-card h3 { color: #7a5f18; font-family: var(--sans); font-size: 15px; }
.pend-count { display: inline-block; background: #8a6d1f; color: #fff; font-size: 12px; border-radius: 999px; padding: 1px 9px; margin-left: 4px; }
.pend-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.pend-row:first-of-type { border-top: none; }
.pend-row .d-name { font-weight: 600; }
.pend-row .d-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.cal-cell { align-content: start; }

/* Agenda (mobile) */
.agenda { display: flex; flex-direction: column; gap: 8px; }
.agenda-day { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.agenda-day.today { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.agenda-date { flex-shrink: 0; width: 52px; text-align: center; }
.agenda-date b { font-family: var(--serif); font-size: 22px; color: var(--purple); display: block; line-height: 1; }
.agenda-date span { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-soft); }
.agenda-chips { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.agenda-chips .cal-chip { white-space: normal; padding: 7px 10px; font-size: 13px; }

/* ---------- ESTRATÉGIA TRIMESTRAL / BLACK FRIDAY ---------- */
/* Abas de mês (Novembro / Dezembro / Janeiro) */
.etri-mesbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.etri-mestab { border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.etri-mestab:hover { border-color: var(--purple-300); }
.etri-mestab.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.etri-mestag { font-size: 11px; font-weight: 700; opacity: .9; }
.etri-mestab:not(.on) .etri-mestag { color: var(--purple-700); }
/* Barra de filtro (cliente / responsável) */
.etri-filterbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.etri-filter-ic { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.etri-filterbar select { flex: 0 1 240px; width: auto; max-width: 300px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); font: inherit; font-size: 13px; color: var(--ink); min-width: 170px; cursor: pointer; }
.etri-filterbar select:hover { border-color: var(--purple-300); }
.etri-toolsrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.etri-toolsrow .etri-filterbar { margin-bottom: 0; }
/* Alternar modo: Por cliente / Linha do tempo */
.etri-viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.etri-vbtn { border: none; background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 15px; cursor: pointer; }
.etri-vbtn + .etri-vbtn { border-left: 1px solid var(--line); }
.etri-vbtn.on { background: var(--purple); color: #fff; }
/* Linha do tempo (agenda por pessoa, ordenada por data) */
.etri-timeline { max-width: 820px; margin-top: 4px; }
.etri-tlgroup { margin-bottom: 22px; }
.etri-tlrow { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; background: var(--stbg, var(--paper)); border: 1px solid var(--line); border-left: 4px solid var(--st, var(--line)); border-radius: 10px; padding: 8px 12px; margin-bottom: 7px; }
.etri-tlrow.st-afazer  { --st:#b5701f; --stbg:#fdf8f0; }
.etri-tlrow.st-fazendo { --st:#2d7dd2; --stbg:#eff5fc; }
.etri-tlrow.st-feito   { --st:#3f7d5f; --stbg:#eef6f1; }
.etri-tldate { text-align: center; line-height: 1.12; }
.etri-tldate b { font-family: var(--serif); font-size: 17px; color: var(--purple); display: block; }
.etri-tldate span { font-size: 10px; text-transform: uppercase; color: var(--ink-soft); letter-spacing: .5px; }
.etri-tlbody { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.etri-tltask { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.etri-tlrow.st-feito .etri-tltask { text-decoration: line-through; opacity: .68; }
.etri-tlmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.etri-tlclient { font-size: 12px; font-weight: 600; color: var(--purple-700); background: var(--cream-2); border-radius: 999px; padding: 2px 10px; text-decoration: none; }
.etri-tlclient:hover { text-decoration: underline; }
.etri-tlstat { border: none; cursor: pointer; }
/* Linha do tempo agrupada por DATA dentro de cada pessoa */
.etri-tlday { margin: 0 0 4px; }
.etri-tldayhead { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--ink); background: var(--cream-2, var(--cream)); border-radius: 8px; padding: 5px 10px; margin: 10px 0 6px; }
.etri-tldaycount { margin-left: auto; font-weight: 600; font-size: 11px; color: var(--ink-soft); }
.etri-tlrow2 { background: var(--stbg, var(--paper)); border: 1px solid var(--line); border-left: 4px solid var(--st, var(--line)); border-radius: 10px; padding: 8px 12px; margin: 0 0 6px 12px; }
.etri-tlrow2.st-afazer  { --st:#b5701f; --stbg:#fdf8f0; }
.etri-tlrow2.st-fazendo { --st:#2d7dd2; --stbg:#eff5fc; }
.etri-tlrow2.st-feito   { --st:#3f7d5f; --stbg:#eef6f1; }
.etri-tlrow2 .etri-tltask { margin-bottom: 4px; }
.etri-tlrow2.st-feito .etri-tltask { text-decoration: line-through; opacity: .68; }
@media (max-width: 760px) { .etri-toolsrow { align-items: stretch; } .etri-tlrow2 { margin-left: 0; } }
/* Guia Calendário: grid do mês com pessoas + entregas por dia */
/* painel do calendário — destaca do fundo creme da página */
.etri-cal { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
/* navegação entre meses (‹ Novembro 2026 ›) */
.etri-cal-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 2px 0 14px; }
.etri-cal-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--purple); font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: background .12s, border-color .12s; }
.etri-cal-arrow:hover:not(:disabled) { background: var(--purple); border-color: var(--purple); color: #fff; }
.etri-cal-arrow:disabled { opacity: .3; cursor: default; }
.etri-cal-mlabel { text-align: center; font-family: var(--serif, inherit); font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.1; min-width: 180px; }
.etri-cal-mlabel span { color: var(--ink-soft); font-weight: 600; }
.etri-cal-mlabel small { display: block; font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--purple-700); text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }
.etri-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.etri-cal-wd { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-soft); text-align: center; padding: 2px 0 4px; }
.etri-cal-cell { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; min-height: 96px; padding: 6px 7px; min-width: 0; box-shadow: 0 1px 2px rgba(45,8,89,.04); }
.etri-cal-cell.empty { background: transparent; border: 0; min-height: 0; box-shadow: none; }
.etri-cal-cell.blank { background: #efe9dd; border-color: transparent; box-shadow: none; }
.etri-cal-cell.blank .etri-cal-dnum { color: var(--ink-soft); font-weight: 700; opacity: .75; }
.etri-cal-cell.today { border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.etri-cal-dnum { font-weight: 800; font-size: 13px; color: var(--ink); margin-bottom: 5px; display: flex; align-items: baseline; gap: 5px; }
.etri-cal-wdmini { display: none; font-weight: 600; font-size: 11px; color: var(--ink-soft); text-transform: uppercase; }
.etri-cal-cell.today .etri-cal-dnum { color: var(--purple); }
.etri-cal-person { margin-bottom: 5px; }
.etri-cal-pbtn { display: flex; align-items: center; gap: 6px; width: 100%; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; cursor: pointer; font: inherit; text-align: left; }
.etri-cal-pbtn:hover { background: var(--paper); border-color: var(--pc, var(--line)); }
.etri-cal-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.etri-cal-pnm { font-size: 11.5px; font-weight: 800; color: var(--ink); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etri-cal-pn { font-size: 10px; font-weight: 800; color: var(--ink-soft); flex: 0 0 auto; }
.etri-cal-pchev { font-size: 10px; color: var(--ink-soft); transition: transform .15s; flex: 0 0 auto; }
.etri-cal-pbtn.open .etri-cal-pchev { transform: rotate(90deg); }
.etri-cal-pdetail { padding: 4px 2px 2px 8px; }
.etri-cal-cliblk { margin: 5px 0; }
.etri-cal-cliname { display: block; font-size: 10.5px; font-weight: 700; color: var(--purple-700); text-decoration: none; }
.etri-cal-cliname:hover { text-decoration: underline; }
.etri-cal-task { font-size: 11px; color: var(--ink); line-height: 1.3; padding: 2px 0 2px 9px; border-left: 2px solid var(--st, var(--line)); margin: 2px 0; }
.etri-cal-task.st-afazer { --st:#b5701f; } .etri-cal-task.st-fazendo { --st:#2d7dd2; } .etri-cal-task.st-feito { --st:#3f7d5f; }
.etri-cal-task.st-feito { text-decoration: line-through; opacity: .62; }
/* tela (modal) do dia da pessoa — abre ao clicar no nome, mostra entregas por cliente */
.edmodal { padding: 0; overflow: hidden; }
.ed-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); border-top: 4px solid var(--pc, var(--purple)); }
.ed-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.ed-htxt { flex: 1; min-width: 0; }
.ed-name { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.ed-day { font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; }
.ed-head .icon-btn { flex: 0 0 auto; }
.ed-body { padding: 10px 18px 20px; max-height: 64vh; overflow-y: auto; }
.ed-body .etri-cal-cliblk { margin: 0 0 14px; padding: 0; }
.ed-body .etri-cal-cliname { font-size: 13.5px; margin-bottom: 4px; }
.ed-body .etri-cal-task { font-size: 13.5px; line-height: 1.4; padding: 4px 0 4px 11px; margin: 3px 0; border-left-width: 3px; }
/* 🔐 Acessos da equipe (logins) — aba da Gestão */
.login-day { margin-bottom: 18px; }
.login-dhead { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--purple-700); margin: 0 0 7px; }
.login-dhead span { color: var(--ink-soft); font-weight: 600; text-transform: none; letter-spacing: 0; }
.login-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; margin-bottom: 7px; }
.login-who { font-weight: 700; color: var(--ink); min-width: 120px; }
.login-time { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.login-loc { font-size: 13px; color: var(--ink); flex: 1; min-width: 150px; }
.login-dev { font-size: 11.5px; color: var(--ink-soft); background: var(--cream); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
@media (max-width: 560px) { .login-who { min-width: 100%; } .login-loc { flex-basis: 100%; } }
/* 🎂 Aniversários (clientes + equipe) */
.aniv-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 6px; background: var(--paper); }
.aniv-row.soon { border-color: #e4b961; background: #fffdf6; }
.aniv-row.today { border-color: #d9a441; background: #fff6e4; box-shadow: 0 0 0 1px #d9a441 inset; }
.aniv-cake { font-size: 17px; flex: 0 0 auto; }
.aniv-name { font-weight: 700; color: var(--ink); min-width: 120px; }
.aniv-tag { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; border-radius: 999px; padding: 2px 8px; }
.aniv-tag.cliente { background: var(--purple-100, #ece6f7); color: var(--purple-700); }
.aniv-tag.equipe { background: #e7f4ec; color: #2f6b4e; }
.aniv-date { font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.aniv-age { font-size: 12.5px; color: var(--ink-soft); }
.aniv-when { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--purple-700); white-space: nowrap; }
.aniv-row.today .aniv-when { color: #a9772a; }
.aniv-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; }
.aniv-edit-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.aniv-edit-row span { flex: 1 1 auto; color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aniv-edit-row input { flex: 0 0 auto; width: 140px; max-width: 48%; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 12.5px; font-family: inherit; background: var(--paper); }
@media (max-width: 560px) { .aniv-name { min-width: 100%; } .aniv-when { margin-left: 0; } }
@media (max-width: 720px) {
  .etri-cal-grid { grid-template-columns: 1fr; gap: 8px; }
  .etri-cal-wd { display: none; }
  .etri-cal-cell.empty, .etri-cal-cell.blank { display: none; }
  .etri-cal-cell { min-height: 0; }
  .etri-cal-wdmini { display: inline; }
}
.etri-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.etri-board.etri-board-single { grid-template-columns: 1fr; }
/* guias por cliente no modo "Por cliente" */
.etri-clienttabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.etri-ctab { border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: all .12s; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etri-ctab:hover { border-color: var(--purple); color: var(--purple); }
.etri-ctab.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.etri-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; box-shadow: var(--shadow-sm); }
.etri-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.etri-cname { font-family: var(--serif); font-size: 18px; color: var(--purple); font-weight: 600; text-decoration: none; }
.etri-cname:hover { text-decoration: underline; }
.etri-prog { font-size: 11.5px; color: var(--ink-soft); background: var(--cream-2); border-radius: 999px; padding: 2px 10px; font-weight: 700; white-space: nowrap; }
.etri-remove { margin-left: auto; border: none; background: transparent; cursor: pointer; font-size: 14px; opacity: .6; border-radius: 6px; padding: 2px 6px; line-height: 1; }
.etri-remove:hover { opacity: 1; background: var(--red-soft); }
.etri-lbl { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.etri-sec { margin-bottom: 14px; }
/* Seções de links com nome livre (Estratégia, Cases, Drive…) */
.etri-linksec { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--paper); }
.etri-linksec-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.etri-linksec-head .etri-lbl { margin: 0; font-size: 14px; }
.etri-secname { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); font-family: inherit; border: 1px solid transparent; border-radius: 7px; padding: 4px 7px; background: transparent; }
.etri-secname:hover { border-color: var(--line); }
.etri-secname:focus { border-color: var(--purple); background: var(--paper); outline: none; }
.etri-secdel { border: none; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 13px; border-radius: 6px; line-height: 1; padding: 3px 6px; flex: 0 0 auto; }
.etri-secdel:hover { background: var(--red-soft); color: var(--red); }
.etri-secadd { align-self: flex-start; }
/* Links (vários) */
.etri-links { display: flex; flex-direction: column; gap: 5px; margin-bottom: 8px; }
.etri-linkchip { display: flex; align-items: center; gap: 6px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.etri-linkchip[draggable="true"] { cursor: grab; }
.etri-linkchip.dragging { opacity: .45; }
.etri-linkgrip { color: var(--ink-soft); font-size: 13px; line-height: 1; cursor: grab; flex: 0 0 auto; user-select: none; letter-spacing: -1px; }
.etri-linksec.drop-ok { border-color: var(--purple); box-shadow: 0 0 0 2px var(--purple-100); background: var(--cream); }
.etri-linkchip a { font-size: 12.5px; color: var(--purple-700); font-weight: 600; word-break: break-all; flex: 1; text-decoration: none; }
.etri-linkchip a:hover { text-decoration: underline; }
.etri-linkdel { border: none; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 12px; border-radius: 6px; line-height: 1; padding: 2px 5px; }
.etri-linkdel:hover { background: var(--red-soft); color: var(--red); }
.etri-linkrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.etri-linknome { flex: 1 1 130px; min-width: 110px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; background: var(--paper); }
.etri-linkinput { flex: 2 1 160px; min-width: 140px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; background: var(--paper); }
/* Anotações */
.etri-notas { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; background: var(--paper); resize: vertical; line-height: 1.45; }
.etri-notas-view { font-size: 13px; color: var(--ink); white-space: pre-wrap; line-height: 1.5; background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
/* Tarefas · agrupadas por pessoa, com cor por status */
.etri-tasks-head { font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.etri-tasks-head .muted { color: var(--ink-soft); font-weight: 600; }
.etri-pgroup { margin-top: 14px; }
.etri-phead { display: flex; align-items: center; gap: 8px; padding-bottom: 5px; margin-bottom: 8px; border-bottom: 2px solid var(--pc, var(--line)); }
.etri-pavatar { width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .3px; flex: 0 0 auto; }
.etri-pname { font-weight: 700; font-size: 14px; color: var(--ink); }
.etri-pcount { font-size: 11px; font-weight: 700; color: var(--ink-soft); background: var(--cream-2); border-radius: 999px; padding: 1px 8px; }
.etri-phead .etri-add { margin-left: auto; }
.etri-pempty { font-size: 12.5px; padding: 2px 2px 4px; }
/* cada tarefa = card com borda/tinta pela cor do status */
.etri-task { margin-bottom: 8px; border: 1px solid var(--line); border-left: 4px solid var(--st, var(--line)); border-radius: 9px; padding: 9px 10px; background: var(--stbg, var(--paper)); }
.etri-task.st-afazer  { --st:#b5701f; --stbg:#fdf8f0; }
.etri-task.st-fazendo { --st:#2d7dd2; --stbg:#eff5fc; }
.etri-task.st-feito   { --st:#3f7d5f; --stbg:#eef6f1; }
.etri-tarefa { width: 100%; margin-bottom: 7px; font-weight: 600; }
.etri-task-ctrls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.etri-field-ic { font-size: 12px; opacity: .65; }
.etri-tf { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; background: var(--paper); font-family: inherit; min-width: 0; }
/* edição: controles num grid 2x2 — [📅 data][status] / [responsável][✕] */
.etri-task:not(.etri-task-view) .etri-task-ctrls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: center; }
.etri-field { display: inline-flex; align-items: center; gap: 4px; width: 100%; }
.etri-field .etri-date { flex: 1; width: 100%; }
.etri-task:not(.etri-task-view) .etri-stat { width: 100%; }
.etri-task:not(.etri-task-view) .etri-resp { width: 100%; grid-column: 1 / 3; }
.etri-task:not(.etri-task-view) .etri-del { grid-column: 3 / 4; grid-row: 1 / 3; align-self: center; }
.etri-del { border: none; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 14px; border-radius: 6px; line-height: 1; padding: 2px 7px; }
.etri-del:hover { background: var(--red-soft); color: var(--red); }
/* "📋 já é tarefa" — toggle que evita duplicar em Tarefas & Prazos (linha 3 do grid, dividindo com o 📝) */
.etri-task:not(.etri-task-view) .etri-ja { grid-column: 1 / 3; grid-row: 3; justify-self: start; }
/* 📝 observação opcional por tarefa */
.etri-task:not(.etri-task-view) .etri-obsbtn { grid-column: 3 / 4; grid-row: 3; justify-self: center; }
.etri-obsbtn { border: 1px solid var(--line); background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 13px; border-radius: 8px; line-height: 1; padding: 4px 8px; }
.etri-obsbtn:hover { border-color: var(--purple); color: var(--purple); }
.etri-obsbtn.has, .etri-obsbtn.open { border-color: #d9a441; background: #fff9ec; }
.etri-obs { width: 100%; margin-top: 8px; padding: 8px 10px; border: 1px solid #e4b961; border-radius: 8px; font-size: 13px; font-family: inherit; background: #fff9ec; resize: vertical; line-height: 1.45; }
.etri-obs-view { margin-top: 6px; font-size: 12.5px; color: #8a5a12; background: #fff9ec; border: 1px solid #f0dca8; border-radius: 7px; padding: 5px 9px; }
.etri-ja { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; line-height: 1.4; cursor: pointer; white-space: nowrap; border: 1px dashed var(--line); background: transparent; color: var(--ink-soft); }
.etri-ja:hover { border-color: var(--purple); color: var(--purple); }
.etri-ja.on { border-style: solid; border-color: var(--purple); background: var(--purple-soft, rgba(124,77,255,.12)); color: var(--purple); }
.etri-ja.done { cursor: default; border: 1px solid var(--green, #2e7d52); background: var(--green-soft, rgba(46,125,82,.12)); color: var(--green, #2e7d52); }
/* botão "enviar pra tarefas" + nota explicativa */
.etri-pushrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 16px; }
.etri-pushnote { font-size: 12px; color: var(--ink-soft); }
/* atalho 🎯 de volta pra trimestral, nas tarefas */
.tlite-etri { text-decoration: none; font-size: 13px; line-height: 1; flex-shrink: 0; opacity: .9; }
.tlite-etri:hover { opacity: 1; }
.etri-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-align: center; white-space: nowrap; }
.etri-task-view .etri-tname { font-size: 13.5px; color: var(--ink); font-weight: 600; display: block; margin-bottom: 6px; }
.etri-task-view.st-feito .etri-tname { text-decoration: line-through; opacity: .7; }
.etri-task-view .etri-task-ctrls { gap: 10px; }
.etri-date-v { font-size: 12px; color: var(--ink-soft); }
.etri-card .muted, .etri-tasks .muted { color: var(--ink-soft); }
@media (max-width: 900px) {
  .etri-board { grid-template-columns: 1fr; }
}

/* ---------- NOTIFICAÇÕES (menções) ---------- */
.nav-count { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 5px; margin-left: 7px; border-radius: 9px; background: #e1574f; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; vertical-align: middle; }
.notif-list { max-width: 720px; }
.notif-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; max-width: 720px; }
.notif-tab { border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.notif-tab:hover { background: var(--cream, #faf7f2); }
.notif-tab.on { background: var(--purple-600, #6a2bb3); border-color: var(--purple-600, #6a2bb3); color: #fff; }
.notif-tabn { background: rgba(0,0,0,.12); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 0 7px; min-width: 16px; text-align: center; }
.notif-tab.on .notif-tabn { background: rgba(255,255,255,.28); }
.notif-item { display: flex; gap: 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.notif-item.is-new { border-color: #c9a7ef; box-shadow: 0 0 0 3px rgba(150,90,220,.1); }
.notif-ava { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--purple-100, #efe7f7); color: var(--purple-600, #6a2bb3); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.notif-body { flex: 1 1 auto; min-width: 0; }
.notif-top { font-size: 13px; color: var(--ink, #333); margin-bottom: 4px; }
.notif-cli { color: var(--purple-600, #6a2bb3); font-weight: 700; }
.notif-when { color: #9a93a3; font-size: 11px; margin-left: 4px; }
.notif-new { display: inline-block; background: #e1574f; color: #fff; font-size: 9px; font-weight: 800; padding: 1px 6px; border-radius: 8px; margin-left: 4px; text-transform: uppercase; letter-spacing: .5px; }
.notif-text { font-size: 13px; color: var(--ink, #2b2b2b); line-height: 1.45; margin-bottom: 8px; white-space: pre-wrap; word-break: break-word; }
.notif-img { max-width: 160px; max-height: 120px; border-radius: 8px; display: block; margin-bottom: 8px; }

/* ---------- ATUALIZAÇÕES DO HUB ---------- */
.nav-updot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e1574f; margin-left: 7px; vertical-align: middle; box-shadow: 0 0 0 2px rgba(225,87,79,.25); }
.upd-list { max-width: 760px; }
.upd-item { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px; margin-bottom: 10px; }
.upd-head { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.upd-tag { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.upd-date { font-size: 12px; color: var(--ink-soft); }
.upd-title { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.upd-text { font-size: 13px; color: var(--ink); line-height: 1.55; margin-top: 4px; }
.upd-roles { margin-left: auto; display: flex; gap: 5px; flex-wrap: wrap; }
.upd-role { font-size: 10.5px; font-weight: 700; color: var(--purple-700, #4a2d7a); background: var(--purple-50, #f4eefc); border: 1px solid var(--purple-100, #e6dbf5); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.upd-filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.upd-fbtn { border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.upd-fbtn.on { background: var(--purple); color: #fff; border-color: var(--purple); }
/* Card de novidades no Painel */
.upd-painel { position: relative; padding: 14px 16px; margin-bottom: 16px; border-left: 4px solid var(--purple); }
.upd-painel-x { position: absolute; top: 8px; right: 10px; border: none; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 14px; border-radius: 6px; padding: 2px 7px; line-height: 1; }
.upd-painel-x:hover { background: var(--cream-2); color: var(--ink); }
.upd-painel-h { font-weight: 700; font-size: 14px; color: var(--purple); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.upd-painel-n { font-size: 11px; font-weight: 700; color: #fff; background: #e1574f; border-radius: 999px; padding: 1px 8px; }
.upd-painel-item { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 13.5px; padding: 6px 0; border-top: 1px dashed var(--line); }
.upd-painel-item:first-of-type { border-top: none; }
.upd-painel-item:hover b { text-decoration: underline; }
.upd-painel-mais { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--purple); text-decoration: none; }
.upd-painel-mais:hover { text-decoration: underline; }

/* ---------- MOBILE ---------- */
.menu-btn { display: none; }
@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 8px; }
  .sidebar .brand { padding: 0 !important; margin: 0; }
  .sidebar .brand img { max-width: 128px; width: auto; }
  .sidebar > .sub { display: none; }
  .sidebar .nav, .sidebar .foot, .sidebar .nav-label { display: none; }
  .sidebar.open .nav { display: flex; width: 100%; }
  .sidebar.open .nav-label { display: block; }
  .sidebar.open .foot { display: block; width: 100%; }
  .menu-btn { display: inline-block; margin-left: auto; background: rgba(255,255,255,.12); color: #fff; border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; }
  .main { padding: 20px 16px 64px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3, .grid.cols-2, .grid.cols-4 { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 28px; }
  .detail-head { flex-wrap: wrap; gap: 12px; }
  .cal-head { flex-wrap: wrap; }
  .cal-head h2 { min-width: 0; flex: 1; font-size: 20px; }
  .cal-head .btn, .cal-head .btn.sm { margin-left: 0 !important; }
  .toolbar { gap: 8px; }

  /* tarefas: vira flex que quebra linha (título em cima, controles embaixo) */
  .task-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
  .task-row .checkbox { order: 0; }
  .task-row .t-title { order: 1; flex: 1 1 70%; }
  .task-row .del-task { order: 2; margin-left: auto; }
  .task-row .owner-sel, .task-row .owner-pill, .task-row .status-sel { order: 3; flex: 1 1 30%; min-width: 96px; }
  .task-row .due-edit { order: 3; flex: 1 1 40%; min-width: 140px; }
}

/* ---------- COMERCIAL / SDR ---------- */
.sdr-list { display: flex; flex-direction: column; }
.sdr-item { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.sdr-item:last-child { border-bottom: none; }
.sdr-item .who { flex: 1; font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.3; }
.sdr-item .who small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
.sdr-resp { font-size: 11px; font-weight: 700; color: var(--purple); background: var(--purple-100); padding: 2px 8px; border-radius: 20px; }
.sdr-obs { font-size: 13px; cursor: help; opacity: .8; }
.sdr-count { font-size: 12px; font-weight: 700; color: var(--purple); background: var(--purple-100); border-radius: 20px; padding: 2px 10px; }
.sdr-pill { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 700; white-space: nowrap; }
.sdr-pill.ok  { background: var(--green-soft); color: var(--green); }
.sdr-pill.wait{ background: #fbf0d8; color: #9a6b16; }
.sdr-pill.bad { background: var(--red-soft); color: var(--red); }
.sdr-pill.mut { background: var(--purple-100); color: var(--purple); }
.sdr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sdr-table th { text-align: left; padding: 10px 12px; background: var(--purple-100); color: var(--purple); font-size: 11px; letter-spacing: .5px; text-transform: uppercase; position: sticky; top: 0; }
.sdr-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sdr-table tbody tr:hover { background: var(--paper-2, #faf6ee); }

/* ---------- SUBTABS (Comercial) ---------- */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.subtab { padding: 10px 16px; font-weight: 600; font-size: 14px; color: var(--ink-soft); border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; background: none; cursor: pointer; font-family: inherit; }
.subtab:hover { color: var(--purple); text-decoration: none; }
.subtab.active { color: var(--purple); border-bottom-color: var(--purple); }

/* ---------- SOCIAL SELLER (barras de análise) ---------- */
.big-metric { font-family: var(--serif); font-size: 40px; color: var(--purple); line-height: 1; margin: 6px 0 4px; }
.sbars { display: flex; flex-direction: column; gap: 9px; margin-top: 10px; }
.sbar { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 10px; }
.sbar-l { font-size: 12.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbar-track { height: 12px; background: var(--purple-100); border-radius: 20px; overflow: hidden; }
.sbar-fill { height: 100%; background: linear-gradient(90deg, var(--purple-500), var(--purple)); border-radius: 20px; }
.sbar-v { font-size: 13px; font-weight: 700; color: var(--purple); text-align: right; }

/* ---------- TRÁFEGO PAGO + modos da agenda ---------- */
.btn.active-mode { background: var(--purple); color: #fff; border-color: var(--purple); }
.traf-list { display: flex; flex-direction: column; }
.traf-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.traf-row:last-child { border-bottom: none; }
.traf-row.is-done { opacity: .7; }
.traf-main { flex: 1; min-width: 200px; }
.traf-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.traf-title small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
.traf-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.traf-nolink { font-size: 12px; color: var(--ink-soft); font-style: italic; }

/* ---------- NAV bloqueada ---------- */
.nav a.nav-locked { opacity: .5; }
.nav a.nav-locked:hover { opacity: .8; }
.nav-lock { margin-left: auto; font-size: 11px; }

/* ---------- ASSISTENTE IA (chat) ---------- */
.ai-wrap { max-width: 820px; }
.ai-msgs { display: flex; flex-direction: column; gap: 12px; min-height: 300px; max-height: 58vh; overflow-y: auto; padding: 6px 2px 12px; }
.ai-hello { background: var(--purple-100); color: var(--purple); padding: 16px 18px; border-radius: 14px; font-size: 15px; align-self: flex-start; max-width: 90%; }
.ai-bubble { padding: 12px 16px; border-radius: 16px; max-width: 82%; font-size: 15px; line-height: 1.55; }
.ai-me { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 5px; }
.ai-bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.ai-err { background: var(--amber-soft); border-color: #e6cfa0; color: #7a5312; }
.ai-bot p { margin: 0 0 8px; }
.ai-bot p:last-child { margin-bottom: 0; }
.ai-bot p.ai-h { margin-top: 12px; color: var(--purple); }
.ai-bot ul { margin: 4px 0 10px; padding-left: 20px; }
.ai-bot li { margin: 3px 0; }
.ai-bot strong { font-weight: 700; color: var(--purple); }
.ai-bot code { background: var(--purple-100); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.ai-typing { color: var(--ink-soft); font-style: italic; }
.ai-input { display: flex; gap: 10px; align-items: flex-end; margin-top: 8px; }
.ai-input textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-family: inherit; font-size: 15px; background: var(--paper); color: var(--ink); line-height: 1.4; }
.ai-input textarea:focus { outline: none; border-color: var(--purple-300); }
.ai-input .btn { height: 44px; }
.ai-suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ai-chip { background: var(--paper); border: 1px solid var(--line); color: var(--purple); border-radius: 20px; padding: 7px 14px; font-size: 13px; cursor: pointer; font-family: inherit; }
.ai-chip:hover { background: var(--purple-100); }

/* ---------- Reordenar materiais (setinhas) ---------- */
.doc-moves { display: flex; flex-direction: column; gap: 1px; margin-right: 2px; }
.doc-moves .doc-move { font-size: 9px; line-height: 1; padding: 2px 5px; color: var(--purple); border: 1px solid var(--line); border-radius: 5px; background: var(--paper); cursor: pointer; }
.doc-moves .doc-move:hover:not([disabled]) { background: var(--purple-100); }
.doc-moves .doc-move[disabled] { opacity: .25; cursor: default; }

/* ---------- Materiais: filtro, categoria editável, drag&drop ---------- */
.doc-filterbar { display: flex; align-items: center; gap: 10px; margin: 0 0 10px 2px; }
.doc-filterbar select { padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 13px; color: var(--ink); }
.doc-grip { cursor: grab; color: var(--ink-soft); font-size: 16px; line-height: 1; padding: 0 2px; user-select: none; flex-shrink: 0; letter-spacing: -2px; }
.doc-grip:active { cursor: grabbing; }
.doc-row.dragging { opacity: .45; }
.doc-row.drop-target { box-shadow: inset 0 2px 0 var(--purple); background: var(--purple-100); }
.doc-cat-sel { font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--purple-100); background: var(--purple-100); color: var(--purple-700); font-weight: 600; max-width: 190px; cursor: pointer; }
.doc-cat-sel:hover { border-color: var(--purple); }

/* ---------- Links & perfis do cliente (Visão geral) ---------- */
.client-link-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.client-link-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; }
.client-link-chip a { color: var(--purple-700); font-weight: 600; text-decoration: none; }
.client-link-chip a:hover { text-decoration: underline; }
.client-link-chip .cl-del { border: none; background: none; color: var(--ink-soft); cursor: pointer; font-size: 12px; line-height: 1; padding: 2px 4px; border-radius: 999px; }
.client-link-chip .cl-del:hover { background: var(--purple-100); color: var(--purple); }
.client-link-add select, .client-link-add input { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 13px; color: var(--ink); width: 100%; }

/* ---------- 📌 Quadros de mensagens/materiais pro cliente (gestora) ---------- */
.gb-wrap { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--cream-2, #faf7f2); max-width: 760px; }
.gb-card { border: 1.5px solid; border-radius: 12px; padding: 10px 12px; }
.gb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gb-card.is-open .gb-head { padding-bottom: 9px; margin-bottom: 10px; border-bottom: 1px solid; }
.gb-toggle { background: none; border: none; cursor: pointer; font-size: 11px; color: var(--ink-soft); padding: 2px 3px; line-height: 1; flex-shrink: 0; }
.gb-count { background: rgba(0,0,0,.09); border: none; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--ink-soft); padding: 2px 9px; cursor: pointer; flex-shrink: 0; white-space: nowrap; }
.gb-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.gb-title { flex: 1 1 120px; min-width: 0; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.08); border-radius: 7px; padding: 4px 8px; color: var(--ink); }
.gb-title-ro { flex: 1; font-weight: 700; font-size: 14px; color: var(--ink); }
.gb-colors { display: inline-flex; gap: 4px; }
.gb-cdot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.12); cursor: pointer; padding: 0; }
.gb-cdot.on { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(0,0,0,.12); }
.gb-items { display: flex; flex-direction: column; gap: 8px; }
.gb-item { display: flex; align-items: flex-start; gap: 8px; background: rgba(255,255,255,.72); border: 1px solid rgba(0,0,0,.06); border-radius: 10px; padding: 9px 10px; }
.gb-item-main { flex: 1; min-width: 0; }
.gb-item-t { font-weight: 700; font-size: 12.5px; color: var(--ink); }
.gb-item-text { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; white-space: pre-wrap; word-break: break-word; line-height: 1.4; }
.gb-item-act { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.gb-empty { font-size: 12.5px; color: var(--ink-soft); padding: 4px 2px; }
.gb-addrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gb-addform { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; background: rgba(255,255,255,.72); border: 1px solid rgba(0,0,0,.08); border-radius: 10px; padding: 10px; }
.gb-addform input, .gb-addform textarea { font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; background: #fff; color: var(--ink); width: 100%; }
.gb-addform textarea { resize: vertical; }
.gb-addbtns { display: flex; gap: 7px; }
/* mensagem (abre em card) + anexos dentro dela */
.gb-msg { background: rgba(255,255,255,.72); border: 1px solid rgba(0,0,0,.07); border-radius: 10px; }
.gb-msg-head { display: flex; align-items: center; gap: 7px; padding: 8px 10px; }
.gb-mtoggle { background: none; border: none; cursor: pointer; font-size: 10px; color: var(--ink-soft); padding: 1px 3px; flex-shrink: 0; }
.gb-msg-t { flex: 1; min-width: 0; font-weight: 700; font-size: 12.5px; color: var(--ink); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-msg.is-open .gb-msg-t { white-space: normal; }
.gb-msg-badge { font-size: 11px; font-weight: 700; color: var(--ink-soft); background: rgba(0,0,0,.06); border-radius: 999px; padding: 1px 7px; flex-shrink: 0; }
.gb-msg-body { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; }
.gb-atts { display: flex; flex-direction: column; gap: 5px; }
.gb-att { display: flex; align-items: center; gap: 6px; }
.gb-att-link { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; color: var(--purple-700, #5a38be); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-att-link:hover { text-decoration: underline; }
/* lista compacta de categorias (clica pra ABRIR na tela grande) */
.gb-cat { display: flex; align-items: center; gap: 9px; border: 1.5px solid; border-radius: 11px; padding: 10px 12px; cursor: pointer; }
.gb-cat:hover { filter: brightness(0.98); }
.gb-cat:hover .gb-open-ic { text-decoration: underline; }
.gb-cat-title { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-open-ic { font-size: 12px; font-weight: 700; color: var(--purple-700, #5a38be); white-space: nowrap; }
/* modal da categoria aberta */
.gb-modal-head { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.gb-modal .gb-title { flex: 1; font-size: 16px; }
.gb-modal .gb-items { margin-top: 4px; display: flex; flex-direction: column; gap: 9px; }

/* ---------- Links & infos úteis (página do funcionário) ---------- */
.link-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 12px; }
.link-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.link-row:last-child { border-bottom: none; }
.link-ic { font-size: 15px; flex-shrink: 0; }
.link-body { flex: 1; min-width: 0; }
.link-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.link-text { font-size: 13px; color: var(--ink-soft); margin-top: 3px; word-break: break-word; white-space: pre-wrap; background: var(--cream-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; }
.link-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link-add input { flex: 1; min-width: 140px; }
.link-add select { flex: 0 0 auto; }

/* ---------- Banco de emojis do cliente (editor de conteúdo) ---------- */
.emoji-bank { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.emoji-chip { font-size: 18px; line-height: 1; padding: 4px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); cursor: pointer; }
.emoji-chip:hover { background: var(--purple-100); border-color: var(--purple-300); }

/* ---------- Automações (comentário → direct, estilo ManyChat) ---------- */
.auto-sec { margin-top: 14px; border: 1px dashed var(--purple-300, #c9b3ec); border-radius: 12px; padding: 12px 14px; background: var(--purple-050, #f6f1fd); }
.auto-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.auto-panel { margin-top: 12px; }
/* navegação mensal das automações (‹ Novembro 2026 ›) */
.auto-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 2px 0 16px; }
.auto-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--purple); font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: background .12s, border-color .12s; }
.auto-arrow:hover:not(:disabled) { background: var(--purple); border-color: var(--purple); color: #fff; }
.auto-arrow:disabled { opacity: .3; cursor: default; }
.auto-mlabel { text-align: center; font-family: var(--serif, inherit); font-size: 21px; font-weight: 800; color: var(--ink); line-height: 1.1; min-width: 180px; }
.auto-mlabel span { color: var(--ink-soft); font-weight: 600; }
.auto-mlabel small { display: block; font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--purple-700); text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; }
/* pacote do mês (link/PDF com todas as automações juntas) — destacado em dourado */
.auto-batch { border: 2px dashed #e4b961; background: #fff9ec; border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; }
.auto-batch.filled { border-style: solid; border-color: #d9a441; }
.auto-batch-h { font-size: 15px; font-weight: 800; color: #8a5a12; margin-bottom: 2px; }
.auto-batch-sub { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }
.auto-batch .ab-open { background: #d9a441; border-color: #d9a441; color: #3a2606; font-weight: 800; margin-bottom: 10px; }
.auto-batch .ab-open:hover { background: #c9922f; }
.auto-batch-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.auto-batch .ab-link { flex: 1 1 240px; min-width: 180px; padding: 8px 11px; border: 1px solid #e4b961; border-radius: 9px; font-size: 13px; font-family: inherit; background: #fff; }
.ab-filewrap { font-size: 12px; font-weight: 700; color: #8a5a12; background: #fff; border: 1px solid #e4b961; border-radius: 9px; padding: 7px 11px; cursor: pointer; white-space: nowrap; }
.ab-filewrap input[type=file] { display: none; }
.auto-batch .ab-del { border: none; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 14px; border-radius: 6px; padding: 4px 7px; }
.auto-batch .ab-del:hover { background: var(--red-soft); color: var(--red); }
.auto-batch-meta { font-size: 11.5px; color: var(--ink-soft); margin-top: 8px; }
.auto-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.auto-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--paper); box-shadow: var(--shadow-sm); }
.auto-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.auto-code { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--purple); }
.auto-field { margin-top: 8px; }
.auto-flabel { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-soft); margin-bottom: 3px; }
.auto-flabel .auto-copy { font-size: 13px; padding: 0 4px; }
.auto-val { font-size: 13px; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.auto-val.auto-ed { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: var(--paper); min-height: 20px; }
.auto-val.auto-ed:focus { outline: none; border-color: var(--purple-300, #c9b3ec); box-shadow: 0 0 0 2px var(--purple-100); }
.auto-group { margin-top: 8px; border-left: 3px solid var(--purple-100); padding-left: 10px; }
.auto-glabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--purple); margin: 6px 0 2px; }
.auto-manual { margin-top: 10px; border: 1px solid var(--green); border-radius: 10px; padding: 10px 12px; background: var(--green-soft); }
.auto-manual .auto-val.auto-ed { background: #fff; }
.auto-details { margin-top: 12px; }
.auto-details > summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ink-soft); list-style: none; padding: 4px 0; }
.auto-details > summary::-webkit-details-marker { display: none; }
.auto-details > summary::before { content: "▸ "; }
.auto-details[open] > summary::before { content: "▾ "; }
.cal-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--ink-soft); margin: -4px 2px 12px; }
.cal-legend .cl-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 10px; }
.cal-legend .cl-dot:first-child { margin-left: 0; }
.auto-hin { border-bottom: 1px dashed var(--purple-300, #c9b3ec); padding: 0 2px; min-width: 40px; display: inline-block; outline: none; }
.auto-hin-ref { font-weight: 400; color: var(--ink); }
.auto-hin:empty:before, .auto-val.auto-ed:empty:before { content: attr(data-ph); color: var(--ink-soft); opacity: .6; }
.auto-tagmanual { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--amber); background: var(--amber-soft); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }
.auto-openlink { font-size: 11px; color: var(--purple); margin-left: auto; margin-right: 8px; white-space: nowrap; }
.auto-addreply { padding: 0 8px !important; font-size: 11px !important; margin-left: 8px; }

/* ---------- Linhas editoriais / Pilares / Funções (3 blocos, itens em chips coloridos) ---------- */
.pil-wrap { display: flex; flex-direction: column; gap: 16px; }
.pil-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .pil-two { grid-template-columns: 1fr; } }
.pil-sec { padding: 16px 20px; }
.pil-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pil-sec-head h3 { margin: 0; font-family: var(--serif); color: var(--purple); font-size: 18px; }
.pil-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; align-items: start; }
.pil-group { border: 1px solid var(--purple-100); border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm); }
.pil-group-h { display: flex; align-items: center; gap: 4px; padding: 9px 12px; background: var(--purple-100); }
.pil-group-h b, .pil-gtitle { font-family: var(--serif); font-weight: 700; color: var(--purple); font-size: 14px; flex: 1; }
.pil-gtitle { outline: none; border-radius: 6px; padding: 1px 4px; }
.pil-gtitle:focus { background: #fff; box-shadow: 0 0 0 2px var(--purple-300, #c9b3ec); }
.pil-gtitle:empty:before, .pil-item:empty:before { content: attr(data-ph); color: var(--ink-soft); opacity: .6; font-weight: 400; }
.pil-gdel { opacity: .5; flex-shrink: 0; }
.pil-gdel:hover { opacity: 1; }
.pil-ul { list-style: none; margin: 0; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.pil-li { display: flex; align-items: stretch; gap: 4px; }
.pil-item { flex: 1; font-size: 13px; color: var(--ink); line-height: 1.35; border: 1px solid var(--line); border-radius: 9px; padding: 5px 10px; outline: none; transition: box-shadow .1s; }
.pil-gul .pil-item      { background: #f4effb; border-color: #e2d6f2; }             /* Linhas → roxo */
[data-list="pilares"] .pil-item { background: var(--green-soft); border-color: #cde3d4; }  /* Pilares → verde */
[data-list="funcoes"] .pil-item { background: var(--amber-soft); border-color: #ecdcc0; }  /* Funções → âmbar */
.pil-item:focus { box-shadow: 0 0 0 2px var(--purple-300, #c9b3ec); background: #fff; }
.pil-li .pil-x { opacity: 0; flex-shrink: 0; font-size: 12px; align-self: center; }
.pil-li:hover .pil-x { opacity: .5; }
.pil-li .pil-x:hover { opacity: 1; }
.pil-add { margin: 4px 0 2px 12px; background: none; border: 1px dashed var(--line); border-radius: 8px; color: var(--purple); font-size: 12px; padding: 3px 10px; cursor: pointer; }
.pil-add:hover { background: var(--purple-100); border-color: var(--purple-300, #c9b3ec); }
.pil-two .pil-sec .pil-add { margin-left: 12px; }
.pil-seedbar { margin-top: 2px; }
.cup-hint { font-size: 11px; color: var(--ink-soft); margin-top: 4px; min-height: 14px; }
.cup-hint a { color: var(--purple); }
.expandfield { min-height: 40px; line-height: 1.45; resize: vertical; overflow: hidden; transition: min-height .12s ease; white-space: pre-wrap; word-break: break-word; }
.expandfield.expanded { min-height: 92px; }

/* ---------- Comentários no card de conteúdo ---------- */
.cmt-sec { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--cream-2); }
.cmt-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; margin: 8px 0 10px; }
.cmt-item { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; }
.cmt-meta { font-size: 11px; color: var(--ink-soft); margin-bottom: 3px; }
.cmt-meta b { color: var(--purple); }
.cmt-text { font-size: 13px; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.cmt-empty { font-size: 12px; color: var(--ink-soft); padding: 6px 2px; }
.cmt-edited { font-style: italic; opacity: .8; }
.cmt-edit-btn, .cmt-del-btn { border: none; background: transparent; cursor: pointer; font-size: 11px; padding: 0 2px; opacity: .45; line-height: 1; }
.cmt-item:hover .cmt-edit-btn, .cmt-item:hover .cmt-del-btn { opacity: .9; }
.cmt-editbox { margin-top: 4px; }
.cmt-editbox .cmt-editta { width: 100%; box-sizing: border-box; font-size: 13px; font-family: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; resize: vertical; min-height: 56px; background: var(--card, #fff); color: var(--ink); }
.cmt-editacts { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.pt-cmteditacts { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.sllr-list { display: flex; flex-direction: column; }
.sllr-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
.sllr-row:last-child { border-bottom: none; }
.sllr-l { color: var(--ink); }
.sllr-n { font-weight: 700; color: var(--purple); font-size: 15px; }
.sllr-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-soft); }
.cmt-add { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.cmt-add textarea { flex: 1 1 180px; min-width: 0; }
/* 📱 Celular: nada dentro do card de conteúdo pode estourar a largura (botões, textos e links longos do Drive). */
@media (max-width: 640px) {
  .modal { padding: 16px; }
  /* a caixa de comentar: textarea ocupa a linha toda e os botões descem embaixo */
  .cmt-add { align-items: stretch; }
  .cmt-add textarea { flex: 1 1 100%; }
  .cmt-add .btn { flex: 1 1 auto; white-space: nowrap; }
  .cmt-list { max-height: 50vh; }
  /* deixa os blocos e colunas encolherem em vez de empurrar pro lado */
  .ed-zone, .ed-zone > *, .form-row, .form-row > * { min-width: 0; }
  /* textos e links longos QUEBRAM em vez de cortar */
  .obscli-box, .cmt-sec, .auto-sec, .cmt-text, .cmt-list, .field-linkview, .ed-reminder, .ed-zone { overflow-wrap: anywhere; word-break: break-word; }
  .field-linkview a, .cmt-text a, .auto-link, .obscli-box a, .cmt-list a { word-break: break-all; }
}
.kc-cmt { color: var(--purple); font-weight: 700; }



/* ============================================================
   CENTRAL DO CLIENTE (portal.html) — cósmico roxo/verde
   ============================================================ */
.portal-body { --lime:#B2E01E; --lime-soft:#c8ee5a; --roxo:#2D0859; --roxo-deep:#12022b; --roxo-ink:#0a0118;
  --roxo-line:#4a1a80; --off:#f3efe6; --mut:#b9a9d6; --mut2:#8f7bb5;
  background:var(--roxo-ink); color:var(--off); min-height:100vh; }
/* fundo cósmico dinâmico */
.pt-bgfx { position:fixed; inset:0; z-index:-3; background:
  radial-gradient(1200px 700px at 78% -5%, #4a127e 0%, rgba(74,18,126,0) 55%),
  radial-gradient(900px 600px at 8% 15%, #2a0a55 0%, rgba(42,10,85,0) 60%),
  radial-gradient(1000px 900px at 50% 115%, #34075f 0%, rgba(52,7,95,0) 55%),
  var(--roxo-ink); animation:ptDrift 24s ease-in-out infinite alternate; }
@keyframes ptDrift { 0%{ background-position:0 0,0 0,0 0,0 0; } 100%{ background-position:40px -30px,-30px 20px,20px 20px,0 0; } }
.pt-bggrid { position:fixed; inset:0; z-index:-2; opacity:.5; pointer-events:none;
  background-image:linear-gradient(rgba(140,90,220,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(140,90,220,.06) 1px,transparent 1px);
  background-size:54px 54px; -webkit-mask-image:radial-gradient(circle at 50% 25%,#000 30%,transparent 85%); mask-image:radial-gradient(circle at 50% 25%,#000 30%,transparent 85%); }
.pt-stars { position:fixed; inset:0; z-index:-1; pointer-events:none; opacity:.7; }
.pt-stars i { position:absolute; border-radius:50%; background:#cbb6ff; animation:ptTw 4s infinite ease-in-out; }
@keyframes ptTw { 0%,100%{ opacity:.15; transform:scale(1); } 50%{ opacity:.95; transform:scale(1.35); } }

#portal { position:relative; z-index:1; max-width:820px; margin:0 auto; padding:0 18px 90px; }
.pt-loading { text-align:center; color:var(--mut); padding:60px 0; }
.pt-muted { color:var(--mut); font-size:13px; }
.pt-muted2 { color:#d7cbef; font-size:13px; line-height:1.5; white-space:pre-wrap; }
.pt-center { text-align:center; padding:70px 20px; }
.pt-center h2 { color:#fff; }
.pt-logo { max-width:150px; margin:0 auto 16px; display:block; filter:brightness(0) invert(1); opacity:.95; }
.pt-eyebrow { font-size:11px; letter-spacing:4px; text-transform:uppercase; color:var(--lime); margin:8px 0 6px; }
.pt-eyebrow2 { font-size:11px; letter-spacing:4px; text-transform:uppercase; color:var(--lime); margin-bottom:8px; }

/* login */
.pt-login { min-height:100vh; display:grid; place-items:center; padding:22px; }
.pt-login-box { background:linear-gradient(180deg,rgba(66,20,120,.5),rgba(30,7,60,.55)); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(120,70,190,.35); border-radius:24px; box-shadow:0 30px 80px rgba(0,0,0,.55); padding:44px 34px; width:100%; max-width:390px; text-align:center; }
.pt-login-box h1 { font-size:30px; color:#fff; margin-bottom:8px; }
.pt-login-box input { width:100%; margin:16px 0 12px; padding:13px 16px; border:1px solid rgba(178,224,30,.35); border-radius:14px; font-size:15px; text-align:center; background:rgba(255,255,255,.95); color:#241b31; }
.pt-login-box input:focus { outline:none; border-color:var(--lime); box-shadow:0 0 0 3px rgba(178,224,30,.25); }
.pt-err { color:#ff9db0; font-size:13px; margin-bottom:8px; }
.pt-foot { margin-top:20px; font-size:12px; color:var(--mut2); }
.pt-foot b { color:var(--lime-soft); }

/* botões */
.pt-btn { background:linear-gradient(180deg,#c2ee3a,#a6d016); color:#1c0540; border:none; border-radius:13px; padding:12px 20px; font-size:15px; font-weight:800; letter-spacing:.2px; cursor:pointer; box-shadow:0 10px 30px -8px rgba(178,224,30,.5); }
.pt-login-box .pt-btn { width:100%; }
.pt-btn:hover { filter:brightness(1.05); }
.pt-btn.ghost { background:transparent; color:#fff; border:1.5px solid rgba(178,224,30,.45); box-shadow:none; }
.pt-btn.ghost:hover { border-color:var(--lime); background:rgba(178,224,30,.1); }
.pt-btn.sm { padding:9px 16px; font-size:13px; }
.pt-btn:disabled { opacity:.55; cursor:default; }
.pt-x { background:none; border:none; color:var(--mut2); cursor:pointer; font-size:14px; flex:none; }
.pt-x:hover { color:#ff9db0; }

/* shell */
.pt-top { display:flex; align-items:center; justify-content:space-between; padding:22px 4px 8px; }
.pt-brand { display:flex; align-items:center; gap:10px; }
.pt-brand img { height:24px; filter:brightness(0) invert(1); opacity:.9; }
.pt-brand span { font-size:11px; letter-spacing:3px; text-transform:uppercase; color:var(--lime); }
.pt-logout { background:transparent; border:1px solid rgba(255,255,255,.16); border-radius:11px; padding:7px 15px; color:var(--mut); cursor:pointer; font-size:13px; }
.pt-logout:hover { border-color:var(--lime); color:var(--lime-soft); }
.pt-head { display:flex; align-items:center; gap:16px; margin:12px 0 22px; }
.pt-avatar { width:60px; height:60px; border-radius:18px; background:linear-gradient(140deg,#c2ee3a,#8bb614); color:#1c0540; display:grid; place-items:center; font-family:var(--serif); font-size:25px; font-weight:700; flex-shrink:0; box-shadow:0 10px 30px -6px rgba(178,224,30,.4); }
.pt-head h1 { font-size:33px; color:#fff; letter-spacing:-.3px; }
.pt-head .pt-muted { color:#c3b4e0; }

/* tabs */
.pt-tabs { display:flex; gap:6px; overflow-x:auto; padding:5px; margin-bottom:22px; background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); border-radius:16px; }
.pt-tabs button { background:transparent; border:none; border-radius:11px; padding:10px 15px; font-size:13.5px; color:var(--mut); cursor:pointer; white-space:nowrap; }
.pt-tabs button:hover { color:#fff; }
.pt-tabs button.active { background:linear-gradient(180deg,#c2ee3a,#a6d016); color:#1c0540; font-weight:800; box-shadow:0 6px 18px -6px rgba(178,224,30,.5); }
.pt-intro { color:#e7ddf7; margin-bottom:18px; font-size:15px; }
.pt-intro b { color:var(--lime-soft); }

/* hero + painéis (tema escuro translúcido) */
.pt-hero { background:linear-gradient(180deg,rgba(66,20,120,.45),rgba(30,7,60,.5)); border:1px solid rgba(120,70,190,.3); border-radius:22px; padding:26px 28px; margin-bottom:18px; }
.pt-hero h2 { font-family:var(--serif); font-size:26px; color:#fff; margin-bottom:8px; line-height:1.2; }
.pt-hero p { color:#d7cbef; line-height:1.6; font-size:15px; }
.pt-panel { background:linear-gradient(180deg,rgba(66,20,120,.4),rgba(30,7,60,.45)); border:1px solid rgba(120,70,190,.28); border-radius:20px; padding:18px 20px; margin-bottom:16px; }
.pt-panel-h { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.pt-panel-h h3 { font-family:var(--serif); color:#fff; font-size:18px; }
.pt-note { width:100%; min-height:130px; background:rgba(255,255,255,.06); border:1px solid rgba(178,224,30,.2); border-radius:14px; padding:13px 15px; font-family:inherit; font-size:14px; color:var(--off); line-height:1.6; resize:vertical; }
.pt-note:focus { outline:none; border-color:var(--lime); box-shadow:0 0 0 3px rgba(178,224,30,.15); }
.pt-note::placeholder { color:var(--mut2); }
.pt-edit { min-height:52px; background:#fbf9f4; border:1px solid rgba(120,70,190,.3); border-radius:0 0 12px 12px; padding:12px 14px; font-size:14px; color:#2a2140; line-height:1.6; white-space:pre-wrap; outline:none; }
.pt-edit:focus { border-color:var(--lime); box-shadow:0 0 0 3px rgba(178,224,30,.14); }
.pt-edit:empty:before { content:attr(data-ph); color:#8a7fa0; }
.pt-edit b, .pt-edit strong { color:#1c1330; }
.pt-edit ul, .pt-edit ol { margin:4px 0 4px; padding-left:20px; }
.pt-edit li { margin-bottom:3px; }
/* barra de formatação dos blocos de posicionamento */
.pt-fmt2 { display:flex; gap:6px; background:#efe9f7; border:1px solid rgba(120,70,190,.3); border-bottom:none; border-radius:12px 12px 0 0; padding:6px 8px; }
.pt-fmt2 button { background:#fff; border:1px solid rgba(120,70,190,.25); border-radius:8px; padding:3px 11px; font-size:13px; cursor:pointer; color:#3a2a5a; line-height:1.4; }
.pt-fmt2 button:hover { background:var(--lime,#B2E01E); border-color:var(--lime,#B2E01E); }
.pt-savehint { text-align:right; color:var(--lime-soft); font-size:12px; height:16px; }
.pt-addrow { display:flex; gap:8px; flex-wrap:wrap; }
.pt-addrow input { flex:1; min-width:150px; padding:11px 13px; border:1px solid rgba(120,70,190,.35); border-radius:12px; background:rgba(255,255,255,.9); color:#241b31; font-size:14px; }
.pt-addrow input:focus { outline:none; border-color:var(--lime); }
#ptBody input[type=text], #ptBody input[type=url] { padding:11px 13px; border:1px solid rgba(120,70,190,.35); border-radius:12px; background:rgba(255,255,255,.9); color:#241b31; font-size:14px; }
#ptBody input:focus { outline:none; border-color:var(--lime); }

/* cards de aprovação (claros, pra ler bem) */
.pt-cards { display:flex; flex-direction:column; gap:18px; }
.pt-card { background:#fffdf8; border:1px solid rgba(178,224,30,.3); border-radius:20px; box-shadow:0 18px 46px rgba(0,0,0,.4); padding:20px 22px; color:#241b31; }
.pt-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.pt-code { font-family:var(--serif); font-size:18px; font-weight:700; color:var(--purple); }
.pt-card .pt-muted { color:#8a7fa0; }
.pt-badge { color:#fff; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.3px; padding:3px 9px; border-radius:999px; }
.pt-tema { font-family:var(--serif); font-size:19px; color:var(--purple); margin-bottom:14px; line-height:1.3; }
.pt-art { border-radius:14px; overflow:hidden; margin-bottom:14px; background:#efe9de; border:1px solid #e6ddcd; }
.pt-art img { width:100%; display:block; }
.pt-artlink { display:inline-block; margin-bottom:12px; color:var(--purple); font-weight:600; }
.pt-field { margin-top:12px; }
.pt-lbl { display:flex; align-items:center; gap:6px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:#8a5f7f; margin-bottom:5px; }
.pt-copy { background:none; border:none; cursor:pointer; font-size:13px; }
.pt-text { font-size:14px; color:#241b31; white-space:pre-wrap; word-break:break-word; line-height:1.6; background:#f7f2ea; border:1px solid #efe6d6; border-radius:12px; padding:11px 13px; }
.pt-hash { color:var(--purple-700); }
.pt-cmts { margin-top:14px; border-left:3px solid var(--lime); padding-left:12px; display:flex; flex-direction:column; gap:8px; }
.pt-cmt { font-size:13px; color:#3a2f4d; } .pt-cmt b { color:var(--purple); }
.pt-actions { display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.pt-actions .pt-btn { flex:1; min-width:150px; }
.pt-changebox { margin-top:14px; }
.pt-changebox textarea { width:100%; min-height:82px; border:1px solid #e0d6ea; border-radius:12px; padding:11px 13px; font-size:14px; font-family:inherit; resize:vertical; background:#fff; }
.pt-changebox textarea:focus { outline:none; border-color:var(--lime); box-shadow:0 0 0 3px rgba(178,224,30,.18); }
.pt-changebox .pt-btn { margin-top:8px; }

/* ideias */
.pt-idea { background:linear-gradient(180deg,rgba(66,20,120,.4),rgba(30,7,60,.45)); border:1px solid rgba(120,70,190,.3); border-radius:16px; padding:14px 16px; }
.pt-idea-h { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; }
.pt-idea-h b { color:#fff; font-size:15px; }
.pt-idealink { display:inline-block; margin-top:6px; color:var(--lime-soft); font-size:13px; }
.pt-idea-meta { margin-top:8px; font-size:11px; color:var(--mut2); }

/* estados / listas */
.pt-empty { text-align:center; padding:54px 20px; color:#d7cbef; }
.pt-empty b { color:#fff; display:block; margin-bottom:4px; font-size:18px; font-family:var(--serif); }
.pt-empty .pt-muted { color:var(--mut); }
.pt-big { font-size:46px; margin-bottom:10px; }
.pt-h3 { font-family:var(--serif); color:var(--lime-soft); font-size:19px; margin:22px 0 12px; }
.pt-links { display:flex; flex-direction:column; gap:9px; }
.pt-linkrow { display:flex; justify-content:space-between; align-items:center; gap:10px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1); border-radius:14px; padding:13px 17px; }
.pt-linkrow a { color:#f0eafa; text-decoration:none; flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; }
.pt-linkrow:hover { border-color:var(--lime); background:rgba(178,224,30,.08); }
.pt-linkrow .pt-muted { color:var(--lime-soft); }

/* calendário grade */
.pt-calnav { display:flex; align-items:center; justify-content:center; gap:18px; margin-bottom:18px; font-family:var(--serif); font-size:21px; color:#fff; }
.pt-calnav button { background:rgba(255,255,255,.06); border:1px solid rgba(178,224,30,.35); border-radius:11px; width:36px; height:36px; cursor:pointer; font-size:18px; color:var(--lime-soft); }
.pt-calnav button:hover { background:rgba(178,224,30,.14); }
.pt-cal { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); border-radius:16px; padding:10px; overflow-x:auto; }
.pt-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:5px; min-width:540px; }
.pt-cal-wd { text-align:center; font-size:10px; letter-spacing:1px; text-transform:uppercase; color:var(--lime); padding:4px 0 6px; }
.pt-cal-cell { min-height:76px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); border-radius:10px; padding:5px 6px; }
.pt-cal-cell.empty { background:transparent; border-color:transparent; }
.pt-cal-cell.today { border-color:var(--lime); }
.pt-cal-dnum { font-size:11px; color:#c9b8e6; margin-bottom:4px; }
.pt-chip { display:block; font-size:10px; color:#fff; border-radius:6px; padding:2px 5px; margin-bottom:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pt-chip.approved { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); font-weight:700; }
.pt-decide { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-chip.waiting { outline: 1.5px dashed #ffcf8a; outline-offset:-2px; }
@media (max-width:520px){ .pt-head h1{ font-size:26px; } .pt-actions .pt-btn{ min-width:120px; } .pt-addrow input{ min-width:100%; } }

/* ---- ajustes v2: menu esticado, card modal, anotações ---- */
.portal-body { overflow-x: hidden; }
.pt-tabs { overflow: visible; flex-wrap: wrap; }
.pt-tabs button { flex: 1 1 auto; text-align: center; }
.pt-hr { border: none; border-top: 1px solid rgba(255,255,255,.12); margin: 18px 0; }
.pt-lbl2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--lime-soft); margin: 16px 0 6px; }

/* anotações estilo comentário */
.pt-addnote { display: flex; flex-direction: column; gap: 8px; }
.pt-who { align-self: flex-start; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(120,70,190,.4); background: rgba(255,255,255,.9); color: #241b31; font-size: 13px; }
.pt-notelist { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.pt-note-item { background: rgba(255,255,255,.05); border: 1px solid rgba(120,70,190,.3); border-radius: 13px; padding: 11px 14px; }
.pt-note-meta { font-size: 12px; color: var(--mut); margin-bottom: 4px; }
.pt-note-meta b { color: #fff; }
.pt-note-text { color: var(--off); font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }

/* modal do card */
.pt-modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(10,1,24,.7); backdrop-filter: blur(4px); display: flex; align-items: flex-start; justify-content: center; padding: 24px 14px; overflow-y: auto; }
.pt-modal { width: 100%; max-width: 620px; background: linear-gradient(180deg,#1c0740,#160530); border: 1px solid rgba(120,70,190,.4); border-radius: 22px; box-shadow: 0 30px 90px rgba(0,0,0,.6); overflow: hidden; }
.pt-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.pt-modal-head h3 { font-family: var(--serif); color: #fff; font-size: 19px; }
.pt-mclose { background: rgba(255,255,255,.08); border: none; color: #fff; width: 32px; height: 32px; border-radius: 10px; cursor: pointer; font-size: 15px; }
.pt-mclose:hover { background: rgba(255,255,255,.18); }
.pt-modal-body { padding: 18px 20px 24px; }
.pt-modal-tema { font-family: var(--serif); font-size: 20px; color: #fff; line-height: 1.3; }
/* Confirmação própria (substitui window.confirm, bloqueado em navegador embutido de app) */
.pt-confirm-bg { align-items: center; }
.pt-confirm { padding: 22px 22px 20px; max-width: 360px; }
.pt-confirm-msg { color: #fff; font-size: 15.5px; line-height: 1.45; margin-bottom: 18px; }
.pt-confirm-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.pt-etiqs { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-etiq { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: var(--off); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pt-etiq:hover { border-color: var(--lime); }
.pt-etiq.on { color: #fff; }
.pt-cmts2 { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.pt-cmt2 { background: rgba(255,255,255,.05); border-radius: 11px; padding: 9px 12px; font-size: 13px; color: var(--off); }
.pt-cmt2 b { color: #fff; }
.pt-cmt2 > div { margin-top: 3px; white-space: pre-wrap; word-break: break-word; }

/* logo maior + "Central do cliente" embaixo */
.pt-top { align-items: flex-start; }
.pt-brand { flex-direction: column; align-items: flex-start; gap: 5px; }
.pt-brand img { height: 46px; }
.pt-brand span { font-size: 11px; letter-spacing: 3px; }
.pt-teamtag { background: rgba(178,224,30,.12); border: 1px solid rgba(178,224,30,.4); color: #d7f08a; font-size: 12.5px; border-radius: 12px; padding: 8px 14px; margin: 4px 0 14px; }
.pt-teamtag b { color: #fff; }

/* ---- v3: painel mais largo, fundo sem recortes, fotos no card, meta ---- */
#portal { max-width: 1140px; padding: 0 26px 90px; }
/* fundo fixo e sem costuras (sem animação de posição que criava recortes) */
.pt-bgfx { inset: 0; animation: none;
  background:
    radial-gradient(1300px 900px at 75% -12%, #4a127e 0%, transparent 58%),
    radial-gradient(1100px 900px at 8% 8%, #2a0a55 0%, transparent 60%),
    radial-gradient(1200px 1100px at 50% 118%, #34075f 0%, transparent 58%),
    var(--roxo-ink); }
.pt-bggrid { opacity: .35; -webkit-mask-image: radial-gradient(circle at 50% 18%, #000 50%, transparent 96%); mask-image: radial-gradient(circle at 50% 18%, #000 50%, transparent 96%); }

/* meta do card (horário, linha, função, pilar, funil) */
.pt-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.pt-metarow { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 6px 12px; font-size: 12.5px; color: var(--off); }
.pt-metarow span { color: var(--mut); margin-right: 6px; }
.pt-metarow b { color: #fff; }

/* grade de fotos do card (3 por linha, quebra) */
.pt-imggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pt-imgtile { position: relative; aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); cursor: grab; background: #160530; }
.pt-imgtile:active { cursor: grabbing; }
.pt-imgtile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pt-imgtile.dragging { opacity: .45; }
.pt-imgdel { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); border: none; color: #fff; width: 22px; height: 22px; border-radius: 7px; cursor: pointer; font-size: 12px; }
.pt-imgdel:hover { background: #a8394b; }
.pt-modal { max-width: 680px; }
@media (max-width: 560px) { #portal { padding: 0 16px 90px; } .pt-imggrid { grid-template-columns: repeat(3, 1fr); } }

/* ---- header com mais respiro + avatar com foto ---- */
.pt-top { padding: 26px 4px 10px; }
.pt-brand img { height: 58px; }
.pt-brand span { margin-top: 8px; font-size: 12px; letter-spacing: 4px; }
.pt-head { margin: 26px 0 30px; gap: 20px; }
.pt-head h1 { margin-bottom: 4px; }
.pt-avatar { position: relative; border: none; overflow: hidden; padding: 0; }
.pt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pt-avcam { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 11px; text-align: center; padding: 2px 0; opacity: 0; transition: opacity .12s; }
.pt-avatar:hover .pt-avcam { opacity: 1; }

/* ---- v4: legenda cores calendário, tráfego, copy read-only, comentários edit/del ---- */
.pt-callegend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 14px; font-size: 12px; color: var(--mut); }
.pt-callegend span { display: inline-flex; align-items: center; gap: 6px; }
.pt-callegend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

/* tráfego pago */
.pt-adgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pt-adcard { text-align: left; background: linear-gradient(180deg,rgba(66,20,120,.4),rgba(30,7,60,.45)); border: 1px solid rgba(120,70,190,.3); border-radius: 16px; overflow: hidden; cursor: pointer; padding: 0; color: var(--off); }
.pt-adcard:hover { border-color: var(--lime); }
.pt-adthumb { height: 140px; background-size: cover; background-position: center; background-color: #160530; }
.pt-adthumb.noimg { display: grid; place-items: center; font-size: 34px; }
.pt-adinfo { padding: 11px 14px; }
.pt-adinfo b { color: #fff; }

/* copy read-only (cliente) */
.pt-text2 { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 11px 13px; font-size: 14px; color: var(--off); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }

/* Roteiros públicos do mês */
.rot-wrap { max-width: 760px; margin: 0 auto; padding: 30px 18px 20px; }
.rot-topo { text-align: center; margin-bottom: 8px; }
.rot-h1 { font-family: var(--serif, "Fraunces", serif); color: #fff; font-size: 34px; line-height: 1.1; margin: 6px 0 2px; }
.rot-guide { display: flex; align-items: center; gap: 13px; text-decoration: none; margin: 14px auto 6px; max-width: 520px; padding: 13px 16px; border-radius: 15px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.26); transition: background .15s ease, border-color .15s ease; }
.rot-guide:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.45); }
.rot-guide-ic { font-size: 24px; flex: 0 0 auto; }
.rot-guide-tx { flex: 1; min-width: 0; line-height: 1.3; }
.rot-guide-tx b { display: block; color: #fff; font-size: 15px; font-weight: 800; }
.rot-guide-tx span { color: rgba(255,255,255,.72); font-size: 12.5px; }
.rot-guide-go { flex: 0 0 auto; color: #fff; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.14); border-radius: 999px; padding: 5px 12px; }
.rot-card { margin-bottom: 18px; }
.rot-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.rot-cenas { display: flex; flex-direction: column; gap: 0; margin-top: 10px; }
.rot-cena { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(45,8,89,.16); }
.rot-cena:first-child { border-top: none; padding-top: 6px; }
.rot-cena:last-child { padding-bottom: 2px; }
.rot-cena-n { flex: 0 0 auto; font-weight: 800; color: #5f8006; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; min-width: 74px; padding-top: 3px; }
.rot-cena-txt { flex: 1; color: #2d2338; font-size: 15px; line-height: 1.65; }
.rot-cena-txt .rot-line { margin-bottom: 15px; }
.rot-cena-txt .rot-line:last-child { margin-bottom: 0; }
.rot-save { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: rgba(120,150,20,.16); border: 1px solid rgba(120,150,20,.45); }
.rot-save-txt { font-size: 14px; color: #26340a; line-height: 1.4; }
.rot-save .pt-muted, .rot-save-txt .pt-muted { color: #4f6323; }
.rot-save-txt b { color: #1f2b06; }
.rot-card .pt-lbl2 { color: #4c6a06; font-size: 12.5px; font-weight: 800; }
/* meta do card na página de roteiros (card CLARO): texto escuro legível */
.rot-card .pt-metarow { background: #f1ecfb; border: 1px solid rgba(45,8,89,.18); color: #2D0859; }
.rot-card .pt-metarow span { color: #6b5b8c; }
.rot-card .pt-metarow b { color: #2D0859; }
/* observação no card de roteiros (card CLARO): texto escuro legível (antes usava var(--off), claro, do tema escuro da Central) */
.rot-card .pt-text2 { background: #faf7f1; border: 1px solid rgba(45,8,89,.14); color: #2d2338; }
/* link de referência colado no meio do roteiro/observação (linkify) */
.pt-inlink, .rot-card .pt-inlink, .rot-cena-txt .pt-inlink, .pt-text2 .pt-inlink { text-decoration: underline !important; font-weight: 700; word-break: break-all; }
.pt-inlink { color: #9a6cff; }
.rot-card .pt-inlink, .rot-cena-txt .pt-inlink { color: #2D0859; }
.rot-card .pt-lbl { color: #6b5b8c; }
.rot-card .pt-field .pt-lbl { color: #6b5b8c; }

/* comentários com ações */
.pt-cmt2h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pt-cmtacts { display: flex; gap: 4px; flex: none; }
.pt-cmtedit, .pt-cmtdel { background: none; border: none; color: var(--mut2); cursor: pointer; font-size: 12px; opacity: .6; }
.pt-cmtedit:hover { opacity: 1; color: var(--lime-soft); }
.pt-cmtdel:hover { opacity: 1; color: #ff9db0; }
.pt-cmttext { margin-top: 3px; white-space: pre-wrap; word-break: break-word; }

/* ---- v5: tarô, lightbox, diário de bordo ---- */
/* lightbox */
.pt-lb { position: fixed; inset: 0; z-index: 80; background: rgba(8,1,20,.9); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.pt-lb img { max-width: 96vw; max-height: 92vh; border-radius: 12px; box-shadow: 0 20px 70px rgba(0,0,0,.7); }
.pt-lb-close { position: fixed; top: 16px; right: 18px; background: rgba(255,255,255,.12); border: none; color: #fff; width: 40px; height: 40px; border-radius: 12px; font-size: 18px; cursor: pointer; }

/* tarô do dia */
.pt-tarot { text-align: center; max-width: 480px; margin: 0 auto; }
.pt-tcard { width: 250px; height: 420px; margin: 14px auto 0; border-radius: 18px; overflow: hidden; cursor: pointer; box-shadow: 0 20px 60px rgba(0,0,0,.5); border: 2px solid rgba(178,224,30,.35); transition: transform .2s; }
.pt-tcard:not(.revealed):hover { transform: translateY(-5px) rotate(-1deg); }
.pt-tcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-tback { width: 100%; height: 100%; background: radial-gradient(130% 130% at 50% 0%, #4a1d86, #2D0859 60%, #180432); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.pt-tstar { font-size: 60px; color: var(--lime); }
.pt-tlabel { font-family: var(--serif); letter-spacing: 4px; text-transform: uppercase; color: var(--lime-soft); font-size: 12px; }
.pt-tinfo { margin-top: 20px; }
.pt-tinfo h2 { font-family: var(--serif); color: #fff; font-size: 26px; margin-bottom: 10px; }
.pt-tinfo p { color: #d7cbef; line-height: 1.65; font-size: 15px; }
.pt-tafirm { margin: 18px auto 0; max-width: 420px; background: linear-gradient(180deg,rgba(178,224,30,.14),rgba(178,224,30,.04)); border: 1px solid rgba(178,224,30,.34); border-radius: 14px; padding: 14px 18px; }
.pt-tafirm-l { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.pt-tafirm-t { font-family: var(--serif); font-style: italic; color: #fff; font-size: 17px; line-height: 1.5; }

/* diário de bordo (iframe) */
.pt-dashwrap { border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #0e0424; }
.pt-dashwrap iframe { width: 100%; height: 520px; border: 0; display: block; }

/* ---- agenda ---- */
.pt-cal-add { cursor: pointer; transition: border-color .1s; }
.pt-cal-add:hover { border-color: var(--lime) !important; background: rgba(178,224,30,.06) !important; }
.pt-agev { background: rgba(255,255,255,.05); border: 1px solid rgba(120,70,190,.3); border-radius: 12px; padding: 10px 13px; margin-bottom: 8px; }
.pt-agev-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pt-agev-h b { color: #fff; font-size: 14px; }

/* ---- POP (procedimento operacional) na página do funcionário ---- */
.pop-body h4 { font-family: var(--sans); font-size: 14px; color: var(--purple); margin: 16px 0 6px; }
.pop-body h4:first-child { margin-top: 0; }
.pop-body p { font-size: 14px; color: var(--ink); line-height: 1.6; margin: 0 0 8px; }
.pop-body ul, .pop-body ol { margin: 4px 0 10px; padding-left: 20px; }
.pop-body li { font-size: 14px; color: var(--ink); line-height: 1.55; margin-bottom: 5px; }
.pop-body b { color: var(--purple-700); }
.pop-editable { outline: none; border: 1px solid var(--purple-100); border-radius: 12px; padding: 12px 14px; min-height: 200px; background: var(--cream-2); }
.pop-editable:focus { border-color: var(--purple-300, #9b7bc4); box-shadow: 0 0 0 3px var(--purple-100); }
.pop-fmt { display: flex; gap: 6px; margin-bottom: 8px; }
.pop-fmt .pfmt { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer; color: var(--ink); }
.pop-fmt .pfmt:hover { border-color: var(--purple-300, #9b7bc4); background: var(--purple-100); }

/* ---- POP em cards (visão) ---- */
.pop-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.pop-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.pop-card-h { background: var(--purple-100); color: var(--purple); font-weight: 700; font-size: 14px; padding: 11px 16px; }
.pop-card-b { padding: 12px 16px 14px; }
.pop-card-b p { font-size: 13.5px; color: var(--ink); line-height: 1.55; margin: 0 0 8px; }
.pop-card-b ul, .pop-card-b ol { margin: 2px 0 4px; padding-left: 20px; }
.pop-card-b li { font-size: 13.5px; color: var(--ink); line-height: 1.5; margin-bottom: 6px; }
.pop-card-b b { color: var(--purple-700); }
.pop-card-b > *:last-child { margin-bottom: 0; }

/* ---- foto no avatar do funcionário ---- */
.avatar, .team-card .av { overflow: hidden; }
.avatar img, .team-card .av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-btn { position: relative; border: none; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.avatar-btn .av-cam { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 10px; text-align: center; padding: 1px 0; opacity: 0; transition: opacity .1s; }
.avatar-btn:hover .av-cam { opacity: 1; }

/* ---- links do cliente (Início do portal) ---- */
.pt-linkadd { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pt-inp { padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(120,70,190,.4); background: rgba(255,255,255,.9); color: #241b31; font-size: 13px; }
.pt-linklist { display: flex; flex-direction: column; gap: 8px; }
.pt-link-row { display: flex; align-items: center; gap: 8px; }
.pt-link { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; background: rgba(255,255,255,.05); border: 1px solid rgba(120,70,190,.3); border-radius: 12px; padding: 10px 14px; transition: border-color .12s, background .12s; }
.pt-link:hover { border-color: var(--lime, #B2E01E); background: rgba(178,224,30,.06); }
.pt-link-ic { font-size: 18px; flex-shrink: 0; }
.pt-link-name { color: #fff; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.pt-link-url { color: #c9b8e6; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---- dados pessoais (Início do portal) ---- */
.pt-dpgrid { display: flex; flex-wrap: wrap; gap: 14px; }
.pt-dpgrid > div { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 5px; }
.pt-dplbl { font-size: 12px; color: #c9b8e6; letter-spacing: .3px; }
.pt-dpgrid b { color: #fff; font-size: 15px; }
.pt-dpgrid input.pt-inp, .pt-dpgrid select.pt-who { width: 100%; }

/* ---- Placar de tarefas (Painel) ---- */
.sb-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sb-sub { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.sb-tabs { display: inline-flex; background: var(--purple-100); border-radius: 999px; padding: 3px; gap: 2px; }
.sb-tab { border: none; background: transparent; color: var(--purple); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.sb-tab.on { background: #fff; color: var(--purple); box-shadow: var(--shadow-sm); }
.sb-card { padding: 18px 20px; }
.sb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.sb-stat { background: var(--cream-2, #faf7f1); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.sb-stat.red { background: rgba(168,57,75,.06); border-color: rgba(168,57,75,.25); }
.sb-stat.green { background: rgba(63,125,95,.07); border-color: rgba(63,125,95,.22); }
.sb-n { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--purple); line-height: 1; }
.sb-l { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.sb-prog .sb-bar { margin-top: 8px; height: 7px; border-radius: 4px; background: rgba(0,0,0,.07); overflow: hidden; }
.sb-prog .sb-bar span { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.sb-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 4px 0 16px; }
.sb-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 2px; border-radius: 10px; }
.sb-day.hoje { background: var(--purple-100); }
.sb-day-bar { width: 100%; height: 42px; display: flex; align-items: flex-end; justify-content: center; }
.sb-day-bar span { display: block; width: 60%; min-height: 3px; background: var(--purple-300, #9b7bc4); border-radius: 4px 4px 0 0; }
.sb-day.hoje .sb-day-bar span { background: var(--purple); }
.sb-day-n { font-size: 12px; font-weight: 700; color: var(--purple); min-height: 14px; }
.sb-day-wd { font-size: 10px; color: var(--ink-soft); text-align: center; line-height: 1.2; }
.sb-day-wd b { color: var(--ink); font-size: 12px; }
.sb-table-wrap { overflow-x: auto; }
.sb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sb-table th { text-align: left; font-size: 11px; letter-spacing: .3px; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.sb-table th:not(:first-child), .sb-table td:not(:first-child) { text-align: center; width: 90px; }
.sb-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.sb-table tr:last-child td { border-bottom: none; }
.sb-table tr.me { background: rgba(120,70,190,.06); }
.sb-you { font-size: 10px; background: var(--purple); color: #fff; padding: 1px 7px; border-radius: 999px; vertical-align: middle; }
.sb-table .c-red { color: var(--red); font-weight: 700; }
.sb-table .c-org { color: #d1873a; font-weight: 700; }
.sb-table .c-green { color: var(--green); font-weight: 700; }
.sb-table .c-mut { color: var(--ink-soft); }
@media (max-width: 620px) { .sb-stats { grid-template-columns: repeat(2, 1fr); } }

/* ---- Precisa de atenção (Painel) ---- */
.attn-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.attn-count { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.attn-ok { background: rgba(63,125,95,.12); color: var(--green); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 12px; }
.attn-card { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.attn-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: transparent; border: none; border-radius: 12px; padding: 11px 12px; cursor: pointer; text-decoration: none; color: var(--ink); transition: background .1s; border-left: 3px solid transparent; }
.attn-row:hover { background: var(--purple-100); text-decoration: none; }
.attn-row.sev0 { border-left-color: var(--red); }
.attn-row.sev1 { border-left-color: #d1873a; }
.attn-row.sev2 { border-left-color: var(--purple-300, #9b7bc4); }
.attn-ic { font-size: 18px; flex-shrink: 0; width: 22px; text-align: center; }
.attn-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.attn-txt b { font-size: 14px; color: var(--ink); font-weight: 600; }
.attn-txt small { font-size: 12px; color: var(--ink-soft); }
.post-when { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.post-when .pw-d, .post-when .pw-h { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 8px; white-space: nowrap; }
.post-when .pw-d { background: rgba(45,8,89,.09); color: #2D0859; }
.post-when .pw-h { background: rgba(45,125,210,.14); color: #1f5fa0; }
.pw-late { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: #b31e1e; margin-top: 4px; margin-left: 6px; }
.attn-go { color: var(--purple-300, #9b7bc4); font-size: 18px; flex-shrink: 0; }
.ri-repasse { flex-shrink: 0; white-space: nowrap; }
.attn-empty { padding: 20px; text-align: center; color: var(--green); font-size: 14px; }
.attn-more { display: block; text-align: center; padding: 9px; font-size: 13px; color: var(--purple); border-top: 1px dashed var(--line); margin-top: 4px; }

/* ---- Semáforo de prazo (cards do kanban) ---- */
.kcard.sem-red { border-left: 3px solid var(--red); }
.kcard.sem-yellow { border-left: 3px solid #d1873a; }
.kcard.sem-green { border-left: 3px solid var(--green); }
.kc-sem { font-size: 11px; vertical-align: middle; }

/* ---- Seu dia (Painel) ---- */
.md-card { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.md-row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; cursor: pointer; border-left: 3px solid transparent; transition: background .1s; }
.md-row:hover { background: var(--purple-100); }
.md-row.late { border-left-color: var(--red); }
.md-check { width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; accent-color: var(--purple); }
.md-title { flex: 1; min-width: 0; font-size: 14px; color: var(--ink); }
.md-cli { color: var(--ink-soft); font-size: 13px; }
.md-late { color: var(--red); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.md-today { color: #d1873a; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.md-empty { padding: 20px; text-align: center; color: var(--green); font-size: 14px; }

/* ---- Checklist de publicar ---- */
.pub-list { display: flex; flex-direction: column; gap: 4px; }
.pub-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--cream-2, #faf7f1); border: 1px solid var(--line); cursor: pointer; font-size: 14px; color: var(--ink); }
.pub-item:hover { border-color: var(--purple-300, #9b7bc4); }
.pub-item input { width: 17px; height: 17px; accent-color: var(--green); cursor: pointer; }

/* ---- Conteúdo em largura total (board de demandas não fica espremido) ---- */
.main.full { max-width: none; }

/* ---- 🔥 Radar de Tendências ---- */
.rd-analysis { background: var(--cream-2, #faf7f1); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.rd-resumo { font-size: 14px; color: var(--ink); line-height: 1.5; }
.rd-fmt { display: inline-block; background: var(--purple-100); color: var(--purple); font-size: 11px; font-weight: 700; padding: 1px 9px; border-radius: 999px; margin-left: 4px; }
.rd-ideias { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.rd-idea { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.rd-idea:hover { border-color: var(--purple-300, #9b7bc4); }
.rd-idea input { margin-top: 3px; accent-color: var(--purple); flex-shrink: 0; }
.rd-idea span { display: flex; flex-direction: column; gap: 2px; }
.rd-idea b { font-size: 14px; color: var(--ink); }
.rd-idea small { font-size: 12.5px; color: var(--ink-soft); }
.rd-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rd-card { padding: 14px 16px; }
.rd-card.done { opacity: .82; }
.rd-card-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.rd-card-h b { color: var(--purple); }
.rd-card-gancho { font-family: var(--serif); font-size: 16px; color: var(--purple); line-height: 1.25; margin-bottom: 5px; }
.rd-card-resumo { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 10px; }
.rd-card-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---- Campo de anexos (Referência / Entrega final no editor de conteúdo) ---- */
.attach-field { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--paper); display: flex; flex-direction: column; gap: 6px; }
.att-row { display: flex; align-items: center; gap: 6px; background: var(--cream-2, #faf7f1); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; }
.att-open { flex: 1; min-width: 0; color: var(--purple-700); font-size: 13px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att-open:hover { text-decoration: underline; }
.att-e, .att-x { border: none; background: transparent; cursor: pointer; font-size: 13px; color: var(--ink-soft); padding: 2px 5px; border-radius: 6px; flex-shrink: 0; }
.att-e:hover, .att-x:hover { background: var(--purple-100); color: var(--purple); }
.att-empty { font-size: 12px; color: var(--ink-soft); padding: 4px 6px; }
.att-add { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.att-in { flex: 1; min-width: 130px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-family: inherit; }
.att-in:focus { outline: none; border-color: var(--purple-300, #9b7bc4); }

/* ---- Zonas do editor de conteúdo (copy x produção) ---- */
.ed-zone { border-radius: 16px; padding: 12px 16px 16px; margin-top: 10px; }
.ed-zone-h { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 4px; }
.ed-zone-h span { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-size: 11px; }
.ed-copy { background: rgba(120,70,190,.055); border: 1px solid rgba(120,70,190,.18); }
.ed-copy .ed-zone-h { color: var(--purple); }
.ed-prod { background: rgba(63,125,95,.07); border: 1px solid rgba(63,125,95,.22); }
.ed-prod .ed-zone-h { color: var(--green); }
/* Lembrete da social (checklist pós-copy) dentro da seção Copy & briefing */
.ed-reminder { margin: 8px 0 2px; border: 1px solid #e3c98f; background: #fdf6e3; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; color: var(--ink); }
.ed-reminder > summary { cursor: pointer; font-weight: 700; color: #8a5a1f; list-style: none; display: flex; align-items: center; gap: 6px; }
.ed-reminder > summary::-webkit-details-marker { display: none; }
.ed-reminder > summary::after { content: "▾"; margin-left: auto; font-size: 11px; opacity: .65; }
.ed-reminder[open] > summary::after { content: "▴"; }
.ed-reminder ul { margin: 8px 0 2px; padding-left: 20px; line-height: 1.6; }
.ed-reminder li { margin: 3px 0; }
.ed-reminder li b { color: var(--ink); }

/* ---- Foto no comentário ---- */
.cmt-img img { max-width: 200px; max-height: 150px; border-radius: 10px; margin-top: 6px; display: block; border: 1px solid var(--line); }
.cmt-img-prev:empty { display: none; }
.cmt-prev-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; }
.cmt-prev-row img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; }
.cmt-prev-x { border: none; background: transparent; color: var(--red); font-size: 12px; cursor: pointer; }
.cmt-prev-x:hover { text-decoration: underline; }


/* ---- Etiqueta de complexidade (Simples / Elaborado) ---- */
.cplx-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cplx-btn { border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px; cursor: pointer; }
.cplx-btn:hover:not(:disabled) { border-color: var(--purple-300, #9b7bc4); }
.cplx-btn.on[data-v="elaborado"] { background: #efe6fb; border-color: var(--purple); color: var(--purple); }
.cplx-btn.on[data-v="simples"] { background: #e4f2ea; border-color: #3f7d5f; color: #2f6249; }
.cplx-btn:disabled { opacity: .55; cursor: default; }
.cplx-clear { border: none; background: transparent; color: var(--ink-soft); font-size: 14px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.cplx-clear:hover { background: #f3d9de; color: #a8394b; }
.cplx-auto { font-size: 11px; color: var(--ink-soft); font-style: italic; }
.cplx-hint { margin-top: 7px; font-size: 12px; line-height: 1.45; color: #4a3b63; background: #f4eefb; border: 1px solid rgba(123,76,196,.22); border-radius: 8px; padding: 7px 10px; }
.cplx-hint b { color: #3a2a57; }
/* Tag pequena no card do kanban */
.cplx-tag { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 10px; vertical-align: middle; }
.cplx-tag.cplx-elaborado { background: #efe6fb; color: var(--purple); }
.cplx-tag.cplx-simples { background: #e4f2ea; color: #2f6249; }

/* ---- Funil de conversão (Comercial) ---- */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.fn-row { display: grid; grid-template-columns: 110px 1fr 120px; align-items: center; gap: 10px; }
.fn-lbl { font-size: 13px; font-weight: 600; color: var(--ink); }
.fn-track { background: var(--purple-50, #f4eefc); border-radius: 8px; overflow: hidden; height: 30px; }
.fn-bar { height: 100%; border-radius: 8px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; color: #fff; font-weight: 700; font-size: 13px; min-width: 24px; transition: width .3s; }
.fn-pct { font-size: 13px; color: var(--ink-soft); text-align: right; }
.fn-pct b { color: var(--purple); }
.fn-note { margin-top: 12px; padding: 8px 12px; background: #fff3e6; border-radius: 8px; font-size: 12px; color: #8a5a1a; }

/* ---- Barras mensais ---- */
.mbars { display: flex; gap: 8px; align-items: flex-end; overflow-x: auto; padding-top: 6px; }
.mbar { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 34px; flex: 1; }
.mbar-col { height: 90px; width: 26px; display: flex; align-items: flex-end; }
.mbar-total { width: 100%; background: var(--purple-200, #d9cbec); border-radius: 5px 5px 0 0; display: flex; align-items: flex-end; min-height: 3px; position: relative; }
.mbar-win { width: 100%; background: var(--green); border-radius: 0 0 5px 5px; }
.mbar-n { font-size: 12px; font-weight: 700; color: var(--purple); display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.mbar-wn { font-size: 10px; color: var(--green); font-weight: 700; }
.mbar-l { font-size: 11px; color: var(--ink-soft); }

/* ---- Dois canais de comentário (com o cliente x interno) ---- */
.cmt-cli { border: 1px solid #cfe6da; background: #f2fbf6; border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.cmt-int { border: 1px solid #e3d8f2; background: #f7f3fd; border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.cmt-cli > .lbl, .cmt-int > .lbl { display: block; margin-bottom: 8px; }
.cmt-cli .cmt-add .btn { background: #2f6249; }

.cmt-locked { font-size: 12px; color: var(--ink-soft); background: #fff; border: 1px dashed #cfe6da; border-radius: 8px; padding: 8px 12px; }

/* ---- Linguagem de amor (múltipla) ---- */
.dp-love-opts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.dp-love-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.dp-love-opt input { cursor: pointer; }

/* Tile de link (vídeo/Drive) no lugar de foto — Central do Cliente */
.pt-imgtile.islink { display: flex; align-items: center; justify-content: center; }
.pt-linktile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; min-height: 90px; text-decoration: none; color: #4a3670; background: #f1eafb; border: 1px dashed #b9a3e0; border-radius: 10px; font-size: 22px; font-weight: 700; }
.pt-linktile span { font-size: 12px; font-weight: 600; }

/* ---- Relatórios enviados (lista) ---- */
.rel-list { display: flex; flex-direction: column; }
.rel-row { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.rel-row:last-child { border-bottom: none; }
.rel-ic { font-size: 20px; flex-shrink: 0; }
.rel-info { flex: 1; min-width: 0; }
.rel-name { font-size: 14px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-meta { font-size: 12px; color: var(--ink-soft); }

/* ---- Análises comerciais ---- */
.an-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.an-metric { position: relative; background: #fffdf7; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.an-n { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--purple); line-height: 1.1; }
.an-l { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.an-sub { font-size: 10px; opacity: .8; }
.an-pill { display: inline-block; margin-top: 8px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.an-pill.great { background: #dff3e6; color: #2f6249; }
.an-pill.good  { background: #e4f2ea; color: #3f7d5f; }
.an-pill.ok    { background: #fdefd6; color: #8a5a1a; }
.an-pill.bad   { background: #f7dde1; color: #a8394b; }
.an-diag { margin-top: 12px; padding: 10px 12px; background: #fff3e6; border-radius: 8px; font-size: 12.5px; color: #7a4d16; line-height: 1.5; }
.an-bench { padding: 16px; }
.an-bench-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.an-bench-grid > div { display: flex; flex-direction: column; font-size: 12px; padding: 8px 10px; background: var(--purple-50, #f4eefc); border-radius: 8px; }
.an-bench-grid b { color: var(--purple); font-size: 13px; }
.an-bench-grid span { color: var(--ink-soft); margin-top: 2px; }

.rel-org { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: var(--purple-50, #f4eefc); color: var(--purple); margin-left: 6px; vertical-align: middle; }

/* ---- Radar: mural por semana ---- */
.rd-week { margin-bottom: 20px; }
.rd-week-h { font-family: var(--sans); font-size: 13px; font-weight: 700; color: var(--purple); padding: 6px 2px 8px; border-bottom: 1px solid var(--line); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.rd-card .rd-adapt { flex-shrink: 0; }

.rd-cli-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 10px; background: #e4f2ea; color: #2f6249; margin-bottom: 6px; }

/* Chips da Agenda: mostra o nome com "…" em vez de cortar feio */
.pt-agchip { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Baixar calendário do mês (seletor cliente + formato) ---- */
.me-bg{ position:fixed; inset:0; z-index:1300; background:rgba(20,12,35,.5); display:flex; align-items:center; justify-content:center; padding:18px; }
.me-card{ background:#fff; border-radius:16px; padding:20px 22px; width:100%; max-width:420px; box-shadow:0 18px 50px rgba(0,0,0,.28); }
.me-h{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.me-h b{ font-size:16px; color:var(--purple,#2D0859); }
.me-card .lbl{ display:block; margin:0 0 5px; }
.me-card select{ width:100%; padding:9px 11px; border:1px solid var(--line,#e7e0d4); border-radius:9px; font-size:14px; background:#fff; }
.me-hint{ font-size:12px; color:var(--ink-soft,#6a6076); margin:6px 0 2px; }
.me-fmts{ display:flex; gap:10px; margin-top:6px; }
.me-fmts .btn{ flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; padding:12px 8px; text-align:center; line-height:1.2; }
.me-fmts .btn b{ font-size:14px; }
.me-fmts .btn span{ font-size:11px; opacity:.75; font-weight:400; }

/* ---- Anotações por membro (cards que abrem) ---- */
.notes-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; }
.note-card{ background:#fff; border:1px solid var(--line,#e7e0d4); border-radius:12px; padding:12px 14px; cursor:pointer; transition:box-shadow .15s, transform .1s; min-height:88px; display:flex; flex-direction:column; gap:5px; }
.note-card:hover{ box-shadow:0 8px 22px rgba(45,8,89,.12); transform:translateY(-1px); border-color:var(--purple,#2D0859); }
.note-card .note-t{ font-weight:700; font-size:14px; color:var(--purple,#2D0859); line-height:1.25; }
.note-card .note-p{ font-size:12.5px; color:var(--ink-soft,#6a6076); line-height:1.4; flex:1; overflow:hidden; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; white-space:pre-wrap; }
.note-card .note-d{ font-size:10.5px; color:var(--ink-soft,#6a6076); opacity:.75; }
.note-bg{ position:fixed; inset:0; z-index:1300; background:rgba(20,12,35,.5); display:flex; align-items:center; justify-content:center; padding:18px; }
.note-modal{ background:#fff; border-radius:16px; padding:18px 20px; width:100%; max-width:560px; box-shadow:0 18px 50px rgba(0,0,0,.28); display:flex; flex-direction:column; gap:10px; }
.note-modal input#ntTitle{ width:100%; padding:9px 11px; border:1px solid var(--line,#e7e0d4); border-radius:9px; font-size:15px; font-weight:600; }
.note-modal textarea#ntBody{ width:100%; padding:10px 11px; border:1px solid var(--line,#e7e0d4); border-radius:9px; font-size:14px; line-height:1.5; resize:vertical; font-family:inherit; }
.note-actions{ display:flex; gap:8px; align-items:center; }

/* ---- Briefing Mensal (Central do Cliente) ---- */
.br-qa{ margin-bottom:14px; }
.br-qa .br-q{ display:block; font-weight:700; color:var(--purple,#2D0859); margin-bottom:6px; font-size:14.5px; }
.br-qa .br-a{ background:#faf8f4; border:1px solid var(--line,#e7e0d4); border-radius:10px; padding:9px 12px; white-space:pre-wrap; font-size:14px; }
.br-qa .br-a.br-empty{ color:var(--ink-soft,#6a6076); font-style:italic; }

/* ---- Briefing Mensal · ajustes tema escuro do portal + apagar (equipe) ---- */
#ptBody .br-qa .br-q{ color:#efe9fb; font-size:15px; }
#ptBody .br-qa .br-q .br-delq{ background:transparent; border:0; color:#e6a0b0; cursor:pointer; font-size:13px; padding:0 5px; opacity:.7; line-height:1; }
#ptBody .br-qa .br-q .br-delq:hover{ opacity:1; color:#ff8fa3; }
.pt-btn.br-danger{ color:#ffb4c0; border-color:rgba(255,120,140,.45); }
.pt-btn.br-danger:hover{ background:rgba(255,120,140,.12); border-color:rgba(255,120,140,.7); }

/* Alcinha de arrastar visível nas caixas que expandem (comentários, observações) — overflow:hidden esconde o grip no Chrome */
.expandfield { overflow: auto; }

/* 3 botões de formato no "Baixar mês" — quebra bonito no celular */
.me-fmts{ flex-wrap:wrap; }
.me-fmts .btn{ min-width:112px; }

/* Tipo de criativo: Tráfego (3º tipo, além de Simples/Elaborado) */
.cplx-tag.cplx-trafego { background: #d7f0ec; color: #0f766e; }

/* ---- Tráfego Pago · recursos do gestor por cliente ---- */
.traf-res-row { display:flex; align-items:center; gap:10px; padding:10px 12px; border-bottom:1px solid var(--line,#e7e0d4); }
.traf-res-row:last-child { border-bottom:0; }
.traf-res-row .tr-ic { font-size:18px; }
.traf-res-row .tr-label { flex:1; font-weight:600; }
.traf-res-add { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:12px; }
.traf-res-add select, .traf-res-add input { padding:9px 11px; border:1px solid var(--line,#e7e0d4); border-radius:9px; font-size:14px; }

/* ---- Reuniões (Central do Cliente) ---- */
.ru-checklist { display:flex; flex-direction:column; gap:6px; margin:2px 0 6px; }
.ru-chk { display:flex; align-items:center; gap:9px; font-size:14px; color:var(--off,#efeaf7); }
.ru-chk input[type=checkbox] { width:17px; height:17px; flex:0 0 auto; accent-color:var(--lime,#b2e01e); }
.ru-chk span.ru-done { text-decoration:line-through; opacity:.6; }
.ru-chk .ru-delitem { margin-left:auto; background:transparent; border:0; color:#e6a0b0; cursor:pointer; font-size:12px; opacity:.6; }
.ru-chk .ru-delitem:hover { opacity:1; }
.ru-addchk { display:flex; gap:8px; margin-top:6px; }

/* Reuniões · linha de adicionar material (link + arquivo) */
.ru-matadd { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:8px; }

/* Briefing · respostas do cliente (caixa creme) precisam de texto ESCURO — senão herdam o claro do portal e somem */
#ptBody .br-qa .br-a { color:#241b31; }
#ptBody .br-qa .br-a.br-empty { color:#6a6076; }

/* Pilares/Linhas/Funções · colar vários de uma vez */
.pil-bulk{ margin:8px 0 4px; }
.pil-bulk-ta{ width:100%; min-height:130px; border:1px solid var(--line,#e7e0d4); border-radius:10px; padding:10px 12px; font-family:inherit; font-size:14px; line-height:1.5; resize:vertical; background:var(--paper,#fff); color:var(--ink,#241b31); }
.pil-bulk-acts{ display:flex; gap:8px; margin-top:8px; }

/* ---- Demandas · régua de carga por dia ---- */
.demand-days{ display:flex; gap:8px; overflow-x:auto; padding:4px 2px 10px; margin-bottom:4px; }
.demand-days .dday{ flex:0 0 auto; display:flex; align-items:center; gap:8px; background:var(--paper,#fff); border:1px solid var(--line,#e7e0d4); border-radius:11px; padding:7px 12px; cursor:pointer; font-family:inherit; font-size:12.5px; font-weight:600; color:var(--ink,#241b31); white-space:nowrap; }
.demand-days .dday:hover{ border-color:var(--purple,#2D0859); }
.demand-days .dday.active{ background:var(--purple,#2D0859); color:#fff; border-color:var(--purple,#2D0859); }
.demand-days .dday .dday-n{ display:inline-grid; place-items:center; min-width:20px; height:20px; padding:0 5px; border-radius:20px; background:var(--purple-100,#e7ddf2); color:var(--purple,#2D0859); font-size:11px; font-weight:800; }
.demand-days .dday.active .dday-n{ background:rgba(255,255,255,.25); color:#fff; }
.demand-days .dday.is-today{ border-color:var(--purple,#2D0859); box-shadow:inset 0 0 0 1px var(--purple,#2D0859); }
.demand-days .dday.is-past{ opacity:.62; }
.demand-days .dday.is-over .dday-n{ background:#f6d7dc; color:#a8394b; }
.demand-days .dday.is-over.active .dday-n{ background:#a8394b; color:#fff; }
/* 📦 Indicador de carga do dia do designer, no card da copy (abaixo da Data de entrega) */
.demand-load{ font-size:12.5px; border-radius:9px; padding:7px 11px; line-height:1.4; border:1px solid var(--line,#e7e0d4); background:var(--paper,#fff); color:var(--ink,#241b31); }
.demand-load .dl-msg{ font-weight:700; }
.demand-load.ok{ background:#eaf5ee; border-color:#bfe0cb; color:#2f6f49; }
.demand-load.warn{ background:#fdf3e2; border-color:#f0d9a8; color:#8a5a12; }
.demand-load.full{ background:#fbe9ec; border-color:#f0c0c9; color:#a8394b; }
.demand-load.muted{ color:var(--ink-soft,#6a6076); }

/* ---------- Onboarding (Central do cliente) ---------- */
.pt-input{ width:100%; box-sizing:border-box; border:1.5px solid #e4dcf0; border-radius:10px; padding:11px 13px; font:inherit; font-size:14px; color:#241b31; background:#fff; }
.pt-input:focus{ outline:none; border-color:#5a38be; }
.onb-subnav{ display:flex; gap:8px; flex-wrap:wrap; margin:0 0 16px; }
.onb-subnav button{ display:inline-flex; align-items:center; gap:6px; border:1.5px solid #e4dcf0; background:#fff; color:#4a3f5e; border-radius:10px; font:inherit; font-weight:700; font-size:14px; padding:9px 16px; cursor:pointer; transition:all .12s; }
.onb-subnav button:hover{ border-color:#5a38be; color:#2D0859; }
.onb-subnav button.active{ background:#2D0859; border-color:#2D0859; color:#fff; box-shadow:0 4px 12px rgba(45,8,89,.25); }
.onb-pdfwrap{ width:100%; aspect-ratio:1/1.1; max-height:78vh; border:1px solid #e4dcf0; border-radius:12px; overflow:hidden; background:#faf7ff; }
.onb-pdf{ width:100%; height:100%; border:0; display:block; }
@media(min-width:760px){ .onb-pdfwrap{ aspect-ratio:1.3/1; } }
.onb-sec .onb-answers{ margin-top:10px; border-top:1px dashed #e4dcf0; padding-top:10px; display:grid; gap:8px; }
.onb-ans{ font-size:13px; }
.onb-ansq{ font-weight:700; color:#4a3f5e; }
.onb-anstxt{ color:#241b31; white-space:pre-wrap; margin-top:2px; }
.onb-anstxt.onb-empty{ color:#a99fb8; font-style:italic; }
.onb-msg{ margin-left:8px; }
.onb-tablewrap{ overflow-x:auto; }
.onb-reftable{ width:100%; border-collapse:collapse; min-width:620px; }
.onb-reftable th{ text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.03em; color:#8a7fa0; font-weight:800; padding:4px 6px; border-bottom:1.5px solid #ece6f6; }
.onb-reftable td{ padding:4px 6px; vertical-align:top; }
.onb-rcell{ width:100%; box-sizing:border-box; border:1.5px solid #ece6f6; border-radius:8px; padding:7px 9px; font:inherit; font-size:13px; color:#241b31; background:#fff; resize:vertical; }
.onb-rcell:focus{ outline:none; border-color:#5a38be; }
.onb-rdel{ width:28px; text-align:center; }
.onb-rdel .pt-x{ color:#c0526a; }
.onb-field{ margin-bottom:14px; }
.onb-field .pt-input{ margin-top:5px; }
.onb-warn{ background:#fdf3e2; border:1px solid #f0d9a8; color:#8a5a12; border-radius:10px; padding:10px 13px; font-size:13px; margin:0 0 14px; }

/* 🎬 Caixa "Roteiros que o cliente recebe" dentro do card de conteúdo (orgânico em cima, tráfego embaixo) */
.rotbox{ margin-top:12px; border:1px solid rgba(37,99,180,.22); border-radius:14px; background:#e9f1fc; padding:12px 14px 14px; }
.rotbox-head{ width:100%; background:none; border:none; cursor:pointer; padding:0; text-align:left; font-size:12px; font-weight:800; letter-spacing:.4px; text-transform:uppercase; color:#1e4f8a; margin:0; display:flex; align-items:center; gap:7px; }
.rotbox-arrow{ display:inline-block; transition:transform .15s; font-size:11px; }
.rotbox-head.open .rotbox-arrow{ transform:rotate(90deg); }
.rotbox-body{ margin-top:11px; }
.rotbox-body[hidden]{ display:none; }
.rotbox-sec{ background:#fff; border:1px solid rgba(45,8,89,.10); border-radius:11px; padding:11px 13px; }
.rotbox-sec + .rotbox-sec{ margin-top:10px; }
.rotbox-sec-traf{ background:#fff8f0; border-color:rgba(176,114,28,.22); }
.rotbox-tag{ display:inline-block; font-size:10.5px; font-weight:800; letter-spacing:.5px; text-transform:uppercase; padding:3px 11px; border-radius:999px; margin-bottom:10px; }
.rotbox-tag-org{ background:#d7e6fb; color:#1e4f8a; }
.rotbox-tag-traf{ background:#fbe6cf; color:#9a5a16; }
.rotbox-optin{ display:flex; align-items:flex-start; gap:9px; cursor:pointer; background:#eafaf0; border:1.5px solid #3f9e5b; border-radius:10px; padding:10px 12px; margin-bottom:11px; }
.rotbox-optin input{ margin-top:3px; width:16px; height:16px; flex-shrink:0; cursor:pointer; }
.rotbox-optin-txt{ display:flex; flex-direction:column; line-height:1.3; }
.rotbox-optin-txt b{ color:#1d7a43; font-size:14px; }
.rotbox-optin-txt small{ color:#4f6b58; font-size:12px; margin-top:1px; }
.rotbox-row{ display:flex; gap:18px; align-items:flex-end; flex-wrap:wrap; }
.rotbox-chk{ display:inline-flex; align-items:center; gap:6px; cursor:pointer; margin:0; }

/* 💜 Caixa "Observações para o cliente" — destacada porque aparece na Central do Cliente */
.obscli-box{ margin-top:12px; background:#fbeff6; border:1.5px solid #e2a3c5; border-radius:12px; padding:11px 13px; }
.obscli-lbl{ display:block; font-size:13.5px; font-weight:800; color:#a23270; letter-spacing:.2px; margin-bottom:7px; }
.obscli-box textarea{ background:#fff; }

/* 🔗 Campo com links clicáveis no meio do texto (clica num link = abre; clica no texto = edita) */
.field-linkview{ border:1px solid var(--line,#e2dced); border-radius:10px; padding:8px 11px; font-size:14px; line-height:1.55; white-space:pre-wrap; word-break:break-word; background:#fff; cursor:text; min-height:38px; }
.field-linkview a, .field-linkview a.auto-link{ color:#1e4f8a; text-decoration:underline; word-break:break-all; }

/* 👤 Marcar pessoa no comentário (menu + chips) */
/* 📱 Clone que segue o dedo ao arrastar um card no toque (celular). */
.touch-ghost { position: fixed; z-index: 9999; pointer-events: none; opacity: .92; transform: rotate(1.5deg) scale(1.02); box-shadow: 0 10px 28px rgba(45,8,89,.3); border-radius: 10px; max-width: 86vw; }
.cmt-mention-chips{ display:flex; flex-wrap:wrap; gap:5px; margin-top:5px; }
.cmt-mention-chip{ display:inline-flex; align-items:center; gap:5px; background:#e9f1fc; border:1px solid #bcd3ef; color:#1e4f8a; border-radius:999px; padding:2px 7px 2px 10px; font-size:12px; font-weight:700; }
.cmt-mention-chip button{ border:none; background:none; cursor:pointer; color:#1e4f8a; font-size:12px; line-height:1; padding:0; }
.cmt-notehint{ font-size:11.5px; color:var(--ink-soft,#6b6276); margin-top:6px; line-height:1.4; }
.cmt-mention-menu{ position:fixed; z-index:99999; background:#fff; border:1px solid rgba(45,8,89,.14); border-radius:12px; box-shadow:0 12px 34px rgba(30,20,50,.22); padding:6px; max-height:300px; overflow:auto; min-width:214px; }
.cmt-mention-menu .cmm-h{ font-size:11px; font-weight:800; color:#8a7fa0; text-transform:uppercase; letter-spacing:.4px; padding:5px 10px 7px; }
.cmt-mention-menu .cmm-item{ display:flex; flex-direction:column; padding:7px 10px; border-radius:8px; cursor:pointer; }
.cmt-mention-menu .cmm-item:hover{ background:#f1ecfb; }
.cmt-mention-menu .cmm-item b{ font-size:13px; color:#2b2340; }
.cmt-mention-menu .cmm-item small{ font-size:11px; color:#8a7fa0; }
