:root {
  --navy: #14213d;
  --accent: #c8102e;
  --bg: #f5f6f8;
  --card: #fff;
  --text: #1c1f26;
  --muted: #6a7080;
  --line: #e1e4ea;
  --ok: #1b7f4b;
  --err: #b3261e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--accent); }
.top {
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-left: auto; }
.nav a, .nav .link { color: #fff; text-decoration: none; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
.wrap { max-width: 680px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.6rem; margin: 8px 0 12px; line-height: 1.2; }
h2 { font-size: 1.2rem; margin: 24px 0 8px; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
.muted { color: var(--muted); font-size: 0.92rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; padding: 8px 12px; }
legend { padding: 0 6px; color: var(--muted); font-size: 0.9rem; }
label { display: block; margin: 12px 0; font-weight: 600; font-size: 0.95rem; }
input, textarea, select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  font: inherit;
  border: 1px solid #c4c9d4;
  border-radius: 10px;
  background: #fff;
}
input:focus, textarea:focus, select:focus, .btn:focus-visible, .link:focus-visible, a:focus-visible {
  outline: 3px solid #7aa7ff;
  outline-offset: 2px;
}
.btn {
  display: inline-block;
  min-height: 48px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn.alt { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn.small { min-height: 44px; padding: 8px 14px; font-size: 0.95rem; }
.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; color: inherit; }
.link.danger { color: var(--err); margin-top: 24px; min-height: 44px; }
.inline { display: inline; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; }
.inline-form label { flex: 1; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.list { list-style: none; padding: 0; margin: 8px 0; }
.list > li { margin: 8px 0; }
.list > li.row, .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.list > li.row { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.item {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  min-height: 48px;
}
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #e8f3ec; color: var(--ok); font-size: 0.85rem; font-weight: 600; }
.tag.warn { background: #fff4d6; color: #8a5a00; }
.code { font-size: 1.5rem; letter-spacing: 0.18em; }
.search { display: flex; gap: 8px; align-items: flex-end; }
.search label { flex: 1; margin: 0; }
.belt-branco { background: #fff; color: #333; border: 1px solid #bbb; }
.belt-azul { background: #1d4ed8; color: #fff; }
.belt-roxo { background: #6d28d9; color: #fff; }
.belt-castanho { background: #7c4a21; color: #fff; }
.belt-preto { background: #111; color: #fff; }
.flash { padding: 12px 14px; border-radius: 10px; margin: 8px 0 16px; }
.flash.ok { background: #e8f3ec; color: var(--ok); }
.flash.erro { background: #fdecea; color: var(--err); }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; margin: 0; }
.check input { width: 24px; height: 24px; margin: 0; }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 8px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.inline-form { flex-wrap: wrap; }
.inline-form label { min-width: 110px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 8px 0; }
.cal .h { text-align: center; font-size: 0.75rem; color: var(--muted); }
.cal .d { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 0.9rem; border: 1px solid transparent; color: var(--text); text-decoration: none; }
.cal .d.off { visibility: hidden; }
.cal a.les { border: 1.5px solid var(--navy); }
.cal a.pres { background: var(--ok); color: #fff; border-color: var(--ok); font-weight: 700; }
.calnav { display: flex; align-items: center; justify-content: space-between; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; }
.sw-pres { background: var(--ok); }
.sw-les { border: 1.5px solid var(--navy); }
@media (min-width: 700px) { .wrap { padding: 24px; } }
