:root {
  --hq-navy: #123b67;
  --hq-blue: #4f94d4;
  --hq-ink: #142437;
  --hq-muted: #64748b;
  --hq-line: #dbe5ee;
  --hq-surface: #ffffff;
  --hq-wash: #f1f6f9;
}

body {
  background:
    radial-gradient(circle at 0 0, rgba(79, 148, 212, 0.09), transparent 32rem),
    #eef4f4 !important;
}

#hq-schedule-home {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-bottom: 1.5rem;
  color: var(--hq-ink);
}

.hq-schedule-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(18, 59, 103, 0.13);
  border-radius: 1.35rem;
  background: var(--hq-surface);
  box-shadow: 0 22px 60px rgba(24, 48, 72, 0.1);
}

.hq-schedule-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(113, 181, 237, 0.42), transparent 24rem),
    linear-gradient(125deg, #102f52 0%, #174c7e 64%, #246ca5 100%);
}

.hq-eyebrow {
  margin: 0 0 0.55rem;
  color: #acd8ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hq-schedule-title {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.hq-schedule-subtitle {
  margin: 0.65rem 0 0;
  color: #d9ecfb;
  font-size: 0.95rem;
}

.hq-week-total {
  min-width: 8.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  text-align: right;
  backdrop-filter: blur(8px);
}

.hq-week-total strong,
.hq-week-total span {
  display: block;
}

.hq-week-total strong {
  font-size: 1.75rem;
  line-height: 1;
}

.hq-week-total span {
  margin-top: 0.35rem;
  color: #cfe7fa;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hq-next-shift {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #cfe3f3;
  border-radius: 1rem;
  background: #f4faff;
}

.hq-next-date {
  display: grid;
  width: 3.35rem;
  height: 3.35rem;
  place-content: center;
  border-radius: 0.85rem;
  color: #fff;
  background: var(--hq-navy);
  text-align: center;
}

.hq-next-date b,
.hq-next-date span {
  display: block;
}

.hq-next-date b {
  font-size: 1.35rem;
  line-height: 1;
}

.hq-next-date span {
  margin-top: 0.2rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hq-next-copy p {
  margin: 0;
}

.hq-next-label {
  color: var(--hq-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hq-next-time {
  margin-top: 0.15rem !important;
  font-size: 1.15rem;
  font-weight: 750;
}

.hq-next-detail {
  margin-top: 0.15rem !important;
  color: var(--hq-muted);
  font-size: 0.82rem;
}

.hq-until {
  color: var(--hq-navy);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: right;
}

.hq-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.7rem;
  padding: 0 1.25rem 1.25rem;
}

.hq-day {
  min-width: 0;
  min-height: 8.5rem;
  padding: 0.85rem;
  border: 1px solid var(--hq-line);
  border-radius: 0.95rem;
  background: #fbfdfe;
}

.hq-day.hq-today {
  border-color: #65a7dc;
  box-shadow: inset 0 0 0 1px #65a7dc;
}

.hq-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: var(--hq-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hq-day-head b {
  color: var(--hq-ink);
  font-size: 1rem;
}

.hq-shift {
  position: relative;
  margin-top: 0.8rem;
  padding-left: 0.75rem;
}

.hq-shift::before {
  position: absolute;
  top: 0.1rem;
  bottom: 0.1rem;
  left: 0;
  width: 0.25rem;
  border-radius: 999px;
  background: var(--shift-color, var(--hq-blue));
  content: '';
}

.hq-shift-time {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.hq-shift-role,
.hq-off {
  margin-top: 0.25rem;
  color: var(--hq-muted);
  font-size: 0.72rem;
}

.hq-off {
  margin-top: 1.1rem;
}

.hq-schedule-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--hq-line);
  background: #fafcfd;
}

.hq-range-button,
.hq-open-schedule {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.hq-range-button {
  padding: 0.55rem 0.8rem;
  color: var(--hq-navy);
  background: #e8f2fa;
}

.hq-open-schedule {
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--hq-navy);
}

.hq-schedule-error,
.hq-schedule-loading {
  padding: 2rem;
  border: 1px solid var(--hq-line);
  border-radius: 1rem;
  color: var(--hq-muted);
  background: #fff;
  text-align: center;
}

@media (max-width: 900px) {
  .hq-days {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #hq-schedule-home {
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
  }

  .hq-schedule-hero {
    grid-template-columns: 1fr;
  }

  .hq-week-total {
    width: max-content;
    text-align: left;
  }

  .hq-next-shift {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hq-until {
    grid-column: 1 / -1;
    text-align: left;
  }

  .hq-days {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .hq-day {
    width: 9.4rem;
    flex: 0 0 9.4rem;
    scroll-snap-align: start;
  }

  .hq-schedule-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hq-range-button,
  .hq-open-schedule {
    width: 100%;
    min-height: 2.75rem;
  }
}
