:root {
  --paper: #F1F1F0;
  --card: #FFFFFF;
  --ink: #0E0E0E;
  --ink-2: #4A4A4A;
  --ink-3: #8C8C8C;
  --line: #E2E2E2;
  --line-2: #EEEEEE;
  --accent: #0E0E0E;
  --accent-soft: #EDEDED;
  --ok: #15803D; --ok-soft: #E3F4E8;
  --warn: #B45309; --warn-soft: #FDF0D9;
  --bad: #C0262D; --bad-soft: #FCE4E4;
  --info: #3F3F3F; --info-soft: #EBEBEB;
  --radius: 16px;
  --serif: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --hand: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  --side: 236px;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 750; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: 30px; line-height: 1.1; }
h2 { font-size: 20px; }
h3 { font-size: 15px; font-family: var(--sans); font-weight: 650; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; background: var(--paper); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 20px; font-weight: 700; position: relative; }
.brand-mark::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.brand b { display: block; font-size: 15px; }
.brand span { font-size: 11px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 520; position: relative; }
.nav a:hover { background: #ECE9E1; }
.nav a.on { background: var(--ink); color: #fff; }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .badge { margin-left: auto; background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.side-foot { margin-top: auto; padding: 10px; font-size: 12px; color: var(--ink-3); }
.main { padding: 28px 34px 80px; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-3); margin-bottom: 6px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- componentes ---------- */
.btn { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 8px 13px; cursor: pointer; font-weight: 560; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.btn:hover { border-color: #CFCBC0; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #2A2A2A; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: #ECE9E1; }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 5px 9px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; color: var(--ink-2); }
.icon-btn:hover { background: #ECE9E1; }
.seg { display: inline-flex; background: #ECE9E1; border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 560; color: var(--ink-2); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 2px 9px; font-size: 12px; font-weight: 600; background: #EFEDE7; color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.empty { color: var(--ink-3); padding: 14px 4px; font-size: 13px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-size: 26px; font-family: var(--serif); font-weight: 600; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--ink-3); }
select.inp, input.inp, textarea.inp { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 9px 11px; outline: none; }
select.inp:focus, input.inp:focus, textarea.inp:focus { border-color: var(--ink); }
textarea.inp { min-height: 90px; resize: vertical; }
.inp.filter { width: auto; max-width: 240px; padding: 7px 10px; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.form { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }

/* ---------- itens estilo agenda ---------- */
.it { display: flex; align-items: flex-start; gap: 8px; padding: 6px 4px; border-radius: 8px; cursor: pointer; }
.it:hover { background: #F4F2EC; }
.it + .it { border-top: 1px dashed var(--line-2); }
.mark { flex: none; width: 20px; height: 20px; border: 1.6px solid #B8B4A9; border-radius: 5px; background: #fff; cursor: pointer; display: grid; place-items: center; font-family: var(--hand); font-size: 15px; line-height: 1; padding: 0; color: var(--ink); margin-top: 1px; }
.mark:hover { border-color: var(--ink); }
.st-producao .mark { border-color: var(--info); color: var(--info); font-size: 13px; font-family: var(--sans); font-weight: 800; }
.st-enviado .mark { border-color: var(--ink); color: var(--accent); font-size: 17px; font-weight: 700; }
.st-ajuste .mark { border-color: var(--warn); color: var(--warn); font-family: var(--sans); font-weight: 800; font-size: 12px; }
.st-aprovado .mark, .st-publicado .mark { border-color: var(--ok); background: var(--ok); color: #fff; font-family: var(--sans); font-size: 12px; }
.st-publicado .mark { background: var(--ink); border-color: var(--ink); font-size: 9px; letter-spacing: -2px; }
.it .txt { min-width: 0; flex: 1; }
.it .t1 { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.it .t1 .cl { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it .t2 { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.it .kind { font-size: 11px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.st-aprovado .txt, .st-publicado .txt { text-decoration: line-through; text-decoration-thickness: 1.6px; text-decoration-color: rgba(20,20,20,.55); color: var(--ink-3); }
.st-aprovado .t2, .st-publicado .t2, .st-aprovado .cl, .st-publicado .cl { color: var(--ink-3); }
.it .time { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.it .late { color: var(--bad); font-size: 11px; font-weight: 700; }

/* ---------- semana ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-height: 280px; display: flex; flex-direction: column; overflow: hidden; }
.day-h { padding: 10px 12px 8px; border-bottom: 1px solid var(--line-2); display: flex; align-items: baseline; gap: 8px; }
.day-h b { font-family: var(--serif); font-size: 24px; line-height: 1; }
.day-h span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.day.today { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.day.today .day-h b { color: var(--accent); }
.day.weekend { background: #FBFAF7; }
.day-b { padding: 6px 6px; flex: 1; }
.day .it .t1 { flex-wrap: wrap; row-gap: 0; }
.day .it .cl { white-space: normal; flex: 1 1 100%; order: 0; line-height: 1.25; }
.day .it .t1 .dot { display: none; }
.day .it { border-left: 3px solid var(--c, transparent); border-radius: 4px 8px 8px 4px; padding-left: 6px; }
.day .it + .it { border-top: 0; margin-top: 4px; }
.quick { border: 0; border-top: 1px solid var(--line-2); padding: 9px 12px; width: 100%; background: transparent; outline: none; font-size: 13px; }
.quick::placeholder { color: #B5B2A8; }

/* ---------- mês ---------- */
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.month .wd { background: var(--paper); padding: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.mcell { background: var(--card); min-height: 116px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.mcell:hover { background: #FCFBF8; }
.mcell.out { background: #FAF9F6; color: var(--ink-3); }
.mcell .n { font-size: 12.5px; font-weight: 700; }
.mcell.today .n { background: var(--accent); color: #fff; border-radius: 99px; padding: 0 7px; align-self: flex-start; }
.chip { font-size: 11.5px; border-radius: 6px; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; background: #F6F4EF; }
.chip.done { text-decoration: line-through; color: var(--ink-3); }
.chip.sent::before { content: "✗ "; color: var(--accent); font-weight: 700; }

/* ---------- planejamento ---------- */
.plan-table { width: 100%; border-collapse: collapse; }
.plan-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 8px; border-bottom: 1px solid var(--line); font-weight: 700; }
.plan-table td { padding: 6px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.plan-table input.inp, .plan-table select.inp, .plan-table textarea.inp { padding: 6px 8px; border-color: transparent; background: transparent; border-radius: 8px; }
.plan-table input.inp:hover, .plan-table select.inp:hover, .plan-table textarea.inp:hover { border-color: var(--line); background: #fff; }
.plan-table textarea.inp { min-height: 34px; height: 34px; }
.plan-table textarea.inp:focus { height: 110px; background: #fff; }
.plan-table tr.wk td { background: var(--paper); font-weight: 700; font-size: 12px; color: var(--ink-2); padding: 7px 8px; }
.progress { height: 8px; border-radius: 99px; background: #ECE9E1; overflow: hidden; display: flex; }
.progress i { display: block; height: 100%; }
.quota { display: flex; gap: 14px; flex-wrap: wrap; }
.quota div { font-size: 13px; }
.quota b { font-family: var(--serif); font-size: 20px; }

/* ---------- tráfego ---------- */
.acc { display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.acc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--line)); }
.acc.critico { border-color: #F2B8BB; background: linear-gradient(180deg, #FFF7F7, #fff 60%); }
.acc.atencao { border-color: #F3D49F; background: linear-gradient(180deg, #FFFBF2, #fff 60%); }
.acc-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.acc-name { font-weight: 700; font-size: 14.5px; }
.acc-sub { font-size: 12px; color: var(--ink-3); }
.big-money { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kv div { background: var(--paper); border-radius: 10px; padding: 7px 9px; }
.kv span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 700; }
.kv b { font-size: 14px; font-variant-numeric: tabular-nums; }
.spark { width: 100%; height: 40px; display: block; }
.acc-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.timeline { display: flex; flex-direction: column; }
.tl-day { font-family: var(--serif); font-size: 17px; margin: 18px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.tl-day:first-child { margin-top: 0; }
.tl { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; align-items: start; }
.tl-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; background: var(--paper); }
.tl-ic.orcamento { background: var(--info-soft); }
.tl-ic.recarga { background: var(--ok-soft); }
.tl-ic.status { background: var(--warn-soft); }
.tl-ic.criativo { background: var(--accent-soft); }
.tl .d { font-size: 13.5px; overflow-wrap: anywhere; }
.tl .m { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ---------- clientes ---------- */
.client-card { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.client-card:hover { border-color: #CFCBC0; }
.client-card .cn { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.acc-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 6px; }

/* ---------- modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20,20,20,.38); display: grid; place-items: center; z-index: 50; padding: 18px; animation: fade .12s ease; }
.modal { background: var(--card); border-radius: 18px; width: min(640px, 100%); max-height: calc(100vh - 36px); overflow: auto; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.modal-b { padding: 12px 20px 8px; }
.modal-f { padding: 14px 20px 18px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal-f .left { margin-right: auto; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 60; font-weight: 560; box-shadow: 0 10px 30px rgba(0,0,0,.2); animation: up .18s ease; max-width: 90vw; }
.toast.err { background: var(--bad); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translate(-50%, 8px); } }
.hist { font-size: 12px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }

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

/* ---------- mobile ---------- */
.mnav { display: none; }
@media (max-width: 1100px) {
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .main { padding: 18px 14px 96px; }
  h1 { font-size: 25px; }
  .week, .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day { min-height: 0; }
  .form { grid-template-columns: 1fr; }
  .mcell { min-height: 64px; }
  .mcell .chip { font-size: 0; padding: 0; height: 5px; border-left-width: 0; }
  .plan-table .hide-m { display: none; }
  .mnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(246,244,239,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 40; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .mnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; text-decoration: none; color: var(--ink-3); font-weight: 600; padding: 4px 8px; border-radius: 10px; position: relative; }
  .mnav a.on { color: var(--ink); }
  .mnav svg { width: 22px; height: 22px; }
  .mnav .badge { position: absolute; top: 0; right: 4px; background: var(--accent); color: #fff; border-radius: 99px; font-size: 9.5px; padding: 0 5px; }
  .modal-bg { place-items: end center; padding: 0; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92vh; }
}

/* ---------- impressão (planejamento para o cliente) ---------- */
@media print {
  .side, .mnav, .toolbar, .no-print, .page-head .toolbar { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  body { background: #fff; }
  .card { border: 0; padding: 0; }
  .plan-table input.inp, .plan-table select.inp, .plan-table textarea.inp { border: 0; appearance: none; -webkit-appearance: none; padding: 2px 0; height: auto; }
}

/* ---------- artes e comentários ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.mthumb { position: relative; border-radius: 10px; overflow: hidden; background: #EFEDE7; aspect-ratio: 4/5; display: grid; place-items: center; }
.mthumb img, .mthumb video { width: 100%; height: 100%; object-fit: cover; }
.mbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(transparent, rgba(0,0,0,.65)); padding: 14px 4px 4px; color: #fff; font-size: 11px; font-weight: 700; }
.mbar button { border: 0; background: rgba(255,255,255,.92); color: var(--ink); width: 22px; height: 22px; border-radius: 6px; cursor: pointer; font-size: 12px; padding: 0; }
.modal.drop { outline: 3px dashed var(--accent); outline-offset: -6px; }
.cmt { background: var(--paper); border-radius: 10px; padding: 9px 11px; margin-bottom: 6px; font-size: 13px; }
.cmt.cliente { background: #FFF4EC; border: 1px solid #FBD9C4; }
.cmt.resolved { opacity: .6; background: var(--paper); border-color: transparent; }
.cmt.sistema { font-style: italic; color: var(--ink-3); }
.pthumb { width: 44px; height: 55px; border-radius: 7px; background: #EFEDE7; overflow: hidden; display: grid; place-items: center; cursor: pointer; color: var(--ink-3); font-size: 18px; margin-top: 2px; }
.pthumb img, .pthumb video { width: 100%; height: 100%; object-fit: cover; }
.print-only { display: none; }
@media print { .print-only { display: block; } }


/* ================= identidade "work" (preto, branco e cinza) ================= */
.side { background: #0E0E0E; color: #fff; border-right: 0; }
.brand { padding: 6px 12px 26px; display: block; }
.wordmark { font-family: var(--serif); font-weight: 800; font-size: 34px; letter-spacing: -0.06em; line-height: 1; display: inline-flex; align-items: baseline; }
.wordmark i { width: 9px; height: 9px; border-radius: 50%; background: #9A9A9A; display: inline-block; margin-left: 3px; animation: pulse 2.4s var(--ease) infinite; }
.brand small { display: block; font-size: 11px; color: #7A7A7A; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
.nav a { color: #A8A8A8; transition: background .18s, color .18s, transform .18s var(--ease); }
.nav a:hover { background: #1C1C1C; color: #fff; transform: translateX(2px); }
.nav a.on { background: #fff; color: #0E0E0E; }
.nav .badge { background: #fff; color: #0E0E0E; }
.nav a.on .badge { background: #0E0E0E; color: #fff; }
.side-foot { color: #7A7A7A; border-top: 1px solid #1F1F1F; padding-top: 14px; }
.side-foot b { color: #D0D0D0; font-weight: 600; }
.mnav .badge { background: var(--ink); }
.btn.accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.st-enviado .mark { border-color: var(--ink); color: var(--ink); font-weight: 800; }
.chip.sent::before { color: var(--ink); }
.day.today .day-h b { color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.mcell.today .n { background: var(--ink); }
.cmt.cliente { background: #F4F4F4; border-color: #E2E2E2; }
.pill.info { background: #EBEBEB; color: #3F3F3F; }

/* movimento */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.75); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes dash { from { stroke-dashoffset: var(--len); } }
.anim { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.card, .day, .stat { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.client-card:hover, .acc:hover, .stat:hover, .day:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -14px rgba(0,0,0,.18); }
.it { transition: background .15s; }
.mark { transition: transform .15s var(--ease), background .2s; }
.mark:active { transform: scale(.85); }
.progress i, .fuel i { transform-origin: left; animation: grow .9s var(--ease) both; }
.btn { transition: transform .12s var(--ease), background .15s, border-color .15s; }
.btn:active { transform: scale(.97); }

/* painel do dia */
.hero { background: #0E0E0E; color: #fff; border-radius: 22px; padding: 26px 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin-bottom: 16px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#ffffff14 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.hero > * { position: relative; }
.hero .eyebrow { color: #8C8C8C; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.hero h1 { font-size: 36px; color: #fff; }
.hero p { color: #BDBDBD; margin: 10px 0 18px; max-width: 520px; }
.hero .btn { background: #fff; color: #0E0E0E; border-color: #fff; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: #333; }
.rings { display: flex; gap: 18px; align-items: center; }
.ring { position: relative; width: 112px; height: 112px; display: grid; place-items: center; text-align: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .bgc { stroke: #262626; }
.ring .fg { stroke: #fff; stroke-dasharray: var(--len); animation: dash 1.2s var(--ease) both; }
.ring.gray .fg { stroke: #8C8C8C; }
.ring b { font-family: var(--serif); font-size: 24px; font-weight: 800; display: block; line-height: 1; }
.ring span { font-size: 10.5px; color: #9A9A9A; text-transform: uppercase; letter-spacing: .08em; }
.stat { flex-direction: row; align-items: center; gap: 14px; }
.stat .si { width: 42px; height: 42px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; flex: none; }
.stat .si svg { width: 21px; height: 21px; }
.stat.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat.dark span { color: #9A9A9A; }
.stat.dark .si { background: #1F1F1F; }
.stat b { font-family: var(--serif); font-weight: 800; letter-spacing: -.03em; }

/* combustível do saldo */
.fuel { height: 10px; border-radius: 99px; background: #EDEDED; overflow: hidden; position: relative; }
.fuel i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.acc.critico .fuel i { background: var(--bad); }
.acc.atencao .fuel i { background: var(--warn); }
.fuel-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 4px; font-weight: 600; }
.acc.semdados { opacity: .72; }
.acc.semdados:hover { opacity: 1; }
.big-money { font-weight: 800; letter-spacing: -.04em; }

/* ilustração de vazio */
.illus { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; color: var(--ink-3); text-align: center; font-size: 13px; }
.illus svg { width: 120px; height: 72px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 22px; }
  .hero h1 { font-size: 28px; }
  .rings { justify-content: flex-start; }
  .ring { width: 92px; height: 92px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.stat > div:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* ---------- sazonal ---------- */
.sz-row { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px dashed var(--line-2); }
.card-head + .sz-row, .modal-b p + .sz-row { border-top: 0; }
.sz-date { width: 46px; height: 50px; border-radius: 12px; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.sz-date b { font-family: var(--serif); font-size: 19px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.sz-date span { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.sz-date.soon { background: var(--ink); color: #fff; }
.sz-date.soon span { color: #9A9A9A; }
.sz-body { flex: 1; min-width: 0; }
.sz-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.sz-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.cchip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; background: var(--paper); border-radius: 99px; padding: 2px 8px 2px 6px; white-space: nowrap; }
.cchip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cchip.ok { background: var(--ok-soft); color: var(--ok); }
.cchip.all { background: transparent; border: 1px dashed var(--line); color: var(--ink-3); }
.sz-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sz-tags span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.sz-month { margin-bottom: 26px; }
.sz-month h2 { font-size: 22px; margin: 0 0 12px; }
.sz-card { display: flex; flex-direction: column; gap: 10px; }
.sz-card .sz-top { display: flex; gap: 12px; align-items: center; }
.sz-card.feriado { border-top: 3px solid var(--ink); }
.sz-card.varejo { border-top: 3px solid #6B6B6B; }
.sz-card.past { opacity: .5; }
.cl-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; max-height: 280px; overflow: auto; }
.nchip { background: var(--paper); border-radius: 8px; padding: 4px 9px; font-size: 12.5px; }
@media (max-width: 760px) { .cl-pick { grid-template-columns: 1fr; } }
.grid > * { min-width: 0; }
.main { min-width: 0; }
@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .mnav a { padding: 4px 2px; font-size: 9.5px; flex: 1; }
  .mnav svg { width: 21px; height: 21px; }
  .it .t1 { flex-wrap: wrap; }
}

/* ---------- prévia Instagram no sistema ---------- */
.modal.wide { width: min(1040px, 100%); }
.edit-grid { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.edit-prev { position: sticky; top: 0; }
.prev-lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 8px; }
.igp { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; max-width: 380px; margin: 0 auto; font-size: 13px; color: #111; }
.igp-av { width: 28px; height: 28px; border-radius: 50%; background: #111; color: #fff; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; overflow: hidden; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #C9C9C9; }
.igp-av img { width: 100%; height: 100%; object-fit: cover; }
.igp-h { display: flex; align-items: center; gap: 8px; padding: 9px 11px; }
.igp-h b { font-size: 13px; }
.igp-dots { margin-left: auto; font-weight: 800; letter-spacing: 1px; }
.igp-m { position: relative; background: #0E0E0E; display: grid; place-items: center; overflow: hidden; }
.igp-feed .igp-m { aspect-ratio: 4 / 5; }
.igp-story .igp-m, .igp-reel .igp-m { aspect-ratio: 9 / 16; }
.igp-story, .igp-reel { max-width: 300px; border-radius: 18px; border: 0; }
.igp-m img, .igp-m video { width: 100%; height: 100%; object-fit: cover; display: block; }
.igp-empty { color: #8C8C8C; text-align: center; font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.igp-empty span { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.igp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.25); z-index: 2; }
.igp-nav.l { left: 8px; } .igp-nav.r { right: 8px; }
.igp-cnt { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.65); color: #fff; border-radius: 99px; padding: 2px 9px; font-size: 11px; font-weight: 700; }
.igp-a { display: flex; align-items: center; gap: 13px; padding: 9px 11px 4px; }
.igp-a svg { width: 22px; height: 22px; flex: none; }
.igp-dotsrow { flex: 1; display: flex; justify-content: center; gap: 4px; }
.igp-dotsrow i { width: 6px; height: 6px; border-radius: 50%; background: #CFCFCF; cursor: pointer; }
.igp-dotsrow i.on { background: #0095F6; }
.igp-c { padding: 2px 11px 13px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow: auto; }
.igp-bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 3px; z-index: 2; }
.igp-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.4); }
.igp-bars i.on, .igp-bars i.done { background: #fff; }
.igp-sh { position: absolute; top: 18px; left: 10px; right: 10px; display: flex; align-items: center; gap: 7px; color: #fff; z-index: 2; font-size: 12.5px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.igp-sh span:last-child { opacity: .8; }
.igp-reply { position: absolute; left: 10px; right: 10px; bottom: 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 99px; color: #fff; padding: 7px 12px; font-size: 12px; }
.igp-side { position: absolute; right: 9px; bottom: 70px; display: flex; flex-direction: column; gap: 16px; color: #fff; z-index: 2; }
.igp-side svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.igp-rb { position: absolute; left: 10px; right: 46px; bottom: 12px; color: #fff; z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.igp-rb .igp-sh { position: static; }
.igp-follow { border: 1px solid rgba(255,255,255,.8); border-radius: 7px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; opacity: 1 !important; }
.igp-rc { font-size: 12.5px; margin-top: 6px; }
.igp-audio { font-size: 11.5px; margin-top: 4px; opacity: .9; }
.igp-tag { position: absolute; top: 12px; left: 12px; color: #fff; font-weight: 800; font-size: 15px; z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.igp-reel .igp-m::after, .igp-story .igp-m::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.35), transparent 22%, transparent 65%, rgba(0,0,0,.55)); pointer-events: none; }
.card.connect { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; border: 1.5px dashed #BDBDBD; background: #FAFAFA; }
@media (max-width: 900px) { .edit-grid { grid-template-columns: 1fr; } .edit-prev { position: static; } }

/* ---------- rotina semanal ---------- */
.rt-wrap { overflow: auto; max-height: 60vh; border: 1px solid var(--line); border-radius: 12px; }
.rt { width: 100%; border-collapse: collapse; font-size: 13px; }
.rt th { position: sticky; top: 0; background: var(--paper); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 8px; text-align: center; }
.rt th:first-child, .rt td:first-child { text-align: left; white-space: nowrap; }
.rt td { padding: 6px 8px; border-top: 1px solid var(--line-2); text-align: center; }
.rt tr:hover td { background: #FAFAFA; }
.rt input { width: 17px; height: 17px; accent-color: #0E0E0E; cursor: pointer; }
.rt tfoot td { font-weight: 700; background: var(--paper); position: sticky; bottom: 0; }

/* ---------- seletor de formato ---------- */
.fmt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.fmt button { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 13px; font-weight: 650; font-size: 13px; cursor: pointer; color: var(--ink-2); transition: all .15s; }
.fmt button:hover { border-color: var(--ink-3); }
.fmt button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fmt .fmt-other { width: auto; padding: 7px 10px; font-size: 13px; }
