/* Base visual compartilhada (painel e app do cliente). Uma cor de marca, neutros e estados. */
:root {
  --marca: #0f766e;
  --marca-escura: #0b5d57;
  --marca-clara: #e6f2f1;
  --texto: #1c1b19;
  --texto-2: #5b5952;
  --fundo: #f6f5f2;
  --caixa: #ffffff;
  --linha: #e4e1da;
  --ok: #15803d;
  --ok-fundo: #e8f5ec;
  --erro: #b42318;
  --erro-fundo: #fdeceb;
  --aviso: #a15c07;
  --aviso-fundo: #fdf3e2;
  --raio: 10px;
  --raio-p: 6px;
  --sombra: 0 1px 2px rgba(28, 27, 25, .06), 0 1px 1px rgba(28, 27, 25, .04);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texto);
  background: var(--fundo);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--fundo); line-height: 1.45; font-size: 15px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
a { color: var(--marca); }
img { max-width: 100%; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* botões: principal e secundário */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 44px; padding: 0 1rem; border-radius: var(--raio-p);
  border: 1px solid var(--marca); background: var(--marca); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--marca-escura); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.sec { background: var(--caixa); color: var(--texto); border-color: var(--linha); }
.btn.sec:hover { background: #efede8; }
.btn.perigo { background: var(--caixa); color: var(--erro); border-color: #f1c4c0; }
.btn.perigo:hover { background: var(--erro-fundo); }
.btn.pequeno { min-height: 36px; padding: 0 .75rem; font-size: .9rem; }
.btn.largo { width: 100%; }

/* formulários */
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .3rem; }
.campo { margin-bottom: .9rem; }
.dica { color: var(--texto-2); font-size: .85rem; font-weight: 400; }
input, select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .7rem; font: inherit; color: var(--texto);
  background: #fff; border: 1px solid var(--linha); border-radius: var(--raio-p);
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--marca); outline-offset: 1px; }
input[type=checkbox] { width: 20px; min-height: 20px; height: 20px; accent-color: var(--marca); }
.linha-check { display: flex; gap: .6rem; align-items: center; font-weight: 500; }

/* caixas e listas */
.caixa { background: var(--caixa); border: 1px solid var(--linha); border-radius: var(--raio); padding: 1rem; box-shadow: var(--sombra); }
.caixa + .caixa { margin-top: 1rem; }
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li { padding: .75rem 0; border-top: 1px solid var(--linha); }
.lista > li:first-child { border-top: 0; }
.selo { display: inline-block; padding: .1rem .5rem; border-radius: 99px; font-size: .78rem; font-weight: 600; background: #efede8; color: var(--texto-2); white-space: nowrap; }
.selo.ok { background: var(--ok-fundo); color: var(--ok); }
.selo.erro { background: var(--erro-fundo); color: var(--erro); }
.selo.aviso { background: var(--aviso-fundo); color: var(--aviso); }
.selo.marca { background: var(--marca-clara); color: var(--marca-escura); }
.aviso-caixa { padding: .75rem 1rem; border-radius: var(--raio-p); background: var(--aviso-fundo); color: #5c3504; margin-bottom: 1rem; }
.aviso-caixa.erro { background: var(--erro-fundo); color: #7a1610; }
.aviso-caixa.ok { background: var(--ok-fundo); color: #0e5129; }
.item-linha { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.vazio { color: var(--texto-2); text-align: center; padding: 1.5rem .5rem; }
.num { font-variant-numeric: tabular-nums; }
.mudo { color: var(--texto-2); }
.foto-quadro { overflow: hidden; border-radius: var(--raio-p); background: #ebe8e1; aspect-ratio: 1; }
.foto-quadro img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.foto-quadro:hover img { transform: scale(1.02); }

/* aviso flutuante */
#toast { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 2rem);
  background: var(--texto); color: #fff; padding: .7rem 1rem; border-radius: var(--raio-p); box-shadow: 0 6px 20px rgba(0,0,0,.2); display: none; }
#toast.mostrar { display: block; }

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