/* ============================================================
   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); }
.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: 4px; border-bottom: 1px solid var(--line); margin: 24px 0 24px; flex-wrap: wrap; }
.tabs button { background: none; border: none; padding: 11px 16px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--purple); border-bottom-color: var(--purple); }

.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 130px 150px 110px 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-row.done .t-title { text-decoration: line-through; color: var(--ink-soft); }
.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); }
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; }

/* ---------- 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; }
.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; }
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); }
.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; }

.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.kcol { flex: 0 0 240px; 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; }
.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-body { display: flex; flex-direction: column; gap: 8px; min-height: 30px; }
.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); }
.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; }
.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 .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: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-more { font-size: 10px; color: var(--ink-soft); padding-left: 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; }

/* ---------- 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; }

/* ---------- 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; }
