/* Massas da Mih: identidade tirada da logo (amarelo, marrom de café, verde do mascote).
   Assinatura visual: a borda recortada, como a beirada de um pastel ou ravióli. */
:root {
  --amarelo: #ffd21f; --amarelo-2: #ffe06a; --marrom: #3a1e14; --marrom-2: #55301f; --verde: #4d8a2c; --verde-2: #e6f2dc;
  --fundo: #f6f6f1; --papel: #ffffff; --papel-2: #f1f1ea; --linha: #e0dfd5; --tinta: #2b1810; --suave: #74685f;
  --acao: #3a1e14; --acao-tx: #ffffff; --link: #3f7322; --foco: #4d8a2c;
  --bom: #2f7d32; --bom-f: #e4f3e2; --aviso: #8a5a00; --aviso-f: #fff1cc; --ruim: #b3261e; --ruim-f: #fde6e3; --info: #1f5f9e; --info-f: #e3effb;
  --display: "Caprasimo", "Cooper Black", Georgia, serif; --corpo: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --r: 14px; --r2: 9px; --sombra: 0 10px 40px rgba(58, 30, 20, .16);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --fundo: #17110d; --papel: #221913; --papel-2: #2d221a; --linha: #40322a; --tinta: #f8efe2; --suave: #b5a497; --verde: #7fbf55; --verde-2: #263a1b;
  --acao: #ffd21f; --acao-tx: #2b1810; --link: #9bd672; --foco: #ffd21f;
  --bom: #7fd184; --bom-f: #1d3320; --aviso: #f5c455; --aviso-f: #3a2d10; --ruim: #ff9a8f; --ruim-f: #41201c; --info: #8fc3f5; --info-f: #1a2e42; --sombra: 0 10px 40px rgba(0, 0, 0, .5);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--tinta); font: 400 15px/1.45 var(--corpo); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; } h1, h2 { font-family: var(--display); font-weight: 400; text-wrap: balance; line-height: 1.12; } h3 { font-size: 16px; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; } button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
img { max-width: 100%; display: block; } .ic { flex: none; } [hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 2px; border-radius: 6px; }
a { color: var(--link); }
.suave { color: var(--suave); } .peq { font-size: 13px; } .num { font-variant-numeric: tabular-nums; } .forte { font-weight: 700; } .linha { display: flex; align-items: center; gap: 10px; } .entre { justify-content: space-between; } .quebra { flex-wrap: wrap; } .cresce { flex: 1; min-width: 0; } .pilha { display: grid; gap: 12px; min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 99px; font-weight: 700; background: var(--papel-2); border: 1.5px solid transparent; transition: filter .12s, transform .12s; text-decoration: none; color: var(--tinta); }
.btn:hover { filter: brightness(.96); } .btn:active { transform: scale(.98); } .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.acao { background: var(--acao); color: var(--acao-tx); } .btn.am { background: var(--amarelo); color: #2b1810; } .btn.vz { background: transparent; border-color: var(--linha); } .btn.bom { background: var(--bom); color: var(--papel); } .btn.ruim { color: var(--ruim); background: var(--ruim-f); } .btn.p { min-height: 36px; padding: 6px 13px; font-size: 14px; } .btn.cheio { width: 100%; }
.icb { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none; } .icb:hover { background: var(--papel-2); }
.campo { display: grid; gap: 5px; min-width: 0; } .campo > span { font-size: 13px; font-weight: 600; color: var(--suave); }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; min-height: 44px; padding: 9px 13px; background: var(--papel); border: 1.5px solid var(--linha); border-radius: var(--r2); } textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--foco); } ::placeholder { color: var(--suave); opacity: .8; } input[type=checkbox], input[type=radio] { width: 19px; height: 19px; accent-color: var(--verde); flex: none; margin: 0; }
.erro { border-color: var(--ruim) !important; } .msg-erro { color: var(--ruim); font-size: 13px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; background: var(--papel-2); white-space: nowrap; } .pill.bom { background: var(--bom-f); color: var(--bom); } .pill.aviso { background: var(--aviso-f); color: var(--aviso); } .pill.ruim { background: var(--ruim-f); color: var(--ruim); } .pill.info { background: var(--info-f); color: var(--info); }
.desenho { display: grid; place-items: center; background: var(--papel-2); } .desenho svg { width: 68%; height: 68%; }
.logo-txt { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--display); color: #3a1e14; background: var(--amarelo); border-radius: 50%; }
#toast { position: fixed; z-index: 99; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); background: #2b1810; color: #fff; padding: 12px 20px; border-radius: 99px; font-weight: 600; transition: .2s; text-align: center; } #toast.on { opacity: 1; transform: translate(-50%, 0); }
dialog { border: 0; padding: 0; color: inherit; background: var(--papel); box-shadow: var(--sombra); max-width: none; max-height: none; overflow: hidden; } dialog::backdrop { background: rgba(28, 14, 8, .6); }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--papel-2); border-radius: 99px; } .seg button { flex: 1; padding: 8px 12px; border-radius: 99px; font-weight: 700; font-size: 14px; text-align: center; color: var(--suave); white-space: nowrap; } .seg button.on { background: var(--papel); color: var(--tinta); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.vazio { text-align: center; padding: 44px 20px; color: var(--suave); display: grid; gap: 10px; justify-items: center; } .vazio h3 { color: var(--tinta); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
