* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f5f7;
  color: #16181d;
}
.topo {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 16px 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.topo h1 { margin: 0; font-size: 24px; }
.sub { margin: 6px 0 0; color: #5b6068; font-size: 14px; }
.counts { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.pill {
  background: #fff; border: 1px solid #e2e4e9; border-radius: 999px;
  padding: 4px 12px; font-size: 13px; white-space: nowrap;
}
.pill.frio { border-color: #f0c36d; background: #fff8e6; }
main { max-width: 760px; margin: 0 auto; padding: 8px 16px 48px; }
.hidden { display: none !important; }
.sec-title { font-size: 17px; margin: 26px 0 12px; }
.muted { color: #5b6068; font-size: 13px; }
.card {
  background: #fff; border: 1px solid #e2e4e9; border-radius: 14px;
  padding: 16px; margin-bottom: 12px;
}
.card.frio { border-color: #f0c36d; }
.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.score {
  min-width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff; background: #6b7280;
}
.score.S { background: #b91c1c; }
.score.A { background: #c2410c; }
.score.B { background: #a16207; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.meta .date { font-size: 13px; color: #5b6068; }
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; background: #eef1f4; color: #3c4149;
}
.badge.frio { background: #fde68a; color: #7c4a03; }
.badge.carrossel { background: #dbeafe; color: #1e40af; }
.badge.enviado { background: #dcfce7; color: #166534; }
.card h3 { margin: 2px 0 8px; font-size: 17px; line-height: 1.35; }
.summary { margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; }
.line { margin: 0 0 6px; font-size: 14px; line-height: 1.5; color: #2c2f36; }
.hook {
  margin: 8px 0; font-size: 14px; font-style: italic; color: #3c4149;
  border-left: 3px solid #d4d7dd; padding-left: 10px;
}
.actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.fonte { font-size: 13px; color: #8a8f98; text-decoration: none; }
.fonte:hover { text-decoration: underline; }
.spacer { flex: 1; }
.btn {
  border: 1px solid #d4d7dd; background: #fff; color: #16181d;
  border-radius: 10px; padding: 9px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.btn.primary { background: #16181d; color: #fff; border-color: #16181d; }
.btn.ok { background: #15803d; border-color: #15803d; color: #fff; }
.btn.no { color: #6b7280; }
.btn.ghost { font-weight: 500; color: #5b6068; }
.btn:disabled { opacity: .5; cursor: default; }
.status-txt { font-size: 13px; font-weight: 600; }
.status-txt.aprovado { color: #15803d; }
.status-txt.rejeitado { color: #9ca3af; }
.auth-card { max-width: 420px; margin: 40px auto; }
.auth-card input {
  width: 100%; padding: 11px 12px; font-size: 15px;
  border: 1px solid #d4d7dd; border-radius: 10px; margin-bottom: 10px;
}
.auth-card .btn { width: 100%; }
.error { color: #b91c1c; font-size: 13px; min-height: 16px; }
details summary { cursor: pointer; font-size: 17px; font-weight: 700; margin: 26px 0 12px; }
.empty { color: #8a8f98; font-size: 14px; padding: 6px 2px 14px; }
.foot { margin-top: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.tab {
  flex: 1 1 120px; max-width: 260px; padding: 10px 16px;
  border: 1px solid #d4d7dd; border-radius: 999px; background: #fff;
  color: #16181d; font-size: 15px; font-weight: 700; cursor: pointer;
}
.tab.active { background: #16181d; color: #fff; border-color: #16181d; }
.badge.video { background: #ede9fe; color: #5b21b6; }
.modal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(17, 19, 24, .5); }
.modal-box {
  position: relative; background: #fff; border-radius: 16px;
  width: 100%; max-width: 680px; max-height: 86vh; overflow-y: auto;
  overflow-x: hidden; padding: 20px; overflow-wrap: break-word;
}
.modal-head { display: flex; align-items: flex-start; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 19px; line-height: 1.3; flex: 1; min-width: 0; }
.modal-close { flex: none; padding: 6px 10px; }
.modal-box .meta { margin: 8px 0 4px; }
.slide {
  border: 1px solid #e2e4e9; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 10px; overflow-wrap: break-word;
}
.slide-label {
  font-size: 12px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: #5b6068; margin-bottom: 6px;
}
.slide-text { font-size: 14.5px; line-height: 1.55; }
.slide-visual { margin: 8px 0 0; font-size: 13px; font-style: italic; color: #5b6068; }
.badge.ajuste { background: #fde68a; color: #7c4a03; }
.status-txt.ajuste { color: #a16207; }
.viewer { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; }
.vimg {
  flex: 1; min-width: 0; width: 100%; max-height: 540px;
  object-fit: contain; background: #101216; border-radius: 12px;
}
.vnav {
  flex: none; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid #d4d7dd; background: #fff; color: #16181d;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.vnav:hover { background: #f4f5f7; }
.vcount { text-align: center; font-size: 13px; color: #5b6068; margin-bottom: 4px; }
.ajuste-box { margin-top: 10px; }
.ajuste-box textarea {
  width: 100%; min-height: 76px; padding: 10px 12px; font-size: 14px;
  border: 1px solid #d4d7dd; border-radius: 10px; font-family: inherit;
  resize: vertical;
}
a.btn { text-decoration: none; display: inline-block; }
@media (max-width: 480px) {
  .modal { padding: 10px; }
  .modal-box { padding: 16px; max-height: 90vh; }
  .tab { max-width: none; }
  .actions { flex-wrap: wrap; }
  .vnav { width: 36px; height: 36px; }
}
