:root {
  --bg: #0b0b0b;
  --bg2: #111111;
  --superficie: #161616;
  --superficie2: #1c1c1c;
  --superficie3: #232323;
  --linha: #2a2a2a;
  --linha2: #3a3a3a;
  --ouro: #c9a063;
  --ouro2: #dfbd86;
  --ouro-suave: rgba(201, 160, 99, .12);
  --ouro-tinta: #1b1409;
  --texto: #f3efe8;
  --suave: #a6a097;
  --apagado: #6e6961;
  --ok: #74c290;
  --ok-suave: rgba(116, 194, 144, .12);
  --erro: #e2705f;
  --erro-suave: rgba(226, 112, 95, .12);
  --raio: 10px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --borda-lateral: 16px;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --borda-lateral: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--ouro); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ouro { background: var(--ouro); color: var(--ouro-tinta); }
.btn-ouro:hover { background: var(--ouro2); }
.btn-contorno { border: 1px solid var(--ouro); color: var(--ouro); }
.btn-contorno:hover { background: var(--ouro-suave); }
.btn-fantasma { border: 1px solid var(--linha2); color: var(--texto); }
.btn-fantasma:hover { border-color: var(--suave); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn-bloco { width: 100%; }

.campo { display: grid; gap: 6px; }
.campo label { font-size: 12px; color: var(--suave); letter-spacing: .02em; }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--bg2); border: 1px solid var(--linha2); border-radius: 6px;
  font-size: 15px;
}
.campo input:focus, .campo select:focus { border-color: var(--ouro); outline: none; }
.campo .erro-msg { font-size: 12px; color: var(--erro); min-height: 0; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { width: 34px; height: 34px; color: var(--ouro); flex: none; }
.logo .logo-txt { display: grid; line-height: 1.05; }
.logo small { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--texto); }
.logo strong { font-family: var(--serif); font-weight: 500; font-size: 21px; letter-spacing: .04em; text-transform: uppercase; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #2d2a25, #191714);
  border: 1px solid var(--linha2);
  font-family: var(--serif); font-size: 16px; color: var(--ouro2);
}

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-confirmado { background: var(--ouro-suave); color: var(--ouro2); }
.chip-concluido { background: var(--ok-suave); color: var(--ok); }
.chip-faltou { background: var(--erro-suave); color: var(--erro); }
.chip-cancelado { background: #222; color: var(--apagado); }

.modal-fundo {
  position: fixed; inset: 0; z-index: 50; display: none;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px);
  padding: 16px; overflow-y: auto;
}
.modal-fundo.aberto { display: grid; place-items: center; }
.modal {
  width: 100%; max-width: 460px; background: var(--superficie);
  border: 1px solid var(--linha); border-radius: 14px; padding: 24px;
  animation: sobe .25s ease-out;
}
@keyframes sobe { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin: 0 0 4px; }
.modal-fechar { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--suave); border-radius: 8px; }
.modal-fechar:hover { background: var(--superficie3); color: var(--texto); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
