/* Área do cliente · mesma identidade do site: ardósia das fotos, marfim e dourado das joias. */
:root {
  --bg: #222c2e;
  --bg-deep: #1a2224;
  --raised: #283436;
  --ink: #edebe6;
  --muted: #a4aeae;
  --line: #3a4749;
  --accent: #c9ab73;
  --ok: #8fb59a;
  --warn: #d4b56a;
  --done: #8d9898;
  --danger: #e0907e;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  display: flex; flex-direction: column;
}
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap {
  width: 100%; max-width: 64rem; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap.wide { max-width: 76rem; }

header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.25rem; flex-wrap: wrap; }
.mark { font-family: var(--display); font-size: 1.2rem; text-decoration: none; }
.mark small { font-family: var(--body); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-left: .8rem; }
.top-actions { display: flex; gap: 1.25rem; align-items: center; font-size: .85rem; }

main { flex: 1; }
footer.bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
footer.bottom .wrap { padding-block: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.eyebrow { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; margin: 0; }
.muted { color: var(--muted); }

/* Botões e campos */
.btn {
  font: inherit; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  background: var(--ink); color: var(--bg-deep); border: 0; padding: .85rem 1.4rem; cursor: pointer;
  text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--accent); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { padding: .5rem .9rem; font-size: .72rem; }
.linkbtn {
  font: inherit; font-size: .85rem; background: none; border: 0; padding: 0; color: var(--muted);
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.linkbtn:hover { color: var(--ink); }
.linkbtn.danger:hover { color: var(--danger); }
label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
input, select, textarea {
  font: inherit; width: 100%; color: var(--ink); background: var(--bg-deep);
  border: 1px solid var(--line); padding: .75rem .85rem; border-radius: 0;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 5rem; }
.field { min-width: 0; }
.msg { font-size: .9rem; margin: 0; min-height: 1.4em; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }

/* Login */
.login { padding-block: clamp(3rem, 10vw, 6rem); }
.login-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 4rem; align-items: start; }
.login-copy p { max-width: 30rem; margin: 1.25rem 0 0; }
.login-form { display: grid; gap: 1.25rem; padding: 2rem; background: var(--raised); border: 1px solid var(--line); }
.login-form .help { font-size: .85rem; color: var(--muted); margin: 0; }

/* Situação */
.chip {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; white-space: nowrap; color: var(--muted);
}
.chip::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.chip[data-s="Em andamento"] { color: var(--ok); }
.chip[data-s="Suspenso"] { color: var(--warn); }
.chip[data-s="Encerrado"] { color: var(--done); }

.num { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.date { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* Linha do tempo de andamentos */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.timeline li.latest .txt { color: var(--ink); }
.timeline li:not(.latest) .txt { color: var(--muted); }

.notice {
  border: 1px solid var(--line); border-left: 2px solid var(--accent); background: var(--raised);
  padding: .8rem 1rem; font-size: .88rem; color: var(--muted);
}

@media (max-width: 760px) {
  .login-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .login-form { padding: 1.5rem; }
  .timeline li { grid-template-columns: 1fr; gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Tabelas de valores (acordo e mensalidades) */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; min-width: 22rem; }
.tbl th { text-align: left; font-weight: 500; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: .75rem .75rem .75rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; padding-right: 1.5rem; }
.tbl tfoot td { border-top: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-size: .85rem; }

.pay { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.pay::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.pay[data-s="Paga"] { color: var(--ok); }
.pay[data-s="A vencer"] { color: var(--muted); }
.pay[data-s="Vencida"] { color: var(--danger); }

.tag {
  display: inline-block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--muted); padding: .2rem .5rem; white-space: nowrap;
}
.tag.accent { border-color: var(--accent); color: var(--accent); }

.pending { padding-block: clamp(3rem, 10vw, 6rem); max-width: 36rem; display: grid; gap: 1.25rem; }
