:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #65727a;
  --line: #d9e2e6;
  --page: #f6f3ec;
  --panel: #fffefa;
  --blue: #176b87;
  --teal: #198a8a;
  --green: #3f8f55;
  --gold: #b97919;
  --orange: #d96c20;
  --red: #b78d8a;
  --red-muted: #c7a3a0;
  --search-result: #ff1f1f;
  --special: #0f7c91;
  --reserved: #2458a6;
  --other-reserved: #8b949e;
  --weekend: #5b5ab7;
  --holiday: #8f3f76;
  --shadow: 0 18px 45px rgba(23, 32, 38, .12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tracking-status {
  width: 100%;
  padding: 7px 12px;
  color: #123940;
  background: #dff0f4;
  border-bottom: 1px solid #b7d3dc;
  font-size: .78rem;
  font-weight: 850;
  text-align: center;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.mast {
  position: relative;
  min-height: clamp(260px, 44vw, 430px);
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.mast::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(12, 29, 33, .76), rgba(12, 29, 33, .18) 62%, rgba(12, 29, 33, .02));
  z-index: -1;
}

.mast__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mast__content {
  display: grid;
  align-content: end;
  min-height: inherit;
  max-width: 720px;
  padding: clamp(24px, 5vw, 54px);
  color: #fff;
}

.mast--compact {
  min-height: clamp(220px, 30vw, 320px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mast .eyebrow {
  color: #d3f2f5;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: .9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 6px;
  color: #fff;
  background: rgba(12, 29, 33, .38);
  font-size: .88rem;
  font-weight: 850;
  text-decoration: none;
}

.page-link:hover {
  background: rgba(12, 29, 33, .56);
}

.workspace {
  margin-top: 24px;
}

.controls,
.results,
.source {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(23, 32, 38, .06);
}

.controls {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.field-row {
  display: grid;
  gap: 7px;
}

label,
.control-label,
.toggle span {
  color: #35434a;
  font-size: .88rem;
  font-weight: 750;
}

input[type="date"],
input[type="text"],
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.people {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.date-search-people {
  grid-column: 1 / -1;
}

.date-search-people .people {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
  border-top: 0;
}

.person-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #f3f8f8;
}

.person-filter input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.results {
  min-width: 0;
  padding: 22px;
}

.calendar-section {
  margin-bottom: 28px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.date-search-section .section-head {
  margin-bottom: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
  color: var(--muted);
  font-size: .82rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.good {
  background: var(--green);
}

.warn {
  background: var(--gold);
}

.captain {
  background: var(--orange);
}

.bad {
  background: var(--red);
}

.calendar-result {
  background: var(--search-result);
}

.special {
  background: var(--special);
}

.reserved {
  background: var(--reserved);
}

.other-reserved {
  background: var(--other-reserved);
}

.weekend {
  background: var(--weekend);
}

.holiday {
  background: var(--holiday);
}

.result-count {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 999px;
  color: #174c5a;
  background: #dff0f4;
  font-size: .78rem;
  font-weight: 850;
  white-space: nowrap;
}

.date-search-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
  margin: 0;
  padding: 0;
  border: 0;
}

.toggle-group--wide {
  grid-column: span 2;
}

.toggle-group legend {
  width: 100%;
  margin-bottom: 7px;
  color: #35434a;
  font-size: .88rem;
  font-weight: 750;
}

.toggle-group label {
  position: relative;
  min-width: 48px;
}

.toggle-group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-group span {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #b7d3dc;
  border-radius: 6px;
  color: var(--blue);
  background: #eef8fa;
  font-size: .78rem;
  font-weight: 850;
  cursor: pointer;
  user-select: none;
}

.toggle-group input:checked + span {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.toggle-group label[data-muted] span {
  color: #849098;
  border-color: #d5dde1;
  background: #edf1f2;
  opacity: .58;
}

.toggle-group label[data-muted] input:checked + span {
  color: #eef3f5;
  border-color: #9ba7ae;
  background: #9ba7ae;
}

.toggle-group input:focus-visible + span {
  outline: 3px solid rgba(23, 107, 135, .28);
  outline-offset: 2px;
}

.date-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.date-result {
  min-height: 144px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fff;
}

.date-result.is-warn {
  border-left-color: var(--gold);
}

.date-result.is-captain {
  border-left-color: var(--orange);
}

.date-result.is-bad {
  border-left-color: var(--red);
}

.date-result__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
}

.date-result__date {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
  font-weight: 850;
}

.date-result__slot {
  display: block;
  margin-bottom: 4px;
  color: #2b6267;
  font-size: .8rem;
  font-weight: 850;
}

.date-result__select {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  font-size: .76rem;
}

.date-result__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.climate-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 20px;
  margin: 0 0 8px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #174c5a;
  background: #dff0f4;
  font-size: .7rem;
  font-weight: 850;
  line-height: 1.1;
}

.metric {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #2c3b44;
  background: #eef3f5;
  font-size: .7rem;
  font-weight: 850;
  line-height: 1.1;
}

.date-result__specials {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
}

.date-result__specials span {
  max-width: 100%;
  padding: 4px 7px;
  border-radius: 999px;
  color: #073b45;
  background: #cdeaf0;
  font-size: .7rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 8px;
}

.indicator {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: .68rem;
  font-weight: 850;
  line-height: 1;
}

.indicator--weekend {
  background: var(--weekend);
}

.indicator--holiday {
  background: var(--holiday);
}

.indicator--saturday-two {
  background: var(--teal);
}

.date-result__score {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: .88rem;
}

.date-results__empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  min-height: 110px;
  align-content: center;
  justify-items: center;
  border: 1px dashed #b7d3dc;
  border-radius: 8px;
  color: var(--muted);
  background: #f7fcfd;
  text-align: center;
}

.date-results__empty strong {
  color: var(--ink);
}

.conflicts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 999px;
  color: #49340b;
  background: #f6e3b9;
  font-size: .76rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.chip--clear {
  color: #173225;
  background: #dceee0;
}

.chip--capacity {
  color: #174c5a;
  background: #dff0f4;
}

.calendar {
  display: grid;
  gap: 18px;
}

.date-detail {
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.special-summary {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid #b7d3dc;
  border-radius: 8px;
  background: #f7fcfd;
}

.boat-reserved {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.boat-reserved .section-head {
  margin-bottom: 14px;
}

.boat-reserved__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.boat-reserved__card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #b7d3dc;
  border-left: 5px solid var(--reserved);
  border-radius: 8px;
  background: #f8fbff;
}

.boat-reserved__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.boat-reserved__head strong,
.boat-reserved__head span {
  display: block;
}

.boat-reserved__head div > span {
  margin-top: 4px;
  color: #31576b;
  font-size: .8rem;
  font-weight: 850;
}

.boat-reserved__head > span {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  color: #173225;
  background: #dceee0;
  font-size: .74rem;
  font-weight: 850;
  white-space: nowrap;
}

.boat-reserved__block {
  display: grid;
  gap: 7px;
}

.boat-reserved__block > strong {
  color: #35434a;
  font-size: .78rem;
}

.boat-reserved__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.special-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.special-summary__head .eyebrow {
  margin-bottom: 0;
}

.special-summary__head strong {
  color: var(--special);
  font-size: .8rem;
}

.special-summary__list {
  display: grid;
  gap: 10px;
}

.special-summary__item {
  display: grid;
  gap: 7px;
}

.special-summary__item > strong {
  font-size: .92rem;
}

.special-summary__item > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.special-summary__chip {
  padding: 5px 7px;
  border-radius: 999px;
  color: #174c5a;
  background: #dff0f4;
  font-size: .76rem;
  font-weight: 800;
}

.date-detail__empty {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.date-detail__empty strong {
  color: var(--ink);
}

.date-detail__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.date-detail__head h3 {
  margin-bottom: 0;
  font-size: 1.16rem;
}

.selected-holidays {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.date-detail__count {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #173225;
  background: #dceee0;
  font-size: .78rem;
  font-weight: 850;
}

.date-detail__summary,
.slot-detail__people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.date-detail__summary {
  margin-bottom: 14px;
}

.date-detail__specials {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #b7d3dc;
  border-radius: 8px;
  background: #eef8fa;
}

.date-detail__reservations {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #b7d3dc;
  border-radius: 8px;
  background: #f8fbff;
}

.date-detail__specials > strong,
.date-detail__reservations > strong {
  color: #174c5a;
  font-size: .82rem;
}

.reservation-detail {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid #d5e0e6;
}

.reservation-detail span {
  color: #31576b;
  font-size: .78rem;
  font-weight: 850;
}

.reservation-detail strong {
  color: var(--ink);
  font-size: .9rem;
}

.reservation-detail--boat strong {
  color: var(--reserved);
}

.reservation-detail--other strong {
  color: #626c75;
}

.special-detail {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid #cfe4ea;
}

.special-detail span {
  color: var(--special);
  font-size: .78rem;
  font-weight: 850;
}

.special-detail strong {
  color: var(--ink);
  font-size: .9rem;
}

.date-detail__slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.slot-detail {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 104px;
  padding: 12px;
  border: 1px solid #cfe1d3;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #f7fbf7;
}

.slot-detail[data-level="1"] {
  border-color: #e4c476;
  border-left-color: var(--gold);
  background: #fff8e7;
}

.slot-detail[data-level="2"] {
  border-color: #f0a266;
  border-left-color: var(--orange);
  background: #fff1e8;
}

.slot-detail[data-level="3"] {
  border-color: #d98c85;
  border-left-color: var(--red);
  background: #fff0ef;
}

.slot-detail strong,
.slot-detail span {
  display: block;
}

.slot-detail .indicators {
  display: flex;
  margin-top: 7px;
}

.slot-detail .indicator {
  display: inline-flex;
}

.slot-detail > div:first-child span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}

.month {
  min-width: 0;
}

.month__title {
  margin-bottom: 6px;
  font-weight: 850;
}

.month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.day {
  height: 86px;
  border-radius: 6px;
  font-size: .78rem;
}

.dow {
  display: grid;
  place-items: center;
  min-height: 22px;
  border-radius: 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.day {
  display: grid;
  align-content: space-between;
  gap: 5px;
  padding: 6px;
  color: #173225;
  border: 1px solid #cfe1d3;
  background: #dceee0;
}

.day:hover,
.day[aria-pressed="true"] {
  outline: 3px solid rgba(23, 107, 135, .32);
  outline-offset: 1px;
}

.day[data-special-date="true"] {
  box-shadow: inset 0 0 0 3px var(--special);
}

.day[data-level="1"] {
  color: #4f3500;
  border-color: #e4c476;
  background: #f7d985;
}

.day[data-level="2"] {
  color: #fff;
  border-color: #d96c20;
  background: #d96c20;
}

.day[data-level="3"] {
  color: #3b2322;
  border-color: #a97874;
  background: var(--red-muted);
}

.day[data-fully-reserved="true"] {
  color: #f8fafb;
  border-color: #7a838c;
  background: var(--other-reserved);
}

.day[data-fully-boat-reserved="true"] {
  color: #fff;
  border-color: var(--reserved);
  background: var(--reserved);
}

.reserved-page .day[data-boat-reserved="true"] {
  color: #fff;
  border-color: var(--reserved);
  background: var(--reserved);
}

.day.is-outside {
  visibility: hidden;
}

.day strong {
  font-size: .85rem;
  color: inherit;
}

.day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  min-width: 0;
}

.day__oot-count {
  flex: 0 1 auto;
  min-width: 0;
  padding: 2px 4px;
  border-radius: 999px;
  color: inherit;
  background: rgba(255, 255, 255, .35);
  font-size: .58rem;
  font-weight: 850;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-indicators {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 9px;
}

.day-indicator {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.day-indicator--holiday {
  background: var(--holiday);
}

.reserved-special-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 18px;
  min-width: 0;
}

.reserved-special-icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: .72rem;
  font-style: normal;
  line-height: 1;
}

.reserved-special-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reserved-special-icon--holiday,
.reserved-special-icon--special {
  width: 8px;
  height: 8px;
}

.reserved-special-icon--holiday {
  background: var(--holiday);
}

.reserved-special-icon--special {
  background: var(--special);
}

.reserved-special-icon--fireworks,
.reserved-special-icon--disco,
.reserved-special-icon--anchor {
  border-radius: 0;
}

.day__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 10px;
}

.day__climate {
  display: block;
  min-width: 0;
  color: currentColor;
  font-size: .58rem;
  font-weight: 400;
  line-height: 1.1;
  opacity: .84;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-list {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.slot-pill {
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  width: 32px;
  min-height: 26px;
  border: 1px solid rgba(23, 32, 38, .14);
  border-radius: 4px;
  padding: 2px;
  color: #173225;
  background: #dceee0;
  font-size: .68rem;
  font-weight: 750;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
}

.slot-pill__text {
  display: block;
}

.slot-pill__marks {
  display: flex;
  gap: 2px;
  min-height: 8px;
}

.slot-pill__marks i {
  display: grid;
  place-items: center;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  color: transparent;
  font-style: normal;
  font-size: 0;
}

.slot-pill__marks i[data-type="weekend"] {
  background: var(--weekend);
}

.slot-pill__marks i[data-type="holiday"] {
  background: var(--holiday);
}

.slot-pill[data-special-slot="true"] {
  outline: 3px solid var(--special);
  outline-offset: 1px;
}

.slot-pill[data-level="1"] {
  color: #4f3500;
  background: #f7d985;
}

.slot-pill[data-level="2"] {
  color: #fff;
  background: #d96c20;
}

.slot-pill[data-level="3"] {
  color: #3b2322;
  border-color: #a97874;
  background: var(--red-muted);
  opacity: .88;
}

.slot-pill[data-reserved-slot="true"] {
  grid-template-rows: 1fr;
  color: #fff;
  border-color: var(--reserved);
  background: var(--reserved);
  outline: 3px solid rgba(36, 88, 166, .24);
  outline-offset: 1px;
}

.reserved-page .day[data-boat-reserved="true"] .slot-pill[data-reserved-slot="true"] {
  color: var(--reserved);
  border-color: rgba(255, 255, 255, .88);
  background: #fff;
  outline: 0;
}

.slot-pill[data-reserved-slot="true"][data-special-slot="true"] {
  outline-color: var(--special);
}

.slot-pill[data-other-reserved-slot="true"] {
  grid-template-rows: 1fr;
  color: #f8fafb;
  border-color: #7a838c;
  background: var(--other-reserved);
  outline: 0;
  opacity: .82;
}

.slot-pill[data-search-result-slot="true"] {
  box-shadow: inset 0 0 0 2px var(--search-result);
}

.source {
  margin-top: 24px;
  padding: 22px;
}

.reserved-detail-section {
  margin-top: 28px;
}

.reserved-detail-list {
  display: grid;
  gap: 16px;
}

.reserved-detail-group {
  display: grid;
  gap: 12px;
}

.section-head--subtle {
  margin-bottom: 0;
}

.section-head--subtle h3 {
  margin: 0;
  font-size: 1rem;
}

.reserved-day-group {
  border: 1px solid var(--line);
  border-left: 4px solid var(--reserved);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.reserved-day-group__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfa;
}

.reserved-day-group__head strong {
  display: block;
}

.reserved-day-group__head div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .82rem;
}

.reserved-day-group__head > span {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  color: #174c5a;
  background: #dff0f4;
  font-size: .74rem;
  font-weight: 850;
  white-space: nowrap;
}

.reserved-slot-table {
  display: grid;
}

.reserved-slot-row {
  display: grid;
  grid-template-columns: minmax(78px, .75fr) minmax(90px, .8fr) minmax(130px, 1.1fr) minmax(140px, 1fr) minmax(140px, 1.1fr) minmax(150px, 1.2fr);
  align-items: start;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid #eef2f4;
}

.reserved-slot-row:first-child {
  border-top: 0;
}

.reserved-slot-row--head {
  padding-top: 9px;
  padding-bottom: 8px;
  color: var(--muted);
  background: #fff;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reserved-slot-row > span {
  color: #314047;
}

.reserved-slot-row > span strong {
  color: var(--ink);
}

.reserved-slot-row__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.rsvp-button {
  min-height: 28px;
  padding: 0 10px;
  font-size: .76rem;
}

.rsvp-button:disabled {
  color: #5d686f;
  border-color: #d4dde1;
  background: #eef2f4;
  cursor: not-allowed;
}

.rsvp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 3px 4px 3px 8px;
  border: 1px solid #cbdde2;
  border-radius: 999px;
  color: #314047;
  background: #fff;
  font-size: .78rem;
  font-weight: 800;
}

.rsvp-chip button {
  min-height: 20px;
  padding: 0 6px;
  border-color: #d4dde1;
  color: var(--blue);
  background: #eef8fa;
  font-size: .68rem;
}

.rsvp-chip small {
  margin-left: 4px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 750;
}

.rsvp-chip button:hover {
  background: #dff0f4;
}

.rsvp-dialog {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(12, 29, 33, .42);
}

.rsvp-dialog[hidden] {
  display: none;
}

.rsvp-dialog__panel {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rsvp-dialog__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.rsvp-dialog__head h2 {
  margin: 0 0 4px;
}

.rsvp-dialog__head span {
  color: var(--muted);
  font-size: .9rem;
}

.rsvp-dialog__close {
  flex: 0 0 auto;
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.rsvp-form textarea {
  width: 100%;
  resize: vertical;
}

.field-row--wide,
.rsvp-form__message,
.rsvp-form__actions {
  grid-column: 1 / -1;
}

.rsvp-form__message {
  min-height: 22px;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.rsvp-form__actions {
  display: flex;
  justify-content: end;
  gap: 10px;
}

.rsvp-form__actions--split {
  justify-content: space-between;
}

.rsvp-form__actions--split span {
  display: flex;
  gap: 10px;
}

.profile-section {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.profile-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-list {
  display: grid;
  gap: 10px;
}

.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.profile-card div {
  display: grid;
  gap: 3px;
}

.profile-card span {
  color: var(--muted);
  font-size: .82rem;
}

button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 12px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

button:not(.day):hover {
  background: #10566d;
}

button:disabled,
button:disabled:hover {
  color: #5d686f;
  border-color: #d4dde1;
  background: #eef2f4;
  cursor: not-allowed;
}

.ghost-button {
  color: var(--blue);
  border-color: #b7d3dc;
  background: #eef8fa;
}

.ghost-button:hover {
  background: #dff0f4;
}

.danger-button {
  color: #fff;
  background: var(--red);
}

.danger-button:hover {
  background: #97392f;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.source-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.source-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.source-card__head h3 {
  margin-bottom: 0;
}

.source-card__head span {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  color: #174c5a;
  background: #dff0f4;
  font-size: .74rem;
  font-weight: 850;
  white-space: nowrap;
}

.source-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #3c4b52;
}

@media (max-width: 920px) {
  .controls {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-search-people .people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-search-controls,
  .date-results,
  .date-detail__slots,
  .boat-reserved__grid,
  .profile-form,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .toggle-group--wide {
    grid-column: auto;
  }

}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .mast {
    min-height: 360px;
  }

  .mast::after {
    background: linear-gradient(0deg, rgba(12, 29, 33, .82), rgba(12, 29, 33, .18));
  }

  .mast__content {
    padding: 22px;
  }

  .controls,
  .people {
    grid-template-columns: 1fr;
  }

  .date-search-people .people {
    grid-template-columns: 1fr;
  }

  .reserved-day-group__head {
    display: grid;
  }

  .reserved-slot-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 12px 14px;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
  }

  .rsvp-dialog__head,
  .rsvp-form__actions,
  .profile-card {
    display: grid;
  }

  .reserved-slot-row--head {
    display: none;
  }

  .reserved-slot-row [data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .legend {
    justify-content: start;
  }

  .results,
  .source {
    padding: 16px;
  }

  .month__grid {
    gap: 3px;
  }

  .day {
    min-height: 70px;
    padding: 4px;
  }

  .slot-pill {
    font-size: .58rem;
  }
}
