/* ==========================================================================
   Ofício — design system
   Neutro, tipográfico, bordas finas. Uma cor de marca (verde Ofício) usada com parcimônia.
   ========================================================================== */
:root {
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --hover: rgba(0, 0, 0, .04);
  --active: rgba(0, 0, 0, .06);
  --line: rgba(0, 0, 0, .08);
  --line-strong: rgba(0, 0, 0, .14);
  --text: #0a0a0a;
  --text-2: #525252;
  --text-3: #8a8a8a;
  --primary: #0a0a0a;
  --primary-hover: #262626;
  --on-primary: #ffffff;
  --brand: #0f9d6b;
  --brand-soft: rgba(15, 157, 107, .10);
  --link: #0a0a0a;
  --star: #f5a524;

  --gray: #a1a1aa; --blue: #3b82f6; --amber: #f59e0b; --green: #10b981; --red: #ef4444; --violet: #8b5cf6;
  --bad: #dc2626; --bad-soft: rgba(220, 38, 38, .08);
  --warn: #b45309; --warn-soft: rgba(245, 158, 11, .10);

  --r-lg: 12px; --r: 8px; --r-sm: 6px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px -2px rgba(0, 0, 0, .06);
  --shadow-lg: 0 0 0 1px var(--line), 0 16px 48px -12px rgba(0, 0, 0, .22), 0 4px 12px -4px rgba(0, 0, 0, .08);
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px rgba(59, 130, 246, .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --bg-subtle: #0f0f10; --surface: #111112; --surface-2: #19191b;
    --hover: rgba(255, 255, 255, .05); --active: rgba(255, 255, 255, .08);
    --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .16);
    --text: #ededed; --text-2: #a1a1a1; --text-3: #6f6f6f;
    --primary: #ededed; --primary-hover: #ffffff; --on-primary: #0a0a0a;
    --brand: #34d399; --brand-soft: rgba(52, 211, 153, .12); --link: #ededed;
    --bad: #f87171; --bad-soft: rgba(248, 113, 113, .1); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .1);
    --shadow-lg: 0 0 0 1px var(--line), 0 16px 48px -12px rgba(0, 0, 0, .7);
    --ring: 0 0 0 2px var(--bg), 0 0 0 4px rgba(96, 165, 250, .6);
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "ss01", "cv11"; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
::selection { background: rgba(15, 157, 107, .2); }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 24px; letter-spacing: -.03em; }
h2 { font-size: 15px; }
h3 { font-size: 14px; }
p { margin: 0; }
.muted { color: var(--text-2); }
.subtle { color: var(--text-3); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12px; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon.sm { width: 14px; height: 14px; vertical-align: -2px; }
.icon.lg { width: 20px; height: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.skip:focus { top: 12px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 16px; }
kbd { font: 500 11px var(--mono); color: var(--text-3); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; background: var(--surface); }

/* ---------- marca ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; color: var(--text); letter-spacing: -.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { position: relative; width: 22px; height: 22px; border-radius: 6px; background: var(--primary); display: grid; place-items: center; }
.logo-mark::before { content: ""; width: 9px; height: 9px; border: 2px solid var(--on-primary); border-radius: 50%; }
.logo-mark::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1.5px var(--primary); }
.logo-mark .icon { display: none; }

/* ---------- botões ---------- */
.btn { --h: 34px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--h); padding: 0 12px;
  border-radius: var(--r); border: 1px solid transparent; background: var(--primary); color: var(--on-primary); font: 500 13.5px/1 var(--font);
  cursor: pointer; white-space: nowrap; user-select: none; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .08s; }
.btn:hover { background: var(--primary-hover); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { box-shadow: var(--ring); border-radius: var(--r); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.btn.secondary:hover { background: var(--bg-subtle); border-color: var(--line-strong); }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.danger { background: transparent; color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.danger-solid { background: var(--bad); color: #fff; }
.btn.danger-solid:hover { filter: brightness(.92); }
.btn.success { background: var(--brand); color: #fff; }
.btn.whatsapp { background: #1fa855; color: #fff; }
.btn.whatsapp:hover { background: #1a9049; }
.btn.sm { --h: 28px; padding: 0 9px; font-size: 13px; gap: 5px; border-radius: var(--r-sm); }
.btn.lg { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.btn.block { width: 100%; }
.btn.icon-only { width: var(--h); padding: 0; }
.btn .kbd-hint { margin-left: 4px; opacity: .55; font: 500 11px var(--mono); }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading > * { visibility: hidden; }
.btn.loading::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.75px solid currentColor; border-color: var(--on-primary); border-right-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; }
.btn.secondary.loading::after, .btn.ghost.loading::after { border-color: var(--text); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- formulários ---------- */
label { display: block; font-size: 13px; font-weight: 500; color: var(--text); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field .opt { color: var(--text-3); font-weight: 400; }
input, select, textarea { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface);
  color: var(--text); font: 14px var(--font); box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input:hover, select:hover, textarea:hover { border-color: rgba(0, 0, 0, .22); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--text-3); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
select { appearance: none; padding-right: 30px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; cursor: pointer; min-height: 40px; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); box-shadow: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field-err { color: var(--bad); font-size: 12.5px; }
.field-err:empty { display: none; }
.hint { font-size: 12.5px; color: var(--text-3); font-weight: 400; }
.pw { position: relative; }
.pw input { padding-right: 40px; }
.pw button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.msg { display: none; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r); font-size: 13px; margin-bottom: 14px; border: 1px solid; }
.msg.show { display: flex; animation: rise .2s var(--ease); }
.msg.error { background: var(--bad-soft); color: var(--bad); border-color: rgba(220, 38, 38, .2); }
.msg.success { background: var(--brand-soft); color: var(--brand); border-color: rgba(15, 157, 107, .25); }

/* ---------- elementos ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 48px; }
.card-head h2 { font-size: 13.5px; }
.card-body { padding: 16px; }

/* status: ponto + texto */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; --dot: var(--gray); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 18%, transparent); }
.s-enviado, .s-agendado { --dot: var(--blue); }
.s-aprovado, .s-pendente { --dot: var(--amber); }
.s-concluido, .s-pago { --dot: var(--green); }
.s-recusado, .s-cancelado { --dot: var(--red); }
.badge.verified { color: var(--brand); }
.badge.verified::before { display: none; }
.badge.plain::before { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--surface); }

.stars { display: inline-flex; gap: 1px; color: var(--star); vertical-align: -2px; }
.stars svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.stars .off { color: var(--line-strong); }
.rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.rating .count { color: var(--text-3); font-weight: 400; }

.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 600; font-size: 13px; color: var(--text-2);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-subtle)); box-shadow: inset 0 0 0 1px var(--line); }
.avatar.lg { width: 72px; height: 72px; font-size: 24px; border-radius: 16px; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }

.empty { text-align: center; padding: 48px 24px; color: var(--text-2); }
.empty > .icon { width: 20px; height: 20px; color: var(--text-2); margin-bottom: 14px; padding: 10px; box-sizing: content-box; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.empty h3 { margin-bottom: 4px; }
.empty p { max-width: 340px; margin: 0 auto; }
.empty .btn { margin-top: 18px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--text-3); padding: 9px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }

/* ---------- linhas (listas do painel) ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.rows { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-xs); overflow: hidden; }
.rows-head { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--bg-subtle); font-size: 12px; color: var(--text-3); font-weight: 500; }
.r { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 12px 16px; border-top: 1px solid var(--line); transition: background .12s; position: relative; }
.r:first-child, .rows-head + .r { border-top: 0; }
.r:hover { background: var(--bg-subtle); }
.r .main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.r .title { font-weight: 500; color: var(--text); }
.r .meta { font-size: 12.5px; color: var(--text-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.r .meta .sep::before { content: "·"; }
.r .side { display: flex; align-items: center; gap: 16px; justify-content: flex-end; }
.r .amt { font-weight: 550; font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
.r .st { min-width: 96px; }
.r .extra { grid-column: 1 / -1; margin-top: 6px; }
.r.late .due { color: var(--bad); }
.date-chip { width: 40px; flex: none; text-align: center; border-radius: var(--r); border: 1px solid var(--line); padding: 3px 0 4px; line-height: 1.1; background: var(--surface); }
.date-chip span { display: block; font-size: 10px; text-transform: uppercase; font-weight: 600; color: var(--brand); letter-spacing: .04em; }
.date-chip b { display: block; font-size: 15px; font-weight: 600; }
.list-empty { padding: 28px 16px; text-align: center; color: var(--text-3); font-size: 13px; }
.inline-cta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); padding: 6px 6px 6px 10px; border-radius: var(--r); background: var(--brand-soft); }
.inline-cta .icon { color: var(--brand); }
.inline-cta.done { background: transparent; padding-left: 0; }

/* abas de filtro (estilo "views") */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; height: 36px; padding: 0 10px; background: none; border: 0; color: var(--text-3); font: 500 13px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { color: var(--text); }
.tab[aria-pressed="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--text); border-radius: 2px; }
.tab .n { font: 500 11px var(--mono); color: var(--text-3); background: var(--surface-2); border-radius: 4px; padding: 1px 5px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.search-input { position: relative; flex: 1 1 240px; max-width: 340px; }
.search-input .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search-input input { padding-left: 32px; }

/* menu de ações */
.menu { position: fixed; z-index: 60; min-width: 210px; padding: 4px; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-lg); animation: pop .14s var(--ease); }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 10px; border: 0; background: none; border-radius: var(--r-sm); color: var(--text); font: 13.5px var(--font); cursor: pointer; text-align: left; }
.menu button:hover, .menu a:hover, .menu button:focus-visible, .menu a:focus-visible { background: var(--hover); text-decoration: none; box-shadow: none; }
.menu .icon { color: var(--text-3); }
.menu .danger { color: var(--bad); }
.menu .danger .icon { color: var(--bad); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px -4px; }
.menu .label { padding: 6px 10px 4px; font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.menu .on::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

/* ---------- diálogos, toasts, paleta ---------- */
dialog { border: 0; padding: 0; border-radius: 14px; background: var(--surface); color: var(--text); width: min(540px, calc(100vw - 24px)); box-shadow: var(--shadow-lg); max-height: calc(100vh - 48px); }
dialog[open] { animation: pop .18s var(--ease); }
dialog.sm { width: min(400px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(0, 0, 0, .32); backdrop-filter: blur(2px); animation: fade .18s; }
dialog .d-head { display: flex; align-items: center; gap: 8px; padding: 16px 20px 0; }
dialog .d-head h2 { font-size: 15px; }
dialog .d-body { padding: 16px 20px 6px; }
dialog .d-body > p { color: var(--text-2); margin-bottom: 12px; }
dialog .d-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--bg-subtle); border-radius: 0 0 14px 14px; flex-wrap: wrap; }
dialog .d-foot .hint { margin-right: auto; }
@keyframes fade { from { opacity: 0; } }

.cmd { width: min(560px, calc(100vw - 24px)); margin-top: 12vh; }
.cmd .cmd-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.cmd .cmd-input input { border: 0; box-shadow: none; height: 50px; padding: 0; font-size: 15px; background: transparent; }
.cmd .cmd-input .icon { color: var(--text-3); }
.cmd ul { list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow-y: auto; }
.cmd li { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: var(--r); cursor: pointer; color: var(--text); }
.cmd li .icon { color: var(--text-3); }
.cmd li[aria-selected="true"] { background: var(--active); }
.cmd li .group { margin-left: auto; font-size: 12px; color: var(--text-3); }
.cmd .cmd-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); background: var(--bg-subtle); border-radius: 0 0 14px 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 500; transform: translate(-50%, 12px); opacity: 0; transition: transform .25s var(--ease), opacity .2s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast .icon { color: var(--brand); }
.toast.error .icon { color: var(--bad); }

.skel { border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2) 25%, var(--hover) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
.skel-line { height: 12px; margin: 8px 0; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.enter { animation: fade .25s ease both; }
.auth-card.enter { animation: rise .3s var(--ease) both; }

/* ==========================================================================
   Área pública
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.8) blur(14px); -webkit-backdrop-filter: saturate(1.8) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.site-nav a:not(.btn) { color: var(--text-2); font-size: 13.5px; padding: 6px 10px; border-radius: var(--r-sm); white-space: nowrap; transition: color .15s; }
.site-nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.site-nav .push { margin-left: auto; }
.site-nav .btn { margin-left: 6px; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 720px; }
.page { padding: 48px 0 80px; background: var(--bg-subtle); min-height: calc(100vh - 60px - 77px); }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .inner { max-width: 1120px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; color: var(--text-3); font-size: 13px; }
.site-footer nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }

.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%); }

.hero { padding: 96px 0 40px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 12.5px; color: var(--text-2); box-shadow: var(--shadow-xs); margin-bottom: 24px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.display { font-size: clamp(38px, 6.2vw, 68px); font-weight: 650; letter-spacing: -.045em; line-height: 1.02; max-width: 900px; margin: 0 auto; }
.display .dim { color: var(--text-3); }
.hero .lead, .lead { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 580px; margin: 22px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 12.5px; color: var(--text-3); }

.frame { max-width: 1000px; margin: 64px auto 0; border-radius: 16px; padding: 6px; background: linear-gradient(180deg, var(--line), transparent); }
.frame-in { border-radius: 12px; background: var(--bg-subtle); border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .25); overflow: hidden; text-align: left; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.frame-bar span { margin: 0 auto; font: 12px var(--mono); color: var(--text-3); }
.frame-body { display: grid; grid-template-columns: 180px 1fr; min-height: 340px; }
.frame-side { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; align-content: start; gap: 2px; background: var(--surface); }
.frame-side span { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; border-radius: var(--r-sm); font-size: 13px; color: var(--text-2); }
.frame-side span.on { background: var(--active); color: var(--text); font-weight: 500; }
.frame-main { padding: 22px; display: grid; gap: 16px; align-content: start; }
.frame-note { display: block; text-align: center; font-size: 12px; color: var(--text-3); margin-top: 12px; }

.section { padding: 112px 0 0; }
.section-head { max-width: 600px; margin-bottom: 40px; }
.section-head .kicker { font: 500 12px var(--mono); color: var(--brand); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; display: block; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 650; letter-spacing: -.035em; line-height: 1.1; }
.section-head p { color: var(--text-2); margin-top: 14px; font-size: 16px; line-height: 1.6; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.step { padding: 28px; }
.step + .step { border-left: 1px solid var(--line); }
.step .n { font: 500 12px var(--mono); color: var(--text-3); display: block; margin-bottom: 36px; }
.step h3 { font-size: 16px; }
.step p { color: var(--text-2); margin-top: 8px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.bento > div { background: var(--surface); padding: 28px; min-height: 200px; display: flex; flex-direction: column; }
.bento .wide { grid-column: span 2; }
.bento .ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--line); box-shadow: var(--shadow-xs); color: var(--text); margin-bottom: auto; }
.bento h3 { font-size: 15px; margin-top: 28px; }
.bento p { color: var(--text-2); margin-top: 6px; }
.bento .demo { margin-top: 20px; display: grid; gap: 8px; }

.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.audience > div { background: var(--surface); padding: 36px; display: flex; flex-direction: column; gap: 10px; }
.audience .tag { font: 500 12px var(--mono); color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
.audience h3 { font-size: 22px; letter-spacing: -.03em; line-height: 1.2; }
.audience p { color: var(--text-2); }
.audience .btn { align-self: flex-start; margin-top: 14px; }

.final-cta { margin-top: 112px; padding: 96px 24px; text-align: center; border-top: 1px solid var(--line); }
.final-cta h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 650; letter-spacing: -.04em; }
.final-cta p { color: var(--text-2); margin-top: 12px; font-size: 16px; }

/* autenticação */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 28px 16px 40px; background: var(--bg-subtle); }
.auth > .logo { margin-bottom: 48px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 32px; }
.auth-card h1 { font-size: 22px; }
.auth-card > p.muted { margin: 6px 0 24px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-2); }
.auth-alt a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.legal { font-size: 12.5px; color: var(--text-3); margin-top: 16px; text-align: center; }
.auth-points { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 28px; font-size: 12.5px; color: var(--text-3); }
.auth-points span { display: inline-flex; align-items: center; gap: 6px; }
.auth-points .icon { color: var(--brand); }

/* busca pública */
.search-bar { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 5px; box-shadow: var(--shadow-sm); max-width: 640px; margin: 32px auto 0; }
.search-bar .seg { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 10px; min-width: 0; color: var(--text-3); }
.search-bar .seg + .seg { border-left: 1px solid var(--line); }
.search-bar input { border: 0; box-shadow: none; padding: 0; height: 40px; background: transparent; }
.search-bar input:focus { box-shadow: none; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; margin: 48px 0 14px; }
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pro-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; color: inherit; transition: border-color .15s, box-shadow .2s, transform .2s var(--ease); }
.pro-card:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.pro-card .top { display: flex; gap: 12px; align-items: center; }
.pro-card .meta { color: var(--text-3); font-size: 13px; }
.pro-card .bio { color: var(--text-2); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pro-card .foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; font-size: 13px; }
.pro-card .cta { color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }

/* perfil público */
.profile-hero { display: flex; gap: 20px; align-items: flex-start; padding: 28px; }
.profile-hero .info { flex: 1; min-width: 0; }
.profile-hero h1 { font-size: 26px; }
.profile-hero .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--text-2); font-size: 13.5px; margin: 8px 0 14px; }
.profile-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-hero .bio { color: var(--text-2); max-width: 560px; line-height: 1.6; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stats > div { padding: 16px 28px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats .lbl { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.reviews { list-style: none; margin: 0; padding: 0; }
.review { padding: 18px 20px; border-top: 1px solid var(--line); display: flex; gap: 12px; }
.review:first-child { border-top: 0; }
.review .body { flex: 1; min-width: 0; }
.review .who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.review .who b { font-size: 13.5px; font-weight: 600; }
.review p { margin-top: 6px; line-height: 1.6; }
.review .svc { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }

/* documentos públicos */
.doc-head { padding: 28px; border-bottom: 1px solid var(--line); }
.doc-head .from { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); margin-bottom: 18px; }
.doc-head h1 { font-size: 22px; }
.doc-body table th { background: var(--bg-subtle); }
.doc-body table td, .doc-body table th { padding-left: 28px; padding-right: 28px; }
.doc-body .num { text-align: right; }
.doc-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 28px; border-top: 1px solid var(--line); font-weight: 500; color: var(--text-2); }
.doc-total b { font-size: 24px; letter-spacing: -.03em; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-notes { padding: 18px 28px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; white-space: pre-wrap; background: var(--bg-subtle); }
.doc-actions { padding: 18px 28px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.amount { font-size: 44px; font-weight: 650; letter-spacing: -.045em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.pix { margin-top: 22px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--bg-subtle); }
.pix code { display: block; font: 500 14px var(--mono); word-break: break-all; margin: 8px 0 14px; color: var(--text); }
.center-card { max-width: 480px; margin: 0 auto; }

.rate { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; margin: 6px 0 22px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { cursor: pointer; color: var(--line-strong); padding: 2px; border-radius: var(--r); transition: color .12s, transform .12s var(--ease); }
.rate label svg { width: 36px; height: 36px; fill: currentColor; stroke: none; display: block; }
.rate label:hover { transform: scale(1.08); }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--star); }
.rate input:focus-visible + label { box-shadow: var(--ring); }

/* ==========================================================================
   Painel
   ========================================================================== */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; background: var(--bg-subtle); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; border-right: 1px solid var(--line); background: var(--bg-subtle); }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.side-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--text-3); font: 13px var(--font); cursor: pointer; box-shadow: var(--shadow-xs); }
.side-search:hover { border-color: var(--line-strong); color: var(--text-2); }
.side-search kbd { margin-left: auto; }
.nav-group { display: grid; gap: 1px; margin-bottom: 14px; }
.nav-label { font-size: 11.5px; font-weight: 500; color: var(--text-3); padding: 4px 8px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text-2); font: 500 13.5px var(--font); cursor: pointer; text-align: left; transition: background .12s, color .12s; }
.nav-item:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav-item.on { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line), var(--shadow-xs); }
.nav-item .icon { color: var(--text-3); }
.nav-item.on .icon { color: var(--text); }
.nav-item .count { margin-left: auto; font: 500 11px var(--mono); color: var(--text-3); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; }
.me { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: var(--r); background: none; cursor: pointer; text-align: left; color: var(--text); font: inherit; }
.me:hover { background: var(--hover); }
.me b { font-size: 13px; font-weight: 500; display: block; }
.me span { font-size: 12px; color: var(--text-3); display: block; }
.me > div { min-width: 0; flex: 1; }
.me b, .me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 24px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-subtle) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-3); min-width: 0; }
.crumbs b { color: var(--text); font-weight: 500; }
.topbar .logo { display: none; }
.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.content { width: 100%; max-width: 1040px; margin: 0 auto; padding: 32px 24px 80px; outline: none; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.ph p { color: var(--text-2); margin-top: 6px; }

.statstrip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-xs); margin-bottom: 24px; overflow: hidden; }
.stat { padding: 16px 18px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .k { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.stat .v { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.035em; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .s { font-size: 12px; color: var(--text-3); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); overflow: hidden; display: flex; flex-direction: column; }
.panel .card-head { min-height: 44px; padding: 8px 8px 8px 16px; }
.panel .r { padding: 10px 16px; }
.panel .r .amt { min-width: 0; }

.checklist { display: grid; grid-template-columns: auto 1fr; gap: 16px 24px; align-items: center; padding: 18px 20px; margin-bottom: 24px; }
.ring { --p: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--mono); background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; }
.tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.tasks li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.tasks .dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px dashed var(--text-3); display: grid; place-items: center; flex: none; }
.tasks li.done { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.tasks li.done .dot { border: 0; background: var(--brand); color: #fff; }
.tasks li.done .dot .icon { width: 10px; height: 10px; stroke-width: 3; }
.tasks button { all: unset; cursor: pointer; color: var(--text); font-weight: 500; }
.tasks button:hover { text-decoration: underline; text-underline-offset: 3px; }
.tasks button:focus-visible { box-shadow: var(--ring); border-radius: 4px; }

.share { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-top: 16px; font-size: 13.5px; }
.share .url { flex: 1; min-width: 0; font: 13px var(--mono); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r); background: var(--warn-soft); color: var(--warn); font-size: 13.5px; margin-bottom: 16px; border: 1px solid rgba(245, 158, 11, .25); }
.alert button { all: unset; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.rating-summary { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 24px; align-items: center; margin-bottom: 16px; }
.rating-summary .big { font-size: 48px; font-weight: 650; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 7px; }
.bars div { display: grid; grid-template-columns: 24px 1fr 28px; gap: 10px; align-items: center; font: 12px var(--mono); color: var(--text-3); }
.bars i { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bars i b { display: block; height: 100%; background: var(--text); border-radius: 999px; transition: width .6s var(--ease); }

.settings { display: grid; gap: 0; }
.set { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.set:first-child { border-top: 0; padding-top: 0; }
.set .about h2 { font-size: 14px; }
.set .about p { color: var(--text-2); margin-top: 6px; font-size: 13px; }
.set .fields { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 20px 6px; box-shadow: var(--shadow-xs); }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.items-head, .item-row { display: grid; grid-template-columns: 1fr 64px 108px 28px; gap: 6px; align-items: center; }
.items-head { font-size: 12px; color: var(--text-3); font-weight: 500; margin-bottom: 6px; }
.item-row { margin-bottom: 6px; animation: rise .2s var(--ease); }
.total-line { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 2px; margin: 8px 0 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.total-line b { font-size: 20px; font-weight: 600; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }

.tabbar { display: none; }
.fab-label { }

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
  .statstrip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .wide { grid-column: span 2; }
  .set { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 860px) {
  .dash-grid { grid-template-columns: 1fr; }
  .rating-summary { grid-template-columns: 1fr; gap: 20px; }
  .frame-body { grid-template-columns: 1fr; }
  .frame-side { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .step .n { margin-bottom: 14px; }
  .audience { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 0 8px 0 16px; height: 54px; background: color-mix(in srgb, var(--bg) 88%, transparent); }
  .topbar .logo { display: inline-flex; }
  .topbar .crumbs { display: none; }
  .topbar .btn { --h: 40px; }
  .content { padding: 20px 16px 120px; }
  .ph h1 { font-size: 22px; }
  .ph .ph-action { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 25; --h: 52px; width: 52px; padding: 0; border-radius: 16px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45); }
  .ph .ph-action .fab-label, .ph .ph-action .kbd-hint { display: none; }
  .ph .ph-action .icon { width: 22px; height: 22px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 24; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 54px; border: 0; background: none; color: var(--text-3); font: 500 10.5px var(--font); cursor: pointer; border-radius: 10px; }
  .tabbar button .icon { width: 21px; height: 21px; }
  .tabbar button.on { color: var(--text); }
  .statstrip .stat { padding: 14px; }
  .stat .v { font-size: 19px; }
  .r { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 12px 14px 16px; }
  .r .side { gap: 6px; }
  .r .st { display: none; }
  .r .amt { min-width: 0; }
  .r .meta .badge { display: inline-flex; }
  .btn.sm { --h: 36px; }
  .btn.icon-only.sm { width: 36px; }
  .tab { height: 42px; }
  .search-input { max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
  .items-head, .item-row { grid-template-columns: 1fr 52px 84px 36px; }
  input, select, textarea { height: 42px; font-size: 16px; }
  textarea { height: auto; }
  .menu { left: 8px !important; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); top: auto !important; min-width: 0; max-height: calc(100vh - 24px); overflow-y: auto; padding: 6px; border-radius: 14px; animation: sheet .22s var(--ease); }
  .menu button, .menu a { height: 46px; font-size: 15px; }
  @keyframes sheet { from { transform: translateY(16px); opacity: 0; } }
  dialog { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  dialog .d-foot { border-radius: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  dialog .d-foot .btn { flex: 1; --h: 44px; }
  .cmd { margin-top: auto; }
  .checklist { grid-template-columns: 1fr; }
  .save-bar .btn { flex: 1; --h: 44px; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .auth .toast, .page .toast { bottom: 24px; }

  .site-header .inner { padding: 0 16px; gap: 8px; }
  .site-nav .hide-sm { display: none; }
  .site-nav a:not(.btn) { padding: 6px 8px; }
  .container { padding: 0 16px; }
  .hero { padding: 56px 0 24px; }
  .hero .lead { font-size: 16px; }
  .cta-row .btn { flex: 1 1 100%; }
  .frame { margin-top: 44px; }
  .frame-main { padding: 14px; }
  .frame .statstrip .stat:nth-child(n+3) { display: none; }
  .section { padding-top: 80px; }
  .bento { grid-template-columns: 1fr; }
  .bento .wide { grid-column: auto; }
  .bento > div { min-height: 0; padding: 22px; }
  .audience > div { padding: 24px; }
  .final-cta { margin-top: 80px; padding: 64px 16px; }
  .final-cta .btn { width: 100%; }
  .auth-card { padding: 24px 20px; }
  .search-bar { flex-direction: column; align-items: stretch; padding: 6px; }
  .search-bar .seg + .seg { border-left: 0; border-top: 1px solid var(--line); }
  .search-bar .btn { margin-top: 4px; }
  .profile-hero { flex-direction: column; padding: 22px; gap: 14px; }
  .profile-hero .btn { width: 100%; }
  .stats > div { padding: 14px 16px; }
  .stats b { font-size: 18px; }
  .doc-head, .doc-total, .doc-notes, .doc-actions { padding-left: 20px; padding-right: 20px; }
  .doc-body table td, .doc-body table th { padding-left: 14px; padding-right: 14px; }
  .doc-actions .btn { flex: 1 1 100%; }
  .amount { font-size: 36px; }
  .site-footer nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* utilitários de visibilidade */
@media (min-width: 761px) { .only-m { display: none !important; } }
@media (max-width: 760px) { .only-d { display: none !important; } }

/* ==========================================================================
   Recursos: diretório, pedidos, respostas, calendário, histórico, relatórios
   ========================================================================== */
.pro-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pro-card .pro-badges { margin-top: 0; }
.pro-badges .pill .icon { color: var(--brand); }
.reply { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--line-strong); background: var(--bg-subtle); border-radius: 0 var(--r) var(--r) 0; font-size: 13.5px; }
.reply b { font-size: 12.5px; font-weight: 600; }
.reply p { margin-top: 4px !important; color: var(--text-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 20px; }
.cat-chips .pill { height: 30px; padding: 0 12px; font-size: 13px; color: var(--text); }
.cat-chips .pill:hover { border-color: var(--text-3); text-decoration: none; }
.sort-form select { width: auto; height: 32px; font-size: 13px; }
.rank-note { margin-top: 16px; }
.results-head { gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dir-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 14px 16px; color: inherit; transition: border-color .15s; }
.dir-item:hover { border-color: var(--line-strong); text-decoration: none; }
.dir-item .icon { grid-row: span 2; color: var(--text-3); }
.crumbs-public { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.crumbs-public a { color: var(--text-2); }

/* lembretes */
.reminders { margin-bottom: 24px; }
.reminders .r .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); color: var(--text-2); background: var(--surface); }
.reminders .r .ic.warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.reminders .r .ic.new { color: var(--brand); background: var(--brand-soft); border-color: transparent; }
.reminders .side { gap: 6px; }

/* segmentado (Lista | Mês) */
.seg-ctrl { display: inline-flex; padding: 2px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.seg-ctrl button { height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font: 500 13px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.seg-ctrl button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs), 0 0 0 1px var(--line); }

/* calendário */
.cal { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-xs); }
.cal-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.cal-head h2 { font-size: 15px; margin-right: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 8px 10px; font-size: 11.5px; font-weight: 500; color: var(--text-3); border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .04em; }
.cal-day { min-height: 96px; padding: 6px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 3px; font: inherit; color: var(--text); min-width: 0; transition: background .12s; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:hover { background: var(--bg-subtle); }
.cal-day.out { color: var(--text-3); background: var(--bg-subtle); }
.cal-day .d { font: 500 12.5px var(--mono); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .d { background: var(--primary); color: var(--on-primary); }
.cal-day[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--text); }
.cal-ev { font-size: 11.5px; line-height: 1.3; padding: 2px 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 2px solid var(--dot, var(--blue)); }
.cal-more { font-size: 11px; color: var(--text-3); padding-left: 6px; }
.cal-dots { display: none; gap: 3px; padding-left: 4px; }
.cal-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--dot, var(--blue)); }
.day-panel { margin-top: 16px; }

/* histórico do cliente */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; margin-bottom: 16px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.back:hover { color: var(--text); }
.back .icon { transform: rotate(180deg); }
.client-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.client-head .avatar { width: 52px; height: 52px; font-size: 18px; }
.client-head .grow p { color: var(--text-2); margin-top: 4px; }
.timeline .r .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid var(--line); color: var(--text-2); background: var(--surface); }

/* relatórios */
.chart { padding: 20px 20px 12px; }
.chart-plot { position: relative; height: 200px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 10px; padding-top: 8px;
  background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 50px); border-bottom: 1px solid var(--line-strong); }
.bar { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.bar i { display: block; width: min(36px, 70%); min-height: 2px; background: var(--brand); border-radius: 4px 4px 0 0; transition: height .5s var(--ease), opacity .15s; }
.chart-plot:hover .bar i { opacity: .45; }
.chart-plot .bar:hover i, .chart-plot .bar:focus-visible i { opacity: 1; }
.bar .tip { position: absolute; bottom: calc(var(--h) + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--surface); box-shadow: var(--shadow-lg); border-radius: 8px; padding: 6px 9px; font-size: 12px; pointer-events: none; opacity: 0; transition: opacity .12s; z-index: 2; }
.bar .tip b { display: block; font-size: 13px; font-variant-numeric: tabular-nums; }
.bar:hover .tip, .bar:focus-visible .tip { opacity: 1; }
.chart-x { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 8px; font: 11.5px var(--mono); color: var(--text-3); text-align: center; text-transform: capitalize; }
.share-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.share-bar b { display: block; height: 100%; background: var(--text-3); border-radius: 999px; }
.badge-goals { display: grid; gap: 8px; }
.badge-goals li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.badge-goals .icon { color: var(--brand); }
.badge-goals .todo { color: var(--text-3); }
.badge-goals .todo .icon { color: var(--text-3); }

@media (max-width: 760px) {
  .cal-day { min-height: 54px; padding: 4px; align-items: center; }
  .cal-ev, .cal-more { display: none; }
  .cal-dots { display: flex; }
  .cal-dow { padding: 6px 0; text-align: center; font-size: 10.5px; }
  .chart-plot { height: 160px; gap: 6px; }
  .chart-x { gap: 6px; font-size: 10.5px; }
  .reminders .r { grid-template-columns: 1fr; }
  .reminders .side { justify-content: flex-start; padding-left: 42px; }
}

/* documentos legais (Termos, Privacidade) */
.legal-doc { padding: 40px 44px 48px; line-height: 1.7; font-size: 15px; }
.legal-doc h1 { font-size: 30px; margin-bottom: 4px; }
.legal-doc h2 { font-size: 17px; margin: 30px 0 8px; }
.legal-doc p, .legal-doc ul { margin: 0 0 12px; color: var(--text-2); }
.legal-doc ul { padding-left: 20px; }
.legal-doc li { margin-bottom: 6px; }
.legal-doc b { color: var(--text); font-weight: 600; }
.legal-draft { background: var(--warn-soft); color: var(--warn) !important; border-radius: var(--r); padding: 10px 14px; font-size: 13px; margin-bottom: 20px !important; }
@media (max-width: 760px) { .legal-doc { padding: 24px 20px 32px; } .legal-doc h1 { font-size: 24px; } }

[hidden] { display: none !important; }

/* lista de tipos de serviço (Administração) */
.svc-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.svc-list .pill { height: 30px; padding: 0 4px 0 12px; gap: 6px; color: var(--text); }
.svc-list .pill .subtle { font-size: 11px; }
.chip-x { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: var(--text-3); cursor: pointer; padding: 0; }
.chip-x:hover { background: var(--bad-soft); color: var(--bad); }

/* contadores de novidades (menu e barra inferior) */
.nav-item .count, .tabbar .count { font: 700 11px var(--font); }
.nav-item .count:not(:empty) { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.tabbar button { position: relative; }
.tabbar .count:not(:empty) { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; background: var(--bad); color: #fff; font-size: 10px; }
.ic-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: none; }
.ic-dot.on { background: var(--primary); box-shadow: 0 0 0 4px var(--brand-soft); }

/* celular: abas de filtro com esmaecimento na borda indicam que dá para rolar */
@media (max-width: 760px) {
  .tabs { -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); padding-right: 32px; }
}
