:root {
  font-family: Inter, system-ui, sans-serif;
  color: #182b36;
  background: #f3f6f5;
  line-height: 1.5;
  --accent: #146c60;
  --muted: #566974;
  --border: #d5dfdd;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  color: var(--accent);
  text-decoration: none;
}
.brand span {
  font-size: 13px;
  font-weight: 400;
  display: block;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
main {
  max-width: 1180px;
  margin: 32px auto;
  padding: 0 24px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 8px 0;
}
h2 {
  font-size: 21px;
  margin: 0 0 12px;
}
h3 {
  font-size: 17px;
  margin: 0;
}
p {
  margin: 8px 0 18px;
}
.muted,
small {
  color: var(--muted);
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin: 20px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.grid > .card {
  margin: 0;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
input,
select,
button {
  font: inherit;
}
input,
select {
  border: 1px solid #a6b8b3;
  border-radius: 7px;
  background: #fff;
  padding: 10px 12px;
  width: 100%;
  color: inherit;
}
input[type='checkbox'] {
  width: auto;
  accent-color: var(--accent);
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
}
button,
.button {
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  background: var(--accent);
  color: white;
  font-weight: 600;
  text-decoration: none;
}
button.secondary {
  background: #eef4f2;
  color: #244f45;
  border-color: #c6d8d1;
}
button.danger {
  background: #fff3f2;
  color: #a83232;
  border-color: #f3c9c4;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #e3aa3e;
  outline-offset: 3px;
}
.badge {
  font-size: 12px;
  font-weight: 650;
  padding: 4px 9px;
  border-radius: 30px;
  background: #dff3e9;
  color: #176147;
}
.paused {
  background: #eceff1;
  color: #54616b;
}
.error {
  color: #a02121;
}
.login {
  max-width: 440px;
  margin: 10vh auto;
}
.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin: 10px 0;
  align-items: end;
}
.range-editor {
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 9px;
  margin: 12px 0;
}
.range-editor legend {
  font-size: 14px;
  font-weight: 650;
}
.empty {
  padding: 28px 0;
  color: var(--muted);
}
.travels {
  display: grid;
  gap: 18px;
}
.travel {
  margin: 0;
}
details {
  margin-top: 18px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details > form {
  margin-top: 18px;
}
.members {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
#notice {
  position: fixed;
  bottom: 22px;
  right: 22px;
  max-width: 90vw;
  padding: 16px 22px;
  background: #163e35;
  color: #fff;
  border-radius: 10px;
  z-index: 5;
  box-shadow: 0 4px 24px #0003;
}
#notice.error {
  background: #812323;
}
dialog {
  width: min(780px, 95vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  color: inherit;
}
dialog::backdrop {
  background: #0f2b3b88;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin: 18px 0;
}
.weekday {
  font-size: 12px;
  text-align: center;
  font-weight: 650;
}
.day {
  min-height: 64px;
  padding: 7px;
  border: 1px solid var(--border);
  background: #f4f6f5;
  color: #34454f;
  text-align: left;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.day small {
  font-size: 10px;
  color: inherit;
}
.disponible {
  background: #d8f3e2;
  color: #18572d;
}
.lista-espera {
  background: #ebe0ff;
  color: #633794;
}
.completo {
  background: #fde2df;
  color: #8c2727;
}
.disabled {
  background: #f0f2f3;
  color: #61717a;
}
.day.selected {
  outline: 3px solid #a9700b;
  outline-offset: -3px;
}
.legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.legend span {
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 12px;
}
.account-row {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.account-row:last-child {
  border: 0;
}
.account-row form {
  margin-top: 12px;
}
fieldset {
  min-width: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 650px) {
  header {
    padding: 14px;
    align-items: start;
  }
  .brand span {
    display: none;
  }
  main {
    padding: 0 14px;
  }
  .card {
    padding: 18px;
  }
  .range-row {
    grid-template-columns: 1fr 1fr;
  }
  .range-row button {
    grid-column: span 2;
  }
  h1 {
    font-size: 27px;
  }
  nav button {
    padding: 7px 9px;
    font-size: 13px;
  }
  .day {
    min-height: 54px;
    padding: 5px;
  }
  .day small {
    font-size: 8px;
  }
  dialog {
    padding: 14px;
  }
  .calendar-grid {
    gap: 3px;
  }
}
