@font-face {
  font-family: "Space Grotesk";
  src: url("/branding/space-grotesk-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f5f7;
  color: #19263a;
  --border: #ccd4df;
  --ink: #19263a;
  --muted: #475871;
  --navy: #14283e;
  --accent: #93c5fd;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); line-height: 1.1; }
h2 { font-size: 1.3rem; line-height: 1.2; }
button, select, input, textarea { font: inherit; }
.wrap { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.top { background: var(--navy); color: white; padding-block: 1.4rem; border-bottom: .25rem solid var(--accent); }
.top-content, .season, .dialog-head, .dialog-actions { display: flex; gap: .75rem; align-items: center; justify-content: space-between; }
.brand { margin-bottom: .5rem; font-size: .875rem; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.product-name { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 600; }
.brand.product-name { letter-spacing: 0; text-transform: none; }
.schedule { padding-block: 1.25rem 3rem; }
.season, .dialog-actions { flex-wrap: wrap; }
.season { align-items: end; }
.season p { flex: 1; line-height: 1.4; }
.season-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; }
.excel-download { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .55rem .65rem; color: var(--ink); border: 1px solid var(--border); border-radius: .4rem; background: white; font-weight: 650; text-decoration: none; }
.excel-download:hover { text-decoration: underline; }
label { display: grid; gap: .3rem; font-size: .9375rem; font-weight: 650; }
.sharing-choice { display: flex; align-items: center; gap: .5rem; }
.sharing-choice input { width: 1.15rem; min-height: 1.15rem; flex: none; }
.role-options { display: flex; gap: .45rem 1rem; flex-wrap: wrap; margin-top: .5rem; }
input, select, textarea, button {
  min-height: 2.75rem;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: .4rem;
  background: white;
  padding: .55rem .65rem;
}
input, select, textarea { width: 100%; min-width: 0; font-size: 1rem; }
button { cursor: pointer; font-weight: 650; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: .17rem solid #087eb8;
  outline-offset: .12rem;
}
.primary { background: var(--accent); border-color: #5b8aba; color: var(--navy); }
.quiet { background: transparent; color: inherit; }
.muted, #message { color: var(--muted); }
#message:not(:empty) { margin-block: .85rem; }
.error { color: #961c31; }
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-top: 1rem; }
.contact-picker { position: relative; display: grid; align-content: start; gap: .3rem; min-width: 0; }
#contact-filter-label { font-size: .9375rem; font-weight: 650; }
#contact-filter { display: flex; align-items: center; justify-content: space-between; text-align: left; gap: .55rem; }
#contact-filter-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-filter-arrow { width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); flex: none; margin-bottom: .2rem; }
.contact-filter-popup { position: absolute; inset: calc(100% + .25rem) 0 auto; z-index: 2; padding: .35rem; background: white; border: 1px solid var(--border); border-radius: .45rem; box-shadow: 0 .35rem 1rem #14283e22; }
#contact-filter-options { max-height: min(16rem, 42vh); overflow-y: auto; margin-top: .25rem; }
.contact-filter-option { width: 100%; min-height: 2.35rem; border: 0; text-align: left; overflow-wrap: anywhere; font-weight: 500; }
.contact-filter-option[aria-selected="true"] { font-weight: 700; }
.contact-filter-option.active, .contact-filter-option:hover { background: #e7f2ff; }
#contact-filter-empty { padding: .55rem; font-size: .875rem; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem .7rem; list-style: none; margin: .8rem 0 1rem; padding: 0; }
.legend li, .pill { padding: .14rem .42rem; border: 1px solid var(--border); border-radius: .35rem; font-size: .875rem; color: var(--ink); }
.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.month { background: white; border: 1px solid var(--border); border-radius: .6rem; padding: .75rem; }
.month h2 { margin-bottom: .6rem; }
.weekends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.weekend { text-align: left; min-width: 0; padding: .45rem .55rem; min-height: 3.9rem; }
.weekend.contact-match { border-color: #19657c; box-shadow: inset 0 0 0 1px #19657c; }
.weekend.contact-unmatched { background: #f4f5f7; color: var(--muted); }
.weekend span { display: block; }
.weekend .count, .show-location { font-weight: 400; font-size: .875rem; color: #2f415a; }
.matches { margin-block: 1.15rem; }
.matches h2 { margin-bottom: .5rem; }
.show-list { display: grid; gap: .45rem; }
.show-row { display: grid; gap: .25rem; width: 100%; text-align: left; overflow-wrap: anywhere; }
.show-row > span:last-child { display: flex; flex-wrap: wrap; gap: .35rem; }
.pending { display: inline-block; width: max-content; max-width: 100%; font-size: .875rem; color: #653700; background: #fff1d5; border-radius: .35rem; padding: .16rem .45rem; }
dialog { border: 1px solid var(--border); border-radius: .75rem; color: var(--ink); width: min(100% - 1.5rem, 36rem); max-height: 88vh; padding: 1rem; }
dialog::backdrop { background: #0b152b9e; }
.dialog-head { align-items: start; margin-bottom: .8rem; }
.dialog-actions { justify-content: flex-start; }
#contacts .dialog-actions { align-items: end; }
#contacts .dialog-actions label { flex: 1 1 12rem; }
.stack, #detail-content { display: grid; gap: .75rem; }
.show-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.environment-banner { background: #ffd861; color: #19263a; padding: .5rem 1rem; font-weight: 800; text-align: center; }
.dev-navigation { margin-bottom: .9rem; }
.platform-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .75rem; }
.platform-nav a { background: white; color: var(--ink); border: 1px solid var(--border); border-radius: .4rem; padding: .55rem .75rem; text-decoration: none; font-weight: 650; }
.platform-nav a:hover { text-decoration: underline; }
.platform-nav [aria-current="page"] { background: var(--navy); color: white; border-color: var(--navy); }
.canceled { background: #ffe1e6; color: #861732; }
.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--border); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.comparison { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
.comparison > div { border: 1px solid var(--border); border-radius: .4rem; padding: .65rem; }
.comparison h3 { margin-bottom: .35rem; font-size: .95rem; }
.comparison-filters { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); }
.comparison-table { min-width: 38rem; }
.comparison-table td { width: 34%; vertical-align: top; }
.comparison-table td:last-child { width: 32%; }
.comparison-table small { display: block; margin-top: .2rem; }
.comparison-difference { background: #fffbf1; }
.comparison-flags { display: flex; flex-wrap: wrap; gap: .25rem; }
.changed-field { background: #fff0bf; width: fit-content; }
.import-summary { display: flex; flex-wrap: wrap; gap: .5rem; }
.import-summary a { text-decoration: none; }
.import-summary [aria-current] { background: var(--navy); color: white; }
.workflow { display: flex; flex-wrap: wrap; gap: .5rem 1rem; list-style: none; padding: 0; margin: 0; color: var(--muted); }
.workflow [aria-current] { color: var(--ink); font-weight: 750; text-decoration: underline; }
.admin-card { background: white; padding: 1rem; border: 1px solid var(--border); border-radius: .6rem; overflow-wrap: anywhere; }
.admin-card h2 { margin-bottom: .6rem; }
.admin-card form + form { margin-top: .55rem; }
.admin-card input[type="checkbox"] { width: auto; min-height: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: .85rem; }
.admin-evidence { white-space: pre-wrap; overflow-wrap: anywhere; }
.contact { padding: .6rem; border: 1px solid var(--border); border-radius: .4rem; overflow-wrap: anywhere; }
.contact > * { display: block; margin-block: .2rem; }
.contact > .contact-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.contact-delete { color: #961c31; }
.login { width: min(100% - 2rem, 25rem); margin: clamp(1.5rem, 8vh, 4.5rem) auto 1.5rem; background: #fff; border: 1px solid var(--border); border-top: .25rem solid var(--accent); border-radius: .65rem; padding: clamp(1.2rem, 5vw, 1.6rem); }
.login-brand { display: grid; justify-items: center; gap: .6rem; margin-bottom: 1.4rem; text-align: center; color: var(--navy); }
.network-mark { display: block; }
.login-brand .product-name { font-size: clamp(2rem, 8vw, 2.55rem); letter-spacing: -.035em; }
.login-tagline { max-width: 32ch; font-size: clamp(1rem, 4vw, 1.125rem); line-height: 1.4; }
.login .error { margin-bottom: 1rem; }
.brand-footer { color: var(--muted); }
.brand-footer-inner { border-top: 1px solid var(--border); padding-block: .65rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1rem; }
.brand-domain { font-size: .8125rem; font-weight: 650; }
.brand-credits { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; }
.brand-credit { color: inherit; font-size: .75rem; display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; }
.brand-credit:hover span { text-decoration: underline; }
.brand-credit img { display: block; height: auto; }
.credit-undaunted { width: 7rem; }
.credit-lycon { width: 5rem; }
.sign-in-page .brand-footer-inner { max-width: 25rem; justify-content: center; }
.sign-in-page .brand-domain { flex-basis: 100%; text-align: center; }
@media (max-width: 58rem) { .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 58rem) {
  .filters { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
  .months { grid-template-columns: 1fr; }
  .filters > :first-child, .filters > :last-child { grid-column: 1 / -1; }
  .season p { order: 3; flex-basis: 100%; }
  .top { padding-block: 1rem; }
  .wrap { width: calc(100% - 1.25rem); }
  .brand-footer-inner { justify-content: center; }
  .brand-domain { flex-basis: 100%; text-align: center; }
  .brand-credits { align-items: flex-start; }
  .brand-credit { flex-direction: column; gap: .25rem; }
}
