:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: #18263b;
  background: #f4f7fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: linear-gradient(120deg, #122b52, #2361a1);
  color: white;
  padding: 32px max(20px, calc((100vw - 1150px) / 2));
}
header h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 40px);
}
header p {
  opacity: 0.85;
  margin: 0;
}
.wrap {
  max-width: 1150px;
  margin: 24px auto;
  padding: 0 18px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: -44px;
}
.stat,
.panel {
  background: white;
  border: 1px solid #e4eaf2;
  border-radius: 17px;
  box-shadow: 0 5px 22px #13284a0a;
}
.stat {
  padding: 18px;
}
.stat b {
  display: block;
  font-size: 26px;
  color: #1b477c;
}
.stat span {
  font-size: 12px;
  color: #60718a;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}
button,
.btn {
  border: 1px solid #d6e0ee;
  background: white;
  border-radius: 10px;
  padding: 10px 13px;
  cursor: pointer;
  color: #25446b;
  font-weight: 650;
  font: inherit;
}
button.active,
.primary {
  background: #1b5caa;
  color: white;
  border-color: #1b5caa;
}
button:hover {
  filter: brightness(0.96);
}
.panel {
  padding: 20px;
  margin-bottom: 18px;
}
h2 {
  margin: 0 0 14px;
  font-size: 21px;
}
h3 {
  margin: 0 0 9px;
  font-size: 16px;
}
.muted {
  color: #64748b;
}
.small {
  font-size: 12px;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}
.weekday {
  text-align: center;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  padding: 6px;
}
.day {
  min-height: 102px;
  border: 1px solid #e3eaf3;
  border-radius: 11px;
  background: #fff;
  padding: 9px;
  cursor: pointer;
}
.day:hover {
  border-color: #2976ca;
}
.day.selected {
  outline: 2px solid #2875c7;
}
.day.off {
  background: #f6f8fb;
  opacity: 0.45;
  cursor: default;
}
.day .num {
  font-weight: 750;
}
.city {
  font-size: 11px;
  color: #64748b;
  margin: 5px 0;
}
.dot {
  font-size: 10px;
  padding: 3px 5px;
  border-radius: 5px;
  background: #e6f0fc;
  color: #22599b;
  margin: 3px 2px 0 0;
  display: inline-block;
}
.dot.confirmed {
  background: #def5e9;
  color: #146b44;
}
.dot.pending {
  background: #fff1d8;
  color: #8a570b;
}
.layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}
.event {
  border: 1px solid #e7edf5;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
}
.event-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.pill {
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  padding: 4px 8px;
  background: #eaf2ff;
  color: #245a9e;
  white-space: nowrap;
}
.pill.ok {
  background: #def5e9;
  color: #146b44;
}
.pill.plan {
  background: #fff1d8;
  color: #8a570b;
}
.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
input,
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d5dfeb;
  border-radius: 9px;
  background: white;
  font: inherit;
  color: #18263b;
}
label {
  font-size: 12px;
  font-weight: 700;
  color: #51637a;
  display: block;
  margin: 12px 0 5px;
}
.formgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 12px;
}
.hotel {
  border-left: 4px solid #448bd0;
  background: #f8fbff;
  border-radius: 10px;
  padding: 13px;
  margin: 10px 0;
}
.hotel strong {
  display: block;
}
.hotel .actions {
  margin-top: 9px;
}
.bar {
  height: 8px;
  background: #e7eef6;
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0;
}
.bar > div {
  height: 100%;
  background: #2a7cc6;
}
.empty {
  padding: 24px;
  text-align: center;
  color: #708098;
}
.note {
  padding: 12px;
  background: #f0f6ff;
  border-radius: 10px;
  font-size: 13px;
  color: #365575;
}
.hotelgrid {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 3px;
  overflow-x: auto;
}
.night {
  min-width: 44px;
  text-align: center;
  padding: 9px 2px;
  border-radius: 7px;
  background: #e9f1fb;
  font-size: 10px;
}
.night strong {
  display: block;
  font-size: 12px;
}
.night.london {
  background: #dceafd;
}
.night.paris {
  background: #fce7ec;
}
.night.amsterdam {
  background: #e4f6e9;
}
.night.unknown {
  background: #f0f1f4;
}
.footer {
  padding: 30px 0;
  color: #708098;
  text-align: center;
  font-size: 12px;
}
@media (max-width: 750px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -22px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .day {
    min-height: 90px;
    padding: 5px;
  }
  .city {
    font-size: 9px;
  }
  .dot {
    font-size: 9px;
  }
  .panel {
    padding: 14px;
  }
  .calendar {
    gap: 3px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
}

header {
  padding-bottom: 58px;
}
a.btn {
  display: inline-block;
  text-decoration: none;
}
.tabs .pdf {
  margin-inline-start: auto;
}
#feedback {
  border-radius: 10px;
  padding: 10px 14px;
  background: #e8f4eb;
  color: #245836;
}
#feedback.error {
  background: #fbe8e8;
  color: #822a2a;
}
.day-picker {
  display: flex;
  align-items: center;
  gap: 12px;
}
.day-picker label {
  margin: 0;
}
.day-picker input {
  width: auto;
}
.document {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  overflow-wrap: anywhere;
}
.thumbnail {
  display: block;
  width: 90px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #edf2fa;
}
.file-button {
  position: relative;
  overflow: hidden;
}
.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-button:focus-within {
  outline: 2px solid #1b5caa;
  outline-offset: 2px;
}

.login-panel {
  max-width: 400px;
  margin: 12vh auto 0;
  width: calc(100% - 32px);
}

.login-panel h1 {
  margin: 0 0 20px;
  color: #122b52;
  font-size: 1.6rem;
}

.album-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}

.album-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #e4eaf2;
}

.album-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
