:root {
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #20262e;
  background: #f8f9fb;
  font-synthesis: none;
  --muted: #566170;
  --border: #cbd2db;
  --accent: #1759ab;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--accent); }
button, input { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid transparent;
  border-radius: .55rem; background: var(--accent); color: #fff;
  font-weight: 600; text-decoration: none; cursor: pointer; text-align: center;
}
button.secondary { color: #244365; border-color: var(--border); background: #fff; }
button:disabled { cursor: not-allowed; opacity: .6; }
button:active:not(:disabled), .button:active { background: #103e78; }
button.secondary:active:not(:disabled) { background: #e5ebf3; }
@media (hover: hover) and (pointer: fine) {
  button:hover:not(:disabled), .button:hover { background: #124b92; }
  button.secondary:hover:not(:disabled) { background: #edf2f8; }
}
:focus-visible { outline: 3px solid #925900; outline-offset: 3px; }
input {
  width: 100%; min-height: 2.75rem; padding: .55rem .7rem; color: inherit;
  border: 1px solid #8d98a6; border-radius: .4rem; background: #fff; min-width: 0;
}
input[type="checkbox"] { width: 1.15rem; min-height: 1.15rem; height: 1.15rem; accent-color: var(--accent); flex-shrink: 0; }
label { display: block; font-size: .9rem; font-weight: 550; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 1rem; }
h2 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.015em; margin-bottom: .6rem; }
h3 { font-size: .95rem; }
p { margin-bottom: .8rem; }
.page-header, main, footer { max-width: 72rem; margin-inline: auto; padding-inline: 2rem; }
.page-header { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; gap: 1rem; }
.brand { font-size: 1.05rem; color: #20262e; font-weight: 700; text-decoration: none; }
.intro { max-width: 46rem; margin: 2.5rem 0 2rem; }
.eyebrow { font-size: .8rem; font-weight: 650; color: var(--accent); margin-bottom: .7rem; }
.lead { color: var(--muted); font-size: 1.1rem; }
.muted, .hint { color: var(--muted); }
.small, .hint { font-size: .875rem; }
.hint { margin-top: -.25rem; }
.connection { display: flex; justify-content: space-between; gap: 2rem; align-items: center; background: #fff; border: 1px solid var(--border); padding: 1.4rem; border-radius: .65rem; }
.connection p:last-child { margin-bottom: 0; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; flex-shrink: 0; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-block: 2.5rem; }
.workspace > section { min-width: 0; }
.section-heading { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.section-heading h2 { margin: 0; }
.step { border: 1px solid var(--border); border-radius: 50%; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; font-size: .8rem; color: var(--muted); }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; min-width: 0; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.search-row { display: flex; align-items: end; gap: .6rem; margin: 1.2rem 0 .6rem; }
.search-row .field { margin: 0; }
.grow { flex: 1; }
fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
fieldset:disabled { opacity: .7; }
.weekdays { display: flex; flex-wrap: wrap; gap: .2rem .5rem; margin-block: .4rem 1rem; }
.weekdays legend { margin-bottom: .4rem; font-size: .9rem; font-weight: 550; }
.weekdays label { display: flex; gap: .35rem; align-items: center; min-height: 2.75rem; padding: .25rem; cursor: pointer; }
.zone-confirm { display: flex; gap: .5rem; align-items: center; min-height: 2.75rem; margin: -.3rem 0 1rem; cursor: pointer; }
.directory, .selected { list-style: none; padding: 0; margin: 0; }
.directory { margin-block: .5rem 1rem; border-top: 1px solid var(--border); }
.directory li { border-bottom: 1px solid var(--border); }
.participant { display: flex; gap: .8rem; align-items: center; padding: .85rem .3rem; cursor: pointer; }
.participant span { min-width: 0; overflow-wrap: anywhere; }
.participant strong { display: block; font-size: .95rem; font-weight: 600; }
.participant small { display: block; color: var(--muted); font-weight: 400; }
.selection { margin-block: 1.5rem; }
.selected li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .4rem; font-size: .9rem; overflow-wrap: anywhere; }
.selected li > span { min-width: 0; }
.selected button { padding: .3rem .6rem; font-size: .8rem; flex-shrink: 0; }
details { border-top: 1px solid var(--border); padding-top: 1rem; }
summary { cursor: pointer; font-weight: 600; color: var(--accent); padding-block: .4rem; }
details form { margin-top: 1rem; }
.notice { font-size: .9rem; color: #644408; background: #fff5df; border: 1px solid #d9bc7c; padding: .8rem 1rem; border-radius: .4rem; margin-top: 1rem; }
[data-error="true"] { color: #a12424; }
#search-status, #add-status { margin-top: .8rem; }
.results { border-top: 1px solid var(--border); padding-top: 2rem; margin-block: 2rem; }
.result-day { margin-bottom: 1.5rem; }
.result-day ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 23rem), 1fr)); gap: .5rem; padding: 0; }
.result-day li { font-size: .9rem; padding: .7rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: .4rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
footer { font-size: .8rem; color: var(--muted); padding-block: 2rem; border-top: 1px solid var(--border); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .7rem; background: #fff; z-index: 1; }
.skip-link:focus { top: 1rem; }
@media (max-width: 50rem) {
  .workspace { grid-template-columns: 1fr; gap: 2rem; }
  .connection { align-items: start; flex-direction: column; gap: 1rem; }
  .intro { margin-top: 1.5rem; }
}
@media (max-width: 30rem) {
  .page-header, main, footer { padding-inline: 1rem; }
  .page-header { font-size: .8rem; }
  .two-columns { grid-template-columns: 1fr; gap: 0; }
  .connection { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
