/* App de Conteúdo: branco, preto e cinzas. Títulos em Cal Sans, texto em Inter. */
@font-face { font-family: "Cal Sans"; src: url("../fonts/cal-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #333333;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --soft: #f5f5f5;
  --soft-2: #ededed;
  --danger: #b42318;
  --danger-soft: #fdf0ef;
  --ok: #15803d;
  --ok-soft: #e9f6ee;
  --wait: #b45309;
  --wait-soft: #fdf3e2;
  --star: #f5a524;
  --radius: 10px;
  --title: "Cal Sans", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .title { font-family: var(--title); font-weight: 400; letter-spacing: .01em; margin: 0; line-height: 1.2; }
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
a { color: inherit; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.lg { gap: 20px; }
.grow { flex: 1; min-width: 0; }
.pre { white-space: pre-wrap; word-break: break-word; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius);
  border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 500 15px var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #2a2a2a; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.sec { background: #fff; color: var(--ink); border-color: #cfcfcf; }
.btn.sec:hover { background: var(--soft); }
.btn.ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn.ghost:hover { background: var(--soft); }
.btn.danger { background: #fff; color: var(--danger); border-color: #f0c6c2; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field > small { color: var(--muted); font-size: 12px; }
input, select, textarea { font: 400 15px var(--text); color: var(--ink); background: #fff; border: 1px solid #d6d6d6; border-radius: var(--radius); padding: 11px 12px; width: 100%; min-height: 44px; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- estrutura do painel ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; background: #fff; }
.brand { font-family: var(--title); font-size: 22px; padding: 4px 10px 18px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--soft); }
.nav a.on { background: var(--ink); color: #fff; }
.nav .ico { width: 20px; text-align: center; }
.side .spacer { flex: 1; }
.main { padding: 28px 32px 80px; max-width: 1100px; width: 100%; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 6px; }

@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px; border-right: 0; border-top: 1px solid var(--line); z-index: 20; justify-content: space-around; }
  .brand, .side .spacer, .side .nav-extra { display: none; }
  .nav { display: contents; }
  .nav a { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 4px; flex: 1; text-align: center; }
  .nav a.on { background: transparent; color: var(--ink); font-weight: 600; }
  .nav .ico { font-size: 18px; }
  .main { padding: 18px 16px 96px; }
  h1 { font-size: 24px; }
}

/* ---------- cartões e listas ---------- */
.card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.card.soft { background: var(--soft); border-color: transparent; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.list > * { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; background: #fff; }
.list > *:first-child { border-top: 0; }
.list > a:hover { background: var(--soft); }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed #d6d6d6; border-radius: 14px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--soft-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.stat { font-family: var(--title); font-size: 30px; }

/* ---------- status ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--ink-2); white-space: nowrap; }
.pill.rascunho { background: #fff; color: var(--muted); }
.pill.aguardando { background: var(--wait-soft); color: var(--wait); border-color: #f6dfb8; }
.pill.ajuste { background: var(--danger-soft); color: var(--danger); border-color: #f3d0cc; }
.pill.aprovado { background: var(--ok-soft); color: var(--ok); border-color: #bfe5cc; }
.pill.publicado { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- abas ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--ink); }

/* ---------- modal e aviso ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 60; font-weight: 500; max-width: calc(100% - 32px); }
@media (max-width: 820px) { .toast { bottom: 84px; } }

/* ---------- editor ---------- */
.editor { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 960px) { .editor { grid-template-columns: 1fr; } }
.part { border-left: 3px solid var(--ink); padding-left: 14px; }
.part .label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sticky-bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 0; display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px) { .sticky-bar { position: static; border-top: 0; padding: 4px 0 0; } }
.progress { height: 6px; background: var(--soft-2); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--ok); width: 0; transition: width .2s; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; width: 84px; height: 105px; border-radius: 8px; overflow: hidden; background: var(--soft-2); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; }
.history { border-left: 2px solid var(--line); padding-left: 14px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- estrelas ---------- */
.stars { display: inline-flex; gap: 2px; font-size: 20px; line-height: 1; }
.stars button { background: none; border: 0; padding: 2px; cursor: pointer; color: #cfcfcf; font-size: 24px; }
.stars button.on, .stars .on { color: var(--star); }
.stars span { color: #cfcfcf; }

/* ---------- prévia do feed (Instagram) ---------- */
.feed { width: 100%; max-width: 420px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; margin: 0 auto; }
.feed-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.feed-head .avatar { width: 32px; height: 32px; font-size: 13px; }
.feed-head b { font-size: 14px; }
.feed-media { position: relative; width: 100%; aspect-ratio: 4 / 5; background: #000; overflow: hidden; }
.feed-media video, .feed-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.feed-track::-webkit-scrollbar { display: none; }
.feed-track > * { flex: 0 0 100%; scroll-snap-align: center; }
.feed-count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 99px; }
.feed-sound { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 14px; }
.feed-dots { display: flex; justify-content: center; gap: 4px; margin: 0 auto; }
.feed-dots i { width: 6px; height: 6px; border-radius: 50%; background: #d0d0d0; }
.feed-dots i.on { background: var(--ink); }
.feed-icons { display: flex; gap: 14px; padding: 10px 12px 4px; font-size: 22px; }
.feed-icons .save { margin-left: auto; }
.feed-icons svg { width: 24px; height: 24px; }
.feed-caption { padding: 4px 12px 14px; font-size: 14px; }
.feed-caption .txt { white-space: pre-wrap; word-break: break-word; }
.feed-caption .txt.clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-caption .more { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font: inherit; }
.feed-empty { display: flex; align-items: center; justify-content: center; height: 100%; color: #aaa; font-size: 14px; }

/* ---------- calendário ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal .dow { min-height: 0; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; background: var(--soft); }
.cal .out { background: #fafafa; color: #bbb; }
.cal .today .num { background: var(--ink); color: #fff; border-radius: 99px; padding: 0 7px; }
.cal .num { font-size: 12px; font-weight: 600; align-self: flex-start; }
.cal .ev { font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; text-decoration: none; display: block; overflow: hidden; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.cal .ev span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.cal .ev small { display: block; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal .ev.aguardando { background: var(--wait-soft); color: var(--wait); border-color: #f6dfb8; }
.cal .ev.ajuste { background: var(--danger-soft); color: var(--danger); border-color: #f3d0cc; }
.cal .ev.aprovado { background: var(--ok-soft); color: var(--ok); border-color: #bfe5cc; }
.cal .ev.publicado { background: var(--ink); color: #fff; border-color: var(--ink); }
.cal .ev.rascunho { color: var(--muted); border-style: dashed; }
.cal-list { display: none; }
@media (max-width: 700px) {
  .cal { display: none; }
  .cal-list { display: block; }
}
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- checklist de stories ---------- */
.week { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.day { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.day h3 { font-size: 15px; }
.task { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; background: var(--soft); }
.task.done { opacity: .6; }
.task.done .t { text-decoration: line-through; }
.check { width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--ink); background: #fff; flex: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; padding: 0; }
.check.on { background: var(--ok); border-color: var(--ok); }
.task-edit { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.task-edit input { min-height: 38px; padding: 8px 10px; font-size: 14px; }

/* ---------- PDF ---------- */
.pdf { display: flex; flex-direction: column; gap: 12px; align-items: center; background: var(--soft); border-radius: 12px; padding: 12px; }
.pdf canvas { width: 100%; height: auto; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); border-radius: 4px; }

/* ---------- login ---------- */
.center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.error { color: var(--danger); font-size: 14px; }

/* ---------- portal do cliente ---------- */
.portal { max-width: 640px; margin: 0 auto; padding: 18px 16px calc(110px + env(safe-area-inset-bottom)); }
.portal-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.portal section { margin-top: 30px; }
.portal section > h2 { margin-bottom: 12px; }
.decide { position: sticky; bottom: 0; z-index: 5; background: #fff; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.decide .btn { min-height: 52px; font-size: 16px; }
.banner { padding: 14px 16px; border-radius: 12px; background: var(--soft); font-weight: 500; }
.banner.dark { background: var(--ink); color: #fff; }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.bad { background: var(--danger-soft); color: var(--danger); }
.banner.wait { background: var(--wait-soft); color: var(--wait); }
.btn.green { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.green:hover { background: #116b33; }
.btn.red { background: #fff; border-color: #e8b4ae; color: var(--danger); }
.btn.red:hover { background: var(--danger-soft); }

/* ---------- ajustes para celular ---------- */
@media (max-width: 640px) {
  .tabs { flex-wrap: wrap; gap: 6px; border-bottom: 0; overflow: visible; }
  .tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; }
  .tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
}

/* ---------- carrossel: setas e arrastar ---------- */
.feed-track { cursor: grab; touch-action: pan-x pan-y; user-select: none; }
.feed-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.feed-track img { pointer-events: none; }
.feed-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: #111; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; padding-bottom: 2px; }
.feed-arrow.left { left: 8px; }
.feed-arrow.right { right: 8px; }

/* ---------- Reels (vídeo vertical) ---------- */
.reels-wrap { display: flex; justify-content: center; }
.reels { position: relative; height: clamp(300px, calc(100vh - 345px), 640px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 14px; overflow: hidden; color: #fff; }
@supports not (aspect-ratio: 9 / 16) { .reels { height: 600px; } }
.reels video, .reels-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reels-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.reels-play svg { width: 34px; height: 34px; margin-left: 4px; }
.reels-side { position: absolute; right: 10px; bottom: 96px; display: flex; flex-direction: column; gap: 18px; pointer-events: none; }
.reels-side svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.reels-bottom { position: absolute; left: 0; right: 52px; bottom: 0; padding: 40px 12px 14px; background: linear-gradient(transparent, rgba(0,0,0,.65)); font-size: 13px; }
.reels-user { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.reels-user .avatar { width: 28px; height: 28px; font-size: 11px; color: #111; }
.reels-caption .txt { white-space: pre-wrap; word-break: break-word; }
.reels-caption .txt.clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reels-caption .more { background: none; border: 0; padding: 0; color: #ddd; cursor: pointer; font: inherit; }
.reels-controls { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 8px; align-items: center; }
.reels-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.reels-btn svg { width: 20px; height: 20px; }
.reels-chip { margin-left: auto; height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); color: #111; font: 600 13px var(--text); cursor: pointer; }
.reels-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; background: #111; color: #ddd; }
.reels-error a { color: #fff; }

/* ---------- stories no painel ---------- */
.sweek { display: flex; flex-direction: column; gap: 12px; }
.sday { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.sday.today { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.sday-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.srow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--soft); }
.srow.done { background: var(--ok-soft); }
.sdot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c8c8c8; flex: none; margin-top: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.srow.done .sdot { background: var(--ok); border-color: var(--ok); }
.sinput { border: 0; background: transparent; padding: 6px 0; min-height: 36px; font-weight: 500; }
.snote { border: 0; background: transparent; padding: 0; min-height: 24px; font-size: 13px; color: var(--muted); }
.sinput:focus, .snote:focus { box-shadow: none; border-bottom: 1px solid var(--ink); border-radius: 0; }
.sadd { align-self: flex-start; color: var(--muted); }
.ok-text { color: var(--ok); font-weight: 600; }

/* ---------- portal: abas embaixo e cartões ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: center; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; max-width: 128px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 500; padding: 4px 0; }
.tabbar a.on { color: var(--ink); font-weight: 600; }
.tabbar .ico { position: relative; font-size: 19px; line-height: 1.2; }
.tabbar .badge { position: absolute; top: -4px; right: -12px; min-width: 18px; height: 18px; border-radius: 99px; background: var(--danger); color: #fff; font-style: normal; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
body.no-tabbar .tabbar { display: none; }
.pcard { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; background: #fff; }
.pcard:active, .pcard:hover { background: var(--soft); }
.pcard-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.pdate { width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.pdate b { font-family: var(--title); font-size: 22px; font-weight: 400; }
.pdate small { color: var(--muted); font-size: 11px; text-transform: uppercase; }
@media (max-width: 420px) { .pcard .pill { font-size: 11px; padding: 2px 8px; } }

/* ---------- antes e depois ---------- */
.snap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.snap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.snap-media { aspect-ratio: 4 / 5; background: var(--soft-2); }
.snap-media img, .snap-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.snap-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.snap-big { width: 100%; max-height: 70vh; object-fit: contain; background: var(--soft); border-radius: 10px; }
@media (max-width: 520px) { .snap-compare { gap: 8px; } .snap-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ---------- ajuda ---------- */
.help summary { cursor: pointer; list-style: none; font-size: 16px; }
.help summary::-webkit-details-marker { display: none; }
.help summary::after { content: '+'; float: right; color: var(--muted); }
.help[open] summary::after { content: '–'; }
.help ul { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.help li { line-height: 1.55; }
@media (max-width: 820px) { .nav a { min-width: 0; padding: 6px 2px; } }
@media (max-width: 360px) { .nav a { font-size: 10px; } .nav .ico { font-size: 16px; } }

/* ---------- calendário de gravações ---------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--soft); border-radius: 12px; align-self: flex-start; }
.seg.wrap { flex-wrap: wrap; }
.seg a, .seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: 500 14px var(--text); color: var(--muted); text-decoration: none; cursor: pointer; }
.seg a.on, .seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.rec { display: block; text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--c) 10%, #fff); border-left: 3px solid var(--c);
  border-radius: 6px; padding: 4px 6px; font-size: 12px; line-height: 1.3; overflow: hidden; }
.rec span { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec.conflict { background: var(--danger-soft); border-left-color: var(--danger); }
.rec.conflict span { color: var(--danger); }
.cal-list .rec { font-size: 14px; padding: 8px 10px; }
.cal-list .rec small { font-size: 12px; }
.seg.wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); width: 100%; }
.seg.wrap button { padding: 9px 8px; }

/* ---------- menu: rótulos curtos e itens só no computador ---------- */
.nav .sm, .list.mob { display: none; }
@media (max-width: 820px) {
  .nav .lg, .nav a.desk { display: none; }
  .nav .sm { display: inline; }
  .list.mob { display: block; }
}
