/* ============================================================
   Briefing · Rio Beach Sports
   Identidade RN Negócios + acento cobre da clínica
   Mobile-first, responsivo
   ============================================================ */

:root {
  --cream: #F4F1EA;
  --paper: #FBF9F4;
  --paper-2: #FFFFFF;
  --green: #1F3A2E;
  --green-soft: #2E4D3E;
  --graphite: #2B2B2B;
  --ink-soft: #5A5A56;
  --copper: #C0815B;
  --copper-deep: #A4673F;
  --copper-soft: #F3E7DD;
  --sage: #A8B5A0;
  --gold: #B8935A;
  --line: #E4DBCD;
  --line-soft: #EDE6D9;
  --danger: #B04A36;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(31,58,46,.04), 0 12px 32px -18px rgba(31,58,46,.22);
  --maxw: 660px;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--graphite);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle facet texture in the page background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(192,129,91,.10), transparent 60%),
    radial-gradient(900px 500px at 50% 108%, rgba(31,58,46,.06), transparent 60%);
  z-index: 0;
}

/* ---------- Top progress bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244,241,234,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 10px 18px calc(10px);
  padding-top: max(10px, env(safe-area-inset-top));
}
.topbar.is-hidden { display: none; }
.topbar-row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.topbar-brand img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.topbar-brand b {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--green);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-step {
  font-size: var(--fs-min, 13px);
  font-weight: 600;
  color: var(--copper-deep);
  white-space: nowrap;
  letter-spacing: .02em;
}
.progress {
  max-width: var(--maxw);
  margin: 9px auto 0;
  height: 4px;
  border-radius: 99px;
  background: var(--line-soft);
  overflow: hidden;
}
.progress > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--copper), var(--copper-deep));
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* ---------- Layout ---------- */
.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 18px 140px;
}
.stage { animation: rise .42s cubic-bezier(.2,.7,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow {
  font-size: var(--fs-min, 13px);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--copper-deep);
  margin: 0 0 8px;
}
h1.title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--green);
  font-size: clamp(25px, 7vw, 33px);
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}
.lead { font-size: 16px; color: var(--graphite); margin: 0 0 14px; }
.muted { color: var(--ink-soft); }

.rule { height: 1px; background: var(--line); border: 0; margin: 16px 0 20px; }

/* ---------- Welcome ---------- */
.welcome { text-align: center; padding-top: 24px; }
.welcome .emblem {
  width: 116px; height: 116px; border-radius: 50%;
  margin: 0 auto 18px; display: block;
  filter: drop-shadow(0 10px 26px rgba(164,103,63,.22));
}
.welcome .kicker {
  font-size: var(--fs-min, 13px); font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--copper-deep); margin: 0 0 10px;
}
.welcome h1 {
  font-family: var(--serif); font-weight: 700; color: var(--green);
  font-size: clamp(26px, 8vw, 38px); line-height: 1.05; margin: 0;
  letter-spacing: -.015em;
}
.welcome .sub-serif {
  font-family: var(--serif); font-style: italic; color: var(--copper-deep);
  font-size: clamp(15px, 4.6vw, 19px); margin: 6px 0 0;
}
.welcome .divider {
  width: 64px; height: 2px; background: var(--copper);
  border: 0; margin: 20px auto;
}
.welcome p { font-size: 16px; color: var(--graphite); max-width: 46ch; margin: 0 auto 14px; }

.note-card {
  text-align: left;
  background: var(--copper-soft);
  border-left: 3px solid var(--copper);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  margin: 18px auto 0;
  max-width: 520px;
}
.note-card h4 {
  margin: 0 0 6px; font-size: var(--fs-min, 13px); letter-spacing: .12em; text-transform: uppercase;
  color: var(--green); font-weight: 700;
}
.note-card p { font-size: 14.5px; color: var(--graphite); margin: 0; max-width: none; }
.note-card.green { background: #EBEFEA; border-left-color: var(--green); }

/* ---------- Block step ---------- */
.block-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 6px; }
.badge {
  flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--green); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  margin-top: 2px;
}
.block-head h2 {
  font-family: var(--serif); font-weight: 700; color: var(--green);
  font-size: clamp(20px, 5.6vw, 25px); line-height: 1.12; margin: 0;
}
.purpose { color: var(--ink-soft); font-size: 14.5px; margin: 2px 0 18px; }

/* ---------- Fields ---------- */
.field { margin: 0 0 20px; }
.field > label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--graphite);
  margin: 0 0 8px;
  line-height: 1.4;
}
.field .qnum {
  display: inline-block;
  font-weight: 700; color: var(--copper-deep);
  font-size: var(--fs-min, 13px); margin-right: 7px;
  font-variant-numeric: tabular-nums;
}
.field .optional { color: var(--ink-soft); font-weight: 400; font-size: var(--fs-min, 13px); }

input[type="text"], textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px; /* evita zoom no iOS */
  color: var(--graphite);
  background: var(--paper-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s, background .15s;
  resize: vertical;
}
textarea { min-height: 96px; }
input::placeholder, textarea::placeholder { color: #B7AE9D; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(192,129,91,.16);
}
.field.answered input, .field.answered textarea { border-color: var(--sage); }

/* ---------- Nav (sticky on mobile) ---------- */
.nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 25;
  background: linear-gradient(180deg, rgba(244,241,234,0), var(--cream) 32%);
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; gap: 11px; align-items: center;
}
button {
  font-family: var(--sans);
  cursor: pointer;
  border: 0;
  font-size: 15.5px;
  font-weight: 600;
  border-radius: 13px;
  padding: 14px 18px;
  min-height: 52px;
  transition: transform .08s, background .15s, box-shadow .15s, color .15s;
}
button:active { transform: translateY(1px) scale(.997); }
button:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

.btn-primary {
  flex: 1;
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 10px 22px -12px rgba(31,58,46,.6);
}
.btn-primary:hover { background: var(--green-soft); }
.btn-primary.copper { background: var(--copper); box-shadow: 0 10px 22px -12px rgba(164,103,63,.7); }
.btn-primary.copper:hover { background: var(--copper-deep); }
.btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--line);
  padding-left: 18px; padding-right: 18px;
  flex: none;
}
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-deep); }
.btn-wide { width: 100%; }
.btn-link {
  background: none; min-height: auto; padding: 6px 4px;
  color: var(--copper-deep); text-decoration: underline; font-weight: 500; font-size: 14px;
}

.saved-hint {
  text-align: center; font-size: var(--fs-min, 13px); color: var(--ink-soft);
  margin: 14px 0 0;
}
.saved-hint b { color: var(--green); font-weight: 600; }

/* ---------- Review ---------- */
.review-group { margin: 0 0 8px; border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
.review-group:last-child { border-bottom: 0; }
.review-group .rg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
}
.review-group .rg-head h3 {
  font-family: var(--serif); font-weight: 700; color: var(--green);
  font-size: 17px; margin: 0;
}
.qa { margin: 0 0 12px; }
.qa:last-child { margin-bottom: 0; }
.qa .q { font-size: var(--fs-min, 13px); color: var(--ink-soft); margin: 0 0 2px; }
.qa .a { font-size: 15px; color: var(--graphite); margin: 0; white-space: pre-wrap; }
.qa .a.empty { color: #B7AE9D; font-style: italic; }

/* ---------- Success / Fallback ---------- */
.center-stage { text-align: center; padding-top: 40px; }
.seal {
  width: 96px; height: 96px; border-radius: 50%;
  margin: 0 auto 20px; display: grid; place-items: center;
  background: var(--copper-soft); color: var(--copper-deep);
}
.seal svg { width: 44px; height: 44px; }
.center-stage h1 {
  font-family: var(--serif); font-weight: 700; color: var(--green);
  font-size: clamp(24px, 7vw, 32px); margin: 0 0 10px;
}
.center-stage p { font-size: 16px; color: var(--graphite); max-width: 44ch; margin: 0 auto 12px; }

.wa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none;
  background: #25D366; color: #07351c;
  font-weight: 700; font-size: 15.5px;
  border-radius: 13px; padding: 14px 22px; min-height: 52px;
  margin-top: 6px;
}
.wa-btn svg { width: 20px; height: 20px; }

.foot-by {
  margin-top: 46px; text-align: center; color: var(--ink-soft); font-size: var(--fs-min, 13px);
}
.foot-by img { width: 30px; height: 30px; border-radius: 7px; vertical-align: middle; margin-right: 7px; opacity: .9; }

.error-text { color: var(--danger); font-size: 14px; margin: 10px 0 0; }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .wrap { padding-bottom: 40px; }
  .nav {
    position: static; background: none; padding: 8px 0 0;
  }
  .nav-inner { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   Portal RN Negócios — login, linha do tempo e painel
   ============================================================ */
.login-card {
  max-width: 400px; margin: 9vh auto 0; text-align: center;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 24px 26px;
}
.login-card img.rn { width: 54px; height: 54px; border-radius: 12px; margin-bottom: 12px; }
.login-card h1 { font-family: var(--serif); color: var(--green); font-size: 26px; margin: 0 0 4px; }
.login-card .sub { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 20px; }
.login-card form { text-align: left; }
.login-card label { display: block; font-size: var(--fs-min, 13px); font-weight: 600; color: var(--green); margin: 0 0 6px; }
.login-card input { margin: 0 0 14px; }
input[type="password"], input[type="date"], input[type="email"], select {
  width: 100%; font: inherit; font-size: 16px; color: var(--graphite);
  background: var(--paper-2); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
select { appearance: auto; }

.portal-head { display: flex; align-items: center; gap: 12px; padding: 18px 0 6px; }
.portal-head img { width: 46px; height: 46px; border-radius: 50%; flex: none; }
.portal-head .who { flex: 1; min-width: 0; }
.portal-head .who b { display: block; font-family: var(--serif); color: var(--green); font-size: 20px; line-height: 1.2; }
.portal-head .who span { font-size: var(--fs-min, 13px); color: var(--ink-soft); }
.portal-progress { margin: 14px 0 22px; }
.portal-progress .bar { height: 8px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.portal-progress .bar i { display: block; height: 100%; background: var(--copper); border-radius: 99px; }
.portal-progress p { font-size: var(--fs-min, 13px); color: var(--ink-soft); margin: 7px 0 0; }

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-step { position: relative; padding: 0 0 18px 50px; }
.tl-dot {
  position: absolute; left: 0; top: 2px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--paper-2); border: 2px solid var(--line); color: var(--ink-soft);
}
.tl-step.andamento .tl-dot { border-color: var(--copper); color: var(--copper-deep); }
.tl-step.concluida .tl-dot { background: var(--green); border-color: var(--green); color: var(--cream); }
.tl-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px;
}
.tl-card h3 { font-family: var(--serif); color: var(--green); font-size: 18px; margin: 0 0 4px; }
.tl-card .resumo { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 10px; }
.tl-card .conteudo p { margin: 0 0 10px; font-size: 15px; white-space: pre-wrap; }
.tl-card .conteudo ul { margin: 0 0 10px; padding-left: 20px; }
.tl-card .conteudo li { margin: 0 0 4px; font-size: 15px; }
.chip {
  display: inline-block; font-size: var(--fs-min, 13px); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 99px; background: var(--line-soft); color: var(--ink-soft); white-space: nowrap;
}
.chip.andamento { background: var(--copper-soft); color: var(--copper-deep); }
.chip.concluida, .chip.feito { background: #E3ECE5; color: var(--green); }
.chip.interno { background: #F3E3DE; color: var(--danger); }
.chip.cliente { background: #E3ECE5; color: var(--green); }
.tl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.itens { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.itens li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.itens li:last-child { border-bottom: 0; }
.itens .it-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.itens b { font-size: 15px; color: var(--graphite); }
.itens .it-meta { font-size: var(--fs-min, 13px); color: var(--ink-soft); margin-top: 3px; }
.itens .it-desc { font-size: 14px; color: var(--graphite); margin: 4px 0 0; white-space: pre-wrap; }
.tl-next { font-size: var(--fs-min, 13px); color: var(--ink-soft); text-align: center; margin: 4px 0 0; }

/* Painel admin */
.adm-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.adm-bar select { flex: 1; min-width: 200px; }
.tabs { display: flex; gap: 6px; margin: 0 0 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  padding: 10px 12px; font-weight: 600; color: var(--ink-soft); min-height: 0; box-shadow: none;
}
.tabs button.on { color: var(--green); border-bottom-color: var(--copper); }
.ed-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 14px; }
.ed-card > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.ed-card > summary::-webkit-details-marker { display: none; }
.ed-card > summary .t { font-family: var(--serif); font-weight: 700; color: var(--green); font-size: 16px; }
.ed-body { padding: 4px 16px 16px; border-top: 1px solid var(--line-soft); }
.ed-body label { display: block; font-size: var(--fs-min, 13px); font-weight: 600; color: var(--green); margin: 12px 0 5px; }
.ed-body textarea { min-height: 80px; }
.ed-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ed-row > div { min-width: 0; }
.toggle { display: flex !important; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--green); }
.interno-box { background: #FBF4F1; border-left: 3px solid var(--danger); padding: 2px 12px 12px; border-radius: 0 10px 10px 0; margin-top: 12px; }
.item-ed { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 4px 12px 12px; margin: 12px 0 0; }
.ed-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ed-actions button { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn-danger { background: none; border: 1.5px solid var(--danger); color: var(--danger); border-radius: var(--radius-sm); }
.ok-text { color: var(--green); font-size: var(--fs-min, 13px); margin: 8px 0 0; }
.acc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
@media (max-width: 520px) { .ed-row { grid-template-columns: 1fr; } }
a.btn-primary, a.btn-ghost {
  display: block; text-align: center; text-decoration: none; font-weight: 600;
  border-radius: var(--radius-sm); padding: 13px 18px; min-height: 48px;
}
a.btn-ghost { border: 1.5px solid var(--line); color: var(--green); }
.passos { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 0 20px; }
.login-card input[type="email"] { margin: 0 0 14px; }
.login-card .note-card { margin: 0; }

/* v2.6.2: link "Saiba mais" da etapa */
.tl-card .saiba-mais { margin: 0 0 12px; font-size: 14px; }
.tl-card .saiba-mais a { color: var(--green); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--gold); }

/* ---------- Cronograma do projeto (v2.9.0) ---------- */
.cronograma { background: var(--paper-2, #fff); border: 1px solid var(--line); border-radius: var(--radius, 14px); padding: 14px 16px; margin: 14px 0 6px; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.cr-cel { background: var(--cream, #F4F1EA); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.cr-cel span { display: block; font-size: var(--fs-min, 13px); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 3px; }
.cr-cel b { display: block; font-size: 15px; color: var(--green); font-weight: 600; overflow-wrap: anywhere; }
.cr-cel em { display: block; font-style: normal; font-size: var(--fs-min, 13px); color: var(--ink-soft); margin-top: 3px; }
.cr-cel.trava { background: #FBEBEB; }
.cr-cel.trava b { color: #9B2C2C; }
.cr-linha { margin-top: 12px; }
.cr-linha > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--green); min-height: 32px; }
.cr-linha ol { list-style: none; margin: 8px 0 0; padding: 0; }
/* v2.22.6: a legenda embaixo das barras usa a mesma espessura (8 px), o mesmo arredondado e a mesma cor da barra que ela explica */
.cr-linha li { position: relative; padding: 6px 0 8px 20px; }
.cr-linha li::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 8px; width: 8px; border-radius: 99px; background: #CFC6B4; }
.cr-linha li.cr-andamento::before { background: var(--gold); }
.cr-linha li.cr-concluida::before { background: var(--green); }
.cr-linha li.cr-atraso::before { background: #C0392B; }
.cr-t { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 14.5px; }
.cr-d { font-size: var(--fs-min, 13px); color: var(--ink-soft); margin-top: 2px; }
.cr-atraso .cr-d { color: #9B2C2C; }
.chip.atraso { background: #FBEBEB; color: #9B2C2C; border-color: #E8B4B4; }
.cr-versoes { margin-top: 10px; font-size: var(--fs-min, 13px); }
.cr-versoes summary { cursor: pointer; color: var(--ink-soft); }
.cr-versoes ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Portal do cliente no desktop (v2.10.0): a partir de 1100 px. Abaixo disso nada muda. ---------- */
@media (min-width: 1100px) {
  .wrap.pt-desk { max-width: 1240px; padding: 28px 32px 64px; }
  .pt-desk .portal-head { padding: 8px 0 18px; gap: 16px; }
  .pt-desk .portal-head img { width: 60px; height: 60px; }
  .pt-desk .portal-head .who b { font-size: 28px; }
  .pt-desk .portal-head .who span { font-size: 14px; }
  .pt-desk .portal-head .btn-ghost { min-height: 44px !important; padding: 8px 18px !important; font-size: 14px !important; }
  .pt-desk .cronograma { padding: 20px 22px; margin: 0 0 24px; box-shadow: var(--shadow); }
  .pt-desk .cr-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
  .pt-desk .cr-cel { padding: 14px 16px; }
  .pt-desk .cr-cel b { font-size: 15.5px; line-height: 1.4; }
  .pt-desk .cr-linha > summary { min-height: 44px; padding: 11px 0; }
  .pt-desk .cr-linha ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; }
  .pt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
  .pt-side { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
  .pt-side .portal-progress { margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
  .pt-side-t { font-family: var(--serif); color: var(--green); font-size: 18px; margin: 0 0 4px; }
  .pt-pct { margin: 0 0 10px !important; font-size: 14px !important; color: var(--ink-soft); }
  .pt-pct b { font-family: var(--serif); font-size: 32px; color: var(--green); margin-right: 4px; }
  .pt-side .tl-card { margin-top: 0 !important; }
  .pt-desk .tl-card { padding: 20px 24px; }
  .pt-desk .tl-card h3 { font-size: 20px; }
  .pt-desk .tl-card .btn-primary, .pt-desk .tl-card a.btn-ghost { display: inline-block; min-width: 260px; }
  .pt-desk .tl-step { padding-bottom: 20px; }
  .pt-desk .tl-next { text-align: left; padding-left: 50px; }
}

/* v2.15.0 · Briefing do negócio e Documentos do projeto no portal (Padrão RN de interface) */
.pt-neg-only { margin-top: 16px; }
.pt-neg-intro { color: var(--ink-soft); margin: 0 0 14px; }
.pt-neg, .pt-docs { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 0 0 16px; }
.pt-neg h2, .pt-docs h2 { font-family: var(--serif); color: var(--green); font-size: 20px; margin: 0 0 6px; }
.pt-neg p { margin: 0 0 6px; color: var(--graphite); }
.pt-neg .bar { margin: 6px 0 12px; height: 8px; background: var(--line-soft); border-radius: 99px; overflow: hidden; }
.pt-neg .bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.pt-neg .btn-primary { display: flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; background: var(--green); }
.pt-docs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pt-docs a { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: start; text-decoration: none; color: var(--graphite); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; background: var(--paper); }
.pt-docs a:hover { border-color: var(--gold); }
.pt-docs a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pt-docs .chip { grid-column: 1; justify-self: start; font-size: var(--fs-min, 13px); }
.pt-docs b { grid-column: 1; font-weight: 700; color: var(--green); overflow-wrap: anywhere; }
.pt-docs small { grid-column: 1; color: var(--ink-soft); font-size: var(--fs-min, 13px); }
.pt-doc-d { grid-column: 1; color: var(--ink-soft); font-size: var(--fs-min, 13px); }
.pt-doc-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; color: var(--gold); font-weight: 700; font-size: 18px; }

/* ============================================================
   v2.17.0 · Parecer Nancy Duarte (26/11/2026), Onda 1: capricho geral
   - números alinhados em todo lugar (a Playfair desenhava o zero como "o" e as datas subiam e desciam)
   - letra mínima: 13 px no computador, 14 px no celular
   - cor com função: vermelho só para pare; "Só você vê" em cinza; "O que falta para avançar" em amarelo
   - etiquetas em caixa normal, uma leitura só
   ============================================================ */
:root { --fs-min: 13px; --aten-bg: #FBF1DC; --aten-fg: #7A5A12; --cinza-bg: #ECEAE4; --cinza-fg: #4F4F4A; }
@media (max-width: 700px) { :root { --fs-min: 14px; } }
body, input, select, textarea, button { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
h1, h2, h3, h4, h5, .title, [class*="serif"] { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.chip { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: var(--fs-min); padding: 3px 10px; }
.chip.interno { background: var(--cinza-bg); color: var(--cinza-fg); }
.chip.interno::before { content: "\1F512\FE0E"; font-size: .85em; margin-right: 5px; opacity: .75; }
.chip.andamento { background: var(--aten-bg); color: var(--aten-fg); }
.cr-cel.trava { background: var(--aten-bg); }
.cr-cel.trava b { color: var(--aten-fg); }
.cr-cel em.aviso-rn { display: block; margin-top: 6px; font-style: normal; font-size: var(--fs-min); color: #9B2C2C; }
.it-top b, .it-desc, .it-meta, .cr-cel b { overflow-wrap: anywhere; }
a.pill-doc { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 99px;
  background: var(--green); color: #F4F1EA; font-weight: 600; font-size: var(--fs-min); text-decoration: none; vertical-align: middle; }
a.pill-doc:hover { background: var(--green-soft); }
/* Abertura do briefing: sobrescrito e subtítulo centralizados como o título (a margem 0 tirava o centro) */
.welcome .kicker, .welcome .sub-serif { margin-left: auto; margin-right: auto; }

/* ============================================================
   v2.18.0 · Parecer Nancy Duarte, Ondas 2 e 3
   - cartão herói no topo do portal: onde estamos, próximo marco, o que falta e quem resolve, uma ação
   - etapa concluída em uma linha; andamento por fase
   - celular: linha do tempo fina, número no título
   ============================================================ */
.cronograma.heroi { padding: 18px 20px; border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.heroi-destino { margin: 0 0 14px; font-family: var(--serif); font-size: 19px; line-height: 1.35; color: var(--green); overflow-wrap: anywhere; }
.heroi-destino span { display: block; font-family: var(--sans, Inter, system-ui, sans-serif); font-size: var(--fs-min); font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }
.heroi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.heroi-l { background: var(--cream, #F4F1EA); border-radius: 10px; padding: 12px 14px; min-width: 0; }
.heroi-l > span { display: block; font-size: var(--fs-min); font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }
.heroi-l > b { display: block; font-size: 16px; line-height: 1.35; color: var(--green); font-weight: 600; overflow-wrap: anywhere; }
.heroi-l.trava { background: var(--aten-bg); }
.heroi-l.trava > b { color: var(--aten-fg); }
.heroi-l.ok > b { color: var(--ink-soft); font-weight: 500; }
.heroi-l em.dono { display: inline-block; margin-top: 8px; font-style: normal; font-size: var(--fs-min); font-weight: 600; padding: 2px 10px; border-radius: 99px; background: #fff; color: var(--aten-fg); border: 1px solid #E6D3A6; }
.heroi-l em.aviso-rn { display: block; margin-top: 6px; font-style: normal; font-size: var(--fs-min); color: #9B2C2C; }
.heroi-acao { margin: 14px 0 0; }
.heroi-acao .btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; }
.heroi-depois, .cr-linha { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.heroi-depois > summary, .cr-linha > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--green); min-height: 40px; display: flex; align-items: center; }
.heroi-depois p { margin: 4px 0 6px; font-size: 15px; white-space: pre-wrap; }
.lt { position: relative; margin: 10px 0 18px; padding: 4px 0 18px; }
.lt-trilho { position: relative; height: 8px; margin: 5px 0; background: var(--line-soft, #EEE9DF); border-radius: 99px; }
.lt-trilho i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: #CFC6B4; }
.lt-trilho i.feito { background: var(--green); }
.lt-trilho i.andamento { background: var(--gold); }
.lt-trilho i.atraso { background: #C0392B; }
.lt-hoje { position: absolute; top: 0; bottom: 14px; width: 2px; background: var(--copper, #A0673A); }
.lt-hoje em { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: var(--fs-min); font-weight: 600; color: var(--copper-deep, #7A4B26); white-space: nowrap; }
/* Etapa concluída: uma linha só */
.tl-feita > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.tl-feita > summary::-webkit-details-marker { display: none; }
.tl-feita > summary b { flex: 1; min-width: 0; font-family: var(--serif); color: var(--green); font-size: 16px; overflow-wrap: anywhere; }
.tl-feita > summary::after { content: "›"; color: var(--gold); font-weight: 700; font-size: 18px; transition: transform .15s; }
.tl-feita[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.tl-feita[open] > summary::after { transform: rotate(90deg); }
.tl-feita[open] > .tl-card { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.tl-feita .tl-top { display: none; }
.tl-n { display: none; }
/* Andamento por fase */
.bar-fases { display: flex; gap: 4px; }
.bar-fases .bf { min-width: 0; }
.bf-t { margin: 6px 0 0; font-size: var(--fs-min); color: var(--ink-soft); }
.bf-t b { color: var(--green); font-weight: 600; }
@media (max-width: 700px) {
  .cronograma.heroi { padding: 16px 14px; }
  .heroi-destino { font-size: 17px; }
  .heroi-acao .btn-primary { width: 100%; }
  /* Linha do tempo fina: faixa de 4 px, número no título, cartão com a largura toda */
  .timeline::before { left: 0; width: 4px; border-radius: 4px; top: 0; bottom: 0; }
  .tl-step { padding: 0 0 12px 14px; }
  .tl-dot { display: none; }
  .tl-step.concluida::before, .tl-step.andamento::before { content: ""; position: absolute; left: 0; top: 0; bottom: 12px; width: 4px; border-radius: 4px; background: var(--green); }
  .tl-step.andamento::before { background: var(--gold); }
  .tl-n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--line-soft, #EEE9DF); color: var(--ink-soft); font-family: var(--sans, Inter, system-ui, sans-serif); font-size: var(--fs-min); font-weight: 700; vertical-align: 2px; }
  .tl-feita .tl-n { margin-right: 0; background: #E3ECE5; color: var(--green); }
  .tl-card { padding: 14px; }
}
/* Login: duas metades no computador (verde com o monograma à esquerda), olho para ver a senha */
.login-lado { display: none; }
.senha-box { position: relative; }
.senha-box input { padding-right: 88px; }
.olho { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 4px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--green); font: 600 var(--fs-min) var(--sans); cursor: pointer; }
.olho:hover { background: var(--line-soft, #EEE9DF); }
.olho:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
@media (min-width: 1100px) {
  body.pg-login { display: grid; grid-template-columns: minmax(380px, 44%) 1fr; min-height: 100vh; }
  body.pg-login .login-lado { display: flex; align-items: center; justify-content: center; background: var(--green); color: var(--cream, #F4F1EA); padding: 48px; }
  .ll-in { max-width: 380px; }
  .ll-mono { display: block; font-family: var(--serif); font-size: 76px; font-weight: 700; line-height: 1; color: var(--cream, #F4F1EA); letter-spacing: .02em; }
  .ll-fio { display: block; width: 72px; height: 3px; background: var(--gold); margin: 22px 0; }
  .ll-frase { font-family: var(--serif); font-size: 26px; line-height: 1.35; margin: 0 0 28px; }
  .ll-rod { font-size: var(--fs-min); opacity: .8; margin: 0; }
  body.pg-login .wrap { align-self: center; width: 100%; }
  body.pg-login .login-card { margin-top: 0; }
}

/* v2.18.1: reunião como registro dentro da etapa (ata recolhida) */
.regs { margin-top: 14px; border-top: 1px solid var(--line-soft, #EEE9DF); padding-top: 10px; }
.regs h4 { margin: 0 0 6px; font-family: var(--sans); font-size: var(--fs-min); font-weight: 600; color: var(--ink-soft); }
.reg { border: 1px solid var(--line); border-radius: 10px; background: var(--paper, #FBF9F4); margin: 0 0 6px; }
.reg > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 6px 12px; }
.reg > summary::-webkit-details-marker { display: none; }
.reg > summary b { flex: 1; min-width: 0; color: var(--green); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.reg > summary::after { content: "›"; color: var(--gold); font-weight: 700; font-size: 18px; transition: transform .15s; }
.reg[open] > summary::after { transform: rotate(90deg); }
.reg-txt { margin: 0; padding: 4px 12px 12px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ============ v2.19.0 · Soluções (planos de ação) ============ */
/* Admin */
.sol-card { margin-top: 4px; }
.sol-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 10px 0 12px; }
.sol-h { font-family: var(--serif); color: var(--green); font-size: 20px; margin: 0; }
.sol-top .btn-primary { min-height: 44px; }
.sol-aviso { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; line-height: 1.5; }
.sol-aviso.aten { background: var(--aten-bg); color: var(--aten-fg); }
.sol-aviso.ok { background: #E3ECE5; color: var(--green); }
.sol-contrato { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); margin-bottom: 18px; }
.sol-contrato > div { flex: 1 1 200px; min-width: 0; }
.sol-contrato label { margin-top: 0; }
.sol-contrato .btn-ghost { min-height: 40px; }
.sol-bloco { margin: 0 0 18px; }
.sol-bh { display: flex; align-items: center; gap: 8px; font-family: var(--serif); color: var(--green); font-size: 17px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); }
.sol-bh span { font-family: var(--sans); font-size: var(--fs-min); font-weight: 700; color: var(--ink-soft); background: var(--line-soft); border-radius: 99px; padding: 1px 9px; }
.sol-plano { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); margin: 0 0 10px; }
.sol-plano.novo { border-color: var(--green); box-shadow: 0 0 0 2px #E3ECE5; margin-bottom: 18px; }
.sol-plano > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 14px; min-height: 48px; }
.sol-plano > summary::-webkit-details-marker { display: none; }
.sol-plano > summary::before { content: "›"; font-size: 20px; color: var(--ink-soft); transition: transform .15s; margin-right: 2px; }
.sol-plano[open] > summary::before { transform: rotate(90deg); }
.sol-n { flex: 1 1 260px; min-width: 0; font-weight: 600; color: var(--green); font-size: 16px; overflow-wrap: anywhere; }
.sol-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sol-corpo { padding: 4px 14px 14px; border-top: 1px solid var(--line-soft); }
.sol-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; align-items: end; }
.sol-largo { grid-column: 1 / -1; }
.sol-viab { border: 1px dashed var(--line); border-radius: var(--radius-sm); margin: 14px 0 4px; padding: 4px 12px 12px; }
.sol-viab legend { font-weight: 600; color: var(--green); padding: 0 6px; display: flex; align-items: center; gap: 8px; }
.sol-datas { margin-top: 8px; }
.sol-check { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 8px 0 0; font-weight: 500; }
.sol-check input { width: 20px; height: 20px; accent-color: var(--green); }
.sol-h5 { font-family: var(--serif); color: var(--green); font-size: 16px; margin: 16px 0 6px; }
.sol-tab td input, .sol-tab td select { min-width: 110px; }
.sol-tab td input[type=date] { min-width: 150px; }
.sol-tab td:first-child { width: 34%; }
.sol-tab td:first-child input { min-width: 260px; }
.sol-tab td:nth-child(3) input { min-width: 130px; }
.sol-tab tr.sua-parte td { background: #FBF3E4; }
.sol-tab tr.sua-parte td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
.sol-rm { min-height: 36px; padding: 6px 10px; white-space: nowrap; }
.sol-vazio { margin: 4px 0 10px; }
.sol-barra { gap: 10px; flex-wrap: wrap; }
.sol-barra .btn-danger { margin-left: auto; min-height: 40px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
input:disabled { background: var(--line-soft); color: var(--ink-soft); cursor: not-allowed; }

/* Portal do cliente */
.so-card .resumo { margin-bottom: 14px; }
.so-sua-t { color: #7A5A12; }
.so-bloco { margin: 0 0 16px; }
.so-bloco h4 { font-family: var(--serif); color: var(--green); font-size: 17px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); }
.so-plano { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-2); margin: 0 0 8px; }
.so-plano > summary { list-style: none; cursor: pointer; padding: 12px 14px; min-height: 48px; display: flex; flex-direction: column; gap: 6px; }
.so-plano > summary::-webkit-details-marker { display: none; }
.so-t { font-weight: 600; color: var(--green); font-size: 16px; overflow-wrap: anywhere; }
.so-t::before { content: "›"; display: inline-block; margin-right: 8px; color: var(--ink-soft); transition: transform .15s; }
.so-plano[open] .so-t::before { transform: rotate(90deg); }
.so-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.so-per { font-size: var(--fs-min); color: var(--ink-soft); font-weight: 500; }
.so-corpo { padding: 2px 14px 14px; border-top: 1px solid var(--line-soft); }
.so-ferr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 12px 0; }
.so-ferr > span { font-size: var(--fs-min); font-weight: 600; color: var(--ink-soft); }
.so-ativ { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.so-ativ li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line-soft); }
.so-ativ li.sua { background: #FBF3E4; border-color: #E6D3A6; box-shadow: inset 4px 0 0 var(--gold); }
.so-ativ li.feita { opacity: .78; }
.so-ativ li.atras .so-at-d { color: #9B2C2C; font-weight: 600; }
.so-at { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.so-at-d { font-size: var(--fs-min); color: var(--ink-soft); white-space: nowrap; }
.so-ok { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; }
.so-sua { font-style: normal; font-size: var(--fs-min); font-weight: 700; color: #7A5A12; background: #fff; border: 1px solid #E6D3A6; border-radius: 99px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
.so-vazio { color: var(--ink-soft); margin: 8px 0 0; }
@media (max-width: 600px) { .so-at-d { white-space: normal; } }

@media (max-width: 700px) {
  .sol-tab { min-width: 0 !important; }
  .sol-tab thead { display: none; }
  .sol-tab, .sol-tab tbody, .sol-tab tr, .sol-tab td { display: block; width: 100% !important; }
  .sol-tab tr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px 10px; margin: 0 0 10px; background: var(--paper-2); }
  .sol-tab tr.sua-parte { background: #FBF3E4; border-color: #E6D3A6; }
  .sol-tab tr.sua-parte td, .sol-tab tr.sua-parte td:first-child { background: none; box-shadow: none; }
  .sol-tab tr.sua-parte { box-shadow: inset 4px 0 0 var(--gold); }
  .sol-tab td { border: 0; padding: 4px 0; }
  .sol-tab td[data-l]::before { content: attr(data-l); display: block; font-size: var(--fs-min); font-weight: 600; color: var(--ink-soft); margin: 4px 0 2px; }
  .sol-tab td input, .sol-tab td select, .sol-tab td:first-child input { min-width: 0 !important; width: 100%; min-height: 44px; }
  .sol-rm { width: 100%; min-height: 40px; margin-top: 6px; }
  .tab-rola:has(.sol-tab) { overflow: visible; border: 0; }
}

/* v2.19.3: primeira visita do cliente. Equipe recolhida, chaves de equipe só para quem já convidou, cronograma aberto. */
.tg-equipe { display: none !important; }
body.tem-equipe .tg-equipe { display: flex !important; }
.eq-box > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.eq-box > summary::-webkit-details-marker { display: none; }
.eq-box > summary h3 { margin: 0; font-size: 16px; }
.eq-box > summary::after { content: "+"; font: 600 20px/1 Inter, system-ui, sans-serif; color: var(--copper); }
.eq-box[open] > summary::after { content: "–"; }
.eq-box[open] > summary { margin-bottom: 8px; }
.cr-versao { font-weight: 400; font-size: var(--fs-min, 13px); color: var(--muted, #5d6b63); margin-left: 8px; }
/* v2.19.3: abertura do briefing no celular, texto alinhado à esquerda para ler mais rápido */
@media (max-width: 560px) { .welcome hr.divider + p { text-align: left; } }
/* v2.19.5: situação longa ("Aguardando: ...") desce para a linha de baixo em vez de espremer o título da etapa */
.tl-top { flex-wrap: wrap; }
.tl-top > h3 { flex: 0 1 auto; min-width: 0; }
.tl-top > .chip { margin-left: auto; }
@media (max-width: 560px) { .tl-top > .chip { margin-left: 0; } }
/* v2.19.5: cadastro do cliente dentro da faixa "Precisa de você" */
.pdv-cad { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.pdv-cad > summary { cursor: pointer; font-weight: 600; font-size: 14.5px; color: var(--green); min-height: 36px; }
.cad-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; margin: 10px 0; }
.cad-campo { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 600; }
.cad-campo input { min-height: 44px; font-size: 15px; }
.cad-acoes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pdv-cad h4 { margin: 12px 0 6px; font-size: 14px; }
.cad-pend { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cad-pend li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.cad-pend li.cad-feita > span { text-decoration: line-through; color: var(--muted, #5d6b63); }
.cad-res { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.cad-resumo { font-weight: 400; font-size: 13px; color: var(--muted, #5d6b63); margin-left: 8px; }
.pdv .cad-acoes .btn-primary { width: auto; flex: none; min-height: 44px; padding: 10px 22px; }

/* v2.22.0: vídeos de orientação (video-guia.js) */
.vg-link { text-align: left; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.vg-link::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; flex: none; }
.vg-fundo { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 24, 22, .72); display: flex; align-items: center; justify-content: center; padding: 12px; }
.vg-caixa { background: #fff; border-radius: 14px; padding: 12px; width: min(420px, 100%); max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.vg-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.vg-topo b { font-size: 16px; }
.vg-fechar { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.vg-caixa video { width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); background: #000; border-radius: 10px; }
.vg-nota { margin: 8px 2px 0; font-size: 13px; color: var(--muted, #5b6460); }
.heroi-video { margin: 8px 0 0; }

/* ---------- v2.22.1 · Responder falando no briefing de diagnóstico ---------- */
.field .mic {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 8px; min-height: 44px; padding: 10px 18px; font-size: 15px;
  background: var(--copper-soft); color: var(--copper-deep); border: 1.5px solid var(--copper);
}
.field .mic:hover { background: var(--copper); color: #fff; }
.field .mic.rec { background: #B3261E; border-color: #B3261E; color: #fff; }
.field .mic-dica { font-size: var(--fs-min, 13px); color: var(--ink-soft); margin: 6px 0 0; line-height: 1.4; }
@media (max-width: 560px) { .field .mic { width: 100%; } }
/* v2.22.7: de quem é a ação na etapa */
.cr-q, .tl-q { font-size: var(--fs-min, 13px); color: var(--green, #1F3A2E); font-weight: 600; margin: 3px 0 0; }
.tl-q { margin: 0 0 6px; }

/* ---------- v2.24.0 · Documentos do projeto (aba única no /admin) e marcos no cronograma do cliente ---------- */
.pt-doc-q { grid-column: 1; font-size: var(--fs-min, 13px); font-weight: 600; color: var(--green); }
.pt-doc-q.cli { color: var(--aten-fg); }
.doc-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.doc-top .doc-add { min-height: 44px; padding: 0 18px; width: auto; flex: none; }
.doc-top .filtro-pills { margin: 0; }
.doc-top .doc-previa { margin-left: auto; min-height: 36px; }
.doc-aviso { max-width: none; margin: 0 0 14px; }
.doc-aviso p { margin: 0; }
.doc-tbw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2); }
.doc-t { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
.doc-t th { text-align: left; background: #F6F3EC; border-bottom: 1px solid var(--line); padding: 0; position: relative; white-space: nowrap; }
.doc-t th.th-acoes { padding: 10px 12px; color: var(--green); font-size: 13.5px; }
.th-btn { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; min-height: 40px; padding: 10px 12px; font-weight: 700; font-size: 13.5px; color: var(--green); }
.th-btn.on { background: #E3ECE5; }
.th-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.th-menu { position: absolute; top: 100%; left: 0; z-index: 20; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 8px; white-space: normal; }
.th-menu button { display: block; width: 100%; text-align: left; min-height: 36px; background: none; border: 0; border-radius: 8px; padding: 6px 10px; font-weight: 600; color: var(--graphite); box-shadow: none; }
.th-menu button:hover { background: #F6F3EC; }
.th-menu label { display: block; font-size: var(--fs-min); font-weight: 600; color: var(--green); margin: 8px 6px 4px; }
.th-menu select { width: 100%; min-height: 36px; }
.doc-t td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft, #EEE9DF); vertical-align: middle; }
.doc-t tr:last-child td { border-bottom: 0; }
.doc-t .doc-dt { white-space: nowrap; }
.doc-t .doc-nm { min-width: 200px; }
.doc-envio[hidden] { display: none; }
.doc-acts .pill-doc, .pill-doc { white-space: nowrap; }
.doc-nm b, .doc-card-t { display: block; color: var(--graphite); overflow-wrap: anywhere; }
.doc-nm span { display: block; font-size: var(--fs-min); color: var(--ink-soft); margin-top: 2px; }
.doc-nm .chip { margin-top: 6px; display: inline-block; }
.doc-sw { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; background: none; border: 0; padding: 0; box-shadow: none; font-weight: 600; font-size: 13.5px; color: var(--cinza-fg); white-space: nowrap; cursor: pointer; }
.doc-sw i { width: 42px; height: 24px; border-radius: 99px; background: #CFC6B4; position: relative; flex: none; transition: background .15s; }
.doc-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.doc-sw.on { color: var(--green); }
.doc-sw.on i { background: var(--green); }
.doc-sw.on i::after { left: 21px; }
.doc-sw:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.doc-conf { background: var(--aten-bg); border: 1px solid #EAD7A8; border-radius: 10px; padding: 8px 10px; margin-top: 6px; max-width: 260px; }
.doc-conf p { margin: 0 0 6px; font-size: var(--fs-min); color: var(--aten-fg); }
.doc-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.doc-acts .pill-doc { min-height: 36px; }
.doc-b { min-height: 36px !important; padding: 4px 12px !important; font-size: 13px !important; width: auto !important; }
.doc-erro { margin: 6px 0 0; font-size: var(--fs-min); }
.doc-filtrado { font-size: var(--fs-min); color: var(--ink-soft); margin: 8px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc-ed-row td { background: var(--paper); }
.doc-ed { margin: 0 0 14px; max-width: 760px; }
.doc-ed h4 { font-family: var(--serif); color: var(--green); margin: 8px 0 0; }
.doc-quem { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 12px; margin: 14px 0 0; }
.doc-quem legend { font-size: var(--fs-min); font-weight: 600; color: var(--green); padding: 0 4px; }
.doc-quem .toggle { min-height: 36px; margin: 2px 0 !important; }
.doc-ed-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.doc-ed-acts .btn-primary { min-height: 44px; }
.doc-ed-acts .btn-ghost { min-height: 40px; }
.doc-excluir { margin-left: auto; color: #9B2C2C !important; }
.doc-excluir.perigo { background: #FBEBEB; border-color: #E8B4B4 !important; }
.doc-cards { display: none; }
.doc-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 10px; }
.doc-card-m { margin: 2px 0; font-size: var(--fs-min); color: var(--ink-soft); }
.doc-card .chip { display: inline-block; margin: 4px 0; }
.doc-card-sw { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.doc-card .doc-b, .doc-card .pill-doc { min-height: 40px !important; }
.doc-card .doc-ed { margin-top: 10px; }
@media (max-width: 760px) {
  .doc-top .doc-add { width: 100%; flex: 1 1 100%; }
  .doc-tabela { display: none; }
  .doc-cards { display: block; }
  .doc-top .doc-previa { margin-left: 0; }
  .doc-top .doc-add { width: 100%; }
}
/* Marcos na linha do tempo do cliente: pontinho cobre na data; cheio = já aconteceu, pontilhado = marcado */
.lt-marcos { position: relative; height: 30px; margin: 22px 0 4px; border-top: 1px dashed #D8D0BF; }
.lt-mk { position: absolute; top: -8px; transform: translateX(-50%); width: 16px; height: 16px; min-height: 0; padding: 0; border-radius: 50%; background: var(--copper); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--copper); cursor: pointer; z-index: 2; }
.lt-mk::before { content: ""; position: absolute; inset: -13px; } /* área de toque de 40 px */
.lt-mk.fut { background: #fff; box-shadow: 0 0 0 1.5px #A89F8C; border: 2px dotted #A89F8C; }
.lt-mk[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--gold); }
.lt-mk:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lt-mk-l { position: absolute; top: 10px; transform: translateX(-50%); font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.lt-pop { position: absolute; top: 26px; left: var(--x); transform: translateX(-50%); z-index: 10; width: 300px; max-width: calc(100vw - 48px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.16); padding: 12px 36px 12px 14px; text-align: left; }
.lt-pop.esq { transform: none; left: 0; }
.lt-pop.dir { transform: none; left: auto; right: 0; }
.lt-pop[hidden] { display: none; }
.lt-pop small { display: block; color: var(--copper-deep); font-weight: 700; font-size: 12.5px; }
.lt-pop b { display: block; font-size: 15px; margin: 2px 0 4px; color: var(--graphite); overflow-wrap: anywhere; }
.lt-pop p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-soft); }
.lt-pop-l { display: flex; gap: 6px; flex-wrap: wrap; }
.lt-pop-l .pill-doc { min-height: 40px; }
.lt-pop-sem { font-size: var(--fs-min); color: var(--ink-soft); }
.lt-pop-x { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; font-size: 22px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.pill-ir { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border-radius: 99px; border: 1px solid #BFD2C4; background: #E3ECE5; color: var(--green); font-weight: 600; font-size: 13.5px; box-shadow: none; cursor: pointer; width: auto; }
@media (max-width: 700px) { .lt-pop, .lt-pop.esq, .lt-pop.dir { left: 0; right: 0; transform: none; width: auto; max-width: none; } }
.doc-t th { white-space: normal; }
.doc-t td, .th-btn { padding-left: 10px; padding-right: 10px; }
.doc-t .chip { white-space: normal; }

/* v2.25.2: "Por que a gente pergunta" e botões de escolha no briefing */
.field .porque { margin: 2px 0 8px; font-size: var(--fs-min, 13px); line-height: 1.45; color: var(--ink-soft); }
.field .porque b { font-weight: 600; color: var(--green, #1F3A2E); }
.escolhas { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.escolha { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line, #d9d6cc); background: #fff; color: var(--ink, #2B2B2B); font: inherit; font-size: 14px; cursor: pointer; }
.escolha.on { background: var(--green, #1F3A2E); border-color: var(--green, #1F3A2E); color: #F4F1EA; font-weight: 600; }
.escolha:focus-visible { outline: 2px solid var(--copper, #B8935A); outline-offset: 2px; }
