@media screen {
  .schedule-view-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin: 16px 0 0;
    padding: 4px;
    border: 1px solid #d8d4d1;
    border-radius: 999px;
    background: #f4f2f0;
  }

  .schedule-view-tabs[hidden] { display: none !important; }
  .schedule-page .schedule-week-meta[hidden],
  .schedule-page #scheduleRosterButton[hidden],
  .schedule-page #printScheduleButton[hidden] { display: none !important; }

  .schedule-page .schedule-dialog-card.is-calendar-view > :is(
    .schedule-page-week-nav,
    .schedule-summary,
    .schedule-mobile-hint,
    .schedule-table-wrap,
    .schedule-hours-note
  ) {
    display: none !important;
  }

  @media (min-width: 1000px) {
    body.schedule-page-open .schedule-page .schedule-dialog-card:not(.schedule-print-card) > .schedule-view-tabs {
      grid-column: 1 / -1 !important;
      grid-row: 2 !important;
      justify-self: start !important;
      align-self: center !important;
      margin: 16px 0 0 !important;
    }

    body.schedule-page-open .schedule-page .schedule-dialog-card:not(.schedule-print-card) > .schedule-summary {
      grid-row: 3 !important;
    }

    body.schedule-page-open .schedule-page .schedule-dialog-card:not(.schedule-print-card) > .schedule-page-week-nav {
      grid-row: 3 !important;
    }

    body.schedule-page-open .schedule-page .schedule-dialog-card:not(.schedule-print-card) > .my-schedule-calendar {
      grid-column: 1 / -1 !important;
      grid-row: 3 !important;
      width: 100%;
    }
  }

  .schedule-view-tab {
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #5f5a56;
    font: 700 13px/1 Inter, Arial, sans-serif;
    cursor: pointer;
  }

  .schedule-view-tab:hover,
  .schedule-view-tab:focus-visible {
    background: #fff;
    color: #171717;
  }

  .schedule-view-tab.is-active {
    background: #171717;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
  }

  .my-schedule-calendar[hidden] { display: none !important; }

  .my-schedule-calendar {
    display: grid;
    gap: 18px;
  }

  .my-calendar-card,
  .my-calendar-agenda {
    border: 1px solid #d8d4d1;
    background: #fff;
    box-shadow: 0 10px 30px rgba(26,22,20,.05);
  }

  .my-calendar-toolbar {
    min-height: 74px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #e3dfdc;
  }

  .my-calendar-month-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .my-calendar-month-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid #d3cfcc;
    border-radius: 50%;
    background: #fff;
    color: #171717;
    font: 700 24px/1 Inter, Arial, sans-serif;
    cursor: pointer;
  }

  .my-calendar-month-button:hover,
  .my-calendar-month-button:focus-visible {
    background: #f4f2f0;
  }

  .my-calendar-month-copy {
    min-width: 190px;
  }

  .my-calendar-month-copy strong {
    display: block;
    color: #171717;
    font: 700 19px/1.2 Poppins, Inter, Arial, sans-serif;
  }

  .my-calendar-month-copy small {
    display: block;
    margin-top: 3px;
    color: #77716c;
    font: 500 12px/1.3 Inter, Arial, sans-serif;
  }

  .my-calendar-sync-button {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #c7c2be;
    border-top: 3px solid #df0038;
    background: #fff;
    color: #171717;
    font: 700 13px/1 Inter, Arial, sans-serif;
    cursor: pointer;
  }

  .my-calendar-sync-button:hover,
  .my-calendar-sync-button:focus-visible {
    background: #f6f4f2;
  }

  .my-calendar-sync-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .my-calendar-weekdays,
  .my-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .my-calendar-weekdays {
    border-bottom: 1px solid #e3dfdc;
    background: #faf9f8;
  }

  .my-calendar-weekdays span {
    padding: 10px 8px;
    color: #77716c;
    font: 700 11px/1 Inter, Arial, sans-serif;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .my-calendar-day {
    position: relative;
    min-height: 106px;
    padding: 10px;
    border: 0;
    border-right: 1px solid #ebe8e5;
    border-bottom: 1px solid #ebe8e5;
    background: #fff;
    color: #171717;
    text-align: left;
    cursor: default;
  }

  .my-calendar-day:nth-child(7n) { border-right: 0; }

  .my-calendar-day.is-outside {
    background: #faf9f8;
    color: #aaa49f;
  }

  .my-calendar-day.is-working {
    cursor: pointer;
    background: #fff;
  }

  .my-calendar-day.is-working:hover,
  .my-calendar-day.is-working:focus-visible {
    background: #f8f6f4;
    outline: 2px solid #df0038;
    outline-offset: -2px;
  }

  .my-calendar-day.is-today::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid #a7a19d;
    pointer-events: none;
  }

  .my-calendar-date-number {
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    font: 700 13px/1 Inter, Arial, sans-serif;
  }

  .my-calendar-day.is-working .my-calendar-date-number {
    background: #171717;
    color: #fff;
  }

  .my-calendar-shift {
    margin-top: 8px;
    display: grid;
    gap: 4px;
  }

  .my-calendar-shift-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #df0038;
  }

  .my-calendar-shift-time {
    color: #24211f;
    font: 700 12px/1.3 Inter, Arial, sans-serif;
  }

  .my-calendar-shift-location {
    color: #77716c;
    font: 500 10px/1.3 Inter, Arial, sans-serif;
  }

  .my-calendar-status {
    min-height: 52px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #77716c;
    font: 600 13px/1.4 Inter, Arial, sans-serif;
  }

  .my-calendar-status[hidden] { display: none !important; }

  .my-calendar-agenda {
    padding: 18px;
  }

  .my-calendar-agenda-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
  }

  .my-calendar-agenda-head h3 {
    margin: 0;
    color: #171717;
    font: 700 17px/1.2 Poppins, Inter, Arial, sans-serif;
  }

  .my-calendar-agenda-head span {
    color: #77716c;
    font: 600 12px/1.3 Inter, Arial, sans-serif;
  }

  .my-calendar-agenda-list {
    display: grid;
    gap: 10px;
  }

  .my-calendar-agenda-empty {
    margin: 0;
    padding: 20px 0 6px;
    color: #77716c;
    font: 500 13px/1.5 Inter, Arial, sans-serif;
  }

  .my-calendar-agenda-item {
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(0, 1.6fr);
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #e0dcda;
    background: #faf9f8;
  }

  .my-calendar-agenda-date strong,
  .my-calendar-agenda-shift strong {
    display: block;
    color: #171717;
    font: 700 13px/1.35 Inter, Arial, sans-serif;
  }

  .my-calendar-agenda-date small,
  .my-calendar-agenda-shift small {
    display: block;
    margin-top: 3px;
    color: #77716c;
    font: 500 11px/1.35 Inter, Arial, sans-serif;
  }

  .calendar-sync-dialog {
    width: min(560px, calc(100vw - 28px));
    max-width: 560px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .calendar-sync-dialog::backdrop {
    background: rgba(0,0,0,.42);
  }

  .calendar-sync-card {
    overflow: hidden;
    border: 1px solid #d8d4d1;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.25);
  }

  .calendar-sync-body {
    padding: 18px 20px 20px;
  }

  .calendar-sync-body p {
    margin: 0 0 14px;
    color: #5f5a56;
    font: 500 13px/1.5 Inter, Arial, sans-serif;
  }

  .calendar-sync-link-label {
    display: grid;
    gap: 7px;
    color: #5f5a56;
    font: 700 12px/1.3 Inter, Arial, sans-serif;
  }

  .calendar-sync-link-row {
    display: flex;
    gap: 8px;
  }

  .calendar-sync-link-row input {
    min-width: 0;
    flex: 1;
    height: 42px;
    padding: 0 11px;
    border: 1px solid #cbc6c2;
    background: #faf9f8;
    color: #3e3a37;
    font: 500 12px/1 Inter, Arial, sans-serif;
  }

  .calendar-sync-copy {
    min-width: 78px;
    border: 1px solid #cbc6c2;
    background: #fff;
    color: #171717;
    font: 700 12px/1 Inter, Arial, sans-serif;
    cursor: pointer;
  }

  .calendar-sync-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
  }

  .calendar-sync-note {
    margin-top: 12px !important;
    color: #817a75 !important;
    font-size: 11px !important;
  }

  html.nexus-dark-gray .schedule-view-tabs,
  html.nexus-dark-gray .my-calendar-card,
  html.nexus-dark-gray .my-calendar-agenda,
  html.nexus-dark-gray .calendar-sync-card {
    background: #292929;
    border-color: #57524e;
    color: #f3f1ef;
  }

  html.nexus-dark-gray .schedule-view-tabs { background: #232323; }
  html.nexus-dark-gray .schedule-view-tab { color: #c5c0bc; }
  html.nexus-dark-gray .schedule-view-tab:hover,
  html.nexus-dark-gray .schedule-view-tab:focus-visible { background: #373737; color: #fff; }
  html.nexus-dark-gray .schedule-view-tab.is-active { background: #f3f1ef; color: #171717; }

  html.nexus-dark-gray .my-calendar-toolbar,
  html.nexus-dark-gray .my-calendar-weekdays {
    border-color: #4d4946;
    background: #242424;
  }

  html.nexus-dark-gray .my-calendar-month-copy strong,
  html.nexus-dark-gray .my-calendar-agenda-head h3,
  html.nexus-dark-gray .my-calendar-agenda-date strong,
  html.nexus-dark-gray .my-calendar-agenda-shift strong,
  html.nexus-dark-gray .my-calendar-shift-time {
    color: #f3f1ef;
  }

  html.nexus-dark-gray .my-calendar-month-copy small,
  html.nexus-dark-gray .my-calendar-weekdays span,
  html.nexus-dark-gray .my-calendar-shift-location,
  html.nexus-dark-gray .my-calendar-status,
  html.nexus-dark-gray .my-calendar-agenda-head span,
  html.nexus-dark-gray .my-calendar-agenda-date small,
  html.nexus-dark-gray .my-calendar-agenda-shift small,
  html.nexus-dark-gray .calendar-sync-body p,
  html.nexus-dark-gray .calendar-sync-link-label,
  html.nexus-dark-gray .calendar-sync-note {
    color: #bdb7b2 !important;
  }

  html.nexus-dark-gray .my-calendar-month-button,
  html.nexus-dark-gray .my-calendar-sync-button,
  html.nexus-dark-gray .calendar-sync-copy {
    background: #333;
    border-color: #625d59;
    color: #f3f1ef;
  }

  html.nexus-dark-gray .my-calendar-day {
    background: #292929;
    color: #f3f1ef;
    border-color: #474340;
  }

  html.nexus-dark-gray .my-calendar-day.is-outside { background: #252525; color: #77716d; }
  html.nexus-dark-gray .my-calendar-day.is-working:hover,
  html.nexus-dark-gray .my-calendar-day.is-working:focus-visible { background: #353535; }
  html.nexus-dark-gray .my-calendar-day.is-working .my-calendar-date-number { background: #f3f1ef; color: #171717; }
  html.nexus-dark-gray .my-calendar-agenda-item { background: #323232; border-color: #4d4946; }
  html.nexus-dark-gray .calendar-sync-link-row input { background: #333; color: #f3f1ef; border-color: #625d59; }

  html.nexus-seasonal .my-calendar-sync-button,
  html.nexus-seasonal .schedule-view-tab.is-active {
    border-color: var(--seasonal-accent, #f07b2f);
  }

  @media (max-width: 700px) {
    .schedule-view-tabs {
      width: calc(100% - 28px);
      margin: 12px 14px 4px;
    }

    .schedule-view-tab { flex: 1; padding-inline: 10px; }

    .my-calendar-toolbar {
      align-items: stretch;
      flex-direction: column;
      padding: 14px;
    }

    .my-calendar-month-controls {
      justify-content: space-between;
    }

    .my-calendar-month-copy {
      min-width: 0;
      flex: 1;
      text-align: center;
    }

    .my-calendar-sync-button {
      justify-content: center;
      width: 100%;
    }

    .my-calendar-weekdays span {
      padding-inline: 2px;
      font-size: 10px;
    }

    .my-calendar-day {
      min-height: 78px;
      padding: 7px 5px;
    }

    .my-calendar-date-number {
      width: 24px;
      height: 24px;
      font-size: 12px;
    }

    .my-calendar-shift {
      margin-top: 5px;
      gap: 2px;
    }

    .my-calendar-shift-time {
      font-size: 9px;
      line-height: 1.2;
    }

    .my-calendar-shift-location {
      display: none;
    }

    .my-calendar-shift-dot {
      width: 6px;
      height: 6px;
    }

    .my-calendar-agenda {
      padding: 14px;
    }

    .my-calendar-agenda-item {
      grid-template-columns: 1fr;
      gap: 7px;
      padding: 12px;
    }

    .calendar-sync-link-row {
      align-items: stretch;
      flex-direction: column;
    }

    .calendar-sync-copy {
      min-height: 40px;
    }

    .calendar-sync-actions {
      flex-direction: column-reverse;
    }

    .calendar-sync-actions button,
    .calendar-sync-actions a {
      width: 100%;
    }
  }
}
