/* ==========================================================================
   SISTEMA DE LANÇAMENTO — ESTILOS
   Fontes: Fraunces (títulos) + DM Sans (texto)
   ========================================================================== */
:root {
  --bg:        #f4f5f7;
  --surface:   #ffffff;
  --surface-2: #f4f5f7;
  --sidebar:   #ffffff;
  --sidebar-2: #f7f8fa;
  --ink:       #191b20;
  --ink-soft:  #697079;
  --ink-faint: #9aa1ab;
  --line:      #eaecef;
  --line-2:    #f2f3f5;
  --dark:      #1b1d22;
  --brand:     #c0492e;
  --brand-ink: #9e3a24;
  --brand-soft:#fbeeea;
  --olive:     #5c6b3f;
  --gold:      #c08a2d;
  --cream:     #faf7f2;

  --st-concluido:#3f9142; --st-concluido-bg:#e7f4e8;
  --st-andamento:#b6811f; --st-andamento-bg:#fbf1db;
  --st-pendente: #7c828c; --st-pendente-bg:#eef0f2;
  --st-atrasado: #cf3b34; --st-atrasado-bg:#fdeae8;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23,25,30,.04), 0 1px 2px rgba(23,25,30,.03);
  --shadow-lift: 0 6px 16px rgba(23,25,30,.07), 0 14px 40px rgba(23,25,30,.08);
  --display: "Fraunces", Georgia, serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sbw: 258px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; line-height: 1.5; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
/* números grandes em DM Sans = leitura de dado mais limpa/moderna */
.mini .num, .stat .num, .check-progress .cp-num, .proj td, .proj th { font-family: var(--body); }
.mini .num, .stat .num, .check-progress .cp-num { font-weight: 700; letter-spacing: -.02em; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
::selection { background: rgba(176,68,47,.18); }

/* ---------- LOGIN ---------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(176,68,47,.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(92,107,63,.12), transparent 60%),
    var(--bg);
}
.login-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lift); padding: 40px 36px; text-align: center; }
.login-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); background: var(--st-atrasado-bg); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.login-card h1 { font-size: 26px; margin: 0 0 6px; }
.login-card p.sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 26px; }
.field { text-align: left; margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; background: var(--surface-2); transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(176,68,47,.12); background: #fff; }
.btn-primary { padding: 12px 18px; border: none; border-radius: var(--radius-sm); background: var(--dark); color: #fff; font-size: 14px; font-weight: 600; transition: background .15s, transform .05s; }
.btn-primary:hover { background: #000; }
.btn-primary:active { transform: translateY(1px); }
.login-card .btn-primary { width: 100%; margin-top: 6px; }
.login-error { color: var(--st-atrasado); font-size: 13px; margin-top: 12px; min-height: 18px; }

/* ---------- APP LAYOUT ---------- */
.app { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
  width: var(--sbw); flex-shrink: 0; background: var(--sidebar); color: var(--ink);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar { border-right: 1px solid var(--line); }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--dark); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 15px; flex-shrink: 0; }
.brand-txt { display: flex; flex-direction: column; min-width: 0; }
.brand-txt b { font-family: var(--display); font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-txt span { font-size: 12px; color: var(--ink-faint); }

.side-nav { flex: 1; overflow-y: auto; padding: 10px 10px; }
.nav-group-label { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: none; cursor: pointer; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); padding: 15px 12px 6px; }
.nav-group-label:hover { color: var(--ink-soft); }
.ng-caret { font-size: 9px; opacity: .6; }
.nav-group.col .nav-group-items { display: none; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none; border: none; color: var(--ink-soft); font-size: 13.5px; font-weight: 500; padding: 9px 11px; border-radius: 9px; transition: background .12s, color .12s; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.nav-item .ni-ico { display: grid; place-items: center; width: 20px; flex-shrink: 0; color: var(--ink-faint); }
.nav-item:hover .ni-ico, .nav-item.active .ni-ico { color: var(--ink); }
.ni-svg { width: 18px; height: 18px; }
.nav-item.sub { padding-left: 20px; font-size: 13.5px; }
.nav-item .ni-count { margin-left: auto; font-size: 11px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); padding: 1px 8px; border-radius: 999px; font-weight: 600; }
.nav-item.active .ni-count { background: #fff; }

.side-foot { padding: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.whoami { display: flex; flex-direction: column; min-width: 0; }
.whoami b { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.whoami small { font-size: 11px; color: var(--st-concluido); }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: 13px; font-weight: 500; padding: 8px 12px; border-radius: 9px; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

.side-overlay { display: none; }

/* MAIN */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.main-top { position: sticky; top: 0; z-index: 20; background: rgba(244,245,247,.82); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); padding: 14px 32px; display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 9px; width: 38px; height: 38px; font-size: 18px; }
.crumb { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.view { padding: 32px; max-width: 1200px; width: 100%; }

/* ---------- CABEÇALHOS DE VIEW ---------- */
.vh { margin-bottom: 24px; }
.vh h1 { font-size: 30px; margin: 0 0 4px; }
.vh p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.vh-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.vh-row .spacer { flex: 1; }
.editable-title { cursor: text; border-radius: 8px; padding: 2px 6px; margin: -2px -6px; transition: background .12s; }
.editable-title:hover { background: rgba(0,0,0,.04); }
.editable-inline { cursor: text; border-bottom: 1px dashed transparent; transition: border-color .12s; outline: none; }
.editable-inline:hover { border-bottom-color: var(--line-strong, #c9c4bb); }
.editable-inline:focus { border-bottom-color: var(--brand); }

.section-title { font-size: 20px; margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; }
.section-title .st-line { flex: 1; height: 1px; background: var(--line); }

/* ---------- BOTÕES AUX ---------- */
.btn-add { display: inline-flex; align-items: center; gap: 7px; border: 1px dashed #cdbfa8; background: var(--surface-2); color: var(--brand-ink); font-size: 13.5px; font-weight: 600; padding: 9px 15px; border-radius: var(--radius-sm); }
.btn-add:hover { background: #fff; border-color: var(--brand); }
.btn-danger { border: 1px solid var(--st-atrasado-bg); background: #fff; color: var(--st-atrasado); font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 9px; }
.btn-danger:hover { background: var(--st-atrasado-bg); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat .num { font-family: var(--display); font-size: 30px; font-weight: 600; }
.stat .lbl { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.stat.progress .bar { height: 8px; background: var(--line); border-radius: 999px; margin-top: 12px; overflow: hidden; }
.stat.progress .bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--olive), var(--st-concluido)); border-radius: 999px; }

/* ---------- TOOLBAR / FILTROS ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toolbar select, .toolbar .search { border: 1px solid var(--line); background: var(--surface); padding: 9px 13px; border-radius: 9px; font-size: 13px; color: var(--ink); }
.toolbar .search { min-width: 220px; }
.toolbar .search:focus, .toolbar select:focus { outline: none; border-color: var(--brand); }
.chip-toggle { border: 1px solid var(--line); background: var(--surface); padding: 9px 14px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.chip-toggle.on { background: var(--olive); color: #fff; border-color: var(--olive); }
.toolbar .spacer { flex: 1; }

/* ---------- GRID DE CARDS (tarefas/copys) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; transition: transform .12s, box-shadow .12s; cursor: pointer; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.type-tag { font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 7px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 5px; }
.card h3 { font-size: 16px; margin: 0; line-height: 1.3; }
.card .obs { font-size: 13px; color: var(--ink-soft); margin: -2px 0 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12.5px; color: var(--ink-soft); margin-top: auto; padding-top: 4px; }
.card-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.status-pill { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.status-pill .d { width: 7px; height: 7px; border-radius: 50%; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: none; }
.card-link:hover { color: var(--brand-ink); }
.mini-avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--olive); color: #fff; display: inline-grid; place-items: center; font-size: 10px; font-weight: 600; }

.empty { text-align: center; padding: 56px 20px; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); grid-column: 1/-1; }
.empty .big { font-size: 32px; margin-bottom: 8px; }

/* ---------- GALERIA DE DESIGNS ---------- */
.design-cat { margin-bottom: 30px; }
.design-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.design-cat-head h2 { font-size: 20px; margin: 0; }
.design-cat-head .desc { font-size: 13px; color: var(--ink-soft); }
.design-cat-head .spacer { flex: 1; }

.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.design-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .12s, box-shadow .12s; }
.design-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.di-media { position: relative; background: var(--cream); aspect-ratio: 4/3; display: flex; flex-wrap: wrap; }
.di-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.di-media.multi { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.di-media.multi img { aspect-ratio: 1; }
.di-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--ink-faint); }
.di-empty .ic { font-size: 26px; opacity: .5; }
.di-empty small { font-size: 12px; }
.di-count { position: absolute; top: 8px; right: 8px; background: rgba(33,29,24,.78); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.di-body { padding: 13px 15px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.di-body h3 { font-size: 15px; margin: 0; }
.di-body .obs { font-size: 12.5px; color: var(--ink-soft); margin: 0; }
.di-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 4px; }
.di-actions button { flex: 1; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.di-actions button:hover { background: #fff; color: var(--ink); border-color: #d8cfc0; }
.di-actions .up { color: var(--brand-ink); border-color: #eadbc9; }
.di-actions .up:hover { border-color: var(--brand); }
.dropzone-hint { outline: 2px dashed var(--brand); outline-offset: -6px; }

/* thumb strip dentro do item (quando há imagens, mostra abaixo) */
.di-thumbs { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 15px 12px; }
.di-thumb { position: relative; width: 46px; height: 46px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.di-thumb img { width: 100%; height: 100%; object-fit: cover; }
.di-thumb .rm { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: var(--st-atrasado); color: #fff; border: 2px solid #fff; font-size: 10px; line-height: 1; display: grid; place-items: center; padding: 0; }

/* ---------- LUGARES IMPORTANTES ---------- */
.links-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.link-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.link-group h4 { font-family: var(--body); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin: 10px 12px 6px; }
.link-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: background .12s; cursor: pointer; }
.link-row:hover { background: var(--surface-2); }
.link-ico { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-size: 16px; background: var(--st-atrasado-bg); color: var(--brand); }
.link-row .lt { flex: 1; min-width: 0; }
.link-row .lt b { font-size: 14px; font-weight: 600; display: block; }
.link-row .lt small { font-size: 12px; color: var(--ink-soft); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-row .arrow { color: var(--ink-faint); flex-shrink: 0; }
.link-row.disabled { opacity: .6; cursor: default; }
.link-row.disabled .lt small { font-style: italic; }
.link-acts { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.link-act { width: 28px; height: 28px; border-radius: 8px; border: none; background: transparent; color: var(--ink-faint); display: grid; place-items: center; font-size: 13px; text-decoration: none; cursor: pointer; }
.link-act:hover { background: var(--surface-2); color: var(--ink); }
.link-copy { font-size: 12px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 5px 11px; border-radius: 8px; opacity: 0; transition: opacity .12s; white-space: nowrap; cursor: pointer; }
.link-row:hover .link-copy, .link-tr:hover .link-copy { opacity: 1; }
@media (hover: none) { .link-copy { opacity: 1; } }

/* ---------- LINKS (tabela) ---------- */
.link-tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table.link-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.link-table th { text-align: left; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; padding: 13px 16px; border-bottom: 1px solid var(--line); }
table.link-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.link-table tbody tr:last-child td { border-bottom: none; }
.link-tr { cursor: pointer; transition: background .12s; }
.link-tr:hover { background: var(--surface-2); }
.link-tr.disabled { cursor: default; color: var(--ink-faint); }
.lk-title { font-weight: 600; }
.lk-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); margin-right: 10px; font-size: 14px; vertical-align: middle; }
.lk-grupo { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.lk-url { color: var(--brand); font-variant-numeric: tabular-nums; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-url em { color: var(--ink-faint); font-style: italic; }
.lk-acts { text-align: right; white-space: nowrap; }
.lk-acts .link-act { display: inline-grid; }

/* ---------- EXTRATO (Visão Geral) ---------- */
/* ---------- VISÃO GERAL · mini cronograma ---------- */
.ov-timeline { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); cursor: pointer; margin-bottom: 20px; transition: box-shadow .12s; }
.ov-timeline:hover { box-shadow: var(--shadow-lift); }
.ov-timeline .ex-head { margin-bottom: 18px; }
.ovt-track { overflow-x: auto; padding-bottom: 2px; }
.ovt-steps { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; min-width: 560px; }
.ovt-steps::before { content: ""; position: absolute; top: 6px; left: 7%; right: 7%; height: 2px; background: var(--line); z-index: 0; }
.ovt-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 0 4px; }
.ovt-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong, #cfcabf); box-sizing: border-box; }
.ovt-step.done .ovt-dot { background: var(--c); border-color: var(--c); }
.ovt-step.now .ovt-dot { background: var(--c); border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); width: 16px; height: 16px; }
.ovt-step b { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 5px; }
.ovt-step.todo b { color: var(--ink-faint); }
.ovt-step small { font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ovt-now { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--brand); padding: 2px 7px; border-radius: 999px; margin-top: 2px; }
.ovt-marcos { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.ovt-marco { font-size: 12px; font-weight: 500; color: var(--ink-soft); display: inline-flex; align-items: baseline; gap: 6px; }
.ovt-marco em { font-style: normal; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.lbl-hint { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-faint); font-size: 11px; margin-left: 6px; }
.ov-evento { margin-bottom: 20px; }
.ov-evento .ex-go { cursor: pointer; }

/* Visão Geral · cards Metas / Oferta destacados (empilhados) */
.ov-extrato-stack { display: flex; flex-direction: column; gap: 16px; }
.ov-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.ov-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.ovc-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.ovc-head h3 { font-size: 17px; margin: 0; flex-shrink: 0; }
.ovc-note { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovc-head .ex-go { flex-shrink: 0; }
.ovc-ic { font-size: 18px; }
.ovc-head.metas { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 8%, var(--surface)), var(--surface)); }
.ovc-head.oferta { background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 11%, var(--surface)), var(--surface)); }
.ovc-body { padding: 16px 18px; }
.ovc-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-soft); }
.ovc-foot b { color: var(--ink); font-variant-numeric: tabular-nums; }

.ovm-progress { display: flex; flex-direction: column; gap: 13px; }
.ovm-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ovm-top > span { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.ovm-top > b { font-size: 12.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.ovm-top em { font-style: normal; color: var(--ink-faint); font-weight: 500; }
.ovm-pct { font-style: normal; font-size: 11px; font-weight: 700; color: var(--olive); margin-left: 6px; }
.ovm-bar { height: 6px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.ovm-bar > i { display: block; height: 100%; background: var(--olive); border-radius: 999px; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.ovm-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.ovm-plan { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ovm-plan span { font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovm-plan b { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.ovm-plan em { font-style: normal; font-weight: 500; color: var(--ink-faint); }
.section-title .ex-go { margin-left: auto; cursor: pointer; }
.ov-card .ovc-body { padding: 18px; }
.ov-card .ovc-headline { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }

.ovo-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 760px) { .ovo-plans { grid-template-columns: 1fr 1fr; } }
.ovo-plan { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 13px 14px; }
.ovo-plan > b { font-size: 13px; display: block; line-height: 1.3; color: var(--ink); }
.ovo-price { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 9px 0 9px; }
.ovo-price span { font-family: var(--body); font-size: 11px; font-weight: 500; color: var(--ink-faint); margin-left: 5px; }
.ovo-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); padding: 4px 0; border-top: 1px dashed var(--line-2); }
.ovo-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ovo-inclui { font-size: 11.5px; color: var(--ink-soft); line-height: 1.35; margin: 5px 0 0; }
.ov-ents { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.ov-ents .rs-lbl em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--olive); font-weight: 700; margin-left: 6px; }
.ov-ent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ov-ent { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }
.ov-ent em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--olive); font-variant-numeric: tabular-nums; }
.ov-ent.mn em { color: var(--gold); }

.extrato { margin-top: 8px; }
.ex-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.ex-head h2 { font-size: 22px; margin: 0; }
.ex-sub { font-size: 13px; color: var(--ink-faint); }
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .ex-grid { grid-template-columns: 1fr; } }
.ex-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.ex-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.ex-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ex-ico { font-size: 20px; }
.ex-top b { font-family: var(--display); font-size: 18px; }
.ex-go { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--brand); }
.ex-headline { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 12px; line-height: 1.4; }
.ex-rows { display: flex; flex-direction: column; gap: 9px; }
.ex-r { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.ex-r b { color: var(--ink); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ex-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--ink-faint); }
.ex-foot b { color: var(--ink-soft); }

/* ---------- ATIVIDADES ---------- */
.at-stats { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.at-stat { display: flex; flex-direction: column; }
.at-stat b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.at-stat span { font-size: 12px; color: var(--ink-soft); }
.at-stat.grow { flex: 1; min-width: 160px; }
.at-stat.cds { display: flex; gap: 10px; }
.at-cd { display: flex; align-items: center; gap: 9px; background: color-mix(in srgb, var(--cd) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--cd) 25%, var(--line)); border-radius: 11px; padding: 8px 13px; }
.at-cd .cd-ico { font-size: 18px; }
.at-cd b { display: block; font-size: 15px; font-weight: 700; color: var(--cd); line-height: 1; }
.at-cd span { font-size: 11px; color: var(--ink-soft); }

/* bulk bar */
.bulk-bar { display: flex; align-items: center; gap: 10px; background: var(--dark); color: #fff; border-radius: 12px; padding: 10px 16px; margin-bottom: 14px; box-shadow: var(--shadow-lift); flex-wrap: wrap; }
.bulk-n { font-weight: 700; font-size: 13.5px; }
.bulk-sep { width: 1px; height: 18px; background: rgba(255,255,255,.2); }
.bulk-lbl { font-size: 12.5px; color: rgba(255,255,255,.7); }
.bulk-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: none; color: #fff; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.bulk-btn:hover { background: rgba(255,255,255,.18); }
.bulk-btn .d { width: 8px; height: 8px; border-radius: 50%; }
.bulk-btn.del:hover { background: var(--st-atrasado); }
.bulk-btn.ghost { background: transparent; color: rgba(255,255,255,.75); }
.bulk-bar .spacer { flex: 1; }
.at-prog { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 5px; }
.at-prog > i { display: block; height: 100%; background: linear-gradient(90deg, var(--olive), var(--st-concluido)); border-radius: 999px; }
.at-toolbar { align-items: center; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg-btn { border: none; background: none; font-size: 13px; font-weight: 600; color: var(--ink-soft); padding: 7px 14px; border-radius: 8px; }
.seg-btn.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.at-toolbar select { border: 1px solid var(--line); background: var(--surface); padding: 9px 12px; border-radius: 9px; font-size: 13px; color: var(--ink); }

/* tabela editável (Notion/ClickUp) */
.at-tablewrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow-x: auto; }
table.at-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 820px; }
table.at-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); text-align: left; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; padding: 11px 12px; border-bottom: 1px solid var(--line); }
table.at-table td { padding: 3px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.at-tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.at-tr.done .cell-nome { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: #cbbfa8; }
.c-check { width: 40px; text-align: center; }
.c-check input { width: 15px; height: 15px; accent-color: var(--dark); cursor: pointer; vertical-align: middle; }
.c-status { width: 130px; } .c-fase { width: 130px; } .c-resp { width: 158px; } .c-prazo { width: 140px; } .c-prio { width: 120px; } .c-act { width: 34px; }
.at-tr.sel td { background: color-mix(in srgb, var(--brand) 6%, transparent); }

.cell-input { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 8px 9px; font: inherit; color: var(--ink); font-variant-numeric: tabular-nums; }
.cell-input:hover { border-color: var(--line); }
.cell-input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(192,73,46,.1); }
.cell-nome { font-weight: 500; flex: 1; min-width: 40px; }
.cn-wrap { display: flex; align-items: center; gap: 2px; }
.cr-wrap { display: flex; align-items: center; gap: 4px; }
.cn-caret { border: none; background: none; color: var(--ink-soft); font-size: 10px; width: 18px; height: 18px; border-radius: 5px; cursor: pointer; flex-shrink: 0; }
.cn-caret:hover { background: var(--surface-2); color: var(--ink); }
.cn-sub, .cn-nocaret { width: 18px; flex-shrink: 0; display: inline-block; }
.cn-sub::before { content: "↳"; color: var(--ink-faint); font-size: 12px; margin-left: 3px; }
.cn-prio { width: 4px; height: 22px; border-radius: 3px; flex-shrink: 0; }
.cn-subcount { font-size: 11px; font-weight: 600; color: var(--ink-faint); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px; flex-shrink: 0; }
.at-tr.depth-1 .cell-nome { font-weight: 400; color: var(--ink-soft); }
.cell-prazo.over { color: var(--st-atrasado); font-weight: 600; }
input[type=date] { font-variant-numeric: tabular-nums; cursor: pointer; }
input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .5; }
input[type=date]::-webkit-calendar-picker-indicator:hover { opacity: .9; }
.cell-date { min-width: 118px; }

.cell-select { appearance: none; -webkit-appearance: none; border: 1px solid transparent; background: transparent; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; max-width: 100%; }
.cell-select:hover { border-color: var(--line); }
.cell-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(192,73,46,.12); }
.cs-status { border-radius: 999px; text-align: left; }
.cs-fase, .cs-prio, .cs-resp { background: transparent; }
.cs-resp { color: var(--ink); border-radius: 8px; flex: 1; min-width: 0; }
.cell-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; font-size: 9.5px; font-weight: 600; flex-shrink: 0; }
.gcaret { color: var(--ink-soft); font-size: 10px; margin-right: 6px; }
.at-grouprow { cursor: pointer; }
.at-grouprow:hover td { background: color-mix(in srgb, var(--surface-2) 70%, #e8eaee); }
.kempty { text-align: center; color: var(--ink-faint); font-size: 20px; padding: 8px 0; }
.at-table th.sortable { cursor: pointer; user-select: none; }
.at-table th.sortable:hover { color: var(--ink); }
.sort-c { font-size: 10px; margin-left: 3px; color: var(--brand); }
.sort-c.dim { color: var(--ink-faint); opacity: .45; }
.c-act { white-space: nowrap; }
.row-del, .row-open { width: 24px; height: 24px; border: none; background: none; color: var(--ink-faint); border-radius: 7px; font-size: 12px; opacity: 0; cursor: pointer; }
.at-tr:hover .row-del, .at-tr:hover .row-open { opacity: 1; }
.row-open:hover { background: var(--surface-2); color: var(--ink); }
.row-del:hover { background: var(--st-atrasado-bg); color: var(--st-atrasado); }

.at-grouprow td { background: var(--surface-2); padding: 9px 14px !important; font-family: var(--display); font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--line); }
.agr-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; vertical-align: middle; }
.agr-count { font-family: var(--body); font-size: 11px; font-weight: 600; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); padding: 1px 9px; border-radius: 999px; margin-left: 10px; }
.at-addrow td { padding: 4px 8px !important; }
.at-addrow button { border: none; background: none; color: var(--ink-faint); font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: 8px; width: 100%; text-align: left; }
.at-addrow button:hover { background: var(--surface-2); color: var(--brand-ink); }

.task-group { margin-bottom: 20px; }
.tg-head { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.tg-dot { width: 9px; height: 9px; border-radius: 50%; }
.tg-count { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
.task-list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.task-row { display: flex; align-items: center; gap: 13px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: background .12s; }
.task-row:last-child { border-bottom: none; }
.task-row:hover { background: var(--surface-2); }
.task-check { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #cdc4b5; background: #fff; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.task-check:hover { border-color: var(--olive); }
.task-check.on { background: var(--st-concluido); border-color: var(--st-concluido); }
.task-main { flex: 1; min-width: 0; }
.task-nome { font-size: 14.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.task-row.done .task-nome { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: #cbbfa8; }
.task-obs { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.task-cols { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.prio-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.task-tag { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.task-tag.sm { font-size: 10.5px; padding: 2px 8px; }
.task-prazo { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.task-prazo.sm { font-size: 11px; }
.task-prazo.over { color: var(--st-atrasado); font-weight: 600; }
.mini-avatar.empty { background: var(--surface-2); color: var(--ink-faint); border: 1px dashed var(--line); }
@media (max-width: 640px) { .task-obs { display: none; } .task-tag { display: none; } }

/* quadro (kanban) */
.kboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; }
@media (max-width: 900px) { .kboard { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kboard { grid-template-columns: 1fr; } }
.kcol { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 90px; transition: background .12s, box-shadow .12s; }
.kcol.drop { background: var(--brand-soft); box-shadow: inset 0 0 0 2px var(--brand); }
.kcol-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); padding: 4px 6px 12px; }
.kdot { width: 8px; height: 8px; border-radius: 50%; }
.kcount { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; }
.kcol-body { display: flex; flex-direction: column; gap: 9px; min-height: 30px; }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; box-shadow: var(--shadow); cursor: grab; transition: box-shadow .12s, transform .12s; }
.kcard:hover { box-shadow: var(--shadow-lift); }
.kcard.dragging { opacity: .5; transform: rotate(1.5deg); }
.kc-nome { font-size: 13.5px; font-weight: 500; display: flex; align-items: flex-start; gap: 7px; line-height: 1.35; }
.kc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.kc-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.kc-resp { font-size: 12px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kc-resp.faint { color: var(--ink-faint); font-style: italic; }

/* ---------- DRAWER (detalhes da atividade) ---------- */
.drawer-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(23,25,30,.35); backdrop-filter: blur(2px); display: flex; justify-content: flex-end; }
.drawer { width: 440px; max-width: 92vw; height: 100%; background: var(--surface); box-shadow: -12px 0 40px rgba(0,0,0,.14); overflow-y: auto; padding: 20px 24px 30px; animation: dwIn .22s cubic-bezier(.2,.7,.2,1); }
@keyframes dwIn { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.dw-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dw-crumb { font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.dw-x { border: none; background: var(--surface-2); width: 30px; height: 30px; border-radius: 8px; color: var(--ink-soft); font-size: 14px; cursor: pointer; }
.dw-x:hover { background: var(--line); color: var(--ink); }
.dw-title { width: 100%; border: 1px solid transparent; border-radius: 9px; padding: 8px 10px; font-family: var(--display); font-size: 20px; font-weight: 600; resize: none; color: var(--ink); line-height: 1.25; }
.dw-title:hover { border-color: var(--line); } .dw-title:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(192,73,46,.1); }
.dw-status-row { display: flex; gap: 8px; margin: 14px 0 18px; }
.dw-st { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.dw-st .d { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.dw-st.on { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 12%, transparent); color: var(--ink); }
.dw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin-bottom: 12px; }
.dw-field { display: flex; flex-direction: column; }
.dw-field label { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
.dw-in { border: 1px solid var(--line); background: var(--surface-2); border-radius: 9px; padding: 9px 11px; font: inherit; font-size: 13.5px; color: var(--ink); }
.dw-in:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(192,73,46,.1); }
select.dw-in { appearance: none; cursor: pointer; }
.dw-subs { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.dw-subs-h { font-size: 13px; font-weight: 700; margin-bottom: 10px; display: flex; gap: 8px; }
.dw-subs-h span { color: var(--ink-faint); font-weight: 600; }
.dw-sub { display: flex; align-items: center; gap: 9px; padding: 4px 0; }
.dw-subcheck { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #cdd2d8; background: #fff; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.dw-subcheck.on { background: var(--st-concluido); border-color: var(--st-concluido); }
.dw-subname { flex: 1; border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 6px 8px; font: inherit; font-size: 13.5px; color: var(--ink); }
.dw-subname:hover { border-color: var(--line); } .dw-subname:focus { outline: none; border-color: var(--brand); background: #fff; }
.dw-subdel { border: none; background: none; color: var(--ink-faint); cursor: pointer; font-size: 12px; opacity: 0; }
.dw-sub:hover .dw-subdel { opacity: 1; }
.dw-subadd { border: 1px dashed var(--line); background: none; color: var(--ink-soft); font-size: 13px; font-weight: 600; padding: 9px; border-radius: 9px; width: 100%; margin-top: 8px; cursor: pointer; }
.dw-subadd:hover { border-color: var(--brand); color: var(--brand-ink); }
.dw-foot { margin-top: 22px; }

/* ---------- CRONOGRAMA ---------- */
.cg-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; }
.cg-inner { position: relative; }
.cg-months { position: relative; height: 40px; margin-left: 150px; margin-bottom: 4px; }
.cg-monthlbl { position: absolute; top: 3px; transform: translateX(4px); font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.cg-daylbl { position: absolute; top: 23px; transform: translateX(-50%); font-size: 10.5px; font-weight: 500; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.cg-daylbl.wk { color: var(--ink-soft); font-weight: 700; }
.cg-daylbl.wknd { color: var(--line-strong, #c9c4bb); }
.cg-todaylbl { position: absolute; top: 3px; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--brand); }
.cg-timeline { display: flex; flex-direction: column; gap: 6px; }
.cg-row, .cg-marcos { display: grid; grid-template-columns: 150px 1fr; align-items: center; }
.cg-label { font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 8px; padding-right: 12px; overflow: hidden; position: sticky; left: 0; z-index: 4; background: var(--surface); }
.cg-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.cg-track { position: relative; height: 44px; border-left: 1px solid var(--line); }
.cg-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.cg-today { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--brand); opacity: .55; z-index: 2; }
.cg-barlbl { position: absolute; top: 2px; font-size: 10.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.cg-bar { position: absolute; top: 17px; height: 24px; border-radius: 7px; display: flex; align-items: center; padding: 0 11px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.cg-bar span { color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-marcos { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 10px; align-items: start; }
.cg-marcos .cg-label { padding-top: 4px; font-size: 12px; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; }
.cg-marcos .cg-track { height: 30px; border-left: none; }
.cg-marco { position: absolute; top: 0; transform: translateX(-50%); z-index: 3; }
.cg-marco-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--surface); border: 2px solid var(--dark); display: grid; place-items: center; font-size: 13px; box-shadow: var(--shadow); }
.cg-legend { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 14px 0 2px 150px; }
.cg-lg { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.cg-lg-ic { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--dark); display: grid; place-items: center; font-size: 11px; }
.cg-lg-n { width: 20px; height: 20px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 10.5px; font-weight: 700; }
.cg-lg em { font-style: normal; color: var(--ink-faint); font-weight: 600; font-variant-numeric: tabular-nums; }
/* traços diários + guias de marco (compartilhado com o Gantt) */
.day-tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-2); opacity: .45; }
.day-tick.wk { opacity: .8; }
.cg-mguide { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--brand); opacity: .35; z-index: 1; }
.cg-marker { width: 22px; height: 22px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; box-shadow: var(--shadow); border: 2px solid var(--surface); }
.cg-marcos .cg-track { overflow: visible; }
.cron-list { display: flex; flex-direction: column; gap: 8px; }
.cron-fase { display: grid; grid-template-columns: 1fr 140px 18px 140px; align-items: center; gap: 8px; }
.cf-name { font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.cf-arrow { color: var(--ink-faint); text-align: center; }
.cron-in { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cron-in:focus { outline: none; border-color: var(--brand); background: #fff; }
.cron-marco { display: grid; grid-template-columns: 44px 1fr 148px 26px; align-items: center; gap: 8px; }
.cron-mico { text-align: center; } .cron-mname { font-weight: 500; }
.cron-mico, .cron-mname { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px; color: var(--ink); }
.cron-mico:hover, .cron-mname:hover { border-color: var(--line); }
.cron-mico:focus, .cron-mname:focus { outline: none; border-color: var(--brand); background: #fff; }
.cron-marco .row-del { opacity: .5; }
.cron-marco:hover .row-del { opacity: 1; }
@media (max-width: 640px) { .cron-fase { grid-template-columns: 1fr; } .cf-arrow { display: none; } }

/* drawer page link */
.dw-pagelink { width: 100%; display: block; text-align: left; background: var(--brand-soft); border: 1px solid #efd9d1; color: var(--brand-ink); font-size: 13px; font-weight: 600; padding: 11px 14px; border-radius: 10px; margin: 14px 0 4px; cursor: pointer; }
.dw-pagelink:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); }

/* ---------- GANTT / TIMELINE ---------- */
.gantt-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow-x: auto; padding: 4px 0 10px; }
.gantt { min-width: 720px; }
.g-row { display: grid; grid-template-columns: 250px 1fr; align-items: center; cursor: pointer; }
.g-head { border-bottom: 1px solid var(--line); height: 48px; cursor: default; }
.g-label { padding: 0 14px; font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 8px; overflow: hidden; position: sticky; left: 0; z-index: 3; background: var(--surface); }
.g-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-track { position: relative; height: 40px; border-left: 1px solid var(--line); }
.g-head .g-track { height: 48px; }
.g-head .g-label { z-index: 4; }
.g-monthlbl { position: absolute; top: 6px; transform: translateX(5px); font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.g-daylbl { position: absolute; top: 27px; transform: translateX(-50%); font-size: 10.5px; font-weight: 500; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.g-daylbl.wk { color: var(--ink-soft); font-weight: 700; }
.g-daylbl.wknd { color: var(--line-strong, #c9c4bb); }
.g-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); opacity: .8; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand); opacity: .6; z-index: 1; }
.g-todaylbl { position: absolute; top: 6px; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--brand); }
.g-group .g-grouphead { grid-column: 1 / -1; padding: 10px 14px 6px; font-family: var(--display); font-weight: 600; font-size: 13.5px; }
.g-gh-in { position: sticky; left: 14px; display: inline-flex; align-items: center; }
.g-group .g-row:hover .g-track { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.g-group .g-row:hover .g-label { background: var(--surface-2); }
.gantt-bar { position: absolute; top: 8px; height: 22px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,.18); min-width: 6px; transition: filter .12s, transform .12s; z-index: 2; }
.g-row:hover .gantt-bar { filter: brightness(1.06); transform: translateY(-1px); }
.g-bardate { position: absolute; top: 11px; white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; z-index: 2; pointer-events: none; }

/* ---------- REFERÊNCIA (último lançamento, minimalista) ---------- */
.ref-strip { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; padding: 11px 16px; margin-bottom: 18px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.ref-tag { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.ref-items { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
.ref-i { font-size: 12.5px; color: var(--ink-soft); display: inline-flex; align-items: baseline; gap: 5px; }
.ref-i b { font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- CALCULADORA — seletores de tipo ---------- */
.lanc-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 760px) { .lanc-toggles { grid-template-columns: 1fr; } }
.lanc-tog { display: flex; flex-direction: column; gap: 7px; }
.lt-label { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-faint); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 5px; }
.seg-btn { text-align: left; background: transparent; border: 1px solid transparent; border-radius: 9px; padding: 9px 12px; cursor: pointer; transition: background .12s, box-shadow .12s; display: flex; flex-direction: column; gap: 1px; }
.seg-btn:hover { background: var(--surface); }
.seg-btn.on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.seg-btn b { font-size: 14px; color: var(--ink); }
.seg-btn.on b { color: var(--dark); }
.seg-btn small { font-size: 11.5px; color: var(--ink-soft); }
.prod-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.prod-link:hover { border-color: var(--dark); }
.prod-link span { font-size: 12px; font-weight: 600; color: var(--brand); white-space: nowrap; }

/* Oferta · identidade + seletor de produto */
.of-identity { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: stretch; margin-bottom: 4px; }
@media (max-width: 760px) { .of-identity { grid-template-columns: 1fr; } }
.of-prod { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.of-prod .seg2 { flex: 1; }
.of-prod .seg-btn { justify-content: center; }
.of-head { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; }

/* Oferta · links de matrícula por plano */
.mat-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 10px; margin-bottom: 8px; }
.mat-row:last-child { margin-bottom: 0; }
.mat-n { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .mat-row { grid-template-columns: 1fr; gap: 4px; } }

.comis-row .row-del { opacity: .55; }
.comis-row:hover .row-del { opacity: 1; }

.calc-grid { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: start; }
.calc-left { position: sticky; top: 84px; }
.calc-right { display: flex; flex-direction: column; gap: 18px; }
.calc-right .calc-summary { margin-bottom: 0; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } .calc-left { position: static; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel h3 { font-size: 16px; margin: 0 0 16px; display: flex; align-items: center; }

/* tooltip "?" */
.help { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--line); color: var(--ink-soft); font-size: 10px; font-weight: 700; cursor: help; position: relative; margin-left: 5px; flex-shrink: 0; }
.help.sm { width: 15px; height: 15px; vertical-align: middle; }
.help:hover { background: var(--ink-soft); color: #fff; }
.help:hover::after { content: attr(data-tip); position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%); background: var(--dark); color: #fff; font-size: 11.5px; font-weight: 400; line-height: 1.45; padding: 9px 11px; border-radius: 9px; width: 210px; text-align: left; z-index: 40; box-shadow: var(--shadow-lift); white-space: normal; pointer-events: none; }
.help:hover::before { content: ""; position: absolute; bottom: 150%; left: 50%; transform: translate(-50%, 60%); border: 5px solid transparent; border-top-color: var(--dark); z-index: 40; }
/* headers da tabela: tooltip abre para baixo pra não cortar */
.proj th .help:hover::after { bottom: auto; top: 150%; }
.proj th .help:hover::before { bottom: auto; top: 150%; transform: translate(-50%, -60%) rotate(180deg); }

/* controles / sliders */
.ctrls { display: flex; flex-direction: column; gap: 15px; }
.ctrl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.ctrl-top label { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; }
.ctrl-val { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ctrl-val .muted { color: var(--ink-faint); font-weight: 500; font-size: 12.5px; }
.ctrl-edit { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.ctrl-edit:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(192,73,46,.1); }
.ctrl-edit .cn-u { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-faint); }
.ctrl-num { width: 74px; border: none; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; padding: 0; }
.ctrl-num:focus { outline: none; }
.ctrl-num::-webkit-outer-spin-button, .ctrl-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* métricas de apoio derivadas */
.calc-support { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sup-i { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 13px; }
.sup-i span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-faint); }
.sup-i b { display: block; font-size: 16px; margin-top: 3px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ticket médio puxado da oferta */
.ticket-big { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 14px; }
.ticket-big span { font-family: var(--body); font-size: 13px; font-weight: 500; color: var(--ink-faint); margin-left: 8px; letter-spacing: 0; }
.ticket-mix { display: flex; flex-direction: column; gap: 9px; }
.tk-row { display: grid; grid-template-columns: 1.4fr 1fr auto auto; align-items: center; gap: 12px; font-size: 13px; }
.tk-n { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-bar { height: 7px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.tk-bar > i { display: block; height: 100%; background: var(--olive); border-radius: 999px; }
.tk-mix { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }
.tk-v { color: var(--ink-soft); font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
.tk-warn { margin-top: 12px; font-size: 12.5px; font-weight: 600; color: var(--st-atrasado); background: color-mix(in srgb, var(--st-atrasado) 8%, var(--surface)); border-radius: 9px; padding: 8px 11px; }
input[type=range].slider { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--brand) var(--fill, 50%), var(--line) var(--fill, 50%)); cursor: pointer; }
input[type=range].slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 3px rgba(20,21,24,.25); cursor: grab; transition: transform .1s; }
input[type=range].slider::-webkit-slider-thumb:active { transform: scale(1.2); cursor: grabbing; }
input[type=range].slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 3px rgba(20,21,24,.25); cursor: grab; }
.etapa-total { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); border-top: 1px solid var(--line-2); padding-top: 12px; margin-top: 4px; }
.etapa-total.over b { color: var(--st-atrasado); }

/* resumo */
.calc-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; margin-bottom: 18px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); position: relative; }
.mini.hl { border-color: #efd9d1; }
.mini.hl::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 999px; background: var(--brand); }
.mini .lbl { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.mini .num { font-size: clamp(17px, 2vw, 22px); margin-top: 5px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .sub { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.calc-summary { grid-template-columns: repeat(auto-fit, minmax(135px,1fr)); }

/* tabela projeção — cabe sem scroll */
.proj-panel { padding: 16px 18px 18px; }
.proj-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.proj-head h3 { margin: 0; font-size: 16px; }
.proj-legend { font-size: 11.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 4px; }
.sc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; flex-shrink: 0; }
.proj-legend .sc-dot { margin: 0 3px 0 8px; }
.proj-legend .sc-dot:first-child { margin-left: 0; }
.sc-dot.good { background: var(--st-concluido); }
.sc-dot.mid { background: var(--st-andamento); }
.sc-dot.bad { background: var(--st-atrasado); }
table.proj { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
table.proj th { color: var(--ink-faint); font-family: var(--body); font-weight: 600; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; text-align: right; padding: 6px 6px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.proj th .help { display: inline-grid; }
table.proj th.l, table.proj td.l { text-align: left; }
table.proj td { padding: 13px 6px; text-align: right; border-bottom: 1px solid var(--line-2); white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
table.proj td.l { font-weight: 600; }
table.proj tr:last-child td { border-bottom: none; }
table.proj tr.row-mid td { background: var(--brand-soft); font-weight: 700; }
table.proj tr.row-mid td:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
table.proj tr.row-mid td:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
table.proj .good { color: var(--st-concluido); }
table.proj .bad { color: var(--st-atrasado); }
.cpa-chip { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.cpa-chip.good { background: var(--st-concluido-bg); color: var(--st-concluido); }
.cpa-chip.mid { background: var(--st-andamento-bg); color: var(--st-andamento); }
.cpa-chip.bad { background: var(--st-atrasado-bg); color: var(--st-atrasado); }
.calc-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 12px; }

/* ---------- METAS (aba) ---------- */
.mt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.mt-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 16px 18px; box-shadow: var(--shadow); }
.mt-ctop { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-soft); }
.mt-ico { font-size: 15px; }
.mt-realv { font-family: var(--body); font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; color: var(--ink); font-variant-numeric: tabular-nums; }
.mt-sub { font-size: 10.5px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .04em; margin-top: 1px; }
.mt-bar { height: 7px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; margin: 12px 0 10px; }
.mt-bar > i { display: block; height: 100%; border-radius: 999px; background: var(--olive); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.mt-metf { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-faint); }
.mt-metf > span:first-child { text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.mt-editwrap { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 7px; padding: 3px 7px; background: var(--surface-2); }
.mt-editwrap:focus-within { border-color: var(--brand); background: #fff; }
.mt-editwrap i { font-style: normal; font-size: 11px; color: var(--ink-faint); }
.mt-metin { width: 70px; border: none; background: transparent; font: inherit; font-size: 13px; font-weight: 700; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.mt-metin:focus { outline: none; }
.mt-metin::-webkit-outer-spin-button, .mt-metin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mt-metf em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.mt-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); background: var(--surface); }
.mt-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 13px; }
.mt-table th { background: var(--surface-2); text-align: center; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-faint); padding: 11px 12px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.mt-table td { padding: 5px 10px; text-align: center; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.mt-lbl { text-align: left !important; white-space: nowrap; position: sticky; left: 0; background: var(--surface); z-index: 1; font-weight: 600; color: var(--ink); }
.mt-table thead .mt-lbl { background: var(--surface-2); z-index: 3; }
.mt-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.mt-lbl small { color: var(--ink-faint); font-weight: 500; text-transform: uppercase; font-size: 10px; margin-left: 2px; }
.mt-plan { color: var(--ink-faint); }
.mt-in { width: 74px; border: 1px solid transparent; border-radius: 7px; background: var(--surface-2); padding: 6px 8px; font: inherit; font-size: 12.5px; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.mt-in:hover { border-color: var(--line); }
.mt-in:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(192,73,46,.1); }
.mt-in::-webkit-outer-spin-button, .mt-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mt-tot td { background: var(--surface-2); font-weight: 700; color: var(--ink); border-bottom: none; border-top: 1px solid var(--line); }
.mt-tot .mt-lbl { background: var(--surface-2); }
.mt-lbl small { color: var(--ink-faint); font-weight: 500; }
.mt-vin { width: 90px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); padding: 7px 9px; font: inherit; font-size: 13px; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.mt-vin:hover { border-color: var(--ink-faint); }
.mt-vin:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(192,73,46,.1); }
.mt-vin::-webkit-outer-spin-button, .mt-vin::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mt-metfix { font-size: 13px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.mt-recon { margin-top: 10px; font-size: 12.5px; color: var(--olive); font-weight: 600; }
.mt-recon.warn { color: var(--st-atrasado); }
.mt-recon b { font-variant-numeric: tabular-nums; }
.mt-pitch td { background: color-mix(in srgb, var(--gold) 9%, transparent); }
.mt-pitch .mt-lbl { background: color-mix(in srgb, var(--gold) 12%, var(--surface)); }
.mt-pbadge { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--gold); padding: 1px 6px; border-radius: 999px; }
.mt-pitchctl { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.section-title .mt-pitchctl { flex-shrink: 0; }

.grid-2m { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-top: 18px; align-items: start; }
@media (max-width: 860px) { .grid-2m { grid-template-columns: 1fr; } }
.panel .p-sub { color: var(--ink-faint); font-size: 12.5px; margin: 2px 0 16px; }

/* metas · gráfico projeção × real */
.mt-metric { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.mt-mbtn { border: none; background: transparent; border-radius: 7px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.mt-mbtn.on { background: var(--surface); color: var(--dark); box-shadow: var(--shadow); }
.mt-svg { width: 100%; height: auto; display: block; margin-top: 8px; }
.mt-grid { stroke: var(--line-2); stroke-width: 1; }
.mt-yl { fill: var(--ink-faint); font-size: 11px; text-anchor: end; font-variant-numeric: tabular-nums; }
.mt-xl { fill: var(--ink-faint); font-size: 11px; font-variant-numeric: tabular-nums; }
.mt-line-plan { fill: none; stroke: var(--ink-faint); stroke-width: 2; stroke-dasharray: 5 4; opacity: .7; }
.mt-line-real { fill: none; stroke: var(--olive); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.mt-rdot { fill: var(--olive); }
.mt-rlbl { fill: var(--olive); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mt-today { stroke: var(--brand); stroke-width: 1.5; opacity: .5; stroke-dasharray: 3 3; }
.mt-todaylbl { fill: var(--brand); font-size: 10px; font-weight: 700; }
.mt-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 12px; color: var(--ink-soft); }
.mt-legend i { display: inline-block; width: 18px; height: 0; vertical-align: middle; margin-right: 6px; }
.mt-legend .lg-plan { border-top: 2px dashed var(--ink-faint); }
.mt-legend .lg-real { border-top: 3px solid var(--olive); }

/* ---------- MIX DE PRODUTOS ---------- */
.prod-table-wrap { overflow-x: auto; }
table.prod-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
table.prod-table th { color: var(--ink-faint); font-weight: 600; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; text-align: right; padding: 4px 8px 10px; border-bottom: 1px solid var(--line); }
table.prod-table th.l { text-align: left; }
table.prod-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); text-align: right; }
table.prod-table td.l { text-align: left; }
table.prod-table tr:last-child td { border-bottom: none; }
.pin { border: 1px solid transparent; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; font-weight: 500; text-align: right; width: 100px; font-variant-numeric: tabular-nums; }
.pin.pin-nome { width: 100%; min-width: 180px; text-align: left; font-weight: 600; }
.pin.pin-sm { width: 68px; }
.pin:hover { border-color: var(--line); }
.pin:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(192,73,46,.1); }
.pin-del { border: none; background: none; color: var(--ink-faint); width: 28px; height: 28px; border-radius: 7px; font-size: 12px; }
.pin-del:hover { background: var(--st-atrasado-bg); color: var(--st-atrasado); }

/* ---------- GRÁFICO ---------- */
.chart-controls { display: flex; align-items: center; gap: 16px; }
.perm-ctrl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.perm-ctrl b { color: var(--ink); }
.perm-ctrl .slider { width: 110px; }
#chart-cenario { border: 1px solid var(--line); background: var(--surface); padding: 7px 11px; border-radius: 9px; font-size: 13px; color: var(--ink); font-weight: 500; }
#chart-cenario:focus { outline: none; border-color: var(--brand); }
.chart-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin: 16px 0 6px; }
.cm { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 15px; }
.cm .lbl { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.cm .num { font-size: clamp(15px, 1.8vw, 19px); font-weight: 700; letter-spacing: -.02em; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
svg.chart .barval { fill: var(--ink-soft); font-size: 10px; font-weight: 600; font-family: var(--body); }
svg.chart .cumval { fill: var(--olive); font-size: 11px; font-weight: 700; font-family: var(--body); }
.cm .sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
svg.chart { width: 100%; height: auto; display: block; margin-top: 6px; }
svg.chart .grid { stroke: var(--line-2); stroke-width: 1; }
svg.chart .axislbl { fill: var(--ink-faint); font-size: 11px; font-family: var(--body); }
svg.chart .bar { fill: #e7bcb0; transition: fill .12s; }
svg.chart .bar:hover { fill: var(--brand); }
svg.chart .cumline { stroke: var(--olive); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
svg.chart .cumdot { fill: var(--olive); }
.chart-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }
.chart-legend i { display: inline-block; vertical-align: middle; margin-right: 6px; }
.chart-legend .lg-bar { width: 13px; height: 13px; border-radius: 3px; background: #e7bcb0; }
.chart-legend .lg-line { width: 16px; height: 3px; border-radius: 2px; background: var(--olive); }

/* ---------- MODAL ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(33,29,24,.45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; }
.modal { width: 100%; max-width: 460px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lift); max-height: 90vh; display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 14px; }
.modal-head h3 { font-size: 19px; margin: 0; }
.modal-x { border: none; background: none; font-size: 17px; color: var(--ink-soft); width: 32px; height: 32px; border-radius: 8px; }
.modal-x:hover { background: var(--surface-2); }
.modal-body { padding: 0 22px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 16px 22px 20px; }

/* ---------- TOAST ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--dark); color: #fff; font-size: 13.5px; font-weight: 500; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lift); z-index: 200; }

/* ---------- CHECKLIST (etapas) ---------- */
.check-progress { display: flex; align-items: center; gap: 12px; }
.check-progress .cp-num { font-family: var(--display); font-size: 28px; font-weight: 600; }
.check-progress .cp-bar { width: 150px; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.check-progress .cp-bar > i { display: block; height: 100%; border-radius: 999px; }
.check-progress small { font-size: 12px; color: var(--ink-soft); }

.check-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 8px 10px; margin-bottom: 16px; }
.cg-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px 8px; }
.cg-head h3 { font-size: 16px; margin: 0; }
.cg-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; }
.cg-items { display: flex; flex-direction: column; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 10px; cursor: pointer; transition: background .12s; }
.check-row:hover { background: var(--surface-2); }
.check-box { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #cdc4b5; background: #fff; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; transition: all .12s; padding: 0; }
.check-box:hover { border-color: var(--olive); }
.check-box.on { background: var(--st-concluido); border-color: var(--st-concluido); }
.cr-body { flex: 1; min-width: 0; }
.cr-title { font-size: 14.5px; font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.check-row.done .cr-title { color: var(--ink-faint); text-decoration: line-through; text-decoration-color: #cbbfa8; }
.cr-obs { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.cr-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.cr-meta .m { display: inline-flex; align-items: center; gap: 5px; }
.cr-meta a.link { color: var(--brand); text-decoration: none; font-weight: 600; }
.cg-add { margin: 4px 6px 0; border: none; background: none; color: var(--brand-ink); font-size: 13px; font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.cg-add:hover { background: var(--surface-2); }

/* ---------- COPYS (repositório) ---------- */
.copy-card { cursor: pointer; }
.copy-preview { font-family: "DM Sans", monospace; font-size: 12.5px; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; margin: 0; max-height: 150px; overflow: hidden; white-space: pre-wrap; line-height: 1.5; position: relative; }
.copy-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: linear-gradient(transparent, var(--surface-2)); }
.copy-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; }
.copy-foot .card-meta { flex: 1; }
.copy-btn { flex-shrink: 0; border: 1px solid #eadbc9; background: #fff; color: var(--brand-ink); font-size: 12.5px; font-weight: 600; padding: 8px 13px; border-radius: 9px; }
.copy-btn:hover:not(:disabled) { background: var(--st-atrasado-bg); border-color: var(--brand); }
.copy-btn:disabled { opacity: .4; cursor: default; }
textarea.bigtext { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; line-height: 1.55; background: var(--surface-2); white-space: pre-wrap; resize: vertical; min-height: 160px; }
textarea.bigtext:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(176,68,47,.1); }

/* ---------- BOTÃO MINI (ações de card) ---------- */
.btn-mini { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 7px 11px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); text-decoration: none; cursor: pointer; }
.btn-mini:hover { background: #fff; color: var(--ink); border-color: #d8cfc0; }
.btn-mini.up { color: var(--brand-ink); border-color: #eadbc9; }

/* ---------- E-MAIL · filtro de fases ---------- */
.em-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.emf { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; box-shadow: var(--shadow); transition: border-color .12s, background .12s, color .12s; }
.emf:hover { border-color: var(--ink-faint); }
.emf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cc, var(--line-strong)); flex-shrink: 0; }
.emf-n { font-size: 11.5px; font-weight: 700; background: var(--surface-2); color: var(--ink-soft); border-radius: 999px; padding: 1px 8px; min-width: 20px; text-align: center; }
.emf.on { background: color-mix(in srgb, var(--cc, var(--dark)) 12%, var(--surface)); border-color: color-mix(in srgb, var(--cc, var(--dark)) 45%, var(--line)); color: color-mix(in srgb, var(--cc, var(--dark)) 65%, var(--ink)); }
.emf.on .emf-n { background: color-mix(in srgb, var(--cc, var(--dark)) 22%, var(--surface)); color: color-mix(in srgb, var(--cc, var(--dark)) 70%, var(--ink)); }
.emf.auto { --cc: var(--gold); margin-left: 4px; }
.emf-bolt { font-size: 13px; }
.em-autobanner { display: flex; align-items: center; gap: 13px; background: color-mix(in srgb, var(--gold) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--line)); border-radius: 13px; padding: 13px 16px; margin-bottom: 14px; }
.em-autobanner .emb-ico { font-size: 20px; flex-shrink: 0; }
.em-autobanner b { font-size: 14px; display: block; }
.em-autobanner small { font-size: 12.5px; color: var(--ink-soft); display: block; margin-top: 2px; line-height: 1.4; }

/* ---------- E-MAIL (Gmail) ---------- */
.gmail { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.gm-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.gm-logo { font-family: "Fraunces", serif; font-size: 19px; }
.gm-search { flex: 1; background: var(--surface-2); border-radius: 999px; padding: 9px 16px; font-size: 13px; color: var(--ink-faint); max-width: 480px; }
.gm-acct { width: 30px; height: 30px; border-radius: 50%; background: var(--olive); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; margin-left: auto; }
.gm-tabs { display: flex; gap: 4px; padding: 6px 10px 0; border-bottom: 1px solid var(--line); }
.gm-tab { font-size: 13px; font-weight: 600; color: var(--ink-faint); padding: 11px 16px; border-bottom: 3px solid transparent; }
.gm-tab.active { color: #1a73e8; border-bottom-color: #1a73e8; }
.gm-list { display: flex; flex-direction: column; }
.gm-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: box-shadow .12s, background .12s; }
.gm-row:hover { box-shadow: inset 0 0 0 100px rgba(0,0,0,.015), 0 1px 4px rgba(0,0,0,.08); }
.gm-row.unread { background: color-mix(in srgb, #1a73e8 3%, transparent); }
.gm-av { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.gm-from { width: 150px; flex-shrink: 0; font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-row.unread .gm-from, .gm-row.unread .gm-body b { font-weight: 700; }
.gm-body { flex: 1; min-width: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-snip { color: var(--ink-faint); }
.gm-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.gm-when { font-size: 12px; color: var(--ink-faint); }
.gm-delay { font-size: 11.5px; font-weight: 700; color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.gm-ord { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.gm-read { padding: 22px 26px 26px; }
.gm-read-top { display: flex; justify-content: space-between; margin-bottom: 16px; }
.gm-back { border: none; background: none; color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer; }
.gm-back:hover { color: var(--ink); }
.gm-subject { font-size: 22px; margin: 0 0 18px; }
.gm-fromrow { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.gm-fromrow b { font-size: 14px; display: block; } .gm-fromrow small { font-size: 12.5px; color: var(--ink-faint); }
.gm-corpo { font-size: 14.5px; line-height: 1.6; color: var(--ink); white-space: normal; }
.gm-corpo b { font-weight: 700; } .gm-corpo i { font-style: italic; }
.gm-manage { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }
.gm-manage .m { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- LPs (navegador) ---------- */
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.lp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.lp-browser { background: #dfe3e8; padding: 0; }
.lp-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eceef1; }
.lp-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c7ccd1; }
.lp-bar i:nth-child(1) { background: #ff5f57; } .lp-bar i:nth-child(2) { background: #febc2e; } .lp-bar i:nth-child(3) { background: #28c840; }
.lp-url { flex: 1; background: #fff; border-radius: 6px; padding: 5px 12px; font-size: 12px; color: var(--ink-soft); margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-shot { aspect-ratio: 16/10; background: var(--cream); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lp-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lp-shot.empty-shot { flex-direction: column; gap: 6px; color: var(--ink-faint); }
.lp-shot.empty-shot span { font-size: 28px; opacity: .5; }
.lp-shot.empty-shot small { font-size: 12px; }
.lp-info { padding: 15px 16px; }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-tag, .vid-tag { font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; padding: 3px 9px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-ink); }
.lp-info h3 { font-size: 16px; margin: 10px 0 8px; }
.lp-info .card-meta, .vid-info .card-meta { margin: 0 0 12px; }
.lp-info .di-actions, .vid-info .di-actions { display: flex; gap: 8px; }

/* LPs · lista + mockup mobile (estilo WhatsApp) */
.lp-layout { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
@media (max-width: 940px) { .lp-layout { grid-template-columns: 1fr; } }
.lp-list { display: flex; flex-direction: column; gap: 10px; }
.lp-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.lp-item:hover { box-shadow: var(--shadow-lift); }
.lp-item.sel { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.lp-item-tx { flex: 1; min-width: 0; }
.lp-item-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.lp-item-tag { font-size: 10.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); }
.lp-item-tx > b { font-size: 14.5px; display: block; }
.lp-item-tx > small { font-size: 12px; color: var(--ink-soft); display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-item-edit { flex-shrink: 0; opacity: 0; border: none; background: var(--surface-2); color: var(--ink-soft); border-radius: 7px; width: 28px; height: 28px; cursor: pointer; transition: opacity .12s; }
.lp-item:hover .lp-item-edit, .lp-item.sel .lp-item-edit { opacity: 1; }
.lp-item-edit:hover { background: var(--line); color: var(--ink); }

.lp-preview-col { position: sticky; top: 84px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
@media (max-width: 940px) { .lp-preview-col { position: static; } }
.lp-toolbar { width: 100%; max-width: 340px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-toggle { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.lp-toggle button { border: none; background: transparent; border-radius: 7px; padding: 6px 12px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.lp-toggle button.on { background: var(--surface); color: var(--dark); box-shadow: var(--shadow); }
.lp-actions { display: flex; gap: 6px; }
.lp-phone { position: relative; width: 340px; max-width: 100%; height: 660px; background: #14161a; border-radius: 38px; padding: 11px; box-shadow: var(--shadow-lift), inset 0 0 0 2px #2a2d33; }
.lp-notch { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 130px; height: 22px; background: #14161a; border-radius: 0 0 14px 14px; z-index: 3; }
.lp-phone-screen { width: 100%; height: 100%; background: #fff; border-radius: 29px; overflow: hidden; position: relative; }
.lp-phone-screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.lp-phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lp-ph-empty { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink-faint); background: var(--surface-2); text-align: center; padding: 24px; font-size: 13px; }
.lp-ph-empty span { font-size: 36px; opacity: .5; }
.lp-ph-empty small { font-size: 12px; }
.lp-caption { font-size: 12px; color: var(--ink-faint); text-align: center; max-width: 340px; line-height: 1.4; }

/* ---------- VÍDEOS (player) ---------- */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.vid-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); overflow: hidden; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.vid-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.vid-player { position: relative; aspect-ratio: 16/9; background: #14181b; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.vid-player.vertical { aspect-ratio: 9/16; max-height: 320px; }
.vid-player img { width: 100%; height: 100%; object-fit: cover; }
.vid-empty { color: #4a5560; font-size: 34px; }
.vid-play { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 18px; padding-left: 3px; backdrop-filter: blur(2px); }
.vid-fmt { position: absolute; bottom: 9px; right: 9px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.vid-tag.conteudo { background: color-mix(in srgb, var(--olive) 14%, transparent); color: var(--olive); }
.vid-info { padding: 15px 16px; }
.vid-info h3 { font-size: 15.5px; margin: 10px 0 8px; }

/* ---------- OFERTA ---------- */
.section-title button { margin-left: 4px; }
.planos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plano { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 17px 18px; box-shadow: var(--shadow); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.plano:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.plano-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plano-h b { font-family: var(--display); font-size: 17px; }
.plano-tot { font-size: 11.5px; font-weight: 600; color: var(--olive); background: color-mix(in srgb, var(--olive) 12%, #fff); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.plano-inc { font-size: 13px; color: var(--ink-soft); margin: 8px 0 8px; line-height: 1.45; }
.plano-mix { font-size: 11.5px; font-weight: 600; color: var(--ink-faint); margin-bottom: 12px; }
.plano-prices { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.plano-prices span { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--ink-soft); }
.plano-prices b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; margin-left: auto; }
.plano-prices em { font-style: normal; color: var(--ink-faint); font-size: 11.5px; margin-left: 6px; }

/* ---------- OFERTA · tabela comparativa ---------- */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); background: var(--surface); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 660px; font-size: 13.5px; }
.cmp-table th, .cmp-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line-2); }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-feat { text-align: left !important; font-weight: 600; color: var(--ink); white-space: nowrap; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.cmp-table thead th { position: sticky; top: 0; background: var(--surface-2); z-index: 2; }
.cmp-table thead .cmp-feat { background: var(--surface-2); z-index: 3; }
.cmp-plan { cursor: pointer; min-width: 155px; transition: background .12s; }
.cmp-plan b { display: block; font-family: var(--display); font-size: 15px; }
.cmp-plan .cmp-mix { font-size: 11px; color: var(--ink-faint); font-weight: 600; }
.cmp-plan:hover { background: var(--surface); }
.cmp-row { cursor: pointer; }
.cmp-row:hover td { background: color-mix(in srgb, var(--surface-2) 65%, transparent); }
.cmp-yes { color: var(--olive); font-weight: 700; font-size: 16px; }
.cmp-no { color: var(--ink-faint); }
.cmp-val { color: var(--ink); font-weight: 500; }
.cmp-sec td { text-align: left; font-weight: 700; font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-faint); background: var(--surface-2); }
.cmp-price { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.cmp-price.strong { color: var(--ink); font-weight: 700; }
.cmp-price em { font-style: normal; color: var(--ink-faint); font-size: 11px; }
.cmp-in-td { padding: 5px 8px !important; }
.cmp-in { width: 100%; max-width: 110px; border: 1px solid transparent; border-radius: 7px; background: var(--surface-2); padding: 7px 9px; font: inherit; font-size: 13px; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.cmp-in:hover { border-color: var(--line); }
.cmp-in:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(192,73,46,.1); }
.cmp-in::-webkit-outer-spin-button, .cmp-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cmp-calc td { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.cmp-calc .cmp-feat { color: var(--ink-soft); font-weight: 500; }
.cmp-eco { color: var(--olive); font-weight: 700; }

/* ---------- OFERTA · cobrança + formas ---------- */
.pag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pag-right { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 700px) { .pag-grid { grid-template-columns: 1fr; } }
.cob-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 18px; box-shadow: var(--shadow); }
.cob-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cob-head b { font-family: var(--display); font-size: 16px; }
.cob-gw { font-size: 11.5px; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); padding: 4px 11px; border-radius: 999px; }
.cob-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin-bottom: 4px; }
.cob-fields .field { margin-bottom: 8px; }
.link-row { display: flex; gap: 6px; }
.link-row input { flex: 1; min-width: 0; }
.copy-btn { flex-shrink: 0; width: 38px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--ink-soft); }
.copy-btn:hover { background: var(--surface); color: var(--ink); }
.comis-row { display: grid; grid-template-columns: 1fr 100px 28px; align-items: center; gap: 8px; margin-bottom: 8px; }
.comis-nome { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px; color: var(--ink); }
.comis-nome:hover { border-color: var(--line); } .comis-nome:focus { outline: none; border-color: var(--brand); background: #fff; }
.comis-pct { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; background: var(--surface-2); }
.comis-pct:focus-within { border-color: var(--brand); background: #fff; }
.comis-pct i { font-style: normal; color: var(--ink-faint); font-size: 12px; font-weight: 600; }
.comis-val { width: 56px; border: none; background: transparent; font: inherit; font-size: 13.5px; font-weight: 700; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.comis-val:focus { outline: none; }
.comis-val::-webkit-outer-spin-button, .comis-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.forma-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.forma-row:last-child { border-bottom: none; }
.forma-n { font-size: 13.5px; font-weight: 600; color: var(--ink); flex-shrink: 0; }
.forma-link { font-size: 12.5px; color: var(--brand); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: auto; max-width: 45%; }
.forma-link:hover { text-decoration: underline; }
.forma-nolink { font-size: 12px; color: var(--ink-faint); margin-left: auto; font-style: italic; }

/* ---------- OFERTA · empilhamento (tabela comparativa) ---------- */
.stk-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift); background: var(--surface); }
.stk-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 13.5px; }
.stk-table th, .stk-table td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.stk-table tbody tr:last-child td { border-bottom: none; }
.stk-table thead th { background: var(--surface-2); font-family: var(--display); font-size: 14px; position: sticky; top: 0; z-index: 2; }
.stk-lbl { text-align: left !important; color: var(--ink-soft); font-weight: 500; white-space: nowrap; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.stk-table thead .stk-lbl { background: var(--surface-2); z-index: 3; }
.stk-prod td { color: var(--ink); }
.stk-prod .stk-lbl, .stk-prod b { font-weight: 700; color: var(--ink); }
.stk-inc { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-faint); font-weight: 600; }
.stk-mn .stk-lbl { color: var(--gold); }
.stk-tot td { background: var(--surface-2); }
.stk-tot .stk-lbl { background: var(--surface-2); font-weight: 600; color: var(--ink); }
.stk-tot s { color: var(--ink-faint); font-size: 15px; text-decoration-thickness: 1.5px; }
.stk-sec td { background: var(--dark); color: #fff; text-align: center !important; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.stk-avista td { font-family: var(--display); font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.stk-avista .stk-lbl { font-family: var(--body); font-size: 13.5px; font-weight: 700; color: var(--ink); }
.stk-parc td { color: var(--ink-soft); font-size: 12.5px; }
.stk-eco .stk-ecov { display: inline-block; background: var(--olive); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.stack-guard { display: flex; flex-direction: column; gap: 4px; padding: 14px 4px 0; font-size: 12px; color: var(--ink-soft); }
.stack-guard span:first-child { font-weight: 600; color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow); }

/* ---------- OFERTA · bônus (lista minimalista) ---------- */
.bonus-panel { padding: 8px 22px 14px; }
.bn-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.bn-title { font-family: var(--display); font-size: 16px; display: block; }
.bn-head small { font-size: 12px; color: var(--ink-faint); }
.bn-total { text-align: right; }
.bn-total span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); }
.bn-total b { font-family: var(--display); font-size: 22px; color: var(--olive); letter-spacing: -.01em; }
.bn-list { display: flex; flex-direction: column; }
.bn-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 14px 8px; margin: 0 -8px; border-bottom: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; transition: background .12s; }
.bn-list .bn-row:last-child { border-bottom: none; }
.bn-row:hover { background: var(--surface-2); }
.bn-ic { width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--olive) 12%, var(--surface)); display: grid; place-items: center; font-size: 15px; }
.bn-row.mn .bn-ic { background: color-mix(in srgb, var(--gold) 16%, var(--surface)); }
.bn-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bn-tx b { font-size: 14px; font-weight: 600; }
.bn-tx small { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }
.bn-v { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--olive); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bn-row.mn .bn-v { color: var(--gold); }
.bn-v.inc { font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .03em; }
.bn-div { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; padding-top: 16px; border-top: 1px dashed var(--line); }
.bn-div span { font-size: 12.5px; font-weight: 700; color: var(--gold); }
.bn-div em { font-style: normal; font-size: 11.5px; color: var(--ink-faint); }

/* ---------- EVENTO ---------- */
.ev-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 4px; align-items: end; }
.ev-meta .field { margin-bottom: 0; }
.ev-tog { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 7px; max-width: 320px; }

.ev-dias { display: flex; flex-direction: column; gap: 14px; }
.ev-day { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); overflow: hidden; }
.ev-day-h { display: flex; align-items: center; gap: 10px; padding: 11px 13px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ev-day-n { flex-shrink: 0; font-family: var(--display); font-weight: 600; font-size: 13px; color: #fff; background: linear-gradient(135deg, var(--olive), #46592f); padding: 6px 13px; border-radius: 9px; }
.ev-din { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--ink); }
.ev-din:hover { border-color: var(--line); }
.ev-din:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(192,73,46,.1); }
.ev-dtitulo { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; background: var(--surface); }
.ev-ddate { width: 148px; background: var(--surface); font-variant-numeric: tabular-nums; }
.ev-dhora { width: 66px; text-align: center; background: var(--surface); }
.ev-day-h .row-del { opacity: .5; } .ev-day-h:hover .row-del { opacity: 1; }
.ev-tags { display: flex; gap: 6px; margin-left: auto; }
.ev-tag { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-faint); cursor: pointer; transition: all .12s; }
.ev-tag:hover { border-color: var(--ink-faint); }
.ev-tag.pitch.on { background: color-mix(in srgb, var(--gold) 16%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); color: var(--gold); }
.ev-tag.sorteio.on { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); color: var(--brand); }
.ev-day-b { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.ev-day-b .field { margin-bottom: 0; }
.ev-day-b .ev-din { border-color: var(--line); background: var(--surface-2); width: 100%; }

.ev-secs { display: flex; flex-direction: column; gap: 10px; }
.ev-sec { border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.ev-sec-h { display: flex; align-items: center; gap: 8px; }
.ev-sin { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 10px; font: inherit; color: var(--ink); }
.ev-sin:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(192,73,46,.1); }
.ev-shora { width: 72px; text-align: center; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ev-stitulo { flex: 1; min-width: 0; font-weight: 600; }
.ev-stema { font-size: 13px; }
.ev-sec-h .row-del { opacity: .5; } .ev-sec:hover .row-del { opacity: 1; }
.ev-addsec { align-self: flex-start; }

/* Evento · resumo visual */
.ev-resumo { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lift); overflow: hidden; }
.rs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--olive) 8%, var(--surface)), var(--surface)); border-bottom: 1px solid var(--line); }
.rs-head h3 { font-size: 20px; margin: 0; }
.rs-head p { font-size: 13px; color: var(--ink-soft); margin: 4px 0 0; max-width: 460px; }
.rs-badges { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.rs-badge { font-size: 12px; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.rs-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 0; overflow-x: auto; }
@media (max-width: 720px) { .rs-days { grid-auto-flow: row; grid-auto-columns: auto; } }
.rs-day { padding: 16px 18px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.rs-day:last-child { border-right: none; }
.rs-day-top { display: flex; align-items: baseline; justify-content: space-between; }
.rs-day-top b { font-family: var(--display); font-size: 15px; }
.rs-day-top span { font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.rs-tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 0; }
.rs-tag { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.rs-tag.pitch { background: color-mix(in srgb, var(--gold) 16%, var(--surface)); color: var(--gold); }
.rs-tag.sorteio { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); }
.rs-secs { display: flex; flex-direction: column; gap: 9px; }
.rs-sec { display: flex; gap: 9px; }
.rs-hora { flex-shrink: 0; font-size: 11.5px; font-weight: 700; color: var(--olive); font-variant-numeric: tabular-nums; padding-top: 1px; min-width: 40px; }
.rs-sec b { font-size: 13px; display: block; line-height: 1.3; }
.rs-sec small { font-size: 12px; color: var(--ink-soft); display: block; margin-top: 1px; }
.rs-sec em { font-size: 11.5px; color: var(--brand-ink); font-style: normal; display: block; margin-top: 3px; }
.rs-mats { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.rs-mat { font-size: 11px; color: var(--ink-soft); background: var(--surface-2); border-radius: 7px; padding: 3px 8px; }
.rs-block { padding: 14px 22px; border-top: 1px solid var(--line-2); }
.rs-lbl { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 9px; }
.rs-pals { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-pal { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 12px 4px 4px; }
.rs-av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--gold)); color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 600; }
.rs-ents { display: flex; flex-wrap: wrap; gap: 7px; }
.rs-ent { font-size: 12.5px; font-weight: 500; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 11px; }
.rs-ent i { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--ink-faint); margin-left: 5px; }
.ev-sub > label { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 7px; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.ev-chip { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); color: var(--brand-ink); font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.ev-chip i { font-style: normal; opacity: .55; font-size: 11px; }
.ev-chip:hover i { opacity: 1; }
.ev-addpal { border: 1px dashed var(--line-strong, #c9c4bb); background: var(--surface); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12.5px; color: var(--ink-soft); cursor: pointer; }
.ev-mats { display: flex; flex-direction: column; gap: 7px; margin-bottom: 8px; }
.ev-mat { display: grid; grid-template-columns: 1fr 150px 26px; gap: 8px; align-items: center; }
.ev-matn { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px; }
.ev-matn:focus { outline: none; border-color: var(--brand); background: #fff; }
.ev-matt { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 7px 8px; font: inherit; font-size: 12.5px; color: var(--ink-soft); }
.ev-mat .row-del { opacity: .5; } .ev-mat:hover .row-del { opacity: 1; }

.pal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pal-card { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; box-shadow: var(--shadow); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.pal-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.pal-av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--gold)); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.pal-tx { min-width: 0; }
.pal-tx > b { font-size: 15px; display: block; }
.pal-papel { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--brand); margin-top: 2px; }
.pal-tx small { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.pal-tx p { font-size: 12px; color: var(--ink-faint); margin: 5px 0 0; line-height: 1.4; }

.ent-row { display: grid; grid-template-columns: 1fr 150px 26px; gap: 8px; align-items: center; margin-bottom: 8px; }
.ent-n { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13.5px; color: var(--ink); }
.ent-n:hover { border-color: var(--line); } .ent-n:focus { outline: none; border-color: var(--brand); background: #fff; }
.ent-t { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 7px 8px; font: inherit; font-size: 12.5px; color: var(--ink-soft); }
.ent-row .row-del { opacity: .5; } .ent-row:hover .row-del { opacity: 1; }

.sorteio { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 7%, var(--surface)), var(--surface)); }

/* ---------- WHATSAPP (canais + lista + mockup) ---------- */
.wa-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
@media (max-width: 700px) { .wa-channels { grid-template-columns: 1fr; } }
.wa-chan { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.wa-chan:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.wa-chan.active { border-color: var(--cc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cc) 15%, transparent); }
.wa-chan .wc-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--cc) 14%, transparent); flex-shrink: 0; }
.wa-chan .wc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wa-chan .wc-txt b { font-size: 14.5px; font-weight: 600; }
.wa-chan .wc-txt small { font-size: 12px; color: var(--ink-soft); }
.wa-chan .wc-count { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--cc); background: color-mix(in srgb, var(--cc) 12%, transparent); min-width: 26px; text-align: center; padding: 3px 8px; border-radius: 999px; }

.wa-layout { display: grid; grid-template-columns: 1fr 348px; gap: 26px; align-items: start; }

/* lista de planejamento */
.wa-list { display: flex; flex-direction: column; gap: 12px; }
.wa-group { display: flex; flex-direction: column; gap: 10px; }
.wa-group + .wa-group, .wa-desc + .wa-group { margin-top: 14px; }
.wa-group-h { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--ink); }
.wa-group-h .dot { width: 9px; height: 9px; border-radius: 50%; }
.wa-group-n { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ink-faint); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 9px; border-radius: 999px; }
.wa-msg { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow); transition: border-color .12s, box-shadow .12s, transform .12s; }
.wa-msg:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.wa-msg.sel { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(192,73,46,.12); }
.wa-msg-top { display: flex; align-items: center; gap: 8px; }
.wa-msg-title { font-weight: 600; font-size: 15px; margin-top: 8px; letter-spacing: -.01em; }
.wa-when { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--olive); background: color-mix(in srgb, var(--olive) 12%, #fff); border: 1px solid color-mix(in srgb, var(--olive) 22%, transparent); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.wa-tbadge { font-size: 10.5px; font-weight: 600; color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, transparent); padding: 3px 8px; border-radius: 999px; margin-left: auto; }
.wa-preview { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wa-msg-actions { display: flex; gap: 8px; margin-top: 12px; }

/* card de descrição do grupo */
.wa-desc { background: linear-gradient(180deg, color-mix(in srgb, #3f6ea5 7%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, #3f6ea5 28%, var(--line)); border-radius: 14px; padding: 15px 17px; cursor: pointer; box-shadow: var(--shadow); transition: box-shadow .12s; }
.wa-desc.sel { box-shadow: 0 0 0 3px rgba(63,110,165,.18); }
.wa-desc-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; color: #3f6ea5; }
.wa-desc-tag { font-size: 10.5px; font-weight: 600; color: var(--ink-faint); background: var(--surface-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.wa-desc-text { font-size: 13px; color: var(--ink); margin-top: 9px; line-height: 1.5; white-space: normal; }

/* celular */
.wa-phone-col { position: sticky; top: 88px; }
.wa-phone { background: linear-gradient(145deg, #2a2f33, #14181b); border-radius: 44px; padding: 11px; box-shadow: 0 20px 50px -18px rgba(20,21,24,.5), inset 0 0 0 2px rgba(255,255,255,.04); }
.wa-screen { border-radius: 34px; overflow: hidden; height: 640px; display: flex; flex-direction: column; background: #e5ddd5; position: relative; }
.wa-status { background: #075e54; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 9px 20px 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.wa-sig { display: inline-flex; align-items: flex-end; gap: 1.5px; }
.wa-sig i { width: 3px; background: #fff; border-radius: 1px; display: inline-block; }
.wa-sig i:nth-child(1) { height: 4px; } .wa-sig i:nth-child(2) { height: 6px; } .wa-sig i:nth-child(3) { height: 8px; } .wa-sig i:nth-child(4) { height: 10px; }
.wa-sig b { font-weight: 600; margin-left: 4px; }
.wa-header { background: #075e54; color: #fff; display: flex; align-items: center; gap: 10px; padding: 6px 14px 12px; }
.wa-back { font-size: 24px; line-height: 1; opacity: .92; }
.wa-gavatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #b0442f, #c08a2d); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.wa-htxt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wa-htxt b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.wa-htxt small { font-size: 11.5px; opacity: .8; }
.wa-hicons { font-size: 18px; opacity: .9; }
.wa-chat { flex: 1; overflow-y: auto; padding: 16px 12px 20px; display: flex; flex-direction: column; gap: 3px; scroll-behavior: smooth;
  background-color: #e5ddd5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg fill='%23000' fill-opacity='0.025'%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3Ccircle cx='28' cy='20' r='1.5'/%3E%3Ccircle cx='16' cy='32' r='1.5'/%3E%3C/g%3E%3C/svg%3E"); }
.wa-chat::-webkit-scrollbar { width: 5px; } .wa-chat::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
.wa-date { align-self: center; background: #e1f2fb; color: #4a7688; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 8px; box-shadow: 0 1px .5px rgba(0,0,0,.1); margin: 12px 0 8px; }
.wa-turn { display: flex; flex-direction: column; align-items: flex-end; margin-bottom: 9px; }
.wa-anno { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.wa-anno .wa-canal { font-size: 10px; padding: 2px 7px; background: rgba(255,255,255,.75); }
.wa-anno-when { font-size: 10px; color: #5b6b73; background: rgba(255,255,255,.7); padding: 2px 7px; border-radius: 999px; }
.wa-anno-auto { font-size: 10px; font-weight: 600; color: #5b7a34; background: rgba(217,248,214,.9); padding: 2px 7px; border-radius: 999px; }
.wa-pinned { align-self: stretch; background: rgba(255,255,255,.9); border-left: 3px solid #3f6ea5; border-radius: 8px; padding: 9px 11px; margin-bottom: 12px; box-shadow: 0 1px .6px rgba(0,0,0,.12); }
.wa-pinned-h { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #3f6ea5; margin-bottom: 5px; }
.wa-pinned .wa-text { font-size: 12.5px; }
.wa-bubble { max-width: 86%; padding: 7px 9px 5px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; box-shadow: 0 1px .6px rgba(0,0,0,.15); position: relative; }
.wa-bubble.out { background: #dcf8c6; border-top-right-radius: 3px; }
.wa-bubble.out::after { content: ""; position: absolute; top: 0; right: -7px; border: 7px solid transparent; border-top-color: #dcf8c6; border-right: 0; }
.wa-text { color: #111b21; word-wrap: break-word; }
.wa-text b { font-weight: 700; } .wa-text i { font-style: italic; }
.wa-meta { font-size: 10px; color: #667781; text-align: right; margin-top: 2px; user-select: none; }
.wa-check { color: #4fc3f7; margin-left: 2px; }
.wa-turn.pulse .wa-bubble { animation: waPulse 1.1s ease; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(31,138,84,.5); } 40% { box-shadow: 0 0 0 6px rgba(31,138,84,.18); } 100% { box-shadow: 0 1px .6px rgba(0,0,0,.15); } }
.wa-empty { margin: auto; color: #667781; font-size: 13px; text-align: center; padding: 0 30px; }
.wa-inputbar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #f0f2f5; }
.wa-plus, .wa-mic { font-size: 18px; color: #54656f; }
.wa-fakeinput { flex: 1; background: #fff; border-radius: 20px; padding: 9px 15px; font-size: 13px; color: #8696a0; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.wa-hint { text-align: center; font-size: 12px; color: var(--ink-faint); margin: 12px 0 0; }

@media (max-width: 860px) { .wa-layout { grid-template-columns: 1fr; } .wa-phone-col { position: static; max-width: 348px; margin: 6px auto 0; } }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
@media (max-width: 780px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lift); }
  .app.nav-open .sidebar { transform: translateX(0); }
  .app.nav-open .side-overlay { display: block; position: fixed; inset: 0; background: rgba(33,29,24,.4); z-index: 50; }
  .menu-btn { display: grid; place-items: center; }
  .view { padding: 20px 16px; }
  .main-top { padding: 12px 16px; }
}
