:root {
  --ink: #0A0A0A; --blue: #1C54FF; --bg: #FAFAFA; --card: #FFFFFF; --line: #E6E6E6; --line2: #D4D4D4;
  --muted: #5C5C5C; --soft: #EDEDED; --dark2: #2E2E2E; --dim: #BDBDBD;
  --amber-bg: #FFF1D6; --amber: #7A4A00; --green-bg: #E3F5EA; --green: #136B3A; --red-bg: #FBE6E6; --red: #8A1F1F;
  --orange-bg: #FFEDD5; --orange: #9A3412;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: -0.01em; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
a { color: var(--blue); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.logo { display: flex; align-items: center; gap: 6px; }
.logo b { font-size: 17px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.b6 { font-weight: 600; }
.b7 { font-weight: 700; }
.h15 { font-size: 15px; font-weight: 700; }

.chip { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); white-space: nowrap; }
.chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.red { background: var(--red-bg); color: var(--red); }

.bar { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.bar.thin { height: 6px; }
.bar.dark { background: var(--dark2); }
.bar.ink > i { background: var(--ink); }
.bar.white { background: #fff; }

.btn { min-height: 44px; padding: 0 16px; border-radius: 999px; border: none; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { color: #fff; }
.btn.blue { background: var(--blue); }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn.ghost:hover { color: var(--ink); background: var(--bg); }
.btn.soft { background: var(--soft); color: var(--ink); }
.btn.soft:hover { color: var(--ink); }
.btn.sm { min-height: 44px; font-size: 13px; padding: 0 14px; }
.btn.lg { min-height: 48px; font-size: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; }
.input { min-height: 44px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 12px; font-size: 14px; background: #fff; color: var(--ink); width: 100%; }
textarea.input { padding: 10px 12px; min-height: 80px; resize: vertical; }

.ok-msg { font-size: 12px; font-weight: 600; color: var(--green); }
.done { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--green); background: var(--green-bg); border-radius: 999px; padding: 10px 14px; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 100; max-width: calc(100vw - 32px); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.toast.erro { background: var(--red); }

.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login form { width: 100%; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.login h1 { margin: 0; font-size: 22px; }
.erro-txt { color: var(--red); font-size: 13px; font-weight: 600; }
.vazio { font-size: 14px; color: var(--muted); text-align: center; padding: 24px 0; }
