:root{font-family:system-ui,sans-serif;color:#142534;background:#eef3f5;line-height:1.5;--ink:#142534;--accent:#087669;--border:#d3dfe3}
*{box-sizing:border-box}body{margin:0}.wrap{width:min(100% - 2rem,58rem);margin:auto}.top{background:#101f2c;color:#fff}.brand{display:flex;align-items:center;gap:.7rem;min-height:4.1rem;letter-spacing:.04em}.brand strong span{color:#84dbca}.mark{background:#12665e;padding:.15rem .55rem;border-radius:.4rem}.year{margin-left:auto;color:#d2dfe6;font-size:.875rem}.intro{padding:2.6rem 0 1.4rem}.intro p{margin:.5rem 0 0;color:#435965;max-width:42rem}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(2rem,7vw,3.6rem);line-height:1.05;letter-spacing:-.055em;margin-bottom:.55rem}h2{font-size:1.3rem;margin-bottom:.9rem}h3{font-size:1rem;margin-bottom:.3rem}.panel,.card{background:#fff;border:1px solid var(--border);border-radius:1rem;padding:clamp(1rem,4vw,1.6rem)}.fields,.people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}label{display:block;font-weight:650;margin-bottom:.3rem}input,select,button{font:inherit}input,select{width:100%;min-height:2.8rem;border:1px solid #9eafb7;border-radius:.45rem;background:#fff;color:var(--ink);padding:.45rem .65rem}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12'%3E%3Cpath d='m2 3 6 6 6-6' fill='none' stroke='%23142534' stroke-width='2'/%3E%3C/svg%3E");background-position:right .7rem center;background-repeat:no-repeat;padding-right:2rem}select:disabled{background-color:#f0f4f5}#driver{margin-top:.4rem}button{background:var(--accent);color:white;border:0;border-radius:.55rem;min-height:2.8rem;padding:.55rem 1rem;font-weight:700;margin-top:1rem;cursor:pointer}button:hover{background:#065f55}summary{cursor:pointer;font-weight:650}details{border-top:1px solid var(--border);margin-top:1rem;padding-top:.8rem}details .fields{margin-top:.75rem}.resultshead,.cardhead{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem;flex-wrap:wrap}.resultshead{margin-top:2rem}.card{margin-top:.7rem}.cardhead{cursor:pointer}.badge{padding:.25rem .6rem;border-radius:.4rem;font-size:.875rem;font-weight:750}.good{color:#075945;background:#dcf5ea}.bad{color:#992e35;background:#fce6e7}.pending{color:#714700;background:#fff0c7}.people{margin-top:1rem}.person{border:1px solid var(--border);padding:.85rem;border-radius:.55rem;overflow-wrap:anywhere}.person p,.card p{margin:.4rem 0}.person ul{padding-left:1.1rem;margin:.4rem 0 0}.return{margin-top:1rem}footer{padding:2rem 0;color:#435965;font-size:.875rem}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}:focus-visible{outline:3px solid #087669;outline-offset:2px}@media(max-width:600px){.fields,.people{grid-template-columns:1fr}.panel button{width:100%}.intro{padding-top:1.8rem}}

[hidden] { display: none !important; }
.driver-fields { align-items: end; }
.driver-fields #driver { margin-top: 0; }
#calendar { margin-top: 1.4rem; }
.calendar-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  margin-bottom: .65rem;
}
.month-picker { justify-self: center; width: min(100%, 16rem); }
.month-picker select { font-weight: 750; text-align: center; }
.calendar-header button {
  margin: 0;
  width: 2.75rem;
  padding: 0;
  background: #e8f2f1;
  color: #075945;
  font-size: 1.55rem;
}
.calendar-header button:hover:not(:disabled) { background: #d3eae6; }
.calendar-header button:disabled { opacity: .4; cursor: default; }
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .4rem;
}
#calendar-days { display: contents; }
.weekday {
  text-align: center;
  font-size: .875rem;
  font-weight: 650;
  color: #435965;
  padding: .25rem 0;
}
.morning { --shift-bg: #e1f5e9; --shift-ink: #115a37; --shift-dot: #26804f; }
.afternoon { --shift-bg: #ffeddb; --shift-ink: #793b0e; --shift-dot: #cd681d; }
.night { --shift-bg: #eee4fa; --shift-ink: #542a81; --shift-dot: #8751bc; }
.free { --shift-bg: #fff; --shift-ink: #415561; --shift-dot: #fff; }
.vacation { --shift-bg: #e2f1ff; --shift-ink: #194875; --shift-dot: #347bb7; }
.blocked { --shift-bg: #fce6e7; --shift-ink: #952b36; --shift-dot: #be4855; }
.possible-vacation { --shift-bg: #fff0c7; --shift-ink: #714700; --shift-dot: #a76a00; }
.unknown { --shift-bg: #e7edf0; --shift-ink: #425865; --shift-dot: #7c929d; }
.calendar-grid .day {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-height: 4rem;
  margin: 0;
  padding: .35rem .55rem;
  border: 1px solid var(--border);
  background: var(--shift-bg);
  color: var(--shift-ink);
  font-variant-numeric: tabular-nums;
}
.calendar-grid .day:hover { border-color: var(--shift-ink); }
.calendar-grid .day[aria-pressed="true"] {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.calendar-grid .day:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}
.day-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .125rem .25rem;
}
.shift-marker {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  color: var(--shift-ink);
  font-size: .875rem;
  font-weight: 600;
}
.shift-short { display: none; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .95rem;
  list-style: none;
  padding: 0;
  margin: .9rem 0;
  font-size: .875rem;
}
.legend li { display: flex; align-items: center; gap: .3rem; }
.legend li::before {
  content: "";
  width: .65rem;
  height: .65rem;
  border: 1px solid var(--shift-ink);
  border-radius: 50%;
  background: var(--shift-dot);
}
.day-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1rem;
  background: #f0f7f6;
  border: 1px solid #d7e8e5;
  border-radius: .65rem;
}
#selected-date { overflow-wrap: anywhere; }
#selected-date strong, #selected-date span { display: block; }
#selected-date strong::first-letter { text-transform: uppercase; }
#selected-date span { color: #435965; }
#offered-field { width: 100%; }
.result-filters { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; }
#filter { flex: 1 1 15rem; }
.check { display: flex; align-items: center; gap: .45rem; margin: 0; cursor: pointer; }
.check input { width: 1.15rem; min-height: auto; height: 1.15rem; accent-color: var(--accent); }
.cardhead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .35rem .75rem;
}
.cardhead strong::before { content: "+ "; color: var(--accent); }
.card[open] .cardhead strong::before { content: "− "; }
.best-option { grid-column: 1 / -1; color: #435965; font-size: .9rem; }
#results { scroll-margin-top: 1rem; }
.results-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .35rem .75rem;
  color: white;
  background: var(--accent);
  border-radius: .45rem;
  text-decoration: none;
  font-weight: 700;
}
.results-link:hover { background: #065f55; }

@media (max-width: 760px) {
  .calendar-grid { gap: .25rem; }
  .calendar-grid .day { align-items: center; padding: .35rem .1rem; min-height: 2.85rem; }
  .day-tags { justify-content: center; }
  .shift-full { display: none; }
  .shift-short { display: inline; }
}
@media (max-width: 600px) {
  .results-link { width: 100%; }
  .cardhead { grid-template-columns: minmax(0, 1fr); justify-items: start; }
}
