:root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17253b;
  background: #f4f6fa;
  --muted: #52647b;
  --ink: #17253b;
  --line: #dce4ee;
  --blue: #2854d6;
  --navy: #14274b;
  --wash: #eef3ff;
  --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, a.button { cursor: pointer; }
button:disabled { opacity: .58; cursor: wait; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid #6385ee; outline-offset: 3px; }
.skip { position: absolute; left: -100vw; top: 10px; }
.skip:focus { left: 10px; z-index: 10; background: white; padding: 8px; }
.shell, .header-inner { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { letter-spacing: .10em; font-size: 15px; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 1px; }
.brand-icon { display: grid; place-items: center; width: 39px; height: 39px; background: var(--navy); border-radius: 10px; }
.brand-icon i { width: 17px; height: 17px; border: 1.5px solid #b5c7ff; border-top-width: 5px; border-radius: 3px; position: relative; }
.brand-icon i::after { content: ''; position: absolute; width: 4px; height: 4px; background: white; border-radius: 1px; left: 4px; top: 3px; }
nav, .actions, .inline, .segmented, .topline { display: flex; align-items: center; gap: 10px; }
nav { gap: 6px; }
nav a, nav button { color: var(--muted); padding: 9px 12px; border: 0; border-radius: 7px; text-decoration: none; background: transparent; font-weight: 650; font-size: 13px; }
nav a[aria-current="page"] { color: #2447a9; background: var(--wash); }
.hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(110deg, #14274b, #203d78); color: white; border-radius: 17px; padding: 36px 38px; margin: 32px 0 24px; }
.hero::after { content: ''; z-index: -1; position: absolute; inset: 0 0 0 47%; opacity: .24; background-image: linear-gradient(#97b3ff55 1px, transparent 1px), linear-gradient(90deg,#97b3ff55 1px,transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent, black); }
.hero h1 { margin: 9px 0 9px; font-size: clamp(27px, 4vw, 43px); letter-spacing: -.045em; line-height: 1.12; }
.hero p { color: #dbe6fb; max-width: 560px; margin: 0; line-height: 1.6; font-size: 15px; }
.eyebrow { font-weight: 700; color: #c2d2f7; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.demo-note { background: #fef8ea; color: #684818; border: 1px solid #f1e2b5; border-radius: 9px; padding: 10px 14px; font-size: 13px; margin: 0 0 18px; }
.layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 20px; align-items: start; }
.card { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 21px; min-width: 0; }
h2 { font-size: 19px; margin: 0 0 7px; letter-spacing: -.025em; }
h3 { font-size: 15px; margin: 0; }
p { line-height: 1.5; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 13px; margin: 4px 0 14px; }
.filter { display: grid; gap: 15px; }
.field { display: grid; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 650; min-width: 0; }
input:not([type=checkbox]), select { background: white; color: var(--ink); min-width: 0; width: 100%; border: 1px solid #c9d5e5; border-radius: 7px; padding: 9px 10px; min-height: 41px; }
input:disabled { background: #f1f4f8; color: #52647b; }
input[type=checkbox] { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; min-height: 33px; }
fieldset { padding: 0; border: none; min-width: 0; margin: 0; }
legend { font-size: 13px; font-weight: 650; margin-bottom: 7px; }
.segmented { gap: 4px; background: #f0f3f8; padding: 4px; border-radius: 9px; }
.segmented button { flex: 1; color: var(--muted); border: 1px solid transparent; background: none; border-radius: 6px; padding: 6px; white-space: nowrap; font-size: 13px; }
.segmented button[aria-pressed=true] { border-color: var(--line); background: white; color: #2549ad; font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; min-height: 41px; padding: 8px 14px; color: var(--ink); background: white; border: 1px solid #c9d5e5; border-radius: 8px; font-size: 13px; font-weight: 700; text-align: center; }
.button:hover { background: #f4f7fe; }
.primary { color: white; background: var(--blue); border-color: var(--blue); }
.primary:hover { background: #1e43af; }
.text-button { border: 0; background: transparent; color: var(--blue); font-size: 13px; font-weight: 700; padding: 8px 0; }
.results-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 5px; }
.results-head .hint { margin-bottom: 0; }
.zone { white-space: nowrap; background: #edf2fb; color: #354d73; padding: 5px 9px; border-radius: 6px; font-size: 12px; font-weight: 650; }
.days { margin-top: 10px; }
.day { display: grid; grid-template-columns: 118px 1fr; gap: 12px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; }
.day-label { padding-top: 6px; font-size: 13px; font-weight: 750; }
.day-label small { display: block; margin-top: 3px; color: var(--muted); font-weight: 500; }
.slots { display: flex; flex-wrap: wrap; gap: 7px; }
.slot { background: var(--wash); border: 1px solid #d9e3fd; color: #2448a9; border-radius: 7px; padding: 7px 9px; min-height: 34px; font-size: 12px; font-weight: 700; white-space: nowrap; }
button.slot:hover { background: #dae5ff; border-color: #9eb5f7; }
.empty { padding: 16px; border-radius: 8px; background: #f4f7fb; color: var(--muted); font-size: 14px; }
.status { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.error { color: #a12d35; }
.footer { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); padding-block: 28px; font-size: 12px; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav button { border: 0; padding: 10px 11px; background: transparent; border-radius: 7px; text-align: left; color: var(--muted); font-weight: 650; }
.admin-nav button[aria-pressed=true] { background: var(--wash); color: #2447a9; }
.admin-body { min-height: 310px; }
.admin-bottom { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); justify-content: space-between; flex-wrap: wrap; }
.rule-row { display: flex; align-items: end; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e9eef5; flex-wrap: wrap; }
.rule-row > .field { flex: 1 1 115px; }
.rule-row .days-picker { flex: 1 1 100%; }
.week-row { display: grid; grid-template-columns: minmax(106px,1fr) 1fr 1fr; gap: 10px; align-items: center; padding: 5px 0; }
.week-row .field { gap: 0; }
.subhead { margin-top: 21px; }
.option-block { padding-top: 12px; }
.details { border: 1px solid var(--line); border-radius: 8px; margin-top: 14px; padding: 12px; }
details summary { cursor: pointer; font-weight: 650; font-size: 14px; }
.auth-card { max-width: 500px; margin: auto; }
dialog { width: min(560px, calc(100vw - 28px)); max-height: 90vh; border: 1px solid var(--line); border-radius: 14px; padding: 24px; color: var(--ink); box-shadow: 0 14px 65px #12244b33; }
dialog::backdrop { background: #17253b82; }
dialog .topline { justify-content: space-between; align-items: start; }
dialog .actions { flex-wrap: wrap; }
.summary { background: var(--wash); border-radius: 9px; padding: 14px; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 780px) {
  .shell, .header-inner { width: calc(100% - 32px); }
  .layout { grid-template-columns: 1fr; gap: 14px; }
  .hero { margin-top: 20px; padding: 25px; }
  .admin-nav { display: flex; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .card { padding: 15px; }
  .hero { padding: 22px 18px; }
  .day { grid-template-columns: 1fr; gap: 8px; }
  .day-label small { display: inline; margin-left: 5px; }
  nav { gap: 2px; }
  nav a, nav button { padding: 7px 6px; }
  .footer { flex-direction: column; gap: 6px; }
}
.wrap { flex-wrap: wrap; }
[hidden] { display: none !important; }
